<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)"><!--[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: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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Courier New \;";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {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: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 bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Dear bogdan,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks for you &nbsp;,my problem been&nbsp; solved <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>khaled<o:p></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 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Bogdan-Andrei Iancu [mailto:bogdan@opensips.org] <br><b>Sent:</b> Wednesday, May 22, 2013 2:12 PM<br><b>To:</b> M.Khaled W Chehab<br><b>Cc:</b> 'OpenSIPS users mailling list'<br><b>Subject:</b> Re: [OpenSIPS-Users] Do_Routing problem<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><tt><span style='font-size:10.0pt'>Kaled,</span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>You need to pay a bit of attention on what you are doing and try to understand things - simply throeing some lines into the script, without being consistent, will not make your script work and simply waste our time here.</tt><br><br><tt>So, one more time:</tt><br><br><tt>1) the drouting &quot;modparams&quot; I gave you were correlated with the AVP names in the xlogs I gave you.</tt><br><br><tt>2) In your post, the output of the xlog line with &quot;Destinations are&quot; is missing </tt><br><br><tt>Regards,</tt><br><br><br></span><o:p></o:p></p><pre>Bogdan-Andrei Iancu<o:p></o:p></pre><pre>OpenSIPS Founder and Developer<o:p></o:p></pre><pre><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre><p class=MsoNormal><br>On 05/21/2013 10:03 PM, M.Khaled W Chehab wrote: <o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Hi,</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>I set in dr_rules&nbsp;&nbsp;&nbsp;&nbsp; #lebanon &nbsp;&nbsp;as a carrier route to terminate the&nbsp; rule that match 777961 ,</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Please find below the output for your script </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>loadmodule &quot;drouting.so&quot;</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;db_url&quot;, &quot;virtual://set1&quot;) # CUSTOMIZE ME</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;use_domain&quot;, 1)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;drd_table&quot;, &quot;dr_gateways&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;drr_table&quot;, &quot;dr_rules&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;drg_table&quot;, &quot;dr_groups&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;drc_table&quot;, &quot;dr_carriers&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;drg_user_col&quot;, &quot;username&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;drg_domain_col&quot;, &quot;domain&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;drg_grpid_col&quot;, &quot;groupid&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;force_dns&quot;, 1)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>#frequency of probing per paramete in seconds</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;probing_interval&quot;, 120)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;probing_method&quot;, &quot;OPTIONS&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;probing_from&quot;, <a href="sip:pinger@opensips">&quot;sip:pinger@opensips&quot;</a>)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;probing_reply_codes&quot;, &quot;487&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>#501, 403,404,</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;use_domain&quot;, 1)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;gw_attrs_avp&quot;, '$avp(gw_attrs)')</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;gw_id_avp&quot;, '$avp(gw_id)')</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;, &quot;rule_attrs_avp&quot;, '$avp(rule_attrs)')</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;,&quot;ruri_avp&quot;, &quot;$avp(dr_ruri)&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;,&quot;rule_id_avp&quot;, &quot;$avp(dr_rule)&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;,&quot;rule_attrs_avp&quot;, &quot;$avp(dr_rule_attrs)&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;,&quot;rule_prefix_avp&quot;, &quot;$avp(dr_rule_prefix)&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;,&quot;carrier_id_avp&quot;, &quot;$avp(dr_cr)&quot;)</span><o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='color:windowtext'>modparam(&quot;drouting&quot;,&quot;carrier_attrs_avp&quot;, &quot;$avp(dr_cr_attrs)&quot;)</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>GW IDs are&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : &lt;null&gt; </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>GW ATTRs are&nbsp;&nbsp;&nbsp; : &lt;null&gt; </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>CR IDs are&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Lebanon, Lebanon, Lebanon, Lebanon,&nbsp; </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>CR ATTRs are&nbsp;&nbsp;&nbsp; : , , , ,&nbsp; </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>RULE: id=104, , attrs=0, , prefix=777961,&nbsp; </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><table class=MsoNormalTable border=0 cellpadding=0 style='background:whitesmoke;background-attachment:scroll;background-position-x:0%;background-position-y:0%'><thead><tr><td colspan=3 valign=top style='background:#D3DCE3;padding:1.2pt 6.0pt 1.2pt 6.0pt;background-attachment:scroll;background-position-x:0%;background-position-y:0%'><p class=MsoNormal align=center style='margin:1.2pt;text-align:center'><a href="http://5.104.224.33/phpmyadmin/sql.php?db=opensips&amp;table=dr_carriers&amp;sql_query=SELECT+%2A+FROM+%60dr_carriers%60&amp;goto=tbl_structure.php&amp;display_options_form=1&amp;display_text=F&amp;token=4c290d9fc747fadbbb216f2d571c00ef"><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";text-decoration:none'><img border=0 width=50 height=20 id="Picture_x0020_3" src="cid:image001.png@01CE5730.3747EB70" alt="Description: Full Texts"></span></b></a><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(211,&#13;&#10;                220, 227)'><p class=MsoNormal align=center style='margin:1.2pt;text-align:center'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a href="http://5.104.224.33/phpmyadmin/sql.php?db=opensips&amp;table=dr_carriers&amp;sql_query=SELECT+%2A+FROM+%60dr_carriers%60+ORDER+BY+%60dr_carriers%60.%60id%60+ASC&amp;token=4c290d9fc747fadbbb216f2d571c00ef" title=Sort><span style='text-decoration:none'>id</span></a></span></b><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(211,&#13;&#10;                220, 227)'><p class=MsoNormal align=center style='margin:1.2pt;text-align:center'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a href="http://5.104.224.33/phpmyadmin/sql.php?db=opensips&amp;table=dr_carriers&amp;sql_query=SELECT+%2A+FROM+%60dr_carriers%60+ORDER+BY+%60dr_carriers%60.%60carrierid%60+ASC&amp;token=4c290d9fc747fadbbb216f2d571c00ef" title=Sort><span style='text-decoration:none'>carrierid</span></a></span></b><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(211,&#13;&#10;                220, 227)'><p class=MsoNormal align=center style='margin:1.2pt;text-align:center'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a href="http://5.104.224.33/phpmyadmin/sql.php?db=opensips&amp;table=dr_carriers&amp;sql_query=SELECT+%2A+FROM+%60dr_carriers%60+ORDER+BY+%60dr_carriers%60.%60gwlist%60+ASC&amp;token=4c290d9fc747fadbbb216f2d571c00ef" title=Sort><span style='text-decoration:none'>gwlist</span></a></span></b><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(211,&#13;&#10;                220, 227)'><p class=MsoNormal align=center style='margin:1.2pt;text-align:center'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a href="http://5.104.224.33/phpmyadmin/sql.php?db=opensips&amp;table=dr_carriers&amp;sql_query=SELECT+%2A+FROM+%60dr_carriers%60+ORDER+BY+%60dr_carriers%60.%60flags%60+ASC&amp;token=4c290d9fc747fadbbb216f2d571c00ef" title=Sort><span style='text-decoration:none'>flags</span></a></span></b><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(211,&#13;&#10;                220, 227)'><p class=MsoNormal align=center style='margin:1.2pt;text-align:center'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a href="http://5.104.224.33/phpmyadmin/sql.php?db=opensips&amp;table=dr_carriers&amp;sql_query=SELECT+%2A+FROM+%60dr_carriers%60+ORDER+BY+%60dr_carriers%60.%60attrs%60+ASC&amp;token=4c290d9fc747fadbbb216f2d571c00ef" title=Sort><span style='text-decoration:none'>attrs</span></a></span></b><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(211,&#13;&#10;                220, 227)'><p class=MsoNormal align=center style='margin:1.2pt;text-align:center'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a href="http://5.104.224.33/phpmyadmin/sql.php?db=opensips&amp;table=dr_carriers&amp;sql_query=SELECT+%2A+FROM+%60dr_carriers%60+ORDER+BY+%60dr_carriers%60.%60description%60+ASC&amp;token=4c290d9fc747fadbbb216f2d571c00ef" title=Sort><span style='text-decoration:none'>description</span></a></span></b><o:p></o:p></p></td></tr></thead><tr><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(255,&#13;&#10;                204, 153)'></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(255,&#13;&#10;                204, 153)'><p class=MsoNormal align=center style='margin:1.2pt;text-align:center'><a href="http://5.104.224.33/phpmyadmin/tbl_change.php?db=opensips&amp;table=dr_carriers&amp;where_clause=%60dr_carriers%60.%60id%60+%3D+14&amp;clause_is_unique=1&amp;sql_query=SELECT+%2A+FROM+%60dr_carriers%60&amp;goto=sql.php&amp;token=4c290d9fc747fadbbb216f2d571c00ef"><span style='font-size:10.0pt;font-family:"Arial","sans-serif";text-decoration:none'><img border=0 width=16 height=16 id="Picture_x0020_2" src="cid:image002.png@01CE5730.3747EB70" alt="Description: Edit"></span></a><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(255,&#13;&#10;                204, 153)'><p class=MsoNormal align=center style='margin:1.2pt;text-align:center'><a href="http://5.104.224.33/phpmyadmin/sql.php?db=opensips&amp;table=dr_carriers&amp;sql_query=DELETE+FROM+%60opensips%60.%60dr_carriers%60+WHERE+%60dr_carriers%60.%60id%60+%3D+14&amp;zero_rows=The+row+has+been+deleted&amp;goto=sql.php%3Fdb%3Dopensips%26table%3Ddr_carriers%26sql_query%3DSELECT%2B%252A%2BFROM%2B%2560dr_carriers%2560%26zero_rows%3DThe%2Brow%2Bhas%2Bbeen%2Bdeleted%26goto%3Dtbl_structure.php%26token%3D4c290d9fc747fadbbb216f2d571c00ef&amp;token=4c290d9fc747fadbbb216f2d571c00ef"><span style='font-size:10.0pt;font-family:"Arial","sans-serif";text-decoration:none'><img border=0 width=16 height=16 id="Picture_x0020_1" src="cid:image003.png@01CE5730.3747EB70" alt="Description: Delete"></span></a><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(255,&#13;&#10;                204, 153)'><p class=MsoNormal align=right style='margin:1.2pt;text-align:right'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>14</span><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(255,&#13;&#10;                204, 153)'><p class=MsoNormal style='margin:1.2pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Lebanon</span><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(255,&#13;&#10;                204, 153)'><p class=MsoNormal style='margin:1.2pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Dahdah_JVS,Bics,IDT,Snell_93</span><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(255,&#13;&#10;                204, 153)'><p class=MsoNormal align=right style='margin:1.2pt;text-align:right'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>0</span><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(255,&#13;&#10;                204, 153)'><p class=MsoNormal style='margin:1.2pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span><o:p></o:p></p></td><td valign=top style='padding:1.2pt 6.0pt 1.2pt 6.0pt;background:rgb(255,&#13;&#10;                204, 153)'><p class=MsoNormal style='margin:1.2pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span><o:p></o:p></p></td></tr><tr><td width=49 style='width:36.75pt;padding:0in 0in 0in 0in'></td><td width=37 style='width:27.75pt;padding:0in 0in 0in 0in'></td><td width=37 style='width:27.75pt;padding:0in 0in 0in 0in'></td><td width=35 style='width:26.25pt;padding:0in 0in 0in 0in'></td><td width=73 style='width:54.75pt;padding:0in 0in 0in 0in'></td><td width=207 style='width:155.25pt;padding:0in 0in 0in 0in'></td><td width=51 style='width:38.25pt;padding:0in 0in 0in 0in'></td><td width=48 style='width:.5in;padding:0in 0in 0in 0in'></td><td width=92 style='width:69.0pt;padding:0in 0in 0in 0in'></td></tr></table><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>And the problem still exists, please advice</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Regards</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><div><div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:-moz-use-text-color -moz-use-text-color'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>] <br><b>Sent:</b> Tuesday, May 21, 2013 8:00 PM<br><b>To:</b> OpenSIPS users mailling list<br><b>Cc:</b> M.Khaled W Chehab<br><b>Subject:</b> Re: [OpenSIPS-Users] Do_Routing problem</span><o:p></o:p></p></div></div><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal><tt><span style='font-size:10.0pt'>Hello,</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br><br></span><tt><span style='font-size:10.0pt'>You can check what do_routing() set (as GWs to be used) by adding this in your script (just after do_routing):</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br><br></span><tt><span style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog(&quot;Destinations are: $ru $(avp(dr_ruri)[*]) \n&quot;);</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog(&quot;GW IDs are&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : $(avp(dr_gw)[*]) \n&quot;);</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog(&quot;GW ATTRs are&nbsp;&nbsp;&nbsp; : $(avp(dr_gw_attrs)[*]) \n&quot;);</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog(&quot;CR IDs are&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : $(avp(dr_cr)[*]) \n&quot;);</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog(&quot;CR ATTRs are&nbsp;&nbsp;&nbsp; : $(avp(dr_cr_attrs)[*]) \n&quot;);</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog(&quot;RULE: id=$(avp(dr_rule)[*]), attrs=$(avp(dr_rule_attrs)[*]), prefix=$(avp(dr_rule_prefix)[*]) \n&quot;);</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br><br></span><tt><span style='font-size:10.0pt'>Be sure you have these params set:</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br><br></span><tt><span style='font-size:10.0pt'>modparam(&quot;drouting&quot;,&quot;ruri_avp&quot;, &quot;$avp(dr_ruri)&quot;)</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>modparam(&quot;drouting&quot;,&quot;gw_id_avp&quot;, &quot;$avp(dr_gw)&quot;)</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>modparam(&quot;drouting&quot;,&quot;gw_attrs_avp&quot;, &quot;$avp(dr_gw_attrs)&quot;)</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>modparam(&quot;drouting&quot;,&quot;rule_id_avp&quot;, &quot;$avp(dr_rule)&quot;)</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>modparam(&quot;drouting&quot;,&quot;rule_attrs_avp&quot;, &quot;$avp(dr_rule_attrs)&quot;)</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>modparam(&quot;drouting&quot;,&quot;rule_prefix_avp&quot;, &quot;$avp(dr_rule_prefix)&quot;)</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>modparam(&quot;drouting&quot;,&quot;carrier_id_avp&quot;, &quot;$avp(dr_cr)&quot;)</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br></span><tt><span style='font-size:10.0pt'>modparam(&quot;drouting&quot;,&quot;carrier_attrs_avp&quot;, &quot;$avp(dr_cr_attrs)&quot;)</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br><br></span><tt><span style='font-size:10.0pt'>Regards,</span></tt><span style='font-size:10.0pt;font-family:"Courier New ;","serif"'><br><br><br></span><o:p></o:p></p><pre>Bogdan-Andrei Iancu<o:p></o:p></pre><pre>OpenSIPS Founder and Developer<o:p></o:p></pre><pre><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre><p class=MsoNormal><br>On 05/21/2013 06:17 PM, M.Khaled W Chehab wrote: <o:p></o:p></p><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>I am using opensips 1.8.3<o:p></o:p></p><p class=MsoNormal>I set three gateways &nbsp;in carrier route ,&nbsp; the call always go to &nbsp;the 1st and jump to &nbsp;third gateway &nbsp;and ignores the second<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>Moreover&nbsp; I can see in debug level 4 , <o:p></o:p></p><p class=MsoNormal>DBG:drouting:push_gw_for_usage: adding gw [gw1] in order 0 adding gw [gw2]&nbsp; in order 1 adding gw [gw3] in order 3<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>But using wireshark I can just see the invite to the first and the third <o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>Please advice<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><pre>&nbsp;<o:p></o:p></pre><pre>&nbsp;<o:p></o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Users mailing list<o:p></o:p></pre><pre><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre><pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre></div></body></html>