<div dir="ltr">hi all,<div><br></div><div>I'm setting up LCR in opensips and having a problem. This is the output</div><div><br></div><div><div>Dec 16 15:26:50 [1349] DBG:core:grep_sock_info: checking if host==us: 12==12 && [192.168.2.26] == [192.168.2.26]</div>
<div>Dec 16 15:26:50 [1349] DBG:core:grep_sock_info: checking if port 5060 matches port 5060</div><div>Dec 16 15:26:50 [1349] DBG:registrar:lookup: '001' Not found in usrloc</div><div><br></div><div><br></div><div>
Dec 16 15:26:50 [1349] DBG:core:parse_to_param: tag=d7293f4c</div><div>Dec 16 15:26:50 [1349] DBG:core:parse_to: end of header reached, state=29</div><div>Dec 16 15:26:50 [1349] DBG:core:parse_to: display={"test49"}, ruri={<a href="mailto:sip%3Asipclient1@192.168.2.26">sip:sipclient1@192.168.2.26</a>}</div>
<div>Dec 16 15:26:50 [1349] DBG:lcr:do_load_gws: Added matched_gws[0]=[0,0]</div><div>Dec 16 15:26:50 [1349] DBG:lcr:do_load_gws: Added gw_uri_avp <0sip:|0@192.168.2.19:5060;transport=udp></div><div><br></div><div>
Dec 16 15:26:50 [1349] DBG:tm:t_newtran: transaction on entrance=(nil)</div>
<div>Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=ffffffffffffffff</div><div>Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=78</div><div>Dec 16 15:26:50 [1349] DBG:tm:t_lookup_request: start searching: hash=44209, isACK=0</div>
<div>Dec 16 15:26:50 [1349] DBG:tm:matching_3261: RFC3261 transaction matching failed</div><div>Dec 16 15:26:50 [1349] DBG:tm:t_lookup_request: no transaction found</div><div>Dec 16 15:26:50 [1349] DBG:tm:run_reqin_callbacks: trans=0xb5bfc578, callback type 1, id 1 entered</div>
<div>Dec 16 15:26:50 [1349] DBG:dialog:build_new_dlg: new dialog 0xb5bfd45c (c=Zjk0NjFkMTZmNzg0YmEwOWUzZTNjYzhjOTQ5ZjVmYzI.,f=<a href="mailto:sip%3Asipclient1@192.168.2.26">sip:sipclient1@192.168.2.26</a>,t=<a href="mailto:sip%3A001@192.168.2.26">sip:001@192.168.2.26</a>,ft=d7293f4c) on hash 3194</div>
<div>Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=ffffffffffffffff</div><div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is <sip:192.168.2.26;lr=on;did=a7c.89bac22></div><div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is <sip:192.168.2.26;lr=on;did=a7c.79bac22></div>
<div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is <sip:192.168.2.26;lr=on;did=a7c.69bac22></div><div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is <sip:192.168.2.26;lr=on;did=a7c.59bac22></div>
<div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is <sip:192.168.2.26;lr=on;did=a7c.49bac22></div><div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is <sip:192.168.2.26;lr=on;did=a7c.39bac22></div>
<div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: current rr is <sip:192.168.2.26;lr=on;did=a7c.29bac22></div><div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: skipping 0 route records</div><div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: out rr [<sip:192.168.2.26;lr=on;did=a7c.89bac22>,<sip:192.168.2.26;lr=on;did=a7c.79bac22>,<sip:192.168.2.26;lr=on;did=a7c.69bac22>,<sip:192.168.2.26;lr=on;did=a7c.59bac22>,<sip:192.168.2.26;lr=on;did=a7c.49bac22>,<sip:192.168.2.26;lr=on;did=a7c.39bac22>,<sip:192.168.2.26;lr=on;did=a7c.29bac22>]</div>
<div>Dec 16 15:26:50 [1349] DBG:core:print_rr_body: we have 7 records</div><div>Dec 16 15:26:50 [1349] DBG:dialog:init_leg_info: route_set <sip:192.168.2.26;lr=on;did=a7c.89bac22>,<sip:192.168.2.26;lr=on;did=a7c.79bac22>,<sip:192.168.2.26;lr=on;did=a7c.69bac22>,<sip:192.168.2.26;lr=on;did=a7c.59bac22>,<sip:192.168.2.26;lr=on;did=a7c.49bac22>,<sip:192.168.2.26;lr=on;did=a7c.39bac22>,<sip:192.168.2.26;lr=on;did=a7c.29bac22>, contact <a href="http://sip:sipclient1@192.168.2.15:5071">sip:sipclient1@192.168.2.15:5071</a>, cseq 1 and bind_addr udp:<a href="http://192.168.2.26:5060">192.168.2.26:5060</a></div>
<div>Dec 16 15:26:50 [1349] DBG:dialog:dlg_add_leg_info: set leg 0 for 0xb5bfd45c: tag=<d7293f4c> rcseq=<1></div><div>Dec 16 15:26:50 [1349] DBG:dialog:link_dlg: ref dlg 0xb5bfd45c with 3 -> 3</div><div>Dec 16 15:26:50 [1349] DBG:rr:add_rr_param: adding (;did=a7c.99bac22) 0x81af828</div>
<div>Dec 16 15:26:50 [1349] DBG:dialog:get_dlg_timeout: invalid AVP value, use default timeout</div><div>Dec 16 15:26:50 [1349] DBG:tm:run_reqin_callbacks: trans=0xb5bfc578, callback type 1, id 0 entered</div><div>Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=78</div>
<div>Dec 16 15:26:50 [1349] DBG:core:parse_headers: flags=ffffffffffffffff</div><div>Dec 16 15:26:50 [1349] DBG:core:check_ip_address: params 192.168.2.26, 192.168.2.26, 0</div><div>Dec 16 15:26:50 [1349] DBG:core:_shm_resize: resize(0) called</div>
<div>Dec 16 15:26:50 [1349] DBG:tm:_reply_light: reply sent out. buf=0x81b0e5c: SIP/2.0 1..., shmem=0xb5bfee3c: SIP/2.0 1</div><div>Dec 16 15:26:50 [1349] DBG:tm:_reply_light: finished</div><div>new branch at <a href="mailto:sip%3A001@192.168.2.26">sip:001@192.168.2.26</a></div>
<div>Dec 16 15:26:50 [1349] DBG:core:mk_proxy: doing DNS lookup...</div><div>Dec 16 15:26:50 [1349] DBG:core:check_ip_address: params 192.168.2.26, 192.168.2.26, 0</div><div>Dec 16 15:26:50 [1349] DBG:tm:set_timer: relative timeout is 500000</div>
<div>Dec 16 15:26:50 [1349] DBG:tm:insert_timer_unsafe: [4]: 0xb5bfc6c4 (10400000)</div><div>Dec 16 15:26:50 [1349] DBG:tm:set_timer: relative timeout is 30</div><div>Dec 16 15:26:50 [1349] DBG:tm:insert_timer_unsafe: [0]: 0xb5bfc6e0 (39)</div>
<div>Dec 16 15:26:50 [1349] DBG:tm:t_relay_to: new transaction fwd'ed</div><div><br></div><div><br></div><div>and it comes again and again, in infinite loop. Call should be sent to 192.168.2.19 IP but it never does. even wireshark shows nothing.</div>
<div><br></div>My configuration is as following</div><div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
if(!lookup("location","m")) {</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
if (!load_gws()) {</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
sl_send_reply("503" , "Unable to load gateways");</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
exit;</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
}</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
}</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
route(2);</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
exit;</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<br></blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<br></blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<br></blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
route [2] {</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
if (is_method("INVITE"))</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
{</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
t_on_branch("2");</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
t_on_reply("2");</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
t_on_failure("2");</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
}</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
if (!t_relay())</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
{</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
sl_reply_error();</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
}</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
exit;</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
}</blockquote><div> </div><div><br>Regards,<br><br>Saeed Akhtar<br><br>
</div></div>