<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  
    <font face="Courier New, Courier, monospace">Hello;<br>
      i commented your last commit. Sorry , i think i couldn't explain situation.
      Here is log for more understand.<br>
      <br>
      <br>
      ------------- Here is first load_gws and next_gws() functions are 
      called---------------------<br>
      6(10299) DEBUG: lcr [lcr_mod.c:1943]: load_gws(): load_gws(1,
      10218503027337, )<br>
       6(10299) DEBUG: lcr [lcr_mod.c:2014]: load_gws(): added
      matched_gws[0]=[21, 4, 1, 6054284]<br>
       6(10299) DEBUG: lcr [lcr_mod.c:1887]: add_gws_into_avps(): added
      gw_uri_avp <21|sip:|0||0|3020380345||5080||;transport=udp|0>
      with weight <6054284><br>
       6(10299) DEBUG: lcr [../../resolve.h:258]: str2ip(): str2ip:
      ERROR: too few dots in [3020380345]<br>
       6(10299) DEBUG: lcr [../../resolve.h:355]: str2ip6(): str2ip6:
      ERROR: too few colons in [3020380345]<br>
       6(10299) DEBUG: lcr [lcr_mod.c:2175]: generate_uris(): r_uri
      <sip:10218503027337@ip:5080;transport=udp>, dst_uri <><br>
       6(10299) DEBUG: lcr [lcr_mod.c:2456]: next_gw(): added
      ruri_user_avp <10218<u>503027337</u>><br>
       6(10299) DEBUG: lcr [lcr_mod.c:2492]: next_gw(): added flags_avp
      <0><br>
       6(10299) DEBUG: lcr [lcr_mod.c:2499]: next_gw(): added tag_avp
      <0><br>
      ------------ this route/number gives busy response, i am gonna
      change route and number---------<br>
      ------------- Second loads_gws and next_gws functions are
      called.------------------------------<br>
       8(10303) DEBUG: lcr [lcr_mod.c:1943]: load_gws(): load_gws(1,
      200015066109057, )<br>
       8(10303) DEBUG: lcr [lcr_mod.c:2014]: load_gws(): added
      matched_gws[0]=[1, <u>5</u>, 1, 2247144]<br>
       8(10303) DEBUG: lcr [lcr_mod.c:1887]: add_gws_into_avps(): added
      gw_uri_avp
      <1|sip:|5|200010|2|3020380345||5080||;transport=udp|0> with
      weight <2247144><br>
       8(10303) DEBUG: lcr [../../resolve.h:258]: str2ip(): str2ip:
      ERROR: too few dots in [3020380345]<br>
       8(10303) DEBUG: lcr [../../resolve.h:355]: str2ip6(): str2ip6:
      ERROR: too few colons in [3020380345]<br>
       8(10303) DEBUG: lcr [lcr_mod.c:2175]: generate_uris(): r_uri
      <sip:2000105<u>03027337</u>@ip:5080;transport=udp>, dst_uri
      <><br>
       8(10303) DEBUG: lcr [lcr_mod.c:2492]: next_gw(): added flags_avp
      <0><br>
       8(10303) DEBUG: lcr [lcr_mod.c:2499]: next_gw(): added tag_avp
      <2><br>
      --------------------------------r_uri must be 200015066109057 but
      it gets first called r_uri because r_uri saved---<br>
      <br>
      <br>
      Number </font><font face="Courier New, Courier, monospace"><font
        face="Courier New, Courier, monospace">200015066109057 </font>is
      stripped with five as underline. but lcr strips olds uri (</font><font
      face="Courier New, Courier, monospace"><font face="Courier New,
        Courier, monospace">10218<u>503027337</u></font>) as saved r_uri.<br>
      <br>
      <br>
      this route scripts a kind of that if pstn is busy , forward to
      call a cellphone.<br>
      <br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">04.12.2015 13:27 tarihinde Juha
      Heinanen [via SIP Router] yazdı:<br>
    </div>
    <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' cite="mid:22113.30867.75283.218932@lohi.tutpro.com"
      type="cite"> ycaner writes:
      <br>
      <br>
      >       in load_gws function
      <br>
      >       there is a delete_avp for gw_uri_avp as you mentioned .
      but in my
      <br>
      >       view it needs a delete_avp for ruri_user_avp. <br>
      >       Because it is reloading gws for different route.
      <br>
      <br>
      I added deletion of possible old ruri_user_avp value when
      next_gw() is
      <br>
      called first time after load_gws().
      <br>
      <br>
      It is currently in master branch only, but I can commit also to
      4.3
      <br>
      branch if this fixes the issue.
      <br>
      <br>
      -- Juha
      <br>
      <br>
      _______________________________________________
      <br>
      SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
      list
      <br>
      <a moz-do-not-send="true"
        href="/user/SendEmail.jtp?type=node&node=143656&i=0"
        target="_top" rel="nofollow" link="external">[hidden email]</a>
      <br>
      <a moz-do-not-send="true"
        href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
        target="_top" rel="nofollow" link="external">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
      <br>
      <br>
      <hr color="#cccccc" noshade="noshade" size="1">
      <div style="color:#444; font: 12px
        tahoma,geneva,helvetica,arial,sans-serif;">
        <div style="font-weight:bold">If you reply to this email, your
          message will be added to the discussion below:</div>
        <a moz-do-not-send="true"
href="http://sip-router.1086192.n5.nabble.com/LCR-module-re-load-gws-uri-errors-tp143602p143656.html" target="_top" rel="nofollow" link="external">http://sip-router.1086192.n5.nabble.com/LCR-module-re-load-gws-uri-errors-tp143602p143656.html</a>
      </div>
      <div style="color:#666; font: 11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
        To unsubscribe from LCR module : re load_gws uri errors, <a
          moz-do-not-send="true"
href="" target="_top" rel="nofollow" link="external">click
          here</a>.<br>
        <a moz-do-not-send="true"
href="http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a> </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title></title>
      <div align="left">
        <div style="width:300px;" align="left">
          <a href="http://www.netgsm.com.tr" target="_blank" rel="nofollow" link="external">
            <img src="http://sip-router.1086192.n5.nabble.com/attachment/143659/0/yasin-imza-2014.jpg"
              alt"netgsm"="" border="0">
          </a>
        </div>
      </div>
    </div>
  



        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://sip-router.1086192.n5.nabble.com/LCR-module-re-load-gws-uri-errors-tp143602p143659.html">Re: LCR module : re load_gws uri errors</a><br/>
Sent from the <a href="http://sip-router.1086192.n5.nabble.com/Users-f3.html">Users mailing list archive</a> at Nabble.com.<br/>