<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Anyone? <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal>I am still wondering if there is a documented/undocumented reason why continue_on_fail does not work with piped failover?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-CA'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-CA'> Ivan Kovacevic [mailto:ivank@rogers.com] <br><b>Sent:</b> June-09-11 4:38 PM<br><b>To:</b> 'freeswitch-users@lists.freeswitch.org'<br><b>Subject:</b> continue_on_fail failover with mod_lcr<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Hi Everyone,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I would like to implement fail-over for my outbound gateway, but I would like to be able to pick certain cause codes which qualify to stop trying next gateway (specifically when I have bad number and I am getting <a href="sip:404">sip:404</a> NO_ROUTE_DESTINATION, UNALLOCATED_NUMBER). I was using 1.0.6, but I moved to the newest git about month ago.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>After searching through lists and spending several hours playing with continue_to_fail, failure_causes and fail_on_single_reject I was able to make it work by specifying&nbsp; cause codes for which I want to fail-over and omitting ones that qualify to stop trying next gateway in variable continue_to_fail:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>So this setup is working for me and in the case I have bad number and x.x.x.x returns <a href="sip:404">sip:404</a> (NO_ROUTE_DESTINATION or UNALLOCATED_NUMBER) it is not trying y.y.y.y gateway.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>&lt;include&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp; &lt;extension name=&quot;myextension&quot;&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^(01144\d+)$&quot;&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot;<o:p></o:p></p><p class=MsoNormal>data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,SERVICE_NOT_IMPLEMENTED,CALL_RE<o:p></o:p></p><p class=MsoNormal>JECTED,NO_USER_RESPONSE,EXCHANGE_ROUTING_ERROR,INCOMPATIBLE_DESTINATION,NETWORK_OUT_OF_ORDER,RECOVERY_ON_TIMER_EXPIRE&quot;/&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;<a href="mailto:sofia/myprofile/$1@x.x.x.x">sofia/myprofile/$1@x.x.x.x</a>&quot;/&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;<a href="mailto:sofia/myprofile/$1@y.y.y.y">sofia/myprofile/$1@y.y.y.y</a>&quot;/&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;<a href="mailto:sofia/myprofile/$1@z.z.z.z">sofia/myprofile/$1@z.z.z.z</a>&quot;/&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp; &lt;/extension&gt;<o:p></o:p></p><p class=MsoNormal>&lt;/include&gt;<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>However if I want to use &quot;|&quot; between my gateways &#8211; and the example below is not working. And no matter what x.x.x.x returns - it will try y.y.y.y&nbsp; and eventually z.z.z.z.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>&lt;action application=&quot;set&quot;<o:p></o:p></p><p class=MsoNormal>data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,SERVICE_NOT_IMPLEMENTED,CALL_RE<o:p></o:p></p><p class=MsoNormal>JECTED,NO_USER_RESPONSE,EXCHANGE_ROUTING_ERROR,INCOMPATIBLE_DESTINATION,NETWORK_OUT_OF_ORDER,RECOVERY_ON_TIMER_EXPIRE&quot;/&gt;<o:p></o:p></p><p class=MsoNormal>&lt;action application=&quot;bridge&quot;<o:p></o:p></p><p class=MsoNormal>data=&quot;<a href="mailto:sofia/myprofile/$1@x.x.x.x|sofia/myprofile/$1@y.y.y.y|sofia/myprofile/$1@z.z.z.z">sofia/myprofile/$1@x.x.x.x|sofia/myprofile/$1@y.y.y.y|sofia/myprofile/$1@z.z.z.z</a>&quot;/&gt;<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Unfortunately, we have to use pipe for fail-over since we are using mod_lcr to choose between outbound gateways.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Any suggestions? <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Ivan <o:p></o:p></p></div></body></html>