<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>Hi Abdul, yes of course, this is what i m doing:<br>I m creating an application that processes text messages from users, <br>my application checks if a user has balance or not and depending on the case <br>it allows or not the message to be delivered, <br>so i have enabled mod_sms, and configured the chat plan as follows:<br><br>&nbsp;&nbsp;&nbsp; &lt;extension name="demo"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="to" expression="^(.*)$"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="skip_global_process=true" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="final_delivery=true"&nbsp; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="smartvoip_sms" data="${from_user}&nbsp; ${to_user} ${_body}" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="stop" data=""/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br><br>smartvoip_sms is my application and as you can see that is how i set<br>the 'final_delivery' flag, i could have done programmatically too but so<br>far that works for me. tell me if this is what you need. regards!!<br><br><br><br><br><br><div><hr id="stopSpelling">From: alhakeem@gmail.com<br>To: freeswitch-users@lists.freeswitch.org<br>Date: Tue, 20 Oct 2015 22:28:40 +0100<br>Subject: Re: [Freeswitch-users] sip simple delivery<br><br><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate {
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
}

.ExternalClass span.ecxEmailStyle18 {
color:black;
}

.ExternalClass span.ecxBalloonTextChar {
font-family:"Tahoma","sans-serif";
}

.ExternalClass span.ecxSpellE {
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
}

.ExternalClass div.ecxWordSection1 {
}

--></style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="color:black;">Juan,</span></p><p class="ecxMsoNormal"><span style="color:black;">Are you able to share how you added the ‘final delivery’ header to the message ?</span></p><p class="ecxMsoNormal"><span style="color:black;">Cheers,</span></p><p class="ecxMsoNormal"><span style="color:black;">Abdul Hakeem</span></p><p class="ecxMsoNormal"><a name="_MailEndCompose" target="_blank"><span style="color:black;">&nbsp;</span></a></p><span style=""></span><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;" lang="EN-US"> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Juan Pablo L.<br><b>Sent:</b> Tuesday, October 20, 2015 9:36 PM<br><b>To:</b> freeswitch-users@lists.freeswitch.org<br><b>Subject:</b> Re: [Freeswitch-users] sip simple delivery</span></p></div></div><p class="ecxMsoNormal">&nbsp;</p><div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">just wanted to confirm that this was what i was looking for, thank you very much!</span></p><div><div class="ecxMsoNormal" style="text-align:center;" align="center"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"><hr id="ecxstopSpelling" size="2" width="100%" align="center"></span></div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Date: Fri, 16 Oct 2015 18:43:48 +0000<br>From: <a href="mailto:jpablolorenzetti@hotmail.com">jpablolorenzetti@hotmail.com</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>; <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>Subject: Re: [Freeswitch-users] sip simple delivery</span></p><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">I will try .. thank you very much ... I will come back with the results ... </span></p><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Sent by <a href="http://taps.io/outlookmobile" target="_blank">Outlook</a> for Android</span></p><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"><br style=""><br style=""></span></p><div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">On Fri, Oct 16, 2015 at 8:43 AM -0700, "Russell Treleaven" &lt;<a href="mailto:rtreleaven@bunnykick.ca" target="_blank">rtreleaven@bunnykick.ca</a>&gt; wrote:</span></p></div><div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">I think this is what you want. </span></p><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Not sure because it was quite a while ago that I looked at this.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">you need to add a header "final_delivery" to the message with a value of "true"</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Hope that helps.</span></p></div></div><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">On Fri, Oct 16, 2015 at 12:01 AM, Juan Pablo L. &lt;<a href="mailto:jpablolorenzetti@hotmail.com" target="_blank">jpablolorenzetti@hotmail.com</a>&gt; wrote:</span></p><div><div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Hi, can anyone please give me a hint on this ? thank you! </span></p><div><div class="ecxMsoNormal" style="text-align:center;" align="center"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"><hr size="2" width="100%" align="center"></span></div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">From: <a href="mailto:jpablolorenzetti@hotmail.com" target="_blank">jpablolorenzetti@hotmail.com</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>Date: Wed, 14 Oct 2015 22:30:54 +0000<br>Subject: [Freeswitch-users] sip simple delivery </span></p><div><div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Hi, i would like to find out how can i stop a sip simple from being delivered once it has been dealt with,<br>i have a module that receives the event and decides whether to deliver it or not based on<br>some criteria ($$), but it does not matter what the module does, after it has finished precessing the<br>message, <span class="ecxSpellE">freeswitch</span> still delivers it. i understand it does this by default, any <span class="ecxSpellE">advise</span> would be appreciated. thanks!</span></p></div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div></div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">_________________________________________________________________________ Professional FreeSWITCH Consulting Services: <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a> Official FreeSWITCH Sites <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> FreeSWITCH-users mailing list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></p></div></div></div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></p></div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p></div></div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"><br>_________________________________________________________________________ Professional FreeSWITCH Consulting Services: <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a> Official FreeSWITCH Sites <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> FreeSWITCH-users mailing list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>_________________________________________________________________________ Professional FreeSWITCH Consulting Services: <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a> Official FreeSWITCH Sites <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> FreeSWITCH-users mailing list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></p></div></div></div><br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org</div>                                               </div></body>
</html>