[OpenSIPS-Users] Loose_route error (Attempt to route with preloaded Route's )

Christian Cambier cca at voxtron.com
Tue Nov 13 17:31:35 CET 2012


Hi.

I have following architecture:
UAC (SipPhone) with extension: 5006
PBX: 10.0.2.16

Registration without a proxy works fine

Now, I configure the OpenSIPS proxy, start the service and confirm that
the service is listening to the specified ports in the config file
As well IP-address of proxy: 10.0.4.34 
I add the domain and user in mysql
Results:
                mysql> select * from domain;

                +----+-----------+---------------------+

                | id | domain    | last_modified       |

                +----+-----------+---------------------+

                |  1 | 10.0.4.34 | 2012-11-13 15:24:23 |

                +----+-----------+---------------------+

                1 row in set (0.00 sec)

                mysql> select * from subscriber;

 
+----+----------+-----------+----------+---------------+----------------
------------------+----------------------------------+------+

                | id | username | domain    | password | email_address |
ha1                              | ha1b                             |
rpid |

 
+----+----------+-----------+----------+---------------+----------------
------------------+----------------------------------+------+

                |  1 | 5006     | 10.0.4.34 | 5006     |               |
9d576f5a62c6bc6e46b20d1b6d9e2ad7 | c33ca435f9c3c8b87a11b013c32df2c8 |
NULL |

 
+----+----------+-----------+----------+---------------+----------------
------------------+----------------------------------+------+

                1 row in set (0.00 sec)



then I specifiy the proxy in the REGISTER message of the UAC

REGISTER sip:10.0.2.16:5060 SIP/2.0 
Via: SIP/2.0/TCP
10.0.4.6:58852;rport;branch=z9hG4bKPjdcef2304105a48a79193e5ff0a105f4c 
Route: <sip:10.0.4.34:5060;transport=TCP;lr> 
Max-Forwards: 70 
From: "cid5006"
<sip:5006 at 10.0.2.16>;tag=cefdc25fa17b49a9aa0acc1cc238db6f 
To: "cid5006" <sip:5006 at 10.0.2.16> 
Call-ID: a55aa4c7f9a44021a8da359d333b1f89 
CSeq: 11777 REGISTER 
User-Agent: VoxtronSipPhone_01.00.009.001 
Supported: outbound, path 
Contact: "cid5006"
<sip:5006 at 10.0.4.6:5081;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:u
uid:00000000-0000-0000-0000-000064bc79c6>" 
Expires: 300 
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY,
REFER, MESSAGE, OPTIONS 
Content-Length: 0 

but get a response

SIP/2.0 403 Preload Route denied 
Via: SIP/2.0/TCP
10.0.4.6:58852;received=10.0.4.6;rport=58852;branch=z9hG4bKPjdcef2304105
a48a79193e5ff0a105f4c 
From: "cid5006"
<sip:5006 at 10.0.2.16>;tag=cefdc25fa17b49a9aa0acc1cc238db6f 
To: "cid5006"
<sip:5006 at 10.0.2.16>;tag=cb89901742d7fa34dfcce4fffa472cde.a917 
Call-ID: a55aa4c7f9a44021a8da359d333b1f89 
CSeq: 11777 REGISTER 
Server: OpenSIPS (1.8.0-notls (x86_64/linux)) 
Content-Length: 0 

Logfile /var/log/opensips.log displays the following
   "Attempt to route with preloaded Route's
[sip:5006 at 10.0.2.16/sip:5006 at 10.0.2.16/sip:10.0.2.16:5060/10f06ccee2134c
57868ed1ed25008784]
<mailto:[sip:5006 at 10.0.2.16/sip:5006 at 10.0.2.16/sip:10.0.2.16:5060/10f06c
cee2134c57868ed1ed25008784%5d> "

That line comes from the config file:
                # preloaded route checking

                if (loose_route()) {

                                xlog("L_ERR",

                                "Attempt to route with preloaded Route's
[$fu/$tu/$ru/$ci] (modified by cca)");

                                if (!is_method("ACK"))

 
sl_send_reply("403","Preload Route denied");

                                exit;

                }

 

Apparently I have a 'loose_route'... what does it mean?
How do I solve this?

Thx

Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121113/5d4611b7/attachment.htm>


More information about the Users mailing list