<br><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 4:58 PM, Ovidiu Sas <span dir="ltr"><<a href="mailto:osas@voipembedded.com">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;">
Print the R-URI before invoking load_gws(). Make sure that it is not<br>
altered and it matches your roule.</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Regards,<br>
<font color="#888888">Ovidiu Sas</font></blockquote><div><div>I printed the R-URI, its not changing in the route before i am invoking load_gws()<br><br>
</div>kamailio log: [ROUTE-3] Sending r-uri to Route-4 : 0XXXXXX<br>kamailio log: [ROUTE-4] unable to find gateway for r-uri: 0XXXXXX <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;"><font color="#888888"><br>
</font><div><div></div><div class="Wj3C7c"><br>
On Thu, Feb 19, 2009 at 11:54 AM, Asim Riaz <<a href="mailto:ariaz78@gmail.com">ariaz78@gmail.com</a>> wrote:<br>
><br>
> it i<br>
> On Thu, Feb 19, 2009 at 4:49 PM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>> wrote:<br>
>><br>
>> Check your fifo lcr_dump output to see what you have loaded in the tables.<br>
><br>
><br>
> thats what i got from output, which seems ok .<br>
> GW:: GRP_ID=1 URI=sip:X.X.X.X:5060;transport=udp STRIP=0 TAG= FLAGS=0<br>
> RULE:: PREFIX=0 FROM_URI=NULL GRP_ID=1 PRIORITY=1<br>
><br>
> Thanks<br>
> Asim<br>
><br>
>><br>
>><br>
>> Regards,<br>
>> Ovidiu Sas<br>
>><br>
>> On Thu, Feb 19, 2009 at 11:44 AM, Asim Riaz <<a href="mailto:ariaz78@gmail.com">ariaz78@gmail.com</a>> wrote:<br>
>> ><br>
>> ><br>
>> > On Thu, Feb 19, 2009 at 4:39 PM, Gustavo Mistrinelli<br>
>> > <<a href="mailto:gmistrinelli@gmail.com">gmistrinelli@gmail.com</a>> wrote:<br>
>> >><br>
>> >> Hey Asim, may be I'm asking you a stupid questiion, did you do kamctl<br>
>> >> lcr<br>
>> >> reload?<br>
>> >><br>
>> >> Best,<br>
>> >><br>
>> >> Gustavo<br>
>> ><br>
>> > Yes I did reload and i reload the kamailio server but still the same,<br>
>> > the<br>
>> > strange thing is this route was working before but when i added new<br>
>> > routes,<br>
>> > didnt work so i removed this route and added again and after that this<br>
>> > route<br>
>> > with 0 prefix stopped working.<br>
>> ><br>
>> > Thanks,<br>
>> ><br>
>> > Asim<br>
>> >><br>
>> >> On Thu, Feb 19, 2009 at 2:36 PM, Asim Riaz <<a href="mailto:ariaz78@gmail.com">ariaz78@gmail.com</a>> wrote:<br>
>> >>><br>
>> >>><br>
>> >>> On Thu, Feb 19, 2009 at 4:27 PM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>><br>
>> >>> wrote:<br>
>> >>>><br>
>> >>>> Make sure that from_uri is NULL and not a white space.<br>
>> >>>> Please copy the mailing list in your reply.<br>
>> >>><br>
>> >>> 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 | NULL | 1 | 1 |<br>
>> >>> +----+--------+----------+--------+----------+<br>
>> >>><br>
>> >>> Thanks,<br>
>> >>><br>
>> >>> Asim<br>
>> >>>><br>
>> >>>><br>
>> >>>> Regards,<br>
>> >>>> Ovidiu Sas<br>
>> >>>><br>
>> >>>> On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz <<a href="mailto:ariaz78@gmail.com">ariaz78@gmail.com</a>><br>
>> >>>> wrote:<br>
>> >>>> ><br>
>> >>>> ><br>
>> >>>> > On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>><br>
>> >>>> > 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">ariaz78@gmail.com</a>><br>
>> >>>> >> wrote:<br>
>> >>>> >> ><br>
>> >>>> >> ><br>
>> >>>> >> > On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla<br>
>> >>>> >> > <<a href="mailto:miconda@gmail.com">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<br>
>> >>>> >> >>> finding the<br>
>> >>>> >> >>> gateway in DB, it was working in the start then added some<br>
>> >>>> >> >>> more<br>
>> >>>> >> >>> routes<br>
>> >>>> >> >>> and<br>
>> >>>> >> >>> after that everything stopped working, I am not sure where to<br>
>> >>>> >> >>> start<br>
>> >>>> >> >>> troubleshooting, any idea ?<br>
>> >>>> >> >><br>
>> >>>> >> >> run kamailio with higher debug mode (e.g., debug=5) in<br>
>> >>>> >> >> configuration<br>
>> >>>> >> >> file.<br>
>> >>>> >> >><br>
>> >>>> >> >> You should get more debug messages in the syslog, that may give<br>
>> >>>> >> >> 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<br>
>> >>>> >> > 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>
>> >>>> >> >>><br>
>> >>>> >> >>> +------------+---------------+------+------------+-----------+--------+-------+------+-------+<br>
>> >>>> >> >>> | gw_name | ip_addr | port | uri_scheme | transport |<br>
>> >>>> >> >>> grp_id<br>
>> >>>> >> >>> |<br>
>> >>>> >> >>> strip | tag | flags |<br>
>> >>>> >> >>><br>
>> >>>> >> >>><br>
>> >>>> >> >>><br>
>> >>>> >> >>><br>
>> >>>> >> >>> +------------+---------------+------+------------+-----------+--------+-------+------+-------+<br>
>> >>>> >> >>> | XXXX | XXXX | 5060 | 1 | 1 |<br>
>> >>>> >> >>> 1<br>
>> >>>> >> >>> |<br>
>> >>>> >> >>> 0<br>
>> >>>> >> >>> | | 0 |<br>
>> >>>> >> >>><br>
>> >>>> >> >>><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>
>> >>>> >> >>><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>
>> >>>> >> >>><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">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>
>> >>><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>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Gustavo Mistrinelli<br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br>