[asterisk-users] Trying to record incoming calls that go to queues in Asterisk v11

Ernie Dunbar maillist at lightspeed.ca
Mon May 30 18:58:56 CDT 2016

Hi everyone.

It seems that all the documentation for Asterisk has become obsolete 
when it comes to using the Monitor command on a call queue.

To the best of my knowledge, the way to get Asterisk to record a call 
that goes into one of your call queues is by doing this in the dialplan:

exten => 1,1,Answer()
    same => n,Set(DAY=${STRFTIME(${EPOCH},,%Y-%m-%d)})
    same => n,Set(TIME=${STRFTIME(${EPOCH},,%H%M%S)})
    same => n,Set(MONITOR_FILENAME="incoming/${DAY}/${TIME}-${EXTEN}")
    same => n,Queue(lsqueue-all)
    same => n,Macro(handle-hangup)

and then add these lines in the queue context in queues.conf:


But when I reload Asterisk, I don't get any new files in 

We're able to record our outgoing calls without any trouble with the 
following dialplan:

exten => call,1,NoOp()
    same => n,Set(DAY=${STRFTIME(${EPOCH},,%Y-%m-%d)})
    same => n,Set(TIME=${STRFTIME(${EPOCH},,%H%M%S)})
    same => n,Set(FILENAME="outgoing/${DAY}/${TIME}-${E}")
    same => n,Monitor(wav,${FILENAME},m)
    same => n,Dial(SIP/dolphintel/${E})

The file permissions on the "outgoing" and "incoming" are the same, plus 
we don't get any errors in the Asterisk console about not being able to 
write the files, so I'm pretty sure it's not a problem with actually 
writing the files. It just doesn't seem to even try.

Any help will be much appreciated.

More information about the asterisk-users mailing list