<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>This is not a SIP NOTIFY but a SIP MESSAGE (the first line in the
logs is not related to the few next ones).<br>
</p>
<p>If you are using chan_sip, you have to activate out of call
messages in sip.conf :<br>
</p>
<p><tt>accept_outofcall_message=yes</tt><tt><br>
</tt><tt>outofcall_message_context=messages</tt></p>
<p>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.</p>
<p>Best regards</p>
<p>Jean Aunis<br>
</p>
<br>
<div class="moz-cite-prefix">Le 10/03/2017 à 00:21, Bryant Zimmerman
a écrit :<br>
</div>
<blockquote cite="mid:708f1ffa0d9844d0844a81320e75f373@zktech.com"
type="cite"><span style="font-family: Arial, Helvetica,
Sans-Serif; font-size: 12px">
<div>I am trying to send SMS from my grandstream GXV3240</div>
<div>Asterisk receives the message in a NOTIFY block.</div>
<div> </div>
<div>How can I get asterisk to run dialplan code when receiving
these Notify SMS Message Blocks.</div>
<div>I can then route them to my SMS provider.</div>
<div> </div>
<div>Any ideas are appreciated. Below is debug of a message sent
from the phone when received no dialplan code is triggered.</div>
<div>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.</div>
<div> </div>
<div>
<p><-------------><br>
--- (10 headers 0 lines) ---<br>
Really destroying SIP dialog <a moz-do-not-send="true"
href="mailto:%273927411c7fe967886df6c8d0410d4e96@65.183.176.184:5060%27">'3927411c7fe967886df6c8d0410d4e96@XXX.XXX.XXX.XXX:5060'</a>
Method: NOTIFY</p>
<p><--- 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 moz-do-not-send="true"
href="mailto:1662412698-20093-963@BJC.BGI.CAB.BAE">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</p>
<p>Test Message SMS<br>
<-------------></p>
</div>
<div><br>
Thanks<br>
<br>
Bryant </div>
</span>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>