Make sure that from_uri is NULL and not a white space. Please copy the mailing list in your reply.
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas osas@voipembedded.com wrote:
Is your R-URI starting with a '0'? You have defined a single route for all '0' prefix destinations.
yes R-URI is starting with 0.
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:06 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
On 02/19/2009 05:34 PM, Asim Riaz wrote:
Hello, 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, any idea ?
run kamailio with higher debug mode (e.g., debug=5) in configuration file.
You should get more debug messages in the syslog, that may give you some hints. look for lines containing 'lcr'.
Cheers, Daniel
Hi Daniel, I tried higher debug level, not getting anything related to LCR all i am getting XLOG messages "unable to find Gateway".
Thanks,
Asim
kamctl lcr show
lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 9 | 0 | | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateways
+------------+---------------+------+------------+-----------+--------+-------+------+-------+ | gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip | tag | flags |
+------------+---------------+------+------------+-----------+--------+-------+------+-------+ | XXXX | XXXX | 5060 | 1 | 1 | 1 | 0 | | 0 |
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
my routing script
if(!load_gws()) { xlog("L_INFO", "[ROUTE-X] Unable To Find Gateway "); sl_send_reply("503", "unable to find gateway"); exit; }
Thanks in advance.
Asim
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla http://www.asipto.com
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On Thu, Feb 19, 2009 at 4:27 PM, Ovidiu Sas osas@voipembedded.com wrote:
Make sure that from_uri is NULL and not a white space. Please copy the mailing list in your reply.
I tried from_uri with Null, still the same, not finding the gateway; dub-deg-sbc4:~/sip-tests/test# kamctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 0 | NULL | 1 | 1 | +----+--------+----------+--------+----------+
Thanks,
Asim
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas osas@voipembedded.com
wrote:
Is your R-URI starting with a '0'? You have defined a single route for all '0' prefix destinations.
yes R-URI is starting with 0.
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:06 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
On 02/19/2009 05:34 PM, Asim Riaz wrote:
Hello, 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, any idea ?
run kamailio with higher debug mode (e.g., debug=5) in configuration file.
You should get more debug messages in the syslog, that may give you some hints. look for lines containing 'lcr'.
Cheers, Daniel
Hi Daniel, I tried higher debug level, not getting anything related to LCR all i am getting XLOG messages "unable to find Gateway".
Thanks,
Asim
kamctl lcr show
lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 9 | 0 | | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateways
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
| gw_name | ip_addr | port | uri_scheme | transport |
grp_id
| strip | tag | flags |
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
| XXXX | XXXX | 5060 | 1 | 1 | 1 | 0 | | 0 |
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
my routing script
if(!load_gws()) { xlog("L_INFO", "[ROUTE-X] Unable To Find Gateway "); sl_send_reply("503", "unable to find gateway"); exit; }
Thanks in advance.
Asim
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla http://www.asipto.com
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hey Asim, may be I'm asking you a stupid questiion, did you do kamctl lcr reload?
Best,
Gustavo On Thu, Feb 19, 2009 at 2:36 PM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:27 PM, Ovidiu Sas osas@voipembedded.com wrote:
Make sure that from_uri is NULL and not a white space. Please copy the mailing list in your reply.
I tried from_uri with Null, still the same, not finding the gateway; dub-deg-sbc4:~/sip-tests/test# kamctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 0 | NULL | 1 | 1 | +----+--------+----------+--------+----------+
Thanks,
Asim
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas osas@voipembedded.com
wrote:
Is your R-URI starting with a '0'? You have defined a single route for all '0' prefix destinations.
yes R-URI is starting with 0.
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:06 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
On 02/19/2009 05:34 PM, Asim Riaz wrote: > > Hello, > 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, any idea ?
run kamailio with higher debug mode (e.g., debug=5) in configuration file.
You should get more debug messages in the syslog, that may give you some hints. look for lines containing 'lcr'.
Cheers, Daniel
Hi Daniel, I tried higher debug level, not getting anything related to LCR all
i
am getting XLOG messages "unable to find Gateway".
Thanks,
Asim
> > kamctl lcr show > > lcr routes > +----+--------+----------+--------+----------+ > | id | prefix | from_uri | grp_id | priority | > +----+--------+----------+--------+----------+ > | 9 | 0 | | 1 | 1 | > +----+--------+----------+--------+----------+ > lcr gateways > > >
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
> | gw_name | ip_addr | port | uri_scheme | transport |
grp_id
> | > strip | tag | flags | > > >
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
> | XXXX | XXXX | 5060 | 1 | 1 | 1 | > 0 > | | 0 | > > >
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
> > > > my routing script > > if(!load_gws()) { > xlog("L_INFO", "[ROUTE-X] Unable To Find Gateway "); > sl_send_reply("503", "unable to find gateway"); > exit; > } > Thanks in advance. > > Asim > >
> > _______________________________________________ > Kamailio (OpenSER) - Users mailing list > Users@lists.kamailio.org > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla http://www.asipto.com
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On Thu, Feb 19, 2009 at 4:39 PM, Gustavo Mistrinelli <gmistrinelli@gmail.com
wrote:
Hey Asim, may be I'm asking you a stupid questiion, did you do kamctl lcr reload?
Best,
Gustavo
Yes I did reload and i reload the kamailio server but still the same, the strange thing is this route was working before but when i added new routes, didnt work so i removed this route and added again and after that this route with 0 prefix stopped working.
Thanks,
Asim
On Thu, Feb 19, 2009 at 2:36 PM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:27 PM, Ovidiu Sas osas@voipembedded.comwrote:
Make sure that from_uri is NULL and not a white space. Please copy the mailing list in your reply.
I tried from_uri with Null, still the same, not finding the gateway; dub-deg-sbc4:~/sip-tests/test# kamctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 0 | NULL | 1 | 1 | +----+--------+----------+--------+----------+
Thanks,
Asim
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas osas@voipembedded.com
wrote:
Is your R-URI starting with a '0'? You have defined a single route for all '0' prefix destinations.
yes R-URI is starting with 0.
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:06 AM, Asim Riaz ariaz78@gmail.com
wrote:
On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla miconda@gmail.com wrote: > > Hello, > > On 02/19/2009 05:34 PM, Asim Riaz wrote: >> >> Hello, >> 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, any idea ? > > run kamailio with higher debug mode (e.g., debug=5) in
configuration
> file. > > You should get more debug messages in the syslog, that may give you > some > hints. look for lines containing 'lcr'. > > Cheers, > Daniel
Hi Daniel, I tried higher debug level, not getting anything related to LCR all
i
am getting XLOG messages "unable to find Gateway".
Thanks,
Asim
> >> >> kamctl lcr show >> >> lcr routes >> +----+--------+----------+--------+----------+ >> | id | prefix | from_uri | grp_id | priority | >> +----+--------+----------+--------+----------+ >> | 9 | 0 | | 1 | 1 | >> +----+--------+----------+--------+----------+ >> lcr gateways >> >> >>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
>> | gw_name | ip_addr | port | uri_scheme | transport |
grp_id
>> | >> strip | tag | flags | >> >> >>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
>> | XXXX | XXXX | 5060 | 1 | 1 | 1 | >> 0 >> | | 0 | >> >> >>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
>> >> >> >> my routing script >> >> if(!load_gws()) { >> xlog("L_INFO", "[ROUTE-X] Unable To Find Gateway "); >> sl_send_reply("503", "unable to find gateway"); >> exit; >> } >> Thanks in advance. >> >> Asim >> >>
>> >> _______________________________________________ >> Kamailio (OpenSER) - Users mailing list >> Users@lists.kamailio.org >> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users >> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users > > -- > Daniel-Constantin Mierla > http://www.asipto.com >
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Gustavo Mistrinelli
Check your fifo lcr_dump output to see what you have loaded in the tables.
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:44 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:39 PM, Gustavo Mistrinelli gmistrinelli@gmail.com wrote:
Hey Asim, may be I'm asking you a stupid questiion, did you do kamctl lcr reload?
Best,
Gustavo
Yes I did reload and i reload the kamailio server but still the same, the strange thing is this route was working before but when i added new routes, didnt work so i removed this route and added again and after that this route with 0 prefix stopped working.
Thanks,
Asim
On Thu, Feb 19, 2009 at 2:36 PM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:27 PM, Ovidiu Sas osas@voipembedded.com wrote:
Make sure that from_uri is NULL and not a white space. Please copy the mailing list in your reply.
I tried from_uri with Null, still the same, not finding the gateway; dub-deg-sbc4:~/sip-tests/test# kamctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 0 | NULL | 1 | 1 | +----+--------+----------+--------+----------+
Thanks,
Asim
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas osas@voipembedded.com wrote:
Is your R-URI starting with a '0'? You have defined a single route for all '0' prefix destinations.
yes R-URI is starting with 0.
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:06 AM, Asim Riaz ariaz78@gmail.com wrote: > > > On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla > miconda@gmail.com wrote: >> >> Hello, >> >> On 02/19/2009 05:34 PM, Asim Riaz wrote: >>> >>> Hello, >>> 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, any idea ? >> >> run kamailio with higher debug mode (e.g., debug=5) in >> configuration >> file. >> >> You should get more debug messages in the syslog, that may give >> you >> some >> hints. look for lines containing 'lcr'. >> >> Cheers, >> Daniel > > Hi Daniel, > I tried higher debug level, not getting anything related to LCR > all i > am > getting XLOG messages "unable to find Gateway". > > Thanks, > > Asim > >> >>> >>> kamctl lcr show >>> >>> lcr routes >>> +----+--------+----------+--------+----------+ >>> | id | prefix | from_uri | grp_id | priority | >>> +----+--------+----------+--------+----------+ >>> | 9 | 0 | | 1 | 1 | >>> +----+--------+----------+--------+----------+ >>> lcr gateways >>> >>> >>> >>> +------------+---------------+------+------------+-----------+--------+-------+------+-------+ >>> | gw_name | ip_addr | port | uri_scheme | transport | >>> grp_id >>> | >>> strip | tag | flags | >>> >>> >>> >>> +------------+---------------+------+------------+-----------+--------+-------+------+-------+ >>> | XXXX | XXXX | 5060 | 1 | 1 | 1 >>> | >>> 0 >>> | | 0 | >>> >>> >>> >>> +------------+---------------+------+------------+-----------+--------+-------+------+-------+ >>> >>> >>> >>> my routing script >>> >>> if(!load_gws()) { >>> xlog("L_INFO", "[ROUTE-X] Unable To Find Gateway "); >>> sl_send_reply("503", "unable to find gateway"); >>> exit; >>> } >>> Thanks in advance. >>> >>> Asim >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Kamailio (OpenSER) - Users mailing list >>> Users@lists.kamailio.org >>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users >>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users >> >> -- >> Daniel-Constantin Mierla >> http://www.asipto.com >> > > > _______________________________________________ > Kamailio (OpenSER) - Users mailing list > Users@lists.kamailio.org > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users >
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Gustavo Mistrinelli
it i On Thu, Feb 19, 2009 at 4:49 PM, Ovidiu Sas osas@voipembedded.com wrote:
Check your fifo lcr_dump output to see what you have loaded in the tables.
thats what i got from output, which seems ok . GW:: GRP_ID=1 URI=sip:X.X.X.X:5060;transport=udp STRIP=0 TAG= FLAGS=0 RULE:: PREFIX=0 FROM_URI=NULL GRP_ID=1 PRIORITY=1
Thanks Asim
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:44 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:39 PM, Gustavo Mistrinelli gmistrinelli@gmail.com wrote:
Hey Asim, may be I'm asking you a stupid questiion, did you do kamctl
lcr
reload?
Best,
Gustavo
Yes I did reload and i reload the kamailio server but still the same, the strange thing is this route was working before but when i added new
routes,
didnt work so i removed this route and added again and after that this
route
with 0 prefix stopped working.
Thanks,
Asim
On Thu, Feb 19, 2009 at 2:36 PM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:27 PM, Ovidiu Sas osas@voipembedded.com wrote:
Make sure that from_uri is NULL and not a white space. Please copy the mailing list in your reply.
I tried from_uri with Null, still the same, not finding the gateway; dub-deg-sbc4:~/sip-tests/test# kamctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 0 | NULL | 1 | 1 | +----+--------+----------+--------+----------+
Thanks,
Asim
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz ariaz78@gmail.com
wrote:
On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas osas@voipembedded.com wrote: > > Is your R-URI starting with a '0'? > You have defined a single route for all '0' prefix destinations.
yes R-URI is starting with 0. > > > Regards, > Ovidiu Sas > > On Thu, Feb 19, 2009 at 11:06 AM, Asim Riaz ariaz78@gmail.com > wrote: > > > > > > On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla > > miconda@gmail.com wrote: > >> > >> Hello, > >> > >> On 02/19/2009 05:34 PM, Asim Riaz wrote: > >>> > >>> Hello, > >>> 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, any idea ? > >> > >> run kamailio with higher debug mode (e.g., debug=5) in > >> configuration > >> file. > >> > >> You should get more debug messages in the syslog, that may give > >> you > >> some > >> hints. look for lines containing 'lcr'. > >> > >> Cheers, > >> Daniel > > > > Hi Daniel, > > I tried higher debug level, not getting anything related to LCR > > all i > > am > > getting XLOG messages "unable to find Gateway". > > > > Thanks, > > > > Asim > > > >> > >>> > >>> kamctl lcr show > >>> > >>> lcr routes > >>> +----+--------+----------+--------+----------+ > >>> | id | prefix | from_uri | grp_id | priority | > >>> +----+--------+----------+--------+----------+ > >>> | 9 | 0 | | 1 | 1 | > >>> +----+--------+----------+--------+----------+ > >>> lcr gateways > >>> > >>> > >>> > >>>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
> >>> | gw_name | ip_addr | port | uri_scheme | transport | > >>> grp_id > >>> | > >>> strip | tag | flags | > >>> > >>> > >>> > >>>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
> >>> | XXXX | XXXX | 5060 | 1 | 1 |
1
> >>> | > >>> 0 > >>> | | 0 | > >>> > >>> > >>> > >>>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
> >>> > >>> > >>> > >>> my routing script > >>> > >>> if(!load_gws()) { > >>> xlog("L_INFO", "[ROUTE-X] Unable To Find Gateway "); > >>> sl_send_reply("503", "unable to find gateway"); > >>> exit; > >>> } > >>> Thanks in advance. > >>> > >>> Asim > >>> > >>> > >>>
> >>> > >>> _______________________________________________ > >>> Kamailio (OpenSER) - Users mailing list > >>> Users@lists.kamailio.org > >>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > >>>
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
> >> > >> -- > >> Daniel-Constantin Mierla > >> http://www.asipto.com > >> > > > > > > _______________________________________________ > > Kamailio (OpenSER) - Users mailing list > > Users@lists.kamailio.org > > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users > >
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Gustavo Mistrinelli
Print the R-URI before invoking load_gws(). Make sure that it is not altered and it matches your roule.
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:54 AM, Asim Riaz ariaz78@gmail.com wrote:
it i On Thu, Feb 19, 2009 at 4:49 PM, Ovidiu Sas osas@voipembedded.com wrote:
Check your fifo lcr_dump output to see what you have loaded in the tables.
thats what i got from output, which seems ok . GW:: GRP_ID=1 URI=sip:X.X.X.X:5060;transport=udp STRIP=0 TAG= FLAGS=0 RULE:: PREFIX=0 FROM_URI=NULL GRP_ID=1 PRIORITY=1
Thanks Asim
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:44 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:39 PM, Gustavo Mistrinelli gmistrinelli@gmail.com wrote:
Hey Asim, may be I'm asking you a stupid questiion, did you do kamctl lcr reload?
Best,
Gustavo
Yes I did reload and i reload the kamailio server but still the same, the strange thing is this route was working before but when i added new routes, didnt work so i removed this route and added again and after that this route with 0 prefix stopped working.
Thanks,
Asim
On Thu, Feb 19, 2009 at 2:36 PM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:27 PM, Ovidiu Sas osas@voipembedded.com wrote:
Make sure that from_uri is NULL and not a white space. Please copy the mailing list in your reply.
I tried from_uri with Null, still the same, not finding the gateway; dub-deg-sbc4:~/sip-tests/test# kamctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 0 | NULL | 1 | 1 | +----+--------+----------+--------+----------+
Thanks,
Asim
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz ariaz78@gmail.com wrote: > > > On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas osas@voipembedded.com > wrote: >> >> Is your R-URI starting with a '0'? >> You have defined a single route for all '0' prefix destinations. > > yes R-URI is starting with 0. >> >> >> Regards, >> Ovidiu Sas >> >> On Thu, Feb 19, 2009 at 11:06 AM, Asim Riaz ariaz78@gmail.com >> wrote: >> > >> > >> > On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla >> > miconda@gmail.com wrote: >> >> >> >> Hello, >> >> >> >> On 02/19/2009 05:34 PM, Asim Riaz wrote: >> >>> >> >>> Hello, >> >>> 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, any idea ? >> >> >> >> run kamailio with higher debug mode (e.g., debug=5) in >> >> configuration >> >> file. >> >> >> >> You should get more debug messages in the syslog, that may give >> >> you >> >> some >> >> hints. look for lines containing 'lcr'. >> >> >> >> Cheers, >> >> Daniel >> > >> > Hi Daniel, >> > I tried higher debug level, not getting anything related to LCR >> > all i >> > am >> > getting XLOG messages "unable to find Gateway". >> > >> > Thanks, >> > >> > Asim >> > >> >> >> >>> >> >>> kamctl lcr show >> >>> >> >>> lcr routes >> >>> +----+--------+----------+--------+----------+ >> >>> | id | prefix | from_uri | grp_id | priority | >> >>> +----+--------+----------+--------+----------+ >> >>> | 9 | 0 | | 1 | 1 | >> >>> +----+--------+----------+--------+----------+ >> >>> lcr gateways >> >>> >> >>> >> >>> >> >>> >> >>> +------------+---------------+------+------------+-----------+--------+-------+------+-------+ >> >>> | gw_name | ip_addr | port | uri_scheme | transport | >> >>> grp_id >> >>> | >> >>> strip | tag | flags | >> >>> >> >>> >> >>> >> >>> >> >>> +------------+---------------+------+------------+-----------+--------+-------+------+-------+ >> >>> | XXXX | XXXX | 5060 | 1 | 1 | >> >>> 1 >> >>> | >> >>> 0 >> >>> | | 0 | >> >>> >> >>> >> >>> >> >>> >> >>> +------------+---------------+------+------------+-----------+--------+-------+------+-------+ >> >>> >> >>> >> >>> >> >>> my routing script >> >>> >> >>> if(!load_gws()) { >> >>> xlog("L_INFO", "[ROUTE-X] Unable To Find Gateway "); >> >>> sl_send_reply("503", "unable to find gateway"); >> >>> exit; >> >>> } >> >>> Thanks in advance. >> >>> >> >>> Asim >> >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------ >> >>> >> >>> _______________________________________________ >> >>> Kamailio (OpenSER) - Users mailing list >> >>> Users@lists.kamailio.org >> >>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users >> >>> >> >>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users >> >> >> >> -- >> >> Daniel-Constantin Mierla >> >> http://www.asipto.com >> >> >> > >> > >> > _______________________________________________ >> > Kamailio (OpenSER) - Users mailing list >> > Users@lists.kamailio.org >> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users >> > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users >> > > >
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Gustavo Mistrinelli
On Thu, Feb 19, 2009 at 4:58 PM, Ovidiu Sas osas@voipembedded.com wrote:
Print the R-URI before invoking load_gws(). Make sure that it is not altered and it matches your roule.
Regards, Ovidiu Sas
I printed the R-URI, its not changing in the route before i am invoking load_gws()
kamailio log: [ROUTE-3] Sending r-uri to Route-4 : 0XXXXXX kamailio log: [ROUTE-4] unable to find gateway for r-uri: 0XXXXXX
Thanks,
Asim
On Thu, Feb 19, 2009 at 11:54 AM, Asim Riaz ariaz78@gmail.com wrote:
it i On Thu, Feb 19, 2009 at 4:49 PM, Ovidiu Sas osas@voipembedded.com
wrote:
Check your fifo lcr_dump output to see what you have loaded in the
tables.
thats what i got from output, which seems ok . GW:: GRP_ID=1 URI=sip:X.X.X.X:5060;transport=udp STRIP=0 TAG= FLAGS=0 RULE:: PREFIX=0 FROM_URI=NULL GRP_ID=1 PRIORITY=1
Thanks Asim
Regards, Ovidiu Sas
On Thu, Feb 19, 2009 at 11:44 AM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 4:39 PM, Gustavo Mistrinelli gmistrinelli@gmail.com wrote:
Hey Asim, may be I'm asking you a stupid questiion, did you do kamctl lcr reload?
Best,
Gustavo
Yes I did reload and i reload the kamailio server but still the same, the strange thing is this route was working before but when i added new routes, didnt work so i removed this route and added again and after that this route with 0 prefix stopped working.
Thanks,
Asim
On Thu, Feb 19, 2009 at 2:36 PM, Asim Riaz ariaz78@gmail.com
wrote:
On Thu, Feb 19, 2009 at 4:27 PM, Ovidiu Sas osas@voipembedded.com wrote: > > Make sure that from_uri is NULL and not a white space. > Please copy the mailing list in your reply.
I tried from_uri with Null, still the same, not finding the
gateway;
dub-deg-sbc4:~/sip-tests/test# kamctl lcr show lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 10 | 0 | NULL | 1 | 1 | +----+--------+----------+--------+----------+
Thanks,
Asim > > > Regards, > Ovidiu Sas > > On Thu, Feb 19, 2009 at 11:25 AM, Asim Riaz ariaz78@gmail.com > wrote: > > > > > > On Thu, Feb 19, 2009 at 4:16 PM, Ovidiu Sas <
osas@voipembedded.com>
> > wrote: > >> > >> Is your R-URI starting with a '0'? > >> You have defined a single route for all '0' prefix destinations. > > > > yes R-URI is starting with 0. > >> > >> > >> Regards, > >> Ovidiu Sas > >> > >> On Thu, Feb 19, 2009 at 11:06 AM, Asim Riaz ariaz78@gmail.com > >> wrote: > >> > > >> > > >> > On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla > >> > miconda@gmail.com wrote: > >> >> > >> >> Hello, > >> >> > >> >> On 02/19/2009 05:34 PM, Asim Riaz wrote: > >> >>> > >> >>> Hello, > >> >>> 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, any idea ? > >> >> > >> >> run kamailio with higher debug mode (e.g., debug=5) in > >> >> configuration > >> >> file. > >> >> > >> >> You should get more debug messages in the syslog, that may
give
> >> >> you > >> >> some > >> >> hints. look for lines containing 'lcr'. > >> >> > >> >> Cheers, > >> >> Daniel > >> > > >> > Hi Daniel, > >> > I tried higher debug level, not getting anything related to
LCR
> >> > all i > >> > am > >> > getting XLOG messages "unable to find Gateway". > >> > > >> > Thanks, > >> > > >> > Asim > >> > > >> >> > >> >>> > >> >>> kamctl lcr show > >> >>> > >> >>> lcr routes > >> >>> +----+--------+----------+--------+----------+ > >> >>> | id | prefix | from_uri | grp_id | priority | > >> >>> +----+--------+----------+--------+----------+ > >> >>> | 9 | 0 | | 1 | 1 | > >> >>> +----+--------+----------+--------+----------+ > >> >>> lcr gateways > >> >>> > >> >>> > >> >>> > >> >>> > >> >>>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
> >> >>> | gw_name | ip_addr | port | uri_scheme | transport
|
> >> >>> grp_id > >> >>> | > >> >>> strip | tag | flags | > >> >>> > >> >>> > >> >>> > >> >>> > >> >>>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
> >> >>> | XXXX | XXXX | 5060 | 1 | 1 | > >> >>> 1 > >> >>> | > >> >>> 0 > >> >>> | | 0 | > >> >>> > >> >>> > >> >>> > >> >>> > >> >>>
+------------+---------------+------+------------+-----------+--------+-------+------+-------+
> >> >>> > >> >>> > >> >>> > >> >>> my routing script > >> >>> > >> >>> if(!load_gws()) { > >> >>> xlog("L_INFO", "[ROUTE-X] Unable To Find Gateway "); > >> >>> sl_send_reply("503", "unable to find
gateway");
> >> >>> exit; > >> >>> } > >> >>> Thanks in advance. > >> >>> > >> >>> Asim > >> >>> > >> >>> > >> >>> > >> >>>
> >> >>> > >> >>> _______________________________________________ > >> >>> Kamailio (OpenSER) - Users mailing list > >> >>> Users@lists.kamailio.org > >> >>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > >> >>> > >> >>>
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
> >> >> > >> >> -- > >> >> Daniel-Constantin Mierla > >> >> http://www.asipto.com > >> >> > >> > > >> > > >> > _______________________________________________ > >> > Kamailio (OpenSER) - Users mailing list > >> > Users@lists.kamailio.org > >> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > >> >
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
> >> > > > > >
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Gustavo Mistrinelli
Asim Riaz writes:
thats what i got from output, which seems ok . GW:: GRP_ID=1 URI=sip:X.X.X.X:5060;transport=udp STRIP=0 TAG= FLAGS=0 RULE:: PREFIX=0 FROM_URI=NULL GRP_ID=1 PRIORITY=1
i don't have version 1.4 of lcr module in my laptop, but in order to find out if there is a bug, for example, in hash table lookup code, you should show the whole output lcr_dump, i.e., show all routes and gateways.
or are you saying that if the two entries is the full output of lcr_dump, calling load_gws() on an r-uri where userpart is numeric and starts with 09, does not find any gws?
-- juha
On Thu, Feb 19, 2009 at 8:13 PM, Juha Heinanen jh@tutpro.com wrote:
Asim Riaz writes:
thats what i got from output, which seems ok . GW:: GRP_ID=1 URI=sip:X.X.X.X:5060;transport=udp STRIP=0 TAG= FLAGS=0 RULE:: PREFIX=0 FROM_URI=NULL GRP_ID=1 PRIORITY=1
i don't have version 1.4 of lcr module in my laptop, but in order to find out if there is a bug, for example, in hash table lookup code, you should show the whole output lcr_dump, i.e., show all routes and gateways.
or are you saying that if the two entries is the full output of lcr_dump, calling load_gws() on an r-uri where userpart is numeric and starts with 09, does not find any gws?
yes two entries are the full output of lcr_dump, userpart of ruri is starting from 0 but it does not find gateway. tried to increased the debug level but not getting anything related to lcr.
Thanks, Asim
-- juha
On Thu, Feb 19, 2009 at 11:57 PM, Asim Riaz ariaz78@gmail.com wrote:
On Thu, Feb 19, 2009 at 8:13 PM, Juha Heinanen jh@tutpro.com wrote:
Asim Riaz writes:
thats what i got from output, which seems ok . GW:: GRP_ID=1 URI=sip:X.X.X.X:5060;transport=udp STRIP=0 TAG= FLAGS=0 RULE:: PREFIX=0 FROM_URI=NULL GRP_ID=1 PRIORITY=1
i don't have version 1.4 of lcr module in my laptop, but in order to find out if there is a bug, for example, in hash table lookup code, you should show the whole output lcr_dump, i.e., show all routes and gateways.
or are you saying that if the two entries is the full output of lcr_dump, calling load_gws() on an r-uri where userpart is numeric and starts with 09, does not find any gws?
yes two entries are the full output of lcr_dump, userpart of ruri is starting from 0 but it does not find gateway. tried to increased the debug level but not getting anything related to lcr.
Is there a way i can check if the Kamailio is loading the GW from the DB? I know i can print the gw_uri_avp but that i think only contains matching GW not all the GW in the DB.
Thanks,
Asim
Thanks, Asim
-- juha
Asim Riaz writes:
Is there a way i can check if the Kamailio is loading the GW from the DB?
kamailio loads the gws from db when it is started and when you execute lcr_reload mi command.
lcr module does print dbg message to syslog when it loads a gw.
-- juha
Asim Riaz writes:
yes two entries are the full output of lcr_dump, userpart of ruri is starting from 0 but it does not find gateway. tried to increased the debug level but not getting anything related to lcr.
asim,
i just tested with trunk version of kamailio and 0 prefix worked fine. i had
root@taimen:~# kamctl fifo lcr_gw_dump GW:: GRP_ID=4 IP_ADD=195.10.20.1 HOSTNAME= PORT=5060 SCHEME=sip TRANSPORT=udp STRIP=0 TAG= WEIGHT=1 FLAGS=35 PING=0 root@taimen:~# kamctl fifo lcr_lcr_dump RULE:: PREFIX=0 FROM_URI= GRP_ID=4 PRIORITY=1 PREFIX_LENS:: PREFIX_LEN=1
in db i have from_uri field NULL.
when i made a call to 0162345670, i got to syslog
Feb 21 07:11:48 taimen /usr/sbin/kamailio[7856]: INFO: Routing initial INVITE to sip:0162345670@195.10.20.1:5060 and <<null>>
i.e., kamailio found the above gw for this number and tried to send invite to it.
as said, i cannot currently test with 1.4 version.
-- juha
On Sat, Feb 21, 2009 at 5:16 AM, Juha Heinanen jh@tutpro.com wrote:
Asim Riaz writes:
yes two entries are the full output of lcr_dump, userpart of ruri is starting from 0 but it does not find gateway. tried to increased the
debug
level but not getting anything related to lcr.
asim,
i just tested with trunk version of kamailio and 0 prefix worked fine. i had
root@taimen:~# kamctl fifo lcr_gw_dump GW:: GRP_ID=4 IP_ADD=195.10.20.1 HOSTNAME= PORT=5060 SCHEME=sip TRANSPORT=udp STRIP=0 TAG= WEIGHT=1 FLAGS=35 PING=0 root@taimen:~# kamctl fifo lcr_lcr_dump RULE:: PREFIX=0 FROM_URI= GRP_ID=4 PRIORITY=1 PREFIX_LENS:: PREFIX_LEN=1
in db i have from_uri field NULL.
when i made a call to 0162345670, i got to syslog
Feb 21 07:11:48 taimen /usr/sbin/kamailio[7856]: INFO: Routing initial INVITE to sip:0162345670@195.10.20.1:5060 and <<null>>
i.e., kamailio found the above gw for this number and tried to send invite to it.
as said, i cannot currently test with 1.4 version.
-- juha
Hi Juha, could you please confirm which version you are using in your test, could you please run the same test with version 1.4 whenever you can and let me know.
Thanks, Asim.
On Sat, Feb 21, 2009 at 5:16 AM, Juha Heinanen jh@tutpro.com wrote:
Asim Riaz writes:
yes two entries are the full output of lcr_dump, userpart of ruri is starting from 0 but it does not find gateway. tried to increased the
debug
level but not getting anything related to lcr.
asim,
i just tested with trunk version of kamailio and 0 prefix worked fine. i had
root@taimen:~# kamctl fifo lcr_gw_dump GW:: GRP_ID=4 IP_ADD=195.10.20.1 HOSTNAME= PORT=5060 SCHEME=sip TRANSPORT=udp STRIP=0 TAG= WEIGHT=1 FLAGS=35 PING=0 root@taimen:~# kamctl fifo lcr_lcr_dump RULE:: PREFIX=0 FROM_URI= GRP_ID=4 PRIORITY=1 PREFIX_LENS:: PREFIX_LEN=1
in db i have from_uri field NULL.
when i made a call to 0162345670, i got to syslog
Feb 21 07:11:48 taimen /usr/sbin/kamailio[7856]: INFO: Routing initial INVITE to sip:0162345670@195.10.20.1:5060 and <<null>>
i.e., kamailio found the above gw for this number and tried to send invite to it.
as said, i cannot currently test with 1.4 version.
-- juha
Hi Juha, could you please send your configuration for the lcr so i can compare to with my config just to make sure nothing wrong in my kamailio.cfg
Thanks,
Asim
Asim Riaz writes:
could you please send your configuration for the lcr so i can compare to with my config just to make sure nothing wrong in my kamailio.cfg
i first call load_gws on an uri that i want to use to make gw selection. if that call succeeds, i call next_gw() and if that call succeeds, i have found at least one gw for the uri.
-- juha
for example:
if (!load_gws("$ru")) { xlog("L_ERR", "ERROR: Cannot load gws for $rm <$ru>\n"); sl_send_reply("500", "Server Internal Error - Cannot load gateways"); exit; }; if (!next_gw()) { xlog("L_WARN", "WARN: No gateways for $rm <$ru>\n"); sl_send_reply("503", "Service not available - No gateways"); exit; };