I’m very close to having SMS work on Asterisk. I overcame a couple hurdles but now I’m stuck and not sure what question to ask.
I followed the instructions I found here:
When I send a text to one of my voip.ms DIDs I see the text arrive on my Asterisk and the dialplan extension [sms-in] executes
but where does the message go from there? The dialplan context appears to be sending the message to Channel Message/ast_msg_queue.
What is that and where does it go from there?
– Executing [s@sms-in:1] NoOp(“Message/ast_msg_queue”, “Inbound SMS dialplan invoked by steve”) in new stack
– Executing [s@sms-in:2] NoOp(“Message/ast_msg_queue”, “To pjsip:198.144.184.240”) in new stack
– Executing [s@sms-in:3] NoOp(“Message/ast_msg_queue”, “From “3042505233” sip:[3042505233@newyork7.voip.ms](mailto:3042505233@newyork7.voip.ms)”) in new stack
– Executing [s@sms-in:4] NoOp(“Message/ast_msg_queue”, “Body Yet another text”) in new stack
– Executing [s@sms-in:5] Set(“Message/ast_msg_queue”, “ACTUAL_FROM=“3042505233” sip:[3042505233@newyork7.voip.ms](mailto:3042505233@newyork7.voip.ms)”) in new stack
– Executing [s@sms-in:6] Set(“Message/ast_msg_queue”, “HOST_TO=”) in new stack
– Executing [s@sms-in:7] Set(“Message/ast_msg_queue”, “NUMBER_TO=None”) in new stack
– Executing [s@sms-in:8] MessageSend(“Message/ast_msg_queue”, “pjsip:voipms@,“3042505233” sip:[3042505233@newyork7.voip.ms](mailto:3042505233@newyork7.voip.ms)”) in new stack
– Executing [s@sms-in:9] NoOp(“Message/ast_msg_queue”, “Send status is SUCCESS”) in new stack
– Executing [s@sms-in:10] Hangup(“Message/ast_msg_queue”, “”) in new stack
== Spawn extension (sms-in, s, 10) exited non-zero on ‘Message/ast_msg_queue’
<— Transmitting SIP request (521 bytes) to UDP:23.29.136.38:5060 —>
MESSAGE sip:183970_trunk@newyork7.voip.ms SIP/2.0
Via: SIP/2.0/UDP 198.144.184.240:5060;rport;branch=z9hG4bKPj33679b14-7f40-49e4-bb69-5d19aae94bee
From: “3042505233” sip:[3042505233@newyork7.voip.ms](mailto:3042505233@newyork7.voip.ms);tag=51eb33c0-e5b0-46f0-bfb4-9ee444cd6369
To: sip:[183970_trunk@newyork7.voip.ms](mailto:183970_trunk@newyork7.voip.ms)
Contact: sip:183970_trunk@198.144.184.240:5060
Call-ID: b3e39b1d-17b8-45e4-a547-b7e538162966
CSeq: 38952 MESSAGE
Max-Forwards: 70
User-Agent: Asterisk PBX 18.2.0
Content-Type: text/plain
Content-Length: 16
Yet another text
<— Received SIP response (527 bytes) from UDP:23.29.136.38:5060 —>
SIP/2.0 202 Accepted
Via: SIP/2.0/UDP 198.144.184.240:5060;branch=z9hG4bKPj33679b14-7f40-49e4-bb69-5d19aae94bee;received=198.144.184.240;rport=5060
From: “3042505233” sip:[3042505233@newyork7.voip.ms](mailto:3042505233@newyork7.voip.ms);tag=51eb33c0-e5b0-46f0-bfb4-9ee444cd6369
To: sip:[183970_trunk@newyork7.voip.ms](mailto:183970_trunk@newyork7.voip.ms);tag=as0487f324
Call-ID: b3e39b1d-17b8-45e4-a547-b7e538162966
CSeq: 38952 MESSAGE
Server: voip.ms
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0