<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    did you use t_relay() after all the lcr logic?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 10/03/16 23:19, Roberto Innaimi
      wrote:<br>
    </div>
    <blockquote
      cite="mid:etPan.56e1f2e9.19879084.4649@iMac-Retina.local"
      type="cite">
      <style>body{font-family:Helvetica,Arial;font-size:13px}</style>
      <div id="bloop_customfont"
        style="font-family:Helvetica,Arial;font-size:13px; color:
        rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi to all, </div>
      <div id="bloop_customfont"
        style="font-family:Helvetica,Arial;font-size:13px; color:
        rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
      </div>
      <div id="bloop_customfont"
        style="font-family:Helvetica,Arial;font-size:13px; color:
        rgba(0,0,0,1.0); margin: 0px; line-height: auto;">i want to use
        prefix based LCR routing, but for some reason, something is not
        working as expected. </div>
      <div id="bloop_customfont"
        style="font-family:Helvetica,Arial;font-size:13px; color:
        rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
      </div>
      <div id="bloop_customfont"
        style="font-family:Helvetica,Arial;font-size:13px; color:
        rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Can anyone
        help me? </div>
      <div id="bloop_customfont"
        style="font-family:Helvetica,Arial;font-size:13px; color:
        rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
      </div>
      <div id="bloop_customfont"
        style="font-family:Helvetica,Arial;font-size:13px; color:
        rgba(0,0,0,1.0); margin: 0px; line-height: auto;">This is the
        LCR configuration:</div>
      <div id="bloop_customfont"
        style="font-family:Helvetica,Arial;font-size:13px; color:
        rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
      </div>
      <div id="bloop_customfont"
        style="font-family:Helvetica,Arial;font-size:13px; color:
        rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;">#LCR MODULE</div>
        <div id="bloop_customfont" style="margin: 0px;">loadmodule
          "lcr.so"</div>
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "db_url", "mysql://kamailioro:kamailioro@localhost/kamailio")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "lcr_gw_table","lcr_gw")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "id_column", "id")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "gw_name_column", "gw_name")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "ip_addr_column", "ip_addr")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "hostname_column", "hostname")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "port_column", "port")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "params_column", "params")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "uri_scheme_column", "uri_scheme")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "transport_column", "transport")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "strip_column", "strip")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "tag_column", "tag")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "flags_column", "flags")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "defunct_column", "defunct")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "lcr_rule_table", "lcr_rule")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "prefix_column", "prefix")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "from_uri_column", "from_uri")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "request_uri_column", "request_uri")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "stopper_column", "stopper")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "enabled_column", "enabled")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "lcr_rule_target_table", "lcr_rule_target")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "rule_id_column", "id")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "gw_id_column", "gw_id")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "priority_column", "priority")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr","weight_column",
          "weight")</div>
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "gw_uri_avp", "$avp(i:709)")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "ruri_user_avp", "$avp(i:500)")</div>
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "tag_avp", "$avp(lcr_tag)")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "flags_avp", "$avp(i:712)")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "lcr_id_avp", "$avp(s:lcr_id_avp)")</div>
        <div id="bloop_customfont" style="margin: 0px;">modparam("lcr",
          "defunct_gw_avp", "$avp(s:defunct_gw_avp)")</div>
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;">route[LCR] {</div>
        <div id="bloop_customfont" style="margin: 0px;">if
          (status=="200")</div>
        <div id="bloop_customfont" style="margin: 0px;">{</div>
        <div id="bloop_customfont" style="margin: 0px;">  xlog("LCR:
          Inside the LCR route\n");</div>
        <div id="bloop_customfont" style="margin: 0px;">}</div>
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;">if(method=="INVITE")</div>
        <div id="bloop_customfont" style="margin: 0px;">{</div>
        <div id="bloop_customfont" style="margin: 0px;">  xlog("We got
          an invite");</div>
        <div id="bloop_customfont" style="margin: 0px;"> 
          if(!load_gws(1, $rU, $var(caller_uri))) {</div>
        <div id="bloop_customfont" style="margin: 0px;">   
          xlog("Couldn't load gateways");</div>
        <div id="bloop_customfont" style="margin: 0px;">   
          sl_send_reply("500", "Server Internal Error - Cannot load
          gateways");</div>
        <div id="bloop_customfont" style="margin: 0px;">    exit;</div>
        <div id="bloop_customfont" style="margin: 0px;">  } else {</div>
        <div id="bloop_customfont" style="margin: 0px;">        xlog("GW
          Selected '$avp(i:709)'\n");</div>
        <div id="bloop_customfont" style="margin: 0px;">       
          xlog("Domain of destination: $dd\n");</div>
        <div id="bloop_customfont" style="margin: 0px;">        xlog("To
          URI: $tu\n");</div>
        <div id="bloop_customfont" style="margin: 0px;">  }</div>
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;">  if(!next_gw())
          {</div>
        <div id="bloop_customfont" style="margin: 0px;">   
          xlog("Couldn't proceed to next gateway");</div>
        <div id="bloop_customfont" style="margin: 0px;">   
          sl_send_reply("503", "Service not available, no gateways
          found");</div>
        <div id="bloop_customfont" style="margin: 0px;">    exit;</div>
        <div id="bloop_customfont" style="margin: 0px;">  } else {</div>
        <div id="bloop_customfont" style="margin: 0px;">       
          xlog("Calling the first matched gateway\n");</div>
        <div id="bloop_customfont" style="margin: 0px;">       
          xlog("ruri_user_avp: '$avp(i:500)'\n");</div>
        <div id="bloop_customfont" style="margin: 0px;">        xlog("To
          URI after next_gw: $tu\n");</div>
        <div id="bloop_customfont" style="margin: 0px;">       
          xlog("Request URI: $rU\n");</div>
        <div id="bloop_customfont" style="margin: 0px;"><br>
        </div>
        <div id="bloop_customfont" style="margin: 0px;">  }</div>
        <div id="bloop_customfont" style="margin: 0px;">}</div>
        <div id="bloop_customfont" style="margin: 0px;">}</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>AND this is the error which i have got:</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <p style="margin: 0px; font-size: 11px; line-height: normal;
            font-family: Menlo;"><span style="font-variant-ligatures:
              no-common-ligatures">17(7483) ERROR: <script>: We
              got an invite17(7483) ERROR: <script>: GW Selected
              '1|sip:|3|||2873019861||5060||;transport=udp|1'</span></p>
          <p style="margin: 0px; font-size: 11px; line-height: normal;
            font-family: Menlo;"><span style="font-variant-ligatures:
              no-common-ligatures">17(7483) ERROR: <script>:
              Domain of destination: <null></span></p>
          <p style="margin: 0px; font-size: 11px; line-height: normal;
            font-family: Menlo;"><span style="font-variant-ligatures:
              no-common-ligatures">17(7483) ERROR: <script>: To
              URI: <a class="moz-txt-link-freetext" href="sip:001326212223313@10.10.0.10">sip:001326212223313@10.10.0.10</a></span></p>
          <p style="margin: 0px; font-size: 11px; line-height: normal;
            font-family: Menlo;"><span style="font-variant-ligatures:
              no-common-ligatures">17(7483) ERROR: <script>:
              Calling the first matched gateway</span></p>
          <p style="margin: 0px; font-size: 11px; line-height: normal;
            font-family: Menlo;"><span style="font-variant-ligatures:
              no-common-ligatures">17(7483) ERROR: <script>:
              ruri_user_avp: '001326212223313'</span></p>
          <p style="margin: 0px; font-size: 11px; line-height: normal;
            font-family: Menlo;"><span style="font-variant-ligatures:
              no-common-ligatures">17(7483) ERROR: <script>: To
              URI after next_gw: sip: <a class="moz-txt-link-abbreviated" href="mailto:001326212223313@10.10.0.10">001326212223313@10.10.0.10</a></span></p>
          <p style="margin: 0px; font-size: 11px; line-height: normal;
            font-family: Menlo;"><span style="font-variant-ligatures:
              no-common-ligatures">17(7483) ERROR: <script>:
              Request URI: </span>326212223313</p>
        </div>
      </div>
      <br>
      <div id="bloop_sign_1457648038378118144" class="bloop_sign">
        <div><font face="Helvetica">-- <br>
            <span style="orphans: 2; widows: 2;">Roberto Innaimi</span><br
              style="orphans: 2; widows: 2;">
            <span style="orphans: 2; widows: 2;"><a class="moz-txt-link-abbreviated" href="mailto:roberto.innaimi@gmail.com">roberto.innaimi@gmail.com</a></span></font><br
            style="font-family: Helvetica; font-size: 12px; orphans: 2;
            widows: 2;">
        </div>
      </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://www.asipto.com">http://www.asipto.com</a>
<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, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>