extensions.conf配置
[luyin] ;outbond_luyin
exten => _9X.,1,Set(CALLFILENAME=${STRFTIME(${EPOCH},UTC-8,%Y%m%d%H%M%S)}-${CALLERID(num)}-${EXTEN:1})
exten => _9X.,n,Set(PATH=/var/spool/asterisk/monitor/luyin/${STRFTIME(${EPOCH},UTC-8,%Y%m%d)}/${CALLERID(num)})
exten => _9X.,n,Set(CALLERID(all)=87120766)
exten => _9X.,n,MixMonitor(${PATH}/${CALLFILENAME}.wav,b)
exten => _9X.,n,Dial(SIP/112${EXTEN:1}@TG1,60)
exten => _9X.,n,Hangup()
输出结果:
== Using SIP RTP CoS mark 5
-- Executing [913811908714@luyin:1] Set("SIP/3164-0000001b", "CALLFILENAME=20120222195215-3164-13811908714") in new stack
-- Executing [913811908714@luyin:2] Set("SIP/3164-0000001b", "PATH=/var/spool/asterisk/monitor/panguchangchun/20120222/3164") in new stack
-- Executing [913811908714@luyin:3] Set("SIP/3164-0000001b", "CALLERID(all)=87120766") in new stack
-- Executing [913811908714@luyin:4] MixMonitor("SIP/3164-0000001b", "/var/spool/asterisk/monitor/panguchangchun/20120222/3164/20120222195215-3164-13811908714.wav,b") in new stack
-- Executing [913811908714@luyin:5] Dial("SIP/3164-0000001b", "") in new stack
阅读(2468) | 评论(0) | 转发(0) |