<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">A bit more... if your bridging to multiple dests like this, you don't want to pass along the early media, as this could be very confusing to the users in the case of conflicting inband media. &nbsp;Without ignoring early media, you could get an inband error, followed by successfully connecting to an additional dest. &nbsp;This is why you would want to ignore early media and use ringback in these scenarios as Tony described.<div class=""><br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 20, 2015, at 12:46 PM, Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com" class="">anthony.minessale@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="">When you are doing a complicated multi-dest originate the best practice is to set the ringback variable on the A leg to a local ring tone.</div><div class="">Then as soon as any of the legs being dialed hit a 180 or 183 the A leg will hear generated ringback.</div><div class=""><br class=""></div><div class="">for instance</div><div class=""><br class=""></div><div class="">&lt;action application="set" data="ringback=%(2000,4000,440,480)"/&gt;</div><div class=""><br class=""></div><div class="">Will generate US ring&nbsp;</div>







<div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Aug 20, 2015 at 11:42 AM, Avi Marcus <span dir="ltr" class="">&lt;<a href="mailto:avi@avimarcus.net" target="_blank" class="">avi@avimarcus.net</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Thanks Anthony.<div class=""><br class=""><div class="">What happens to the user on the A leg trying to call with&nbsp;<span style="font-size:12.8000001907349px" class="">ignore_early_media=true - does he hear anything? Or do I need to do&nbsp;</span><span style="font-size:12.8000001907349px" class="">ignore_early_media=ring_</span><span style="font-size:12.8000001907349px" class="">ready?</span></div><div class=""><span style="font-size:12.8000001907349px" class="">This wasn't clear from the wiki / confluence.</span></div><div class=""><span style="font-size:12.8000001907349px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8000001907349px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8000001907349px" class="">Thanks,</span></div></div><div class="gmail_extra"><div class=""><div class=""><div dir="ltr" class="">-Avi Marcus<br class=""></div></div></div><div class=""><div class="h5">
<br class=""><div class="gmail_quote">On Thu, Aug 20, 2015 at 7:09 PM, Anthony Minessale <span dir="ltr" class="">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank" class="">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">The discussion was about the success of the FreeSWITCH originate function which by default returns as soon as media is possible.&nbsp; That should not be confused with the success of the call leg itself.<div class="">The originate function has many complex params to control behavior.&nbsp; As many have stated ignore_early_media=true will make originate only return on an answered call.</div></div><div class="gmail_extra"><div class=""><div class=""><br class=""><div class="gmail_quote">On Thu, Aug 20, 2015 at 10:42 AM, Lawrence Conroy <span dir="ltr" class="">&lt;<a href="mailto:lconroy@insensate.co.uk" target="_blank" class="">lconroy@insensate.co.uk</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there,<br class="">
&nbsp;um ... are we talking about SIP here?<br class="">
2xx are invite successful final responses; 3xx are transfer final responses whilst 4xx, 5xx are final errors. 1xx are temporary responses.<br class="">
Thus a 1xx followed by a 4xx (or 5xx) is not a success.<br class="">
Or have I missed something in RFC2543 or 3761?<br class="">
<br class="">
all the best,<br class="">
&nbsp; Lawrence<br class="">
<div class=""><div class=""><br class="">
<br class="">
On 20 Aug 2015, at 13:30, Ítalo Rossi &lt;<a href="mailto:italorossib@gmail.com" target="_blank" class="">italorossib@gmail.com</a>&gt; wrote:<br class="">
<br class="">
&gt; Correct, expected. A call is considered successful when you receive media, 183 or 200. If you need to change this behavior you'll need to set ignore_early_media=true before bridging.<br class="">
&gt;<br class="">
&gt; If you can't ignore_early_media, you need to set hangup_after_bridge=false and do more verifications on what happened after your last bridge.<br class="">
&gt;<br class="">
&gt; On Thu, Aug 20, 2015 at 8:37 AM, Avi Marcus &lt;<a href="mailto:avi@avimarcus.net" target="_blank" class="">avi@avimarcus.net</a>&gt; wrote:<br class="">
&gt; I have several carriers, and I use:<br class="">
&gt; &lt;action application="set" data="continue_on_fail=true"/&gt;<br class="">
&gt; ... so I was a little surprised to see that a call that ended with NORMAL_TEMPORARY_FAILURE didn't route advance.<br class="">
&gt; I dug into the PCAPs of this and comparable, and the only difference I noticed was that the ones that worked were invite -&gt; 100 and then 503 NORMAL_TEMPORARY_FAILURE and the one that didn't work was invite -&gt; 100, 183, and then 503.<br class="">
&gt;<br class="">
&gt; I have a lua script that told me:<br class="">
&gt;<br class="">
&gt; session:getVariable("originate_disposition")&nbsp; = SUCCESS<br class="">
&gt; session:getVariable("bridge_hangup_cause")&nbsp; = NORMAL_TEMPORARY_FAILURE<br class="">
&gt;<br class="">
&gt; so... I'm guessing that a 183 marks the originate as a success which is why continue_on_fail didn't work, since it wasn't a fail.<br class="">
&gt;<br class="">
&gt; Is this expected? Is the carrier "doing something wrong" here?<br class="">
&gt;<br class="">
&gt; They did helpfully send: "SIP/2.0 503 Service Unavailable - Route Advance"<br class="">
&gt; More importantly: how can I fix it?<br class="">
&gt;<br class="">
&gt; Thanks,<br class="">
&gt;<br class="">
&gt; -Avi Marcus<br class="">
&gt; BestFone<br class="">
&gt;<br class="">
&gt; _________________________________________________________________________<br class="">
&gt; Professional FreeSWITCH Consulting Services:<br class="">
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class="">
&gt; <a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
&gt;<br class="">
&gt; Official FreeSWITCH Sites<br class="">
&gt; <a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
&gt; <a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
&gt; <a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
&gt;<br class="">
&gt; FreeSWITCH-users mailing list<br class="">
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
&gt; <a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; --<br class="">
&gt; Ítalo Rossi<br class="">
&gt; _________________________________________________________________________<br class="">
&gt; Professional FreeSWITCH Consulting Services:<br class="">
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class="">
&gt; <a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
&gt;<br class="">
&gt; Official FreeSWITCH Sites<br class="">
&gt; <a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
&gt; <a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
&gt; <a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
&gt;<br class="">
&gt; FreeSWITCH-users mailing list<br class="">
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
&gt; <a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<br class="">
<br class="">
_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
</div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div></div></div><span class=""><font color="#888888" class="">-- <br class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Anthony Minessale II &nbsp; &nbsp; &nbsp; ♬ @anthmfs&nbsp;&nbsp;♬ @FreeSWITCH&nbsp;&nbsp;♬<div class=""><br class=""><div class="">☞ <a href="http://freeswitch.org/" target="_blank" class="">http://freeswitch.org/</a> &nbsp;☞ <a href="http://cluecon.com/" target="_blank" class="">http://cluecon.com/</a> &nbsp;☞ <a href="http://twitter.com/FreeSWITCH" target="_blank" class="">http://twitter.com/FreeSWITCH</a></div><div class=""><div class="">☞ <a href="http://irc.freenode.net/" target="_blank" class="">irc.freenode.net</a> #freeswitch&nbsp;☞ <u class=""><a href="http://freeswitch.org/g+" target="_blank" class="">http://freeswitch.org/g+</a></u><br class=""><br class=""></div><div class="">ClueCon Weekly Development Call&nbsp;<br class=""></div><div class="">☎&nbsp;<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank" class="">sip:888@conference.freeswitch.org</a> &nbsp;☎ <a href="tel:%2B19193869900" value="+19193869900" target="_blank" class="">+19193869900</a>&nbsp;</div><div class=""><br class=""></div></div></div><div class=""><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank" class="">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div class=""><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank" class="">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br class=""></div></div></div></div></div></div></div>
</font></span></div>
<br class="">_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""></div></div></div></div>
<br class="">_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Anthony Minessale II &nbsp; &nbsp; &nbsp; ♬ @anthmfs&nbsp;&nbsp;♬ @FreeSWITCH&nbsp;&nbsp;♬<div class=""><br class=""><div class="">☞ <a href="http://freeswitch.org/" target="_blank" class="">http://freeswitch.org/</a> &nbsp;☞ <a href="http://cluecon.com/" target="_blank" class="">http://cluecon.com/</a> &nbsp;☞ <a href="http://twitter.com/FreeSWITCH" target="_blank" class="">http://twitter.com/FreeSWITCH</a></div><div class=""><div class="">☞ <a href="http://irc.freenode.net/" target="_blank" class="">irc.freenode.net</a> #freeswitch&nbsp;☞ <u class=""><a href="http://freeswitch.org/g+" target="_blank" class="">http://freeswitch.org/g+</a></u><br class=""><br class=""></div><div class="">ClueCon Weekly Development Call&nbsp;<br class=""></div><div class="">☎&nbsp;<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank" class="">sip:888@conference.freeswitch.org</a> &nbsp;☎ +19193869900&nbsp;</div><div class=""><br class=""></div></div></div><div class=""><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank" class="">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div class=""><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank" class="">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br class=""></div></div></div></div></div></div></div>
</div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></div></body></html>