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"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></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'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>
> Hi guys,<br>
><br>
> Hope you can help me out. I have a situation where my Opensips box is<br>
> acting as a proxy/registration and location server. I have also<br>
> changed my listening port from 5060 to 5059.<br>
> The registration process works fine and my UAS gets a 200 response,<br>
> its IP is <a href="http://198.162.0.1:1167" target="_blank">198.162.0.1:1167</a>.<br>
><br>
> However am getting a Request Timeout problem because once the proxy<br>
> successfuly authenticates the UAC its forwading the INVITE request to<br>
> my ip:5060. Since opensips is not configured on that port it gets a<br>
> 408 Request Time out. Below is a snapshot of the headers from a sip<br>
> trace.<br>
><br>
><br>
> udp:<a href="http://198.162.0.1:5059" target="_blank">198.162.0.1:5059</a> -> udp:<a href="http://198.162.0.1:7013" target="_blank">198.162.0.1:7013</a><br>
><br>
> SIP/2.0 407 Proxy Authentication Required<br>
> Via: SIP/2.0/UDP 198.162.0.1:1167;rport=7013;branch=z9hG4bKynybt<br>
> From:<<a href="mailto:sip%3Ajm21@198.162.0.1">sip:jm21@198.162.0.1</a>>;tag=2325231<br>
> To:<<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>> ;tag=5594793ec2abca4d36972b7e2bfde24c.9363<br>
> <a href="mailto:Call-ID%3AySuHeq@198.162.0.1">Call-ID:ySuHeq@198.162.0.1</a><br>
> CSeq: 1 INVITE<br>
> Proxy-Authenticate: Digest realm="198.162.0.1",<br>
> nonce="4cb834020000000547477b91a54ae9e5a553b9b6b633d830"<br>
> Server: OpenSIPS (1.6.2-notls (i386/linux))<br>
> Content-Length: 0<br>
><br>
><br>
> udp:<a href="http://198.162.0.1:9013" target="_blank">198.162.0.1:9013</a> -> udp:<a href="http://198.162.0.1:5059" target="_blank">198.162.0.1:5059</a><br>
><br>
> INVITE <a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a> SIP/2.0<br>
> Via: SIP/2.0/UDP 198.162.0.1:1167;rport=1645;branch=z9hG4bKynybt<br>
> From:<<a href="mailto:sip%3Ajm21@198.162.0.1">sip:jm21@198.162.0.1</a>>;tag=2325231<br>
> To:<<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>><br>
> <a href="mailto:Call-ID%3AySuHeq@198.162.0.1">Call-ID:ySuHeq@198.162.0.1</a><br>
> CSeq: 3 INVITE<br>
> Contact: <<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>><br>
> Proxy-Authorization: Digest username="jm21", realm="198.162.0.1",<br>
> nonce="4cb834020000000547477b91a54ae9e5a553b9b6b633d830",<br>
> uri="<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>",<br>
> response="53a86a6afd0d9fc9a118cb4a304f75d6", algorithm=MD5<br>
> Content-type: application/sdp<br>
> Max-Forwards: 69<br>
> Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE<br>
><br>
><br>
> udp:<a href="http://198.162.0.1:5059" target="_blank">198.162.0.1:5059</a> -> udp:<a href="http://198.162.0.1:5060" target="_blank">198.162.0.1:5060</a><br>
><br>
> INVITE <a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a> SIP/2.0<br>
> Record-Route: <sip:198.162.0.1:5059;lr=on><br>
> Via: SIP/2.0/UDP 198.162.0.1:5059;branch=z9hG4bKa8e9.181ea9f5.0<br>
> Via: SIP/2.0/UDP<br>
> 198.162.0.1:1167;received=198.162.0.1;rport=9013;branch=z9hG4bKynybt<br>
> From:<<a href="mailto:sip%3Ajm21@198.162.0.1">sip:jm21@198.162.0.1</a>>;tag=2325231<br>
> To:<<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>><br>
> <a href="mailto:Call-ID%3AySuHeq@198.162.0.1">Call-ID:ySuHeq@198.162.0.1</a><br>
> CSeq: 3 INVITE<br>
> Contact: <<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>><br>
> Content-type: application/sdp<br>
> Max-Forwards: 69<br>
> Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE<br>
><br>
><br>
> udp:<a href="http://198.162.0.1:5059" target="_blank">198.162.0.1:5059</a> -> udp:<a href="http://198.162.0.1:9013" target="_blank">198.162.0.1:9013</a><br>
> SIP/2.0 408 Request Timeout<br>
> Via: SIP/2.0/UDP 198.162.0.1:1167;rport=9013;branch=z9hG4bKynybt<br>
> From:<<a href="mailto:sip%3Ajm21@198.162.0.1">sip:jm21@198.162.0.1</a>>;tag=2325231<br>
> To:<<a href="mailto:sip%3Ajames@198.162.0.1">sip:james@198.162.0.1</a>> ;tag=a2fc028f8d02e78ceae2b814452c9bc4-9363<br>
> <a href="mailto:Call-ID%3AySuHeq@198.162.0.1">Call-ID:ySuHeq@198.162.0.1</a><br>
> CSeq: 3 INVITE<br>
> Server: OpenSIPS (1.6.2-notls (i386/linux))<br>
> Content-Length: 0<br>
><br>
><br>
> My question is, why is the proxy routing the request to<br>
> <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>
> it possible to get it to route the request to the UAS i.e<br>
> <a href="http://198.162.0.1:1167" target="_blank">198.162.0.1:1167</a>?<br>
><br>
</div></div>> _______________________________________________<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>
><br>
><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>