<span style='font-family:Verdana'><span style='font-size:12px'>Hi Kirill,<br />
<br />
We use the following construction:<br />
<br />
<extension name="ex1"><br />
<condition field="destination_number" expression="your_dest_num_here"><br />
<action application="set" data="bridge_answer_timeout=120"/><br />
<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION,CALL_REJECTED,RECOVERY_ON_TIMER_EXPIRE"/><br />
<action application="set" data="fail_on_single_reject=USER_BUSY,NO_ANSWER,NO_USER_RESPONSE,ORIGINATOR_CANCEL"/> <---this prevents further failover in appropriate cases<br />
<action application="set" data="bridge_early_media=true"/><br />
<action application="set" data="hangup_after_bridge=true"/><br />
<action application="lua" data="get_dial_string.lua"/><br />
<action application="bridge" data="${out_dial_string}"/><br />
<anti-action application="pre_answer"/><br />
<anti-action application="playback" data="/usr/local/freeswitch/recordings/number_incorrect.mp3"/><br />
<anti-action application="hangup" data="INVALID_NUMBER_FORMAT"/><br />
</condition><br />
</extension><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<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 02:13 PM</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>
                <div>
                        <pre style="white-space: pre-wrap; word-wrap: break-word; font-size:11;pre">
Hi David, Vitaly!
Thank you for your answers.
Will try to implement your advices.
Best,
Kirill
13.09.2012 14:52, Виталий Давудов пишет:
> Hi, Kirill!
>
> I solved it by adding lua-script after "bridge" application in my
> dialplan:
>
> endpoint_disposition = session:getVariable("endpoint_disposition")
> last_bridge_hangup_cause =
> session:getVariable("last_bridge_hangup_cause")
> if (last_bridge_hangup_cause == "USER_BUSY" and endpoint_disposition
> == "EARLY MEDIA" ) then
> session:hangup();
> end
>
> You can see these variables by adding "info" application in the
> corresponding extension.
>
> 12.09.2012 17:53, iam пишет:
>> Hi Vitaly!
>>
>> Did you ever solve this problem?
>> I have the same continue_on_fail behaviour.
>>
>> http://jira.freeswitch.org/browse/FS-4232
>>
>> Vitaly added a comment - 26/Jun/12 3:14 AM
>> Sorry for the long absence, but the problem is still actual for me.
>> I replaced in my dialplan continue_on_fail to "true", but it's not give
>> desired effect.
>> May be some additional variables can help me?
>>
>> Regards,
>> Kirill
>>
>>
>>
>> --
>> View this message in context:
>> http://freeswitch-users.2379917.n2.nabble.com/Variable-continue-on-fail-tp7462051p7582782.html
>> Sent from the freeswitch-users mailing list archive at Nabble.com.
>>
>> _________________________________________________________________________
>>
>> Professional FreeSWITCH Consulting Services:
>> consulting@freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>> http://www.cudatel.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.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
>>
>
>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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</pre>
                </div>
        </div>
</blockquote>
<p style="margin:0px; padding:0px;" >
         </p>
</span></span>