K
K
karibskii_koks2016-12-24 22:06:32
MySQL
karibskii_koks, 2016-12-24 22:06:32

Why doesn't CDR Viewer show files?

Hello, I'm setting up call recording in Asterisk and decided to turn on statistics output via the Web.
Text information is displayed, but there is no way to listen or download the file.
I implement in extensions.conf
macro
[macro-recording]
exten => s,1,Set(fname=${UNIQUEID}-${STRFTIME(${EPOCH},,%Y-%m-%d-%H_%M )}-${ARG1}-${ARG2});
exten => s,n,Set(monopt=nice -n 19 /usr/local/bin/lame -b 32 --silent ${DIR_RECORDS}/${fname}.wav ${DIR_RECORDS}/${fname}. mp3 && rm -f ${DIR_RECORDS}/${fname}.wa$
exten => s,n,Set(CDR(filename)=${fname}.mp3);
exten => s,n,Set(CDR( realdst)=${ARG2});
exten => s,n,MixMonitor(${DIR_RECORDS}/${fname}.wav,b,${monopt});
exten => s,n(no),Verbose( exit record);
Trunk dialing :
exten => 4444,1,Macro(recording,${CALLERID(num)},${EXTEN})
exten => 4444,2,Dial(SIP/${EXTEN}@468174)
Recordings are created in a folder , macro created using readme.txt CDR Viewer.
Everything is done, except for listening to audio, so I understand that the matter may be in the file names. Has anyone faced this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
karibskii_koks, 2016-12-26
@karibskii_koks

uuuuu, found an error, in my config /var/html/www/master/inc/config.inc:
$system_monitor_dir = '/var/www/html/master/mp3';
and below, in the same config, it was like this
$system_monitor_dir = '/var/calls';
After commenting out the last one, everything worked.

V
Viktor, 2016-12-25
@awsswa59

Open the CDR table in mysql - look at the file name.
Then, create a file under the same name in the directory - see if you get the opportunity to listen

S
silverjoe, 2016-12-25
@silverjoe

Provide access for the web-muzzle to mp3 files. Rights, ways and more.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question