Board logo

標題: Asterisk conf 內如何自動delete sms? [打印本頁]

作者: mcdull    時間: 2016-11-28 14:16     標題: Asterisk conf 內如何自動delete sms?

成日收爆之後就收唔到SMS, 要人手行 AT+CMGD=1,4
有冇計加去個 sms-incoming 個script 果度?
exten => sms,1,Noop(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})})
exten => sms,2,System(echo "Subject: SMS received from ${CALLERID(num)}" > /var/log/asterisk/smsmail)
exten => sms,3,System(echo " " >> /var/log/asterisk/smsmail)
exten => sms,4,System(echo "${BASE64_DECODE(${SMS_BASE64})}" >> /var/log/asterisk/smsmail)
exten => sms,n,Hangup()

而家係咁....
作者: mcdull    時間: 2017-9-26 18:35

自問自答

exten => sms,n,System(asterisk -rx 'dongle cmd ${DONGLENAME} AT+CMGD=1,4')




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2