<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
what are the parameters for drouting module?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 26/05/15 11:14, Ali Taher wrote:<br>
</div>
<blockquote cite="mid:034d01d09794$522c66e0$f68534a0$@vanrise.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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:"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:11.0pt;
font-family:"Calibri",sans-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-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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]-->
<div class="WordSection1">
<p class="MsoNormal">Dears,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying drouting module in kamailio ,
it’s working good when first gateway in the list is up , yet
when first gateway is unrecheable , it’s not rerouted to
second destination, meaning that fail over is not working.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kindly find attached wireshark trace I’m
getting .<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below is db entries I’m using :<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">dr_gateways:<o:p></o:p></p>
<p class="MsoNormal"><br>
<o:p></o:p></p>
<p class="MsoNormal">Dr_gw_lists<o:p></o:p></p>
<p class="MsoNormal"><br>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dr_groups:<o:p></o:p></p>
<p class="MsoNormal"><br>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dr_rules:<o:p></o:p></p>
<p class="MsoNormal"><br>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below is routing block I’m using :<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">request_route{<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">if
(is_method("INVITE"))<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
{<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
if (!do_routing("0")) {<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
send_reply("503", "Test No Rules
matching the URI");<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
exit;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
}<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
route(10);<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
exit;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
}<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">}<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">route[10] {<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> if
(!do_routing("0")) {<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
xlog("do_routing: No rules matching the URI\n");<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
send_reply("503","No rules matching the URI");<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> exit;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> if
(is_method("INVITE")) {<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
t_on_failure("4");<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> route(1);<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">}<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">failure_route[4]
{<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
xlog("DEBUG: DROUTING failure route active\n");<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> if
(t_check_status("[34][0-9][0-9]")) {<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> exit;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> if
(use_next_gw()) {<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
t_relay();<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> exit;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> } else {<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> t_reply
("503", "Service not available");<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> exit;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">}<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">route[1] {<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> #
send it out now; use stateful forwarding as it works<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> #
reliably even for UDP2TCP<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> if
(!t_relay()) {<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">
sl_reply_error();<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> };<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver"> exit;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="background:silver;mso-highlight:silver">}</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Appreciating your prompt reply and
assistance.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable"
style="width:534.8pt;margin-left:9.9pt;border-collapse:collapse"
border="0" cellpadding="0" cellspacing="0" width="713">
<tbody>
<tr style="height:29.65pt">
<td rowspan="2"
style="width:45.45pt;border:none;border-right:solid
#D9D9D9 1.0pt;padding:0in 5.4pt 0in
5.4pt;height:29.65pt" valign="top" width="61">
<p class="MsoNormal" style="line-height:115%"><span
style="font-size:1.0pt;line-height:115%;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span
style="font-size:9.0pt;line-height:115%;color:#1F497D"><img
id="Picture_x0020_8"
src="cid:part1.03000609.05020900@gmail.com"
alt="Description: Description:
cid:image001.png@01CDB75E.FF3A44B0" height="46"
width="46"><o:p></o:p></span></p>
</td>
<td colspan="3" style="width:457.1pt;padding:0in 5.4pt 0in
5.4pt;height:29.65pt" valign="top" width="609">
<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 style="width:25.8pt;padding:0in 0in 0in
0in;height:29.65pt" width="34">
<p class="MsoNormal"><span style="color:#1F497D"> <o:p></o:p></span></p>
</td>
</tr>
<tr style="height:29.6pt">
<td colspan="2" style="width:49.45pt;padding:0in 5.4pt 0in
5.4pt;height:29.6pt" valign="top" width="66">
<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 colspan="2" style="width:439.9pt;padding:0in 5.4pt 0in
5.4pt;height:29.6pt" valign="top" width="587">
<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="color:#1F497D"><a moz-do-not-send="true"
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
moz-do-not-send="true"
href="https://maps.google.com/maps/ms?msa=0&msid=208243362929850217065.0004cbc8d612c5f9b4237&ie=UTF8&t=h&vpsrc=0&z=19&iwloc=0004cbc8e4652b4edf71cC:%5CUsers%5CMarie%5CDocuments%5CMy%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%;color:#1F497D"><o:p> </o:p></span></p>
</td>
<td colspan="4" style="width:489.35pt;padding:0in 5.4pt
0in 5.4pt;height:.3in" width="652">
<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
id="Picture_x0020_7"
src="cid:part4.00090207.09090508@gmail.com"
alt="Description: Description:
cid:image002.png@01CDB75E.FF3A44B0" border="0"
height="13" width="95"></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 colspan="2" style="width:89.1pt;padding:0in 0in 0in
0in;height:22.45pt" valign="top" width="119">
<p class="MsoNormal"
style="text-align:right;line-height:115%"
align="right"><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 colspan="3" style="width:445.7pt;padding:0in 5.4pt 0in
5.4pt;height:22.45pt" valign="top" width="594">
<p class="MsoNormal" style="line-height:115%"><span
style="color:#1F497D"> </span><a
moz-do-not-send="true"
href="http://www.facebook.com/pages/Vanrise-Solutions-Offshore/128309743915533"><span
style="color:#1F497D;text-decoration:none"><img
id="Picture_x0020_6"
src="cid:part5.01000502.05080301@gmail.com"
alt="Description: Description:
cid:image006.png@01CDB760.3643AA40" border="0"
height="25" width="25"></span></a><span
style="color:#1F497D"> </span><a
moz-do-not-send="true"
href="http://www.linkedin.com/company/vanrise-solutions"><span
style="color:#1F497D;text-decoration:none"><img
id="Picture_x0020_5"
src="cid:part7.05030108.07070506@gmail.com"
alt="Description: Description:
cid:image007.png@01CDB760.3643AA40" border="0"
height="25" width="25"></span></a><span
style="color:#1F497D"> </span><a
moz-do-not-send="true"
href="http://twitter.com/VanriseSolution"><span
style="color:#1F497D;text-decoration:none"><img
id="Picture_x0020_4"
src="cid:part9.08000209.00030606@gmail.com"
alt="Description: Description:
cid:image008.png@01CDB760.3643AA40" border="0"
height="25" width="25"></span></a><span
style="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 style="width:45.75pt;padding:0in 0in 0in 0in"
width="61"><br>
</td>
<td style="width:43.5pt;padding:0in 0in 0in 0in"
width="58"><br>
</td>
<td style="width:6.0pt;padding:0in 0in 0in 0in" width="8"><br>
</td>
<td style="width:408.0pt;padding:0in 0in 0in 0in"
width="544"><br>
</td>
<td style="width:32.25pt;padding:0in 0in 0in 0in"
width="43"><br>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>