[英]How to execute asterisk application once the call is answered
I want to execute this once the extension answers the call 分机接听电话后,我要执行此操作
exten => 2001,1,TrySystem(echo 'Call from ${CALLERID(name)} at
${CALLERID(number)} ${&DIALSTATUS}received
${STRFTIME(${EPOCH},,%l:%M:%S %p %Z on %A %B %e)}' >
/var/www/html/test/testfile.txt)
How can I do that? 我怎样才能做到这一点?
I figured it out I use M to call marco on Dial applciation 我发现我在拨号应用程序中使用M呼叫marco
exten => 2001,1,Answer()
exten => 2001,n,Dial(SIP/${EXTEN},,M(carl),)
exten => 2001,n,Hangup()
[macro-carl]
exten => s,1,TrySystem(echo 'Call from ${CALLERID(name)} at ${CALLERID(number)} received ${STRFTIME(${EPOCH},,%l:%M:%S %p %Z on %A %B %e)}' > /var/www/html/cisco/testfile.txt)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.