<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><base href="x-msg://100/"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>No problem! Thanks for using it! I’ve already got a couple of good pull requests that have been merged in, and a couple other bugs fixed as well. I want to do a little more cleanup, but npm should be seeing a new version this week; so be ready for that!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-Chad<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Lucas Fontes<br><b>Sent:</b> Thursday, November 01, 2012 7:29 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] mod_sms delivery failure<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Hi Chad,<o:p></o:p></p></div><div><p class=MsoNormal>thanks for that awesome ESL binding for node.js !<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Section 7 of rfc3428<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre style='word-wrap: break-word;white-space:pre-wrap'>A UAS that receives a MESSAGE request processes it following the<o:p></o:p></pre><pre> rules of SIP [1].<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> A UAS receiving a MESSAGE request SHOULD respond with a final<o:p></o:p></pre><pre> response immediately. Note, however, that the UAS is not obliged to<o:p></o:p></pre><pre> display the message to the user either before or after responding<o:p></o:p></pre><pre> with a 200 OK. That is, a 200 OK response does not necessarily mean<o:p></o:p></pre><pre> the user has read the message.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> A 2xx response to a MESSAGE request MUST NOT contain a body. A UAS<o:p></o:p></pre><pre> MUST NOT insert a Contact header field into a 2xx response.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> A UAS which is, in fact, a message relay, storing the message and<o:p></o:p></pre><pre> forwarding it later on, or forwarding it into a non-SIP domain,<o:p></o:p></pre><pre> SHOULD return a 202 (Accepted) [5] response indicating that the<o:p></o:p></pre><pre> message was accepted, but end to end delivery has not been<o:p></o:p></pre><pre> guaranteed.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> A 4xx or 5xx response indicates that the message was not delivered<o:p></o:p></pre><pre> successfully. A 6xx response means it was delivered successfully,<o:p></o:p></pre><pre> but refused.<o:p></o:p></pre></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>At Fongo (<a href="http://fongo.com">fongo.com</a>) we have a few proxies for store and forward, also for SMS integration. We use 200, 402, 404 and 488 to control delivery and payments.<o:p></o:p></p></div><div><div><p class=MsoNormal>So in our case, the final device always returns 200 (as it is the final), but a proxy in between might generate a 4xx.<o:p></o:p></p></div></div><div><p class=MsoNormal>we have an opensips cluster in front of freeswitch and steer MESSAGE methods away from freeswitch to handle those scenarios. I'm looking into removing this logic from opensips and move it to freeswitch to keep it consistent with dialplan and rating engine. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>cheers<o:p></o:p></p></div><p class=MsoNormal>--<o:p></o:p></p><div><div><p class=MsoNormal>lucas<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On 2012-11-01, at 5:46 PM, Chad Engler <<a href="mailto:Chad.Engler@patlive.com">Chad.Engler@patlive.com</a>> wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I don’t think SIP MESSAGEs have a response/ack. I know that our provider doesn’t send anything except the 200 OK when we send a message, and that doesn’t mean it actually made it to the device. As far as I know there is no way to know if and when the device gets the actual message without the device responding with another message back through the via chain.</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-Chad</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span class=apple-converted-space><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span></span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:freeswitch-<a href="mailto:users-bounces@lists.freeswitch.org">users-bounces@lists.freeswitch.org</a>]<span class=apple-converted-space> </span><b>On Behalf Of<span class=apple-converted-space> </span></b>Lucas Fontes<br><b>Sent:</b><span class=apple-converted-space> </span>Thursday, November 01, 2012 1:38 PM<br><b>To:</b><span class=apple-converted-space> </span><a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br><b>Subject:</b><span class=apple-converted-space> </span>[Freeswitch-users] mod_sms delivery failure</span><o:p></o:p></p></div></div></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Hi everyone,<o:p></o:p></p></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>I've been trying to determine if a message was successfully delivered to a device.<o:p></o:p></p></div></div><div><div><p class=MsoNormal>Stumbled on a post from February (subject: Testing mod_sms)<a href="http://lists.freeswitch.org/pipermail/freeswitch-dev/2012-February/005619.html:"><span style='color:purple'>http://lists.freeswitch.org/pipermail/freeswitch-dev/2012-February/005619.html:</span></a><o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><pre>________________________________<o:p></o:p></pre><pre>From: Anthony Minessale <<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev"><span style='color:purple'>anthony.minessale at gmail.com</span></a>><o:p></o:p></pre><pre>To: Warren Lin <<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev"><span style='color:purple'>wlin121443 at yahoo.com</span></a>> <o:p></o:p></pre><pre>Sent: Tuesday, February 21, 2012 11:01 AM<o:p></o:p></pre><pre>Subject: Re: Testing mod_sms<o:p></o:p></pre><pre> <o:p></o:p></pre><pre>hi you can find out how to use the lists at <a href="http://lists.freeswitch.org"><span style='color:purple'>http://lists.freeswitch.org</span></a><o:p></o:p></pre><pre> <o:p></o:p></pre><pre>try latest GIT, i put in a patch to fire the events with the heder<o:p></o:p></pre><pre>Failed-Delivery true<o:p></o:p></pre><pre>if you are listening for MESSAGE events you should catch them.<o:p></o:p></pre></div><div><pre>________________________________<o:p></o:p></pre><div><div><p class=MsoNormal> <o:p></o:p></p></div></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>I can't find any reference to Failed-Delivery in mod_sms.c neither anywhere else in the source tree. <o:p></o:p></p></div></div><div><div><p class=MsoNormal>There is a field called Delivery-Failure, but seems to be used by other modules to indicate a failure on the response going out of freeswitch, not to freeswitch.<o:p></o:p></p></div></div><div><div><p class=MsoNormal>Was this overwritten / rolled back at some point ? <o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>thanks<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><div><div><p class=MsoNormal>--<o:p></o:p></p></div></div><div><div><p class=MsoNormal>lucas<o:p></o:p></p></div></div></div><div><p class=MsoNormal> <o:p></o:p></p></div></div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org"><span style='color:purple'>consulting@freeswitch.org</span></a><br><a href="http://www.freeswitchsolutions.com"><span style='color:purple'>http://www.freeswitchsolutions.com</span></a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com"><span style='color:purple'>http://www.cudatel.com</span></a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org"><span style='color:purple'>http://www.freeswitch.org</span></a><br><a href="http://wiki.freeswitch.org"><span style='color:purple'>http://wiki.freeswitch.org</span></a><br><a href="http://www.cluecon.com"><span style='color:purple'>http://www.cluecon.com</span></a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org"><span style='color:purple'>FreeSWITCH-users@lists.freeswitch.org</span></a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span style='color:purple'>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</span></a><br>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users"><span style='color:purple'>lists.freeswitch.org/mailman/options/freeswitch-users</span></a><br><a href="http://www.freeswitch.org"><span style='color:purple'>http://www.freeswitch.org</span></a><o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>