I figured this out. I had to set the outofcall_message_context = messages on the actual peer. It was not good enough to set in the sip.conf
Thanks Bryant ---------------------------------------- From: "Bryant Zimmerman" <brya...@zktech.com> Sent: Friday, March 10, 2017 11:39 AM Jean Thank you for your response. I have the options you suggested already set, and I am still not getting the dialplan to trigger. The message is being sent but nothing. I have tried with the auth both set to no and yes as well. accept_outofcall_message = yes outofcall_message_context = messages auth_message_requests = yes Thanks Bryant ---------------------------------------- From: "Jean Aunis" <jean.au...@prescom.fr> Sent: Friday, March 10, 2017 2:24 AM This is not a SIP NOTIFY but a SIP MESSAGE (the first line in the logs is not related to the few next ones). If you are using chan_sip, you have to activate out of call messages in sip.conf : accept_outofcall_message=yes outofcall_message_context=messages Then in extensions.conf, define a context "messages" with the appropriate extensions (to stick to your example, it will be 16162995607) and use the function MESSAGE to retrieve the SMS content. Best regards Jean Aunis Le 10/03/2017 à 00:21, Bryant Zimmerman a écrit : I am trying to send SMS from my grandstream GXV3240 Asterisk receives the message in a NOTIFY block. How can I get asterisk to run dialplan code when receiving these Notify SMS Message Blocks. I can then route them to my SMS provider. Any ideas are appreciated. Below is debug of a message sent from the phone when received no dialplan code is triggered. I am wounding if I need to modify some setting in sip.conf or the peer config. Incomming SMS from my vendor works without issue and is transmitted to the phone. <-------------> --- (10 headers 0 lines) --- Really destroying SIP dialog '3927411c7fe967886df6c8d0410d4...@xxx.xxx.xxx.xxx:5060' Method: NOTIFY <--- SIP read from UDP:XXX.XXX.XXX.XXX:57568 ---> MESSAGE sip:16162995...@vgw0005.granddial.net SIP/2.0 Via: SIP/2.0/UDP 192.168.201.104:20093;branch=z9hG4bK1738682353;rport From: <sip:6167761066.2...@vgw0005.granddial.net>;tag=1683585926 To: <sip:16162995...@vgw0005.granddial.net> Call-ID: 1662412698-20093-...@bjc.bgi.cab.bae CSeq: 9430 MESSAGE Contact: <sip:6167761066.2003@192.168.201.104:20093> Max-Forwards: 70 User-Agent: Grandstream GXV3240 1.0.3.158 Supported: replaces, path, timer, eventlist Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE Content-Type: text/plain; charset=UTF-8 Content-Length: 5 Test Message SMS <-------------> Thanks Bryant
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users