Hi Bogdan,<div><br></div><div>I figured that out after I went through the SIP rfc in more detail. Thanks for your help though.</div><div><br></div><div>james</div><div><br></div><div><br><div class="gmail_quote">On Fri, Oct 22, 2010 at 7:04 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi James,<br>
<br>
As I see, the INVITE has in URI <a href="mailto:sip%3Ajames@198.168.0.1">sip:james@198.168.0.1</a><br>
<div class="im"><br>
        INVITE <a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a> SIP/2.0<br>
<br>
</div> without any port indication, so the default 5060 is assumed.  The proxy<br>
cannot automatically discover what&#39;s the right port on the next hop if<br>
not instructed by RURI or if not discovered via DNS SRV (not your case<br>
as you use IPs).<br>
<br>
So, the dialling party is the faulty one (<a href="http://198.162.0.1:9013" target="_blank">198.162.0.1:9013</a> ) as it does<br>
not provide a correct location of callee.<br>
<br>
Regards,<br>
Bogdan<br>
<div><div></div><div class="h5"><br>
James Mbuthia wrote:<br>
&gt; Hi guys,<br>
&gt;<br>
&gt; Hope you can help me out. I have a situation where my Opensips box is<br>
&gt; acting as a proxy/registration and location server. I have also<br>
&gt; changed my listening port from 5060 to 5059.<br>
&gt; The registration process works fine and my UAS gets a 200 response,<br>
&gt; its IP is <a href="http://198.162.0.1:1167" target="_blank">198.162.0.1:1167</a>.<br>
&gt;<br>
&gt; However am getting a Request Timeout problem because once the proxy<br>
&gt; successfuly authenticates the UAC its forwading the INVITE request to<br>
&gt; my ip:5060. Since opensips is not configured on that port it gets a<br>
&gt; 408 Request Time out. Below is a snapshot of the headers from a sip<br>
&gt; trace.<br>
&gt;<br>
&gt;<br>
&gt; udp:<a href="http://198.162.0.1:5059" target="_blank">198.162.0.1:5059</a> -&gt; udp:<a href="http://198.162.0.1:7013" target="_blank">198.162.0.1:7013</a><br>
&gt;<br>
&gt; SIP/2.0 407 Proxy Authentication Required<br>
&gt; Via: SIP/2.0/UDP 198.162.0.1:1167;rport=7013;branch=z9hG4bKynybt<br>
&gt; From:&lt;<a href="mailto:sip%3Ajm21@198.162.0.1">sip:jm21@198.162.0.1</a>&gt;;tag=2325231<br>
&gt; To:&lt;<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>&gt; ;tag=5594793ec2abca4d36972b7e2bfde24c.9363<br>
&gt; <a href="mailto:Call-ID%3AySuHeq@198.162.0.1">Call-ID:ySuHeq@198.162.0.1</a><br>
&gt; CSeq: 1 INVITE<br>
&gt; Proxy-Authenticate: Digest realm=&quot;198.162.0.1&quot;,<br>
&gt; nonce=&quot;4cb834020000000547477b91a54ae9e5a553b9b6b633d830&quot;<br>
&gt; Server: OpenSIPS (1.6.2-notls (i386/linux))<br>
&gt; Content-Length: 0<br>
&gt;<br>
&gt;<br>
&gt; udp:<a href="http://198.162.0.1:9013" target="_blank">198.162.0.1:9013</a> -&gt; udp:<a href="http://198.162.0.1:5059" target="_blank">198.162.0.1:5059</a><br>
&gt;<br>
&gt; INVITE <a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a> SIP/2.0<br>
&gt; Via: SIP/2.0/UDP 198.162.0.1:1167;rport=1645;branch=z9hG4bKynybt<br>
&gt; From:&lt;<a href="mailto:sip%3Ajm21@198.162.0.1">sip:jm21@198.162.0.1</a>&gt;;tag=2325231<br>
&gt; To:&lt;<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>&gt;<br>
&gt; <a href="mailto:Call-ID%3AySuHeq@198.162.0.1">Call-ID:ySuHeq@198.162.0.1</a><br>
&gt; CSeq: 3 INVITE<br>
&gt; Contact: &lt;<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>&gt;<br>
&gt; Proxy-Authorization: Digest username=&quot;jm21&quot;, realm=&quot;198.162.0.1&quot;,<br>
&gt; nonce=&quot;4cb834020000000547477b91a54ae9e5a553b9b6b633d830&quot;,<br>
&gt; uri=&quot;<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>&quot;,<br>
&gt; response=&quot;53a86a6afd0d9fc9a118cb4a304f75d6&quot;, algorithm=MD5<br>
&gt; Content-type: application/sdp<br>
&gt; Max-Forwards: 69<br>
&gt; Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE<br>
&gt;<br>
&gt;<br>
&gt; udp:<a href="http://198.162.0.1:5059" target="_blank">198.162.0.1:5059</a> -&gt; udp:<a href="http://198.162.0.1:5060" target="_blank">198.162.0.1:5060</a><br>
&gt;<br>
&gt; INVITE <a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a> SIP/2.0<br>
&gt; Record-Route: &lt;sip:198.162.0.1:5059;lr=on&gt;<br>
&gt; Via: SIP/2.0/UDP 198.162.0.1:5059;branch=z9hG4bKa8e9.181ea9f5.0<br>
&gt; Via: SIP/2.0/UDP<br>
&gt; 198.162.0.1:1167;received=198.162.0.1;rport=9013;branch=z9hG4bKynybt<br>
&gt; From:&lt;<a href="mailto:sip%3Ajm21@198.162.0.1">sip:jm21@198.162.0.1</a>&gt;;tag=2325231<br>
&gt; To:&lt;<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>&gt;<br>
&gt; <a href="mailto:Call-ID%3AySuHeq@198.162.0.1">Call-ID:ySuHeq@198.162.0.1</a><br>
&gt; CSeq: 3 INVITE<br>
&gt; Contact: &lt;<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>&gt;<br>
&gt; Content-type: application/sdp<br>
&gt; Max-Forwards: 69<br>
&gt; Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE<br>
&gt;<br>
&gt;<br>
&gt; udp:<a href="http://198.162.0.1:5059" target="_blank">198.162.0.1:5059</a> -&gt; udp:<a href="http://198.162.0.1:9013" target="_blank">198.162.0.1:9013</a><br>
&gt; SIP/2.0 408 Request Timeout<br>
&gt; Via: SIP/2.0/UDP 198.162.0.1:1167;rport=9013;branch=z9hG4bKynybt<br>
&gt; From:&lt;<a href="mailto:sip%3Ajm21@198.162.0.1">sip:jm21@198.162.0.1</a>&gt;;tag=2325231<br>
&gt; To:&lt;<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>&gt; ;tag=a2fc028f8d02e78ceae2b814452c9bc4-9363<br>
&gt; <a href="mailto:Call-ID%3AySuHeq@198.162.0.1">Call-ID:ySuHeq@198.162.0.1</a><br>
&gt; CSeq: 3 INVITE<br>
&gt; Server: OpenSIPS (1.6.2-notls (i386/linux))<br>
&gt; Content-Length: 0<br>
&gt;<br>
&gt;<br>
&gt; My question is, why is the proxy routing the request to<br>
&gt; <a href="http://198.162.0.1:5060" target="_blank">198.162.0.1:5060</a> even after Opensips is not listening on that port? Is<br>
&gt; it possible to get it to route the request to the UAS i.e<br>
&gt; <a href="http://198.162.0.1:1167" target="_blank">198.162.0.1:1167</a>?<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
15 - 19 November 2010, Edison, New Jersey, USA<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>