<br><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 4:27 PM, Ovidiu Sas <span dir="ltr">&lt;<a href="mailto:osas@voipembedded.com">osas@voipembedded.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;">
Make sure that from_uri is NULL and not a white space.<br>
Please copy the mailing list in your reply.</blockquote><div><br>&nbsp;I tried from_uri with Null, still the same, not finding the gateway;<br>dub-deg-sbc4:~/sip-tests/test# kamctl lcr show<br>lcr routes<br>+----+--------+----------+--------+----------+<br>
| id | prefix | from_uri | grp_id | priority |<br>+----+--------+----------+--------+----------+<br>| 10 | 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | NULL&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 | <br>+----+--------+----------+--------+----------+<br><br>Thanks,<br><br>Asim <br>
</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>
Regards,<br>
<font color="#888888">Ovidiu Sas<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz &lt;<a href="mailto:ariaz78@gmail.com">ariaz78@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas &lt;<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Is your R-URI starting with a &#39;0&#39;?<br>
&gt;&gt; You have defined a single route for all &#39;0&#39; prefix destinations.<br>
&gt;<br>
&gt; yes R-URI is starting with 0.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Ovidiu Sas<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Feb 19, 2009 at 11:06 AM, Asim Riaz &lt;<a href="mailto:ariaz78@gmail.com">ariaz78@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla<br>
&gt;&gt; &gt; &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hello,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On 02/19/2009 05:34 PM, Asim Riaz wrote:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Hello,<br>
&gt;&gt; &gt;&gt;&gt; I am using LCR, for some reason load_gws() function is not finding the<br>
&gt;&gt; &gt;&gt;&gt; gateway in DB, it was working in the start then added some more routes<br>
&gt;&gt; &gt;&gt;&gt; and<br>
&gt;&gt; &gt;&gt;&gt; after that everything stopped working, I am not sure where to start<br>
&gt;&gt; &gt;&gt;&gt; troubleshooting, &nbsp;any idea ?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; run kamailio with higher debug mode (e.g., debug=5) in configuration<br>
&gt;&gt; &gt;&gt; file.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; You should get more debug messages in the syslog, that may give you<br>
&gt;&gt; &gt;&gt; some<br>
&gt;&gt; &gt;&gt; hints. look for lines containing &#39;lcr&#39;.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Cheers,<br>
&gt;&gt; &gt;&gt; Daniel<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hi Daniel,<br>
&gt;&gt; &gt; I tried &nbsp;higher debug level, not getting anything related to LCR all i<br>
&gt;&gt; &gt; am<br>
&gt;&gt; &gt; getting XLOG messages &quot;unable to find Gateway&quot;.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Asim<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; kamctl lcr show<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; lcr routes<br>
&gt;&gt; &gt;&gt;&gt; +----+--------+----------+--------+----------+<br>
&gt;&gt; &gt;&gt;&gt; | id | prefix | from_uri | grp_id | priority |<br>
&gt;&gt; &gt;&gt;&gt; +----+--------+----------+--------+----------+<br>
&gt;&gt; &gt;&gt;&gt; | &nbsp;9 | 0 &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp;1 | &nbsp; &nbsp; &nbsp; &nbsp;1 |<br>
&gt;&gt; &gt;&gt;&gt; +----+--------+----------+--------+----------+<br>
&gt;&gt; &gt;&gt;&gt; lcr gateways<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; +------------+---------------+------+------------+-----------+--------+-------+------+-------+<br>
&gt;&gt; &gt;&gt;&gt; | gw_name &nbsp; &nbsp;| ip_addr &nbsp; &nbsp; &nbsp; | port | uri_scheme | transport | grp_id<br>
&gt;&gt; &gt;&gt;&gt; |<br>
&gt;&gt; &gt;&gt;&gt; strip | tag &nbsp;| flags |<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; +------------+---------------+------+------------+-----------+--------+-------+------+-------+<br>
&gt;&gt; &gt;&gt;&gt; | XXXX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | XXXX | 5060 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 | &nbsp; &nbsp; &nbsp; &nbsp; 1 | &nbsp; &nbsp; &nbsp;1 |<br>
&gt;&gt; &gt;&gt;&gt; 0<br>
&gt;&gt; &gt;&gt;&gt; | &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; 0 |<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; +------------+---------------+------+------------+-----------+--------+-------+------+-------+<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; my routing script<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(!load_gws()) {<br>
&gt;&gt; &gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; xlog(&quot;L_INFO&quot;, &quot;[ROUTE-X] Unable To Find Gateway &quot;);<br>
&gt;&gt; &gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply(&quot;503&quot;, &quot;unable to find gateway&quot;);<br>
&gt;&gt; &gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;<br>
&gt;&gt; &gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
&gt;&gt; &gt;&gt;&gt; Thanks in advance.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Asim<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; ------------------------------------------------------------------------<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; Kamailio (OpenSER) - Users mailing list<br>
&gt;&gt; &gt;&gt;&gt; <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
&gt;&gt; &gt;&gt;&gt; <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;&gt; &gt;&gt;&gt; <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>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Daniel-Constantin Mierla<br>
&gt;&gt; &gt;&gt; <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Kamailio (OpenSER) - Users mailing list<br>
&gt;&gt; &gt; <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
&gt;&gt; &gt; <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;&gt; &gt; <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>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>