<div dir="ltr">thanks for the reply. That was solved. But now 1 problem remaining. Strip and tags are not working. I&#39;ve set strip to 2 and tag to null, but its still try to call initial sip request uri. Should I have to add something in configuration file too to make it work?<br>

<br>Regards,<br><br>Saeed Akhtar<br><br>
<br><br><div class="gmail_quote">On Thu, Dec 17, 2009 at 12:27 AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Saeed,<br>
<br>
The error is you do not call &quot;next_gw&quot; after &quot;load_gws&quot; - after loading<br>
the GW, you need to use them. Otherwise no GW will be used and the call<br>
will still point to your proxy and keep looping.<br>
<div class="im"><br>
Regards,<br>
Bogdan<br>
<br>
Saeed Akhtar wrote:<br>
</div><div class="im">&gt; hi all,<br>
&gt;<br>
&gt; I&#39;m setting up LCR in opensips and having a problem. This is the output<br>
&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:grep_sock_info: checking if host==us:<br>
&gt; 12==12 &amp;&amp;  [192.168.2.26] == [192.168.2.26]<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:grep_sock_info: checking if port 5060<br>
&gt; matches port 5060<br>
&gt; Dec 16 15:26:50 [1349] DBG:registrar:lookup: &#39;001&#39; Not found in usrloc<br>
&gt;<br>
&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:parse_to_param: tag=d7293f4c<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:parse_to: end of header reached, state=29<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:parse_to: display={&quot;test49&quot;},<br>
</div>&gt; ruri={<a href="mailto:sip%3Asipclient1@192.168.2.26">sip:sipclient1@192.168.2.26</a> &lt;mailto:<a href="mailto:sip%253Asipclient1@192.168.2.26">sip%3Asipclient1@192.168.2.26</a>&gt;}<br>
<div class="im">&gt; Dec 16 15:26:50 [1349] DBG:lcr:do_load_gws: Added matched_gws[0]=[0,0]<br>
&gt; Dec 16 15:26:50 [1349] DBG:lcr:do_load_gws: Added gw_uri_avp<br>
&gt; &lt;0sip:|0@192.168.2.19:5060;transport=udp&gt;<br>
&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:t_newtran: transaction on entrance=(nil)<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=ffffffffffffffff<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=78<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:t_lookup_request: start searching:<br>
&gt; hash=44209, isACK=0<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:matching_3261: RFC3261 transaction<br>
&gt; matching failed<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:t_lookup_request: no transaction found<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:run_reqin_callbacks: trans=0xb5bfc578,<br>
&gt; callback type 1, id 1 entered<br>
&gt; Dec 16 15:26:50 [1349] DBG:dialog:build_new_dlg: new dialog 0xb5bfd45c<br>
&gt; (c=Zjk0NjFkMTZmNzg0YmEwOWUzZTNjYzhjOTQ5ZjVmYzI.,f=<a href="mailto:sip%3Asipclient1@192.168.2.26">sip:sipclient1@192.168.2.26</a><br>
</div>&gt; &lt;mailto:<a href="mailto:sip%253Asipclient1@192.168.2.26">sip%3Asipclient1@192.168.2.26</a>&gt;,t=<a href="mailto:sip%3A001@192.168.2.26">sip:001@192.168.2.26</a><br>
&gt; &lt;mailto:<a href="mailto:sip%253A001@192.168.2.26">sip%3A001@192.168.2.26</a>&gt;,ft=d7293f4c) on hash 3194<br>
<div class="im">&gt; Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=ffffffffffffffff<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is<br>
&gt; &lt;sip:192.168.2.26;lr=on;did=a7c.89bac22&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is<br>
&gt; &lt;sip:192.168.2.26;lr=on;did=a7c.79bac22&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is<br>
&gt; &lt;sip:192.168.2.26;lr=on;did=a7c.69bac22&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is<br>
&gt; &lt;sip:192.168.2.26;lr=on;did=a7c.59bac22&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is<br>
&gt; &lt;sip:192.168.2.26;lr=on;did=a7c.49bac22&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is<br>
&gt; &lt;sip:192.168.2.26;lr=on;did=a7c.39bac22&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is<br>
&gt; &lt;sip:192.168.2.26;lr=on;did=a7c.29bac22&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: skipping 0 route records<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: out rr<br>
&gt; [&lt;sip:192.168.2.26;lr=on;did=a7c.89bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.79bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.69bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.59bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.49bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.39bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.29bac22&gt;]<br>


&gt; Dec 16 15:26:50 [1349] DBG:core:print_rr_body: we have 7 records<br>
&gt; Dec 16 15:26:50 [1349] DBG:dialog:init_leg_info: route_set<br>
&gt; &lt;sip:192.168.2.26;lr=on;did=a7c.89bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.79bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.69bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.59bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.49bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.39bac22&gt;,&lt;sip:192.168.2.26;lr=on;did=a7c.29bac22&gt;,<br>


&gt; contact <a href="http://sip:sipclient1@192.168.2.15:5071" target="_blank">sip:sipclient1@192.168.2.15:5071</a><br>
</div>&gt; &lt;<a href="http://sip:sipclient1@192.168.2.15:5071" target="_blank">http://sip:sipclient1@192.168.2.15:5071</a>&gt;, cseq 1 and bind_addr<br>
&gt; udp:<a href="http://192.168.2.26:5060" target="_blank">192.168.2.26:5060</a> &lt;<a href="http://192.168.2.26:5060" target="_blank">http://192.168.2.26:5060</a>&gt;<br>
<div class="im">&gt; Dec 16 15:26:50 [1349] DBG:dialog:dlg_add_leg_info: set leg 0 for<br>
&gt; 0xb5bfd45c: tag=&lt;d7293f4c&gt; rcseq=&lt;1&gt;<br>
&gt; Dec 16 15:26:50 [1349] DBG:dialog:link_dlg: ref dlg 0xb5bfd45c with 3 -&gt; 3<br>
&gt; Dec 16 15:26:50 [1349] DBG:rr:add_rr_param: adding (;did=a7c.99bac22)<br>
&gt; 0x81af828<br>
&gt; Dec 16 15:26:50 [1349] DBG:dialog:get_dlg_timeout: invalid AVP value,<br>
&gt; use default timeout<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:run_reqin_callbacks: trans=0xb5bfc578,<br>
&gt; callback type 1, id 0 entered<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=78<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=ffffffffffffffff<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:check_ip_address: params 192.168.2.26,<br>
&gt; 192.168.2.26, 0<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:_shm_resize: resize(0) called<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:_reply_light: reply sent out.<br>
&gt; buf=0x81b0e5c: SIP/2.0 1..., shmem=0xb5bfee3c: SIP/2.0 1<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:_reply_light: finished<br>
</div>&gt; new branch at <a href="mailto:sip%3A001@192.168.2.26">sip:001@192.168.2.26</a> &lt;mailto:<a href="mailto:sip%253A001@192.168.2.26">sip%3A001@192.168.2.26</a>&gt;<br>
<div><div></div><div class="h5">&gt; Dec 16 15:26:50 [1349] DBG:core:mk_proxy: doing DNS lookup...<br>
&gt; Dec 16 15:26:50 [1349] DBG:core:check_ip_address: params 192.168.2.26,<br>
&gt; 192.168.2.26, 0<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:set_timer: relative timeout is 500000<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:insert_timer_unsafe: [4]: 0xb5bfc6c4<br>
&gt; (10400000)<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:set_timer: relative timeout is 30<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:insert_timer_unsafe: [0]: 0xb5bfc6e0 (39)<br>
&gt; Dec 16 15:26:50 [1349] DBG:tm:t_relay_to: new transaction fwd&#39;ed<br>
&gt;<br>
&gt;<br>
&gt; and it comes again and again, in infinite loop. Call should be sent to<br>
&gt; 192.168.2.19 IP but it never does. even wireshark shows nothing.<br>
&gt;<br>
&gt; My configuration is as following<br>
&gt;<br>
&gt;     if(!lookup(&quot;location&quot;,&quot;m&quot;)) {<br>
&gt;<br>
&gt;         if (!load_gws()) {<br>
&gt;<br>
&gt;                sl_send_reply(&quot;503&quot; , &quot;Unable to load gateways&quot;);<br>
&gt;<br>
&gt;                exit;<br>
&gt;<br>
&gt;         }<br>
&gt;<br>
&gt;     }<br>
&gt;<br>
&gt;     route(2);<br>
&gt;<br>
&gt;     exit;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     route [2] {<br>
&gt;<br>
&gt;         if (is_method(&quot;INVITE&quot;))<br>
&gt;<br>
&gt;         {<br>
&gt;<br>
&gt;                 t_on_branch(&quot;2&quot;);<br>
&gt;<br>
&gt;                 t_on_reply(&quot;2&quot;);<br>
&gt;<br>
&gt;                 t_on_failure(&quot;2&quot;);<br>
&gt;<br>
&gt;         }<br>
&gt;<br>
&gt;         if (!t_relay())<br>
&gt;<br>
&gt;         {<br>
&gt;<br>
&gt;                 sl_reply_error();<br>
&gt;<br>
&gt;         }<br>
&gt;<br>
&gt;         exit;<br>
&gt;<br>
&gt;     }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Saeed Akhtar<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>