<br><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div class="Ih2E3d"><br>
<br>
On 02/19/2009 05:34 PM, Asim Riaz wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
I am using LCR, for some reason load_gws() function is not finding the gateway in DB, it was working in the start then added some more routes and after that everything stopped working, I am not sure where to start troubleshooting, &nbsp;any idea ?<br>

</blockquote>
<br></div>
run kamailio with higher debug mode (e.g., debug=5) in configuration file.<br>
<br>
You should get more debug messages in the syslog, that may give you some hints. look for lines containing &#39;lcr&#39;.<br>
<br>
Cheers,<br>
Daniel</blockquote><div><br>Hi Daniel,<br>I tried&nbsp; higher debug level, not getting anything related to LCR all i am getting XLOG messages &quot;unable to find Gateway&quot;.<br><br>Thanks,<br><br>Asim<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
<br>
kamctl lcr show<br>
<br>
lcr routes<br>
+----+--------+----------+--------+----------+<br>
| id | prefix | from_uri | grp_id | priority |<br>
+----+--------+----------+--------+----------+<br>
| &nbsp;9 | 0 &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp;1 | &nbsp; &nbsp; &nbsp; &nbsp;1 |<br>
+----+--------+----------+--------+----------+<br>
lcr gateways<br>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+<br>
| gw_name &nbsp; &nbsp;| ip_addr &nbsp; &nbsp; &nbsp; | port | uri_scheme | transport | grp_id | strip | tag &nbsp;| flags |<br>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+<br>
| XXXX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | XXXX | 5060 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 | &nbsp; &nbsp; &nbsp; &nbsp; 1 | &nbsp; &nbsp; &nbsp;1 | &nbsp; &nbsp; 0 | &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; 0 |<br>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+<br>
<br>
<br>
<br>
my routing script<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(!load_gws()) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; xlog(&quot;L_INFO&quot;, &quot;[ROUTE-X] Unable To Find Gateway &quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply(&quot;503&quot;, &quot;unable to find gateway&quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
Thanks in advance.<br>
<br>
Asim<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<br>
</blockquote></div><br>