<span style='font-family:Verdana'><span style='font-size:12px'>Also, you may have noticed ORIGINATOR_CANCEL among other reject codes assigned to fail_on_single_reject in our dp. Logically it shouldn't be there as all these reject codes suppose to come from B-leg. However, when leg A disconnects first and bridge is still trying next route on Leg B, we were getting the following error:<br /> 
<br /> 
[ERR] switch_core_io.c:812 sofia/external/legA_calling_id@legA_calling_ip has received a bad frame with no codec!<br /> 
<br /> 
After few experiments we found that adding OC to FOSR var takes above error away - not sure this is correct approach, but it worked.<br /> 
<br /> 
Cheers,<br /> 
Mike<br /> 
<br /> 
<br /> 
<br /> 
<br /> 
<p style="margin:0px; padding:0px;" > 
         </p> 
<blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite"> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">From: Kirill Sysoev</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">Sent: 09/13/12 05:42 PM</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">To: FreeSWITCH Users Help</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [Freeswitch-users] Variable continue on fail</span></span></p> 
        <br /> 
        <div bgcolor="#FFFFFF" text="#000000"> 
                <div class="moz-cite-prefix"> 
                        Hi all!<br /> 
                        <br /> 
                        Really helpful and interesting answers.<br /> 
                        I can confirm that Vitaliy's lua script alreafy works like a charm for me.<br /> 
                        <span style="font-family:Verdana"><span style="font-size:12px">fail_on_single_reject variable wasn't even noticed by me, while I was looking for a solution.<br /> 
                        It seems like it exists exactly for such situations...<br /> 
                        <br /> 
                        Thank you again!<br /> 
                        <br /> 
                        Regards,</span></span><br /> 
                        <br /> 
                        13.09.2012 18:19, Avi Marcus пишет:</div> 
                <blockquote type="cite"> 
                        <div> 
                                Can someone update the wiki&nbsp;<a href="http://wiki.freeswitch.org/wiki/Variable_continue_on_fail">http://wiki.freeswitch.org/wiki/Variable_continue_on_fail</a>&nbsp;on this? 
                                <div> 
                                        I haven't quite figure out how to use this var.</div> 
                                <div> 
                                         </div> 
                                <div> 
                                        Thanks,</div> 
                                <div> 
                                        <span style="font-family:Verdana,Arial,Helvetica,sans-serif">-Avi</span></div> 
                                <div> 
                                        <br /> 
                                        <br /> 
                                        <div class="gmail_quote"> 
                                                On Thu, Sep 13, 2012 at 4:58 PM, Mi Ke <span>&lt;<a href="mailto:mi.ke@null.net" target="_blank">mi.ke@null.net</a>&gt;</span> wrote:<br /> 
                                                <blockquote class="gmail_quote" style="margin:0 0 0 
              .8ex;border-left:1px #ccc solid;padding-left:1ex"> 
                                                        <span style="font-family:Verdana"><span style="font-size:12px">Hi Kirill,<br /> 
                                                        <br /> 
                                                        We use the following construction:<br /> 
                                                        <br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;extension name="ex1"&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="your_dest_num_here"&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="bridge_answer_timeout=120"/&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION,CALL_REJECTED,RECOVERY_ON_TIMER_EXPIRE"/&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="fail_on_single_reject=USER_BUSY,NO_ANSWER,NO_USER_RESPONSE,ORIGINATOR_CANCEL"/&gt; &lt;---this prevents further failover in appropriate cases<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="bridge_early_media=true"/&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="hangup_after_bridge=true"/&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="lua" data="get_dial_string.lua"/&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge" data="${out_dial_string}"/&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;anti-action application="pre_answer"/&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;anti-action application="playback" data="/usr/local/freeswitch/recordings/number_incorrect.mp3"/&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;anti-action application="hangup" data="INVALID_NUMBER_FORMAT"/&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br /> 
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br /> 
                                                        <br /> 
                                                        where get_dial_string app returns corresponding dialpeers as [dp1_params]sofia/external/dp1|[dp2_params]sofia/external/dp2|[dp3_params]sofia/external/dp3<br /> 
                                                        <br /> 
                                                        It works without any issues.<br /> 
                                                        <br /> 
                                                        FreeSWITCH Version 1.2.0-rc2+git~20120815T215213Z~c6d7417aec, CentOS 6.2 x64<br /> 
                                                        <br /> 
                                                        HTH,<br /> 
                                                        Mike</span></span><br /> 
                                                        <br /> 
                                                        <p style="margin:0px; padding:0px; margin:0px;padding:0px"> 
                                                                <span style="font-family:Verdana"><span style="font-size:12px">&nbsp;</span></span></p> 
                                                        <blockquote style="border-left:1px solid 
#ccc;padding-left:5px;margin-left:5px;margin-bottom:0px;margin-top:0px;margin-right:0px" type="cite"> 
                                                                <p style="margin:0px; padding:0px; margin:0px;padding:0px"> 
                                                                        <span style="font-family:Verdana"><span style="font-size:12px"><span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></span></span></p> 
                                                                <p style="margin:0px; padding:0px; margin:0px;padding:0px"> 
                                                                        <span style="font-family:Verdana"><span style="font-size:12px"><span style="font-family:Verdana"><span style="font-size:12px">From: Kirill Sysoev</span></span></span></span></p> 
                                                                <p style="margin:0px; padding:0px; margin:0px;padding:0px"> 
                                                                        <span style="font-family:Verdana"><span style="font-size:12px"><span style="font-family:Verdana"><span style="font-size:12px">Sent: 09/13/12 02:13 PM</span></span></span></span></p> 
                                                                <p style="margin:0px; padding:0px; margin:0px;padding:0px"> 
                                                                        <span style="font-family:Verdana"><span style="font-size:12px"><span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [Freeswitch-users] Variable continue on fail</span></span></span></span></p> 
                                                                <div> 
                                                                        <div class="h5"> 
                                                                                <br /> 
                                                                                <div> 
                                                                                        <div> 
                                                                                                <pre> 
<span style="font-family:Verdana"><span style="font-size:12px"> 
Hi David, Vitaly! 

Thank you for your answers. 
Will try to implement your advices. 

Best, 
Kirill 

13.09.2012 14:52, Виталий Давудов пишет: 
&gt; Hi, Kirill! 
&gt; 
&gt; I solved it by adding lua-script after "bridge" application in my 
&gt; dialplan: 
&gt; 
&gt; endpoint_disposition = session:getVariable("endpoint_disposition") 
&gt; last_bridge_hangup_cause = 
&gt; session:getVariable("last_bridge_hangup_cause") 
&gt; if (last_bridge_hangup_cause == "USER_BUSY" and endpoint_disposition 
&gt; == "EARLY MEDIA" ) then 
&gt;     session:hangup(); 
&gt; end 
&gt; 
&gt; You can see these variables by adding "info" application in the 
&gt; corresponding extension. 
&gt; 
&gt; 12.09.2012 17:53, iam пишет: 
&gt;&gt; Hi Vitaly! 
&gt;&gt; 
&gt;&gt; Did you ever solve this problem? 
&gt;&gt; I have the same continue_on_fail behaviour. 
&gt;&gt; 
&gt;&gt; <a href="http://jira.freeswitch.org/browse/FS-4232" target="_blank">http://jira.freeswitch.org/browse/FS-4232</a> 
&gt;&gt; 
&gt;&gt; Vitaly added a comment - 26/Jun/12 3:14 AM 
&gt;&gt; Sorry for the long absence, but the problem is still actual for me. 
&gt;&gt; I replaced in my dialplan continue_on_fail to "true", but it's not give 
&gt;&gt; desired effect. 
&gt;&gt; May be some additional variables can help me? 
&gt;&gt; 
&gt;&gt; Regards, 
&gt;&gt; Kirill 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; -- 
&gt;&gt; View this message in context: 
&gt;&gt; <a href="http://freeswitch-users.2379917.n2.nabble.com/Variable-continue-on-fail-tp7462051p7582782.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Variable-continue-on-fail-tp7462051p7582782.html</a> 
&gt;&gt; Sent from the freeswitch-users mailing list archive at Nabble.com. 
&gt;&gt; 
&gt;&gt; _________________________________________________________________________ 
&gt;&gt; 
&gt;&gt; Professional FreeSWITCH Consulting Services: 
&gt;&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> 
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a> 
&gt;&gt; 
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server 
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a> 
&gt;&gt; 
&gt;&gt; Official FreeSWITCH Sites 
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> 
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a> 
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 
&gt;&gt; 
&gt;&gt; FreeSWITCH-users mailing list 
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a> 
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> 
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a> 
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> 
&gt;&gt; 
&gt; 
&gt; 


_________________________________________________________________________ 
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> 

FreeSWITCH-powered IP PBX: The CudaTel Communication Server 
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a> 

Official FreeSWITCH Sites 
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> 
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.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></span></pre> 
                                                                                        </div> 
                                                                                </div> 
                                                                        </div> 
                                                                </div> 
                                                        </blockquote> 
                                                        <p style="margin:0px; padding:0px; margin:0px;padding:0px"> 
                                                                <span style="font-family:Verdana"><span style="font-size:12px">&nbsp;</span></span></p> 
                                                        <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 /> 
                                                        FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br /> 
                                                        <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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><br /> 
                                                         </blockquote> 
                                        </div> 
                                </div> 
                        </div> 
                        <br /> 
                        <fieldset class="mimeAttachmentHeader"> 
                                 </fieldset> 
                        <br /> 
                        <pre> 
_________________________________________________________________________ 
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> 
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a> 

FreeSWITCH-powered IP PBX: The CudaTel Communication Server 
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a> 

Official FreeSWITCH Sites 
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a> 
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a> 
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a> 

FreeSWITCH-users mailing list 
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> 
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> 
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a> 
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a> 
</pre> 
                </blockquote> 
        </div> 
</blockquote> 
<p style="margin:0px; padding:0px;" > 
         </p> 
</span></span>