hello everyone
I am using Asterisk 18.23.1, and several Huawei dongle Dongles, when the mobile phone number receives the SMS, how to get the mobile phone number of the current dongle (recipient) in the execution plan? What variable value do I need to take
extensions_custom.conf:
[test-sms]
exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)}— devices: ${DONGLENAME})
same => n,Hangup()
Hello, thank you very much for your reply. I have read the link you sent, but the logic in the link is different from mine. I just want to get the mobile phone number in the dongle in the execution plan, that is, the mobile phone number of the recipient
Here are the variable names I found
exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} — CallerID: ${CallerID} — sms content: ${BASE64_DECODE(${SMS_BASE64})})
same => n,Verbose(hhhh DONGLENAME: ${DONGLENAME}, DONGLEPROVIDER: ${DONGLEPROVIDER}, DONGLEIMEI: ${DONGLEIMEI}, DONGLEIMSI: ${DONGLEIMSI}, DONGLENUMBER: ${DONGLENUMBER} )