Dialplan for queue call record

i want to record call from the queue. but its not recording , my dialplan is

exten =>s,1, Verbose(4,Inside Enter Queue)

same => n,Set(FILENAME=/var/spool/asterisk/outgoing/test.wav)
same => n,MixMonitor(${QNAME},a)

same =>n,Queue(${QNAME})
same =>n,Hangup()

is right?

Hi @anas27,

  1. I don’t understand why are you trying to set the FILENAME variable. That too you have given a path to a wav file in the /var/spool/asterisk/outgoing directory. This line makes no sense. You must not write anything other than asterisk .call files in this directory. Remove this line.
  2. In MixMonitor, specify absolute path to the recording with the extension eg. /home/recordings/.wav where in place of file name give proper name or replace this with a variable containing the name of the file. To choose a unique file name you can use ${UNIQUEID} variable which is the unique id for every call. so you can do something like MixMonitor(/home/recordings/${UNIQUEID}).

I am sure this would resolve your issue.

do not use /home/ for anything as that is a USER directory
I recoment that you use

1 Like

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