Hi,<br><br>Ya, REGISTER request is coming from internal port 5065.<br><br><div class="gmail_quote">On Mon, Dec 15, 2008 at 6:31 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is the REGISTER request also coming from internal port 5065?<br>
<br>
Krunal Patel wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Hi,<br>
<br>
I am having an UAC behind NAT.<br>
When I send call to openser, openser does NAT traversal & detects external IP & port.<br>
As per trace I found that UAC sends request from some internal port and router sends to openser with some other external port.<br>
external port is : 50034<br>
internal port is : 5065<br>
So openser sends 183 progress .. to 5065 instead of external port 50034.<br>
<br>
Here is the sip trace:<br>
<br>
U XXX.XXX.XXX.XXX:50034 -> YYY.YYY.YYY.YYY:5060<br>
INVITE sip:TO_NUM@domain SIP/2.0.<br>
Via: SIP/2.0/UDP [INTERNAL_IP]:5065;branch=<br>
z9hG4bK-a0646ab7.<br>
From: "FROM_NUM" <sip:FROM_NUM@domain>;tag=45a59ea2bc86747fo0.<br>
To: <sip:TO_NUM@domain>.<br>
...<br>
<br>
U YYY.YYY.YYY.YYY:5060 -> XXX.XXX.XXX.XXX:50034<br>
SIP/2.0 407 Proxy Authentication Required.<br>
Via: SIP/2.0/UDP [INTERNAL_IP]:5065;branch=z9hG4bK-a0646ab7;rport=50034;received=XXX.XXX.XXX.XXX.<br>
From: "FROM_NUM" <sip:FROM_NUM@domain>;tag=45a59ea2bc86747fo0.<br>
To: <sip:TO_NUM@domain>;tag=b802e73ab92fec121a4f880263d541a3.b5ab.<br>
...<br>
<br>
U XXX.XXX.XXX.XXX:50034 -> YYY.YYY.YYY.YYY:5060<br>
ACK sip:TO_NUM@domain SIP/2.0.<br>
Via: SIP/2.0/UDP [INTERNAL_IP]:5065;branch=z9hG4bK-a0646ab7.<br>
From: "FROM_NUM" <sip:FROM_NUM@domain>;tag=45a59ea2bc86747fo0.<br>
To: <sip:TO_NUM@domain>;tag=b802e73ab92fec121a4f880263d541a3.b5ab.<br>
...<br>
<br>
U XXX.XXX.XXX.XXX:50034 -> YYY.YYY.YYY.YYY:5060<br>
INVITE sip:TO_NUM@domain SIP/2.0.<br>
Via: SIP/2.0/UDP [INTERNAL_IP]:5065;branch=z9hG4bK-a85eb9f3.<br>
From: "FROM_NUM" <sip:FROM_NUM@domain>;tag=45a59ea2bc86747fo0.<br>
To: <sip:TO_NUM@domain>.<br>
...<br>
<br>
U YYY.YYY.YYY.YYY:5060 -> ZZZ.ZZZ.ZZZ.ZZZ:5060<br>
INVITE sip:TO_NUM@ZZZ.ZZZ.ZZZ.ZZZ:5060;transport=udp SIP/2.0.<br>
Record-Route: <sip:TO_NUM@domain:5060;nat=yes;ftag=45a59ea2bc86747fo0;lr=on>.<br>
Via: SIP/2.0/UDP YYY.YYY.YYY.YYY;branch=z9hG4bKf644.351975f.0.<br>
Via: SIP/2.0/UDP [INTERNAL_IP]:5065;rport=50034;received=XXX.XXX.XXX.XXX;branch=z9hG4bK-a85eb9f3.<br>
From: "FROM_NUM" <sip:FROM_NUM@domain>;tag=45a59ea2bc86747fo0.<br>
To: <sip:TO_NUM@domain>.<br>
...<br>
<br>
U ZZZ.ZZZ.ZZZ.ZZZ:5060 -> YYY.YYY.YYY.YYY:5060<br>
SIP/2.0 100 Trying.<br>
Call-ID: df9cc79e-ffa2ffb3@[INTERNAL_IP].<br>
CSeq: 102 INVITE.<br>
From: "FROM_NUM" <sip:FROM_NUM@domain>;tag=45a59ea2bc86747fo0.<br>
To: <sip:TO_NUM@domain>;tag=3eddfbdb7400749.<br>
...<br>
U ZZZ.ZZZ.ZZZ.ZZZ:5060 -> YYY.YYY.YYY.YYY:5060<br>
SIP/2.0 183 Session Progress.<br>
Call-ID: df9cc79e-ffa2ffb3@[INTERNAL_IP].<br>
CSeq: 102 INVITE.<br>
From: "FROM_NUM" <sip:FROM_NUM@domain>;tag=45a59ea2bc86747fo0.<br>
To: <sip:TO_NUM@domain>;tag=3eddfbdb7400749.<br>
...<br>
<br>
U YYY.YYY.YYY.YYY:5060 -> XXX.XXX.XXX.XXX:5065<br>
SIP/2.0 183 Session Progress.<br>
Call-ID: df9cc79e-ffa2ffb3@[INTERNAL_IP].<br>
CSeq: 102 INVITE.<br>
From: "FROM_NUM" <sip:FROM_NUM@domain>;tag=45a59ea2bc86747fo0.<br>
To: <sip:TO_NUM@domain>;tag=3eddfbdb7400749.<br>
...<br>
<br>
here is snippet from cfg:<br>
<br>
route[3]<br>
{<br>
# invite route<br>
if(nat_uac_test("19") )<br>
{<br>
setbflag(6); #Changed from 7 to 6 on 28-May-2008<br>
force_rport();<br>
fix_nated_contact();<br>
}<br>
# .......skipped other<br>
}<br>
<br>
onreply_route[1] {<br>
if (isbflagset(6) || isbflagset(7)) {<br>
if (status =~ "(180)|(183)|2[0-9][0-9]") {<br>
#xlog("----------- USE MEDIA PROXY ---------- \n ");<br>
use_media_proxy();<br>
force_rport();<br>
}<br>
}<br>
<br>
if (nat_uac_test("19")) {<br>
fix_nated_contact();<br>
}<br>
}<br>
<br>
Please let me know what I am doing wrong?<br>
<br>
Thanks in Advance!!<br>
<br>
--<br>
Krunal Patel<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">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>
<br>
<br>
-- <br>
Alex Balashov<br>
Evariste Systems<br>
Web : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel : (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
Mobile : (+1) (706) 338-8599<br>
</blockquote></div><br>