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