I have set up basic call monitoring for individual extensions in my Asterisk setup. This is what I have done for recording individual calls:
[macro-automon]
exten => s,1,Set(MONITOR_FILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERID(num)})
same => n,MixMonitor(${MONITOR_FILENAME}.wav,b)
[LocalSets]
exten => 101,1,noop(dialing 101)
same => n,Macro(automon)
same => n,Dial(${EXT_TESTONE},20,m) ; Replace 0000FFFF0001 with your device name
same => n,Playback(vm-nobodyavail) ; Play "no one's available"
same => n,Hangup()
This works and a call which is picked up by extension 101 is saved under /var/spool/asterisk/monitor
Now, I have setup a couple of test queues called sales
and support
, like so:
[Queues]
exten => 7001,1,Verbose(2,${CALLERID(all)} entering the support queue)
same => n,Queue(support)
same => n,Hangup()
exten => 7002,1,Verbose(2,${CALLERID(all)} entering the sales queue)
same => n,Queue(sales)
same => n,Hangup()
I have also added the user called 0000FFFF0001
under the sales
queue. Thus, when I dial 7002, it rings at ext.101 and the call can be picked up. However, the call monitoring doesn't take place.
How could I enable monitoring for calls which come to 101 via the queue?