0

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

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)

我怎样才能做到这一点?

4

1 回答 1

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)
于 2015-06-11T07:44:32.450 回答