<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi.<br>
<br>
I have following architecture:<br>
UAC (SipPhone) with extension: 5006<br>
PBX: 10.0.2.16<br>
<br>
Registration without a proxy works fine<br>
<br>
Now, I configure the OpenSIPS proxy, start the service and confirm that the
service is listening to the specified ports in the config file<br>
As well IP-address of proxy: 10.0.4.34 <br>
I add the domain and user in mysql<br>
Results:<br>
mysql>
select * from domain;<o:p></o:p></p>
<p class=MsoNormal> +----+-----------+---------------------+<o:p></o:p></p>
<p class=MsoNormal> |
id | domain |
last_modified |<o:p></o:p></p>
<p class=MsoNormal> +----+-----------+---------------------+<o:p></o:p></p>
<p class=MsoNormal> |
1 | 10.0.4.34 | 2012-11-13 15:24:23 |<o:p></o:p></p>
<p class=MsoNormal> +----+-----------+---------------------+<o:p></o:p></p>
<p class=MsoNormal> 1
row in set (0.00 sec)<br>
<br>
mysql>
select * from subscriber;<o:p></o:p></p>
<p class=MsoNormal> +----+----------+-----------+----------+---------------+----------------------------------+----------------------------------+------+<o:p></o:p></p>
<p class=MsoNormal> |
id | username | domain | password | email_address |
ha1
| ha1b
| rpid |<o:p></o:p></p>
<p class=MsoNormal> +----+----------+-----------+----------+---------------+----------------------------------+----------------------------------+------+<o:p></o:p></p>
<p class=MsoNormal> |
1 | 5006 | 10.0.4.34 | 5006
|
| 9d576f5a62c6bc6e46b20d1b6d9e2ad7 | c33ca435f9c3c8b87a11b013c32df2c8 | NULL |<o:p></o:p></p>
<p class=MsoNormal> +----+----------+-----------+----------+---------------+----------------------------------+----------------------------------+------+<o:p></o:p></p>
<p class=MsoNormal> 1
row in set (0.00 sec)<br>
<br>
<o:p></o:p></p>
<p class=MsoNormal>then I specifiy the proxy in the REGISTER message of the UAC<br>
<br>
<span style='font-family:"Courier New";color:black;background:white'>REGISTER
sip:10.0.2.16:5060 SIP/2.0<span class=apple-converted-space> </span></span><span
style='font-family:"Courier New";color:black'><br>
<span style='background:white'>Via: SIP/2.0/TCP
10.0.4.6:58852;rport;branch=z9hG4bKPjdcef2304105a48a79193e5ff0a105f4c<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>Route:
<sip:10.0.4.34:5060;transport=TCP;lr><span class=apple-converted-space> </span></span><br>
<span style='background:white'>Max-Forwards: 70<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>From: "cid5006"
<sip:5006@10.0.2.16>;tag=cefdc25fa17b49a9aa0acc1cc238db6f<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>To: "cid5006"
<sip:5006@10.0.2.16><span class=apple-converted-space> </span></span><br>
<span style='background:white'>Call-ID: a55aa4c7f9a44021a8da359d333b1f89<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>CSeq: 11777 REGISTER<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>User-Agent: VoxtronSipPhone_01.00.009.001<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>Supported: outbound, path<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>Contact: "cid5006"
<sip:5006@10.0.4.6:5081;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-000064bc79c6>"<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>Expires: 300<span class=apple-converted-space> </span></span><br>
<span style='background:white'>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE,
SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<span class=apple-converted-space> </span></span><br>
<span style='background:white'>Content-Length: 0<span
class=apple-converted-space> <br>
<br>
but get a response<br>
<br>
</span>SIP/2.0 403 Preload Route denied<span class=apple-converted-space> </span></span><br>
<span style='background:white'>Via: SIP/2.0/TCP
10.0.4.6:58852;received=10.0.4.6;rport=58852;branch=z9hG4bKPjdcef2304105a48a79193e5ff0a105f4c<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>From: "cid5006"
<sip:5006@10.0.2.16>;tag=cefdc25fa17b49a9aa0acc1cc238db6f<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>To: "cid5006"
<sip:5006@10.0.2.16>;tag=cb89901742d7fa34dfcce4fffa472cde.a917<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>Call-ID: a55aa4c7f9a44021a8da359d333b1f89<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>CSeq: 11777 REGISTER<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>Server: OpenSIPS (1.8.0-notls (x86_64/linux))<span
class=apple-converted-space> </span></span><br>
<span style='background:white'>Content-Length: 0<span
class=apple-converted-space> <br>
<br>
Logfile /var/log/opensips.log displays the following<br>
</span></span></span> "Attempt to route with preloaded Route's
<a
href="mailto:[sip:5006@10.0.2.16/sip:5006@10.0.2.16/sip:10.0.2.16:5060/10f06ccee2134c57868ed1ed25008784%5d">[sip:5006@10.0.2.16/sip:5006@10.0.2.16/sip:10.0.2.16:5060/10f06ccee2134c57868ed1ed25008784]</a>"<br>
<br>
That line comes from the config file:<br>
#
preloaded route checking<o:p></o:p></p>
<p class=MsoNormal> if
(loose_route()) {<o:p></o:p></p>
<p class=MsoNormal> xlog("L_ERR",<o:p></o:p></p>
<p class=MsoNormal> "Attempt
to route with preloaded Route's [$fu/$tu/$ru/$ci] (modified by cca)");<o:p></o:p></p>
<p class=MsoNormal> if
(!is_method("ACK"))<o:p></o:p></p>
<p class=MsoNormal> sl_send_reply("403","Preload
Route denied");<o:p></o:p></p>
<p class=MsoNormal> exit;<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Apparently I have a 'loose_route'… what does it mean?<br>
How do I solve this?<br>
<br>
Thx<br>
<br>
Chris<o:p></o:p></p>
</div>
</body>
</html>