<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=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Thanks for your reply , it’s working fine now.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Yet, when a call is rerouted to a gateway which cancel it (by clicking on ignore button), call is then rerouted to next gateway which is not correct.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I tried to add this condition :   <span style='background:silver;mso-highlight:silver'>If(t_check_status(“486”)) { exit;}</span>  in failure_route function to exit when cancel occur , but didn’t work </span><span style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>L</span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Appreciate your help.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=713 style='width:534.8pt;margin-left:9.9pt;border-collapse:collapse'><tr style='height:29.65pt'><td width=61 rowspan=2 valign=top style='width:45.45pt;border:none;border-right:solid #D9D9D9 1.0pt;padding:0in 5.4pt 0in 5.4pt;height:29.65pt'><p class=MsoNormal style='line-height:115%'><span style='font-size:1.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:9.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D'><img width=46 height=46 id="Picture_x0020_8" src="cid:image001.png@01D097D6.8830A7F0" alt="Description: Description: cid:image001.png@01CDB75E.FF3A44B0"><o:p></o:p></span></p></td><td width=609 colspan=3 valign=top style='width:457.1pt;padding:0in 5.4pt 0in 5.4pt;height:29.65pt'><p class=MsoNormal style='line-height:115%'><b><span style='font-size:2.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#2F3F66'><o:p> </o:p></span></b></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:9.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#215868'>Ali Taher<o:p></o:p></span></b></p><p class=MsoNormal style='line-height:115%'><i><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#215868'>Technical Support Engineer<o:p></o:p></span></i></p><p class=MsoNormal style='line-height:115%'><i><span style='font-size:4.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#215868'><o:p> </o:p></span></i></p></td><td width=34 style='width:25.8pt;padding:0in 0in 0in 0in;height:29.65pt'><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> <o:p></o:p></span></p></td></tr><tr style='height:29.6pt'><td width=66 colspan=2 valign=top style='width:49.45pt;padding:0in 5.4pt 0in 5.4pt;height:29.6pt'><p class=MsoNormal style='line-height:115%'><b><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#215868'>T&F          </span></b><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'><o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#215868'>M<o:p></o:p></span></b></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#215868'>W<o:p></o:p></span></b></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#215868'>A</span></b><b><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#365F91'><o:p></o:p></span></b></p></td><td width=587 colspan=2 valign=top style='width:439.9pt;padding:0in 5.4pt 0in 5.4pt;height:29.6pt'><p class=MsoNormal style='line-height:115%'><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'>+961-5-457437 </span><b><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#215868'>Ext</span></b><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'> 215<o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'>+961-70-010600<o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D'><a href="http://www.vanrise.com/"><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'>http://www.vanrise.com</span></a></span><u><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'> <o:p></o:p></span></u></p><p class=MsoNormal style='line-height:115%'><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'><a href="https://maps.google.com/maps/ms?msa=0&msid=208243362929850217065.0004cbc8d612c5f9b4237&ie=UTF8&t=h&vpsrc=0&z=19&iwloc=0004cbc8e4652b4edf71cC:\Users\Marie\Documents\My%20Received%20Files"><span style='color:blue'>Vanrise Building</span></a>, Facing Galerie Semaan<o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'>Hazmiyeh Highway – Beirut, Lebanon<o:p></o:p></span></p></td></tr><tr style='height:.3in'><td style='border:none;border-right:solid #D9D9D9 1.0pt;padding:0in 0in 0in 0in;height:.3in'><p class=MsoNormal style='line-height:115%'><span style='font-size:9.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p></td><td width=652 colspan=4 style='width:489.35pt;padding:0in 5.4pt 0in 5.4pt;height:.3in'><p class=MsoNormal style='line-height:115%'><i><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#17365D'><img border=0 width=95 height=13 id="Picture_x0020_7" src="cid:image002.png@01D097D6.8830A7F0" alt="Description: Description: cid:image002.png@01CDB75E.FF3A44B0"></span></i><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'><o:p></o:p></span></p></td></tr><tr style='height:22.45pt'><td width=119 colspan=2 valign=top style='width:89.1pt;padding:0in 0in 0in 0in;height:22.45pt'><p class=MsoNormal align=right style='text-align:right;line-height:115%'><i><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#215868'>Join us at<o:p></o:p></span></i></p></td><td width=594 colspan=3 valign=top style='width:445.7pt;padding:0in 5.4pt 0in 5.4pt;height:22.45pt'><p class=MsoNormal style='line-height:115%'><span style='font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D'> </span><a href="http://www.facebook.com/pages/Vanrise-Solutions-Offshore/128309743915533"><span style='font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D;text-decoration:none'><img border=0 width=25 height=25 id="Picture_x0020_6" src="cid:image003.png@01D097D6.8830A7F0" alt="Description: Description: cid:image006.png@01CDB760.3643AA40"></span></a><span style='font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D'> </span><a href="http://www.linkedin.com/company/vanrise-solutions"><span style='font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D;text-decoration:none'><img border=0 width=25 height=25 id="Picture_x0020_5" src="cid:image004.png@01D097D6.8830A7F0" alt="Description: Description: cid:image007.png@01CDB760.3643AA40"></span></a><span style='font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D'> </span><a href="http://twitter.com/VanriseSolution"><span style='font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D;text-decoration:none'><img border=0 width=25 height=25 id="Picture_x0020_4" src="cid:image005.png@01D097D6.8830A7F0" alt="Description: Description: cid:image008.png@01CDB760.3643AA40"></span></a><span style='font-size:11.0pt;line-height:115%;font-family:"Calibri",sans-serif;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#5E5E5E'><o:p> </o:p></span></b></p></td></tr><tr><td width=61 style='width:45.75pt;padding:0in 0in 0in 0in'></td><td width=58 style='width:43.5pt;padding:0in 0in 0in 0in'></td><td width=8 style='width:6.0pt;padding:0in 0in 0in 0in'></td><td width=544 style='width:408.0pt;padding:0in 0in 0in 0in'></td><td width=43 style='width:32.25pt;padding:0in 0in 0in 0in'></td></tr></table><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> sr-users [mailto:sr-users-bounces@lists.sip-router.org] <b>On Behalf Of </b>Dmitri Savolainen<br><b>Sent:</b> Tuesday, May 26, 2015 3:40 PM<br><b>To:</b> Kamailio (SER) - Users Mailing List<br><b>Subject:</b> Re: [SR-Users] Kamailio drouting failure not working<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;background:silver'>    if (t_check_status("[34][0-9][0-9]")) {</span><span style='font-size:10.0pt'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;background:silver'>        exit;</span><span style='font-size:10.0pt'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;background:silver'>    }</span><span style='font-size:10.0pt'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>request timeout == 408 error, so  "if (use_next_gw()) {" never called<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'><o:p> </o:p></span></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <o:p></o:p></p><div><div><div><div><div><p class=MsoNormal>Savolainen Dmitri<o:p></o:p></p></div></div></div></div></div></div></div></div></body></html>