如何在应答呼叫后执行星号应用程序

时间:2015-06-10 07:50:01

标签: asterisk elastix

我希望在分机接听电话后执行此操作

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)

我该怎么做?

1 个答案:

答案 0 :(得分:0)

我想通了我用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)