How to record conversations in the queue

I used to use the command
exten => DIAL_NUMBER1,n,Queue(ZAO_VEKTOR,,,,,,record_call)
which ran the macro

[macro-record_call]
exten => s,1,NoOp(Старт записи разговора)
exten => s,n,Set(RecFile=audio_{CDR(src)}_{STRFTIME({EPOCH},,%Y-%m-%d-%H-%M-%S)}) ;создаем переменную с будущем именем аудиофайла exten => s,n,NoOp(Имя аудиофайла разговора {RecFile})
exten => s,n,MixMonitor({RecFile}.wav,,lame /var/spool/asterisk/monitor/{RecFile}.wav /var/spool/asterisk/monitor/{RecFile}.mp3 && rm -f /var/spool/asterisk/monitor/{RecFile}.wav);записываем разговор
exten => s,n,Set(CDR(recordingfile)=${RecFile}.mp3) ;добавляем в БД MySQL в таблицу cdr имя аудиофайла
;exten => s,n,return

at 16 asterisk, I started getting an error like
app.c:280 ast_app_exec_macro: Cannot run ‘Macro(record_call)’. The application is not available.

how to record conversations in the queue now?

found the answer
one more comma needed to be added
then we can use the gosub parameter

> exten => DIAL_NUMBER1,n,Queue(ZAO_VEKTOR,,,,,,,record_call)

[record_call]
exten => s,1,NoOp(Старт записи разговора)
exten => s,n,Set(RecFile=audio_${CDR(src)}_${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}) ;создаем переменную с будущем именем аудиофайла
exten => s,n,NoOp(Имя аудиофайла разговора ${RecFile})
exten => s,n,MixMonitor(${RecFile}.wav,,lame /var/spool/asterisk/monitor/${RecFile}.wav /var/spool/asterisk/monitor/${RecFile}.mp3 && rm -f /var/spool/asterisk/monitor/${RecFile}.wav)
exten => s,n,Set(CDR(recordingfile)=${RecFile}.mp3)  
exten => s,n,NoOp(Старт записи разговора${USERFIELD})
exten => s,n,Set(CDR(cnum)=${NUMBER1})
exten => s,n,return

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.