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