<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"><div>I figured this out.</div>
<div> </div>
<div>I had to set the outofcall_message_context = messages on the actual peer.</div>
<div>It was not good enough to set in the sip.conf</div>
<div> </div>
<div>Thanks<br />
Bryant </div>
<hr align="center" size="2" width="100%" />
<div><span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><b>From</b>: "Bryant Zimmerman" <BryantZ@zktech.com><br />
<b>Sent</b>: Friday, March 10, 2017 11:39 AM</span><br />
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Jean</span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">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.</span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">accept_outofcall_message = yes<br />
outofcall_message_context = messages<br />
auth_message_requests = yes</span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Thanks<br />
Bryant </span></p>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
</div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<hr align="center" size="2" width="100%" /><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><b>From</b>: "Jean Aunis" <jean.aunis@prescom.fr><br />
<b>Sent</b>: Friday, March 10, 2017 2:24 AM</span></span><br />
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">This is not a SIP NOTIFY but a SIP MESSAGE (the first line in the logs is not related to the few next ones).</span></p>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">If you are using chan_sip, you have to activate out of call messages in sip.conf :</span></p>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><tt>accept_outofcall_message=yes</tt><br />
<tt>outofcall_message_context=messages</tt></span></p>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">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.</span></p>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Best regards</span></p>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Jean Aunis</span></p>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<div class="moz-cite-prefix"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Le 10/03/2017 à 00:21, Bryant Zimmerman a écrit :</span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<blockquote cite="mid:708f1ffa0d9844d0844a81320e75f373@zktech.com" type="cite">
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">I am trying to send SMS from my grandstream GXV3240</span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Asterisk receives the message in a NOTIFY block.</span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">How can I get asterisk to run dialplan code when receiving these Notify SMS Message Blocks.</span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">I can then route them to my SMS provider.</span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Any ideas are appreciated. Below is debug of a message sent from the phone when received no dialplan code is triggered.</span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">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.</span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><-------------><br />
--- (10 headers 0 lines) ---<br />
Really destroying SIP dialog <a href="mailto:%273927411c7fe967886df6c8d0410d4e96@65.183.176.184:5060%27" moz-do-not-send="true">'3927411c7fe967886df6c8d0410d4e96@XXX.XXX.XXX.XXX:5060'</a> Method: NOTIFY</span></span></p>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><--- SIP read from UDP:XXX.XXX.XXX.XXX:57568 ---><br />
MESSAGE <a class="moz-txt-link-abbreviated" href="mailto:sip:16162995607@vgw0005.granddial.net">sip:16162995607@vgw0005.granddial.net</a> SIP/2.0<br />
Via: SIP/2.0/UDP 192.168.201.104:20093;branch=z9hG4bK1738682353;rport<br />
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:6167761066.2003@vgw0005.granddial.net"><sip:6167761066.2003@vgw0005.granddial.net></a>;tag=1683585926<br />
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:16162995607@vgw0005.granddial.net"><sip:16162995607@vgw0005.granddial.net></a><br />
Call-ID: <a href="mailto:1662412698-20093-963@BJC.BGI.CAB.BAE" moz-do-not-send="true">1662412698-20093-963@BJC.BGI.CAB.BAE</a><br />
CSeq: 9430 MESSAGE<br />
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:6167761066.2003@192.168.201.104:20093"><sip:6167761066.2003@192.168.201.104:20093></a><br />
Max-Forwards: 70<br />
User-Agent: Grandstream GXV3240 1.0.3.158<br />
Supported: replaces, path, timer, eventlist<br />
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE<br />
Content-Type: text/plain; charset=UTF-8<br />
Content-Length: 5</span></span></p>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Test Message SMS<br />
<-------------></span></span></p>
</div>
<div><br />
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Thanks<br />
<br />
Bryant </span></span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<fieldset class="mimeAttachmentHeader"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></fieldset>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></blockquote>
<br />
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></div>
</div></span>