On Thu, Feb 19, 2009 at 4:12 PM, Daniel-Constantin Mierla <miconda(a)gmail.com
wrote:
>
>
> On 02/19/2009 06:06 PM, Asim Riaz wrote:
>
>>
>>
>> On Thu, Feb 19, 2009 at 3:53 PM, Daniel-Constantin Mierla <
>> miconda(a)gmail.com <mailto: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".
>>
>
> can you check if you have matching LCR rule for your call?
>
> Cheers,
> Daniel
I have only one LCR route entry for now with prefix 0 which is matching
the GW with ID 1, as mentioned below and the number I am dialing is starting
from 0 so i think it should match my route entry right ?
Thanks,
Asim
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(a)lists.kamailio.org <mailto: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(a)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