我已经在我的 Asterisk 设置中为各个分机设置了基本呼叫监控。这是我为记录个人通话所做的:
[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()
这有效,分机 101 接听的呼叫保存在/var/spool/asterisk/monitor
现在,我设置了几个名为sales
and的测试队列support
,如下所示:
[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()
我还在队列0000FFFF0001
下添加了调用的用户。sales
因此,当我拨打 7002 时,它会在 ext.101 响铃并且可以接听电话。但是,不会进行呼叫监控。
如何启用对通过队列进入 101 的呼叫的监控?