Ernie Dunbar
2016-May-30 23:58 UTC
[asterisk-users] Trying to record incoming calls that go to queues in Asterisk v11
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: [lsqueue-all] monitor-format=wav monitor-type=MixMonitor But when I reload Asterisk, I don't get any new files in /var/spool/asterisk/monitor/incoming. 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.