Hello all,
I'm trying to configure the LCR module, but I'm running into a little problem, I don't get any errors but it is not routing the call properly, this is my lcr info:
openserctl lcr show database engine 'MYSQL' loaded Control engine 'FIFO' loaded lcr routes +----+--------+----------+--------+----------+ | id | prefix | from_uri | grp_id | priority | +----+--------+----------+--------+----------+ | 1 | 001 | | 1 | 1 | +----+--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 1 | GWs | +--------+----------+ lcr gateways +---------+---------------+------+------------+-----------+--------+-------+---------------+ | gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip | prefix | +---------+---------------+------+------------+-----------+--------+-------+---------------+ | USA | 1.2.3.4 | 5060 | 1 | 1 | 1 | 2 | 99 | +---------+---------------+------+------------+-----------+--------+-------+---------------+
I'm sending the following call:
Jun 14 07:49:31 rgi-sip /sbin/openser[9458]: DBG:core:parse_msg: SIP Request: Jun 14 07:49:31 rgi-sip /sbin/openser[9458]: DBG:core:parse_msg: method: <INVITE> Jun 14 07:49:31 rgi-sip /sbin/openser[9458]: DBG:core:parse_msg: uri: < sip:0013058883456@9.8.7.6:5060> Jun 14 07:49:31 rgi-sip /sbin/openser[9458]: DBG:core:parse_msg: version: <SIP/2.0>
my script says:
# routing to the public network if (!load_gws()) { xlog("L_INFO","LCR: Unable to load gateways"); sl_send_reply("503", "Unable to load gateways"); exit; }else{ xlog("L_INFO","LCR: Sending to $td\n"); }
if(!next_gw()){ sl_send_reply("503", "Unable to find a gateway"); exit; } t_on_failure("2"); if (!t_relay()) { sl_reply_error(); }; exit;
On the syslog i get the message:
LCR: Sending to 9.8.7.6 <-- This, although the IP is wrong, I KNOW it didn't fail loading the gateways...
where 9.8.7.6 if my sever's IP.
Why is it not matching?
Thanks a lot
David