我希望在分机接听电话后执行此操作
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)
我该怎么做?
答案 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)