<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Perhaps by using continue_on_fail and putting a transfer just after the bridge, so you can jump to another extension/dialplan ?<div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone </font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space"> </span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); "> - <span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br><div><div>Le 28/06/2010 à 23:44, Roger Salloum a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi David,<br><br>Thanks for clearing that up. I tried when the call establishes and it would hang up, which is controlled by hangup_after_bridge. Do you have any suggestions for how i would get the failover without requiring all the bridges to be within the same condition? So that i can get failover to a less best match?<br><br>----- Original Message -----<br>From: David Ponzone <<a href="mailto:david.ponzone@gmail.com">david.ponzone@gmail.com</a>><br>Date: Monday, June 28, 2010 12:36 pm<br>Subject: Re: [Freeswitch-users] Dialplan handling on call fails<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br><br>> Roger,<br>> <br>> you're right, but I think there is a mix up here.<br>> In your dialplan, all your bridge actions will be executed <br>> because of <br>> the conditions they are included in, not because you use <br>> continue_on_fail.<br>> <br>> The common use of continue_on_fail looks like:<br>> <condition .....><br>> <action set continue_on_fail=true><br>> <action bridge1><br>> <action bridge2><br>> <action bridge3><br>> </condition><br>> <br>> David Ponzone Direction Technique<br>> email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a><br>> tel: 01 74 03 18 97<br>> gsm: 06 66 98 76 34<br>> <br>> Service Client IPeva<br>> tel: 0811 46 26 26<br>> <a href="http://www.ipeva.fr">www.ipeva.fr</a> - <a href="http://www.ipeva-studio.com">www.ipeva-studio.com</a><br>> <br>> Ce message et toutes les pièces jointes sont confidentiels et <br>> établis <br>> à l'intention exclusive de ses destinataires. Toute utilisation <br>> ou <br>> diffusion non autorisée est interdite. Tout message électronique <br>> est <br>> susceptible d'altération. IPeva décline toute responsabilité au <br>> titre <br>> de ce message s'il a été altéré, déformé ou falsifié. Si vous <br>> n'êtes <br>> pas destinataire de ce message, merci de le détruire <br>> immédiatement et <br>> d'avertir l'expéditeur.<br>> <br>> <br>> <br>> <br>> David Ponzone Direction Technique<br>> email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a><br>> tel: 01 74 03 18 97<br>> gsm: 06 66 98 76 34<br>> <br>> Service Client IPeva<br>> tel: 0811 46 26 26<br>> <a href="http://www.ipeva.fr">www.ipeva.fr</a> - <a href="http://www.ipeva-studio.com">www.ipeva-studio.com</a><br>> <br>> Ce message et toutes les pièces jointes sont confidentiels et <br>> établis <br>> à l'intention exclusive de ses destinataires. Toute utilisation <br>> ou <br>> diffusion non autorisée est interdite. Tout message électronique <br>> est <br>> susceptible d'altération. IPeva décline toute responsabilité au <br>> titre <br>> de ce message s'il a été altéré, déformé ou falsifié. Si vous <br>> n'êtes <br>> pas destinataire de ce message, merci de le détruire <br>> immédiatement et <br>> d'avertir l'expéditeur.<br>> <br>> <br>> <br>> <br>> Le 28/06/2010 à 21:06, Roger Salloum a écrit :<br>> <br>> > >From my understanding the break is used to handle what <br>> happens on <br>> > the evaluation of the condition. I have break=never as I want <br>> it to <br>> > try all rules for the extension even if the one above returns <br>> true <br>> > or false.<br>> ><br>> > ----- Original Message -----<br>> > From: David Ponzone <<a href="mailto:david.ponzone@gmail.com">david.ponzone@gmail.com</a>><br>> > Date: Monday, June 28, 2010 6:36 am<br>> > Subject: Re: [Freeswitch-users] Dialplan handling on call fails<br>> > To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>> ><br>> > > If you use continue_on_fail, I don't think you need to set<br>> > > break="never".<br>> > ><br>> > > David Ponzone Direction Technique<br>> > > email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a><br>> > > tel: 01 74 03 18 97<br>> > > gsm: 06 66 98 76 34<br>> > ><br>> > > Service Client IPeva<br>> > > tel: 0811 46 26 26<br>> > > <a href="http://www.ipeva.fr">www.ipeva.fr</a> - <a href="http://www.ipeva-studio.com">www.ipeva-studio.com</a><br>> > ><br>> > > Ce message et toutes les pièces jointes sont confidentiels et<br>> > > établis<br>> > > à l'intention exclusive de ses destinataires. Toute utilisation<br>> > > ou<br>> > > diffusion non autorisée est interdite. Tout message électronique<br>> > > est<br>> > > susceptible d'altération. IPeva décline toute responsabilité<br>> > > au<br>> > > titre de ce message s'il a été altéré, déformé ou falsifié.<br>> > > Si<br>> > > vous n'êtes pas destinataire de ce message, merci de le<br>> > > détruire<br>> > > immédiatement et d'avertir l'expéditeur.<br>> > ><br>> > ><br>> > ><br>> > ><br>> > > Le 26/06/2010 à 16:53, Roger Salloum a écrit :<br>> > ><br>> > > > Hi,<br>> > > ><br>> > > > I'm trying to setup a dialplan such that if one particular<br>> > > route<br>> > > > fails it will try another. However, I do not want it to<br>> > > try another<br>> > > > route once it had recieved a 180/183 in response from a<br>> > > gateway. I<br>> > > > have not been able to determine how to accomplish this.<br>> > > ><br>> > > > For Example:<br>> > > ><br>> > > > <condition field="destination_number"<br>> > > expression="^(1000123.*)$"<br>> > > > break="never"><br>> > > > <action<br>> > > application="set" data="hangup_after_bridge=true"/><br>> > > >         <action application="set"<br>> > > > data="continue_on_fail=RECOVER_ON_TIMER_EXPIRE"/><br>> > > > <action<br>> > > application="bridge" data="sofia/gateway/carrier1/$1"/><br>> > > > </condition><br>> > > ><br>> > > > <condition field="destination_number"<br>> > > expression="^(1000.*)$"<br>> > > > break="never"><br>> > > > <action<br>> > > application="set"<br>> > > > data="hangup_after_bridge=RECOVER_ON_TIMER_EXPIRE"/><br>> > > > <action<br>> > > application="bridge" data="sofia/gateway/carrier2/$1"/><br>> > > > </condition><br>> > > ><br>> > > > <condition field="destination_number"<br>> > > expression="^(1.*)$"<br>> > > > break="never"><br>> > > > <action<br>> > > application="set" data="hangup_after_bridge=true"/><br>> > > > <action application="set"<br>> > > > data="continue_on_fail=RECOVER_ON_TIMER_EXPIRE"/><br>> > > > <action application="bridge"<br>> > > data="sofia/gateway/carrier3/$1"/>> </condition><br>> > > ><br>> > > > So when 10001234567 is dialled i will match all 3. I'd <br>> like to<br>> > > be<br>> > > > able to try 1, if failed, try 2, if failed try 3. All <br>> calls go<br>> > > out<br>> > > > via an outbound proxy.<br>> > > ><br>> > > > Using the above examples if the gateway does not respond in<br>> > > time,<br>> > > > the proxy generates a 408 REQUEST TIMEOUT error message. It<br>> > > will<br>> > > > then fail out and try the next route. However, when the<br>> > > gateway<br>> > > > responds with a 180/183 but there is no answer after 2 minutes<br>> > > the<br>> > > > proxy, will generate a 480 NO ANSWER (also tried a 408<br>> > > REQUEST<br>> > > > TIMEOUT ). When Freeswitch receives this message it fails, and<br>> > > then<br>> > > > attempts the third failure route. How do i prevent the<br>> > > dialplan from<br>> > > > continuing once it has received a 180/183 when no one answers<br>> > > the<br>> > > > phone?<br>> > > ><br>> > > > Thanks,<br>> > > ><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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> > > ><br>> > > <br>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> > > > <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>> > ><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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> > <br>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> > <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>> <br>> _______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>