<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <tt>Kaled,<br>
      <br>
      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.<br>
      <br>
      So, one more time:<br>
      <br>
      1) the drouting "modparams" I gave you were correlated with the
      AVP names in the xlogs I gave you.<br>
      <br>
      2) In your post, the output of the xlog line with "Destinations
      are" is missing <br>
      <br>
      Regards,<br>
      <br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 05/21/2013 10:03 PM, M.Khaled W Chehab wrote:
    <blockquote cite="mid:014c01ce5655$dd7bf3a0$9873dae0$@icucall.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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;}
/* 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-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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I
            set in dr_rules&nbsp;&nbsp;&nbsp;&nbsp; #lebanon &nbsp;&nbsp;as a carrier route to
            terminate the&nbsp; rule that match 777961 ,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Please
            find below the output for your script <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">loadmodule "drouting.so"<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting", "db_url",
            "virtual://set1") # CUSTOMIZE ME<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "use_domain", 1)<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting", "drd_table",
            "dr_gateways")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting", "drr_table",
            "dr_rules")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting", "drg_table",
            "dr_groups")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting", "drc_table",
            "dr_carriers")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "drg_user_col", "username")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "drg_domain_col", "domain")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "drg_grpid_col", "groupid")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting", "force_dns",
            1)<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">#frequency of probing per
            paramete in seconds<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "probing_interval", 120)<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "probing_method", "OPTIONS")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "probing_from", <a class="moz-txt-link-rfc2396E" href="sip:pinger@opensips">"sip:pinger@opensips"</a>)<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "probing_reply_codes", "487")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">#501, 403,404,<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "use_domain", 1)<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "gw_attrs_avp", '$avp(gw_attrs)')<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting", "gw_id_avp",
            '$avp(gw_id)')<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting",
            "rule_attrs_avp", '$avp(rule_attrs)')<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting","ruri_avp",
            "$avp(dr_ruri)")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting","rule_id_avp",
            "$avp(dr_rule)")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting","rule_attrs_avp",
            "$avp(dr_rule_attrs)")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting","rule_prefix_avp",
            "$avp(dr_rule_prefix)")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting","carrier_id_avp",
            "$avp(dr_cr)")<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 0.5in;"><span
            style="color: windowtext;">modparam("drouting","carrier_attrs_avp",
            "$avp(dr_cr_attrs)")</span><span style="font-size: 9pt;
            color: windowtext;"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">GW
            IDs are&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : &lt;null&gt; <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">GW
            ATTRs are&nbsp;&nbsp;&nbsp; : &lt;null&gt; <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">CR
            IDs are&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Lebanon, Lebanon, Lebanon, Lebanon,&nbsp; <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">CR
            ATTRs are&nbsp;&nbsp;&nbsp; : , , , ,&nbsp; <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">RULE:
            id=104, , attrs=0, , prefix=777961,&nbsp; <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <table class="MsoNormalTable" style="background: none repeat
          scroll 0% 0% whitesmoke;" border="0" cellpadding="0">
          <thead><tr>
              <td colspan="3" style="background: none repeat scroll 0%
                0% rgb(211, 220, 227); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><a moz-do-not-send="true"
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: 10pt; font-family:
                        &quot;Arial&quot;,&quot;sans-serif&quot;;
                        text-decoration: none;"><img
                          id="Picture_x0020_3"
                          src="cid:part1.06030505.06010007@opensips.org"
                          alt="Description: Full Texts" height="20"
                          width="50" border="0"></span></b></a><b><span
                      style="font-size: 10pt; font-family:
                      &quot;Arial&quot;,&quot;sans-serif&quot;;"><o:p></o:p></span></b></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(211,
                220, 227); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><b><span style="font-size:
                      10pt; font-family:
                      &quot;Arial&quot;,&quot;sans-serif&quot;;"><a
                        moz-do-not-send="true"
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><o:p></o:p></span></b></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(211,
                220, 227); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><b><span style="font-size:
                      10pt; font-family:
                      &quot;Arial&quot;,&quot;sans-serif&quot;;"><a
                        moz-do-not-send="true"
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><o:p></o:p></span></b></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(211,
                220, 227); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><b><span style="font-size:
                      10pt; font-family:
                      &quot;Arial&quot;,&quot;sans-serif&quot;;"><a
                        moz-do-not-send="true"
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><o:p></o:p></span></b></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(211,
                220, 227); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><b><span style="font-size:
                      10pt; font-family:
                      &quot;Arial&quot;,&quot;sans-serif&quot;;"><a
                        moz-do-not-send="true"
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><o:p></o:p></span></b></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(211,
                220, 227); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><b><span style="font-size:
                      10pt; font-family:
                      &quot;Arial&quot;,&quot;sans-serif&quot;;"><a
                        moz-do-not-send="true"
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><o:p></o:p></span></b></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(211,
                220, 227); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><b><span style="font-size:
                      10pt; font-family:
                      &quot;Arial&quot;,&quot;sans-serif&quot;;"><a
                        moz-do-not-send="true"
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><o:p></o:p></span></b></p>
              </td>
            </tr>
          </thead><tbody>
            <tr>
              <td style="background: none repeat scroll 0% 0% rgb(255,
                204, 153); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><span style="font-size: 10pt;
                    font-family:
                    &quot;Arial&quot;,&quot;sans-serif&quot;;"><o:p></o:p></span></p>
                <br>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(255,
                204, 153); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><a moz-do-not-send="true"
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: 10pt; font-family:
                      &quot;Arial&quot;,&quot;sans-serif&quot;;
                      text-decoration: none;"><img id="Picture_x0020_2"
                        src="cid:part2.07060705.08060309@opensips.org"
                        alt="Description: Edit" height="16" width="16"
                        border="0"></span></a><span style="font-size:
                    10pt; font-family:
                    &quot;Arial&quot;,&quot;sans-serif&quot;;"><o:p></o:p></span></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(255,
                204, 153); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  center;" align="center"><a moz-do-not-send="true"
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: 10pt; font-family:
                      &quot;Arial&quot;,&quot;sans-serif&quot;;
                      text-decoration: none;"><img id="Picture_x0020_1"
                        src="cid:part3.01010406.07030903@opensips.org"
                        alt="Description: Delete" height="16" width="16"
                        border="0"></span></a><span style="font-size:
                    10pt; font-family:
                    &quot;Arial&quot;,&quot;sans-serif&quot;;"><o:p></o:p></span></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(255,
                204, 153); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  right;" align="right"><span style="font-size: 10pt;
                    font-family:
                    &quot;Arial&quot;,&quot;sans-serif&quot;;">14<o:p></o:p></span></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(255,
                204, 153); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt;"><span
                    style="font-size: 10pt; font-family:
                    &quot;Arial&quot;,&quot;sans-serif&quot;;">Lebanon<o:p></o:p></span></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(255,
                204, 153); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt;"><span
                    style="font-size: 10pt; font-family:
                    &quot;Arial&quot;,&quot;sans-serif&quot;;">Dahdah_JVS,Bics,IDT,Snell_93<o:p></o:p></span></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(255,
                204, 153); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt; text-align:
                  right;" align="right"><span style="font-size: 10pt;
                    font-family:
                    &quot;Arial&quot;,&quot;sans-serif&quot;;">0<o:p></o:p></span></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(255,
                204, 153); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt;"><span
                    style="font-size: 10pt; font-family:
                    &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;<o:p></o:p></span></p>
              </td>
              <td style="background: none repeat scroll 0% 0% rgb(255,
                204, 153); padding: 1.2pt 6pt;" valign="top">
                <p class="MsoNormal" style="margin: 1.2pt;"><span
                    style="font-size: 10pt; font-family:
                    &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;<o:p></o:p></span></p>
              </td>
            </tr>
            <tr height="0">
              <td style="border: medium none;" width="49"><br>
              </td>
              <td style="border: medium none;" width="37"><br>
              </td>
              <td style="border: medium none;" width="37"><br>
              </td>
              <td style="border: medium none;" width="35"><br>
              </td>
              <td style="border: medium none;" width="73"><br>
              </td>
              <td style="border: medium none;" width="207"><br>
              </td>
              <td style="border: medium none;" width="51"><br>
              </td>
              <td style="border: medium none;" width="48"><br>
              </td>
              <td style="border: medium none;" width="92"><br>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">And
            the problem still exists, please advice<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Regards<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <div>
          <div style="border-right: medium none; border-width: 1pt
            medium medium; border-style: solid none none; border-color:
            rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
            padding: 3pt 0in 0in;">
            <p class="MsoNormal"><b><span style="font-size: 10pt;
                  font-family:
                  &quot;Tahoma&quot;,&quot;sans-serif&quot;; color:
                  windowtext;">From:</span></b><span style="font-size:
                10pt; font-family:
                &quot;Tahoma&quot;,&quot;sans-serif&quot;; color:
                windowtext;"> Bogdan-Andrei Iancu
                [<a class="moz-txt-link-freetext" 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<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: 10pt;">Hello,</span></tt><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;;"><br>
            <br>
            <tt>You can check what do_routing() set (as GWs to be used)
              by adding this in your script (just after do_routing):</tt><br>
            <br>
            <tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("Destinations are: $ru $(avp(dr_ruri)[*])
              \n");</tt><br>
            <tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("GW IDs are&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : $(avp(dr_gw)[*]) \n");</tt><br>
            <tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("GW ATTRs are&nbsp;&nbsp;&nbsp; : $(avp(dr_gw_attrs)[*])
              \n");</tt><br>
            <tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("CR IDs are&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : $(avp(dr_cr)[*]) \n");</tt><br>
            <tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("CR ATTRs are&nbsp;&nbsp;&nbsp; : $(avp(dr_cr_attrs)[*])
              \n");</tt><br>
            <tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("RULE: id=$(avp(dr_rule)[*]),
              attrs=$(avp(dr_rule_attrs)[*]),
              prefix=$(avp(dr_rule_prefix)[*]) \n");</tt><br>
            <br>
            <tt>Be sure you have these params set:</tt><br>
            <br>
            <tt>modparam("drouting","ruri_avp", "$avp(dr_ruri)")</tt><br>
            <tt>modparam("drouting","gw_id_avp", "$avp(dr_gw)")</tt><br>
            <tt>modparam("drouting","gw_attrs_avp", "$avp(dr_gw_attrs)")</tt><br>
            <tt>modparam("drouting","rule_id_avp", "$avp(dr_rule)")</tt><br>
            <tt>modparam("drouting","rule_attrs_avp",
              "$avp(dr_rule_attrs)")</tt><br>
            <tt>modparam("drouting","rule_prefix_avp",
              "$avp(dr_rule_prefix)")</tt><br>
            <tt>modparam("drouting","carrier_id_avp", "$avp(dr_cr)")</tt><br>
            <tt>modparam("drouting","carrier_attrs_avp",
              "$avp(dr_cr_attrs)")</tt><br>
            <br>
            <tt>Regards,</tt><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 moz-do-not-send="true" 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><o:p>&nbsp;</o:p></pre>
        <pre><o:p>&nbsp;</o:p></pre>
        <pre>_______________________________________________<o:p></o:p></pre>
        <pre>Users mailing list<o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre>
        <pre><a moz-do-not-send="true" 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>
    </blockquote>
  </body>
</html>