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">&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;</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 &amp; detects external IP &amp; port.<br>
As per trace I found that &nbsp;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 -&gt; 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: &quot;FROM_NUM&quot; &lt;sip:FROM_NUM@domain&gt;;tag=45a59ea2bc86747fo0.<br>
To: &lt;sip:TO_NUM@domain&gt;.<br>
...<br>
<br>
U YYY.YYY.YYY.YYY:5060 -&gt; 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: &quot;FROM_NUM&quot; &lt;sip:FROM_NUM@domain&gt;;tag=45a59ea2bc86747fo0.<br>
To: &lt;sip:TO_NUM@domain&gt;;tag=b802e73ab92fec121a4f880263d541a3.b5ab.<br>
...<br>
<br>
U XXX.XXX.XXX.XXX:50034 -&gt; 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: &quot;FROM_NUM&quot; &lt;sip:FROM_NUM@domain&gt;;tag=45a59ea2bc86747fo0.<br>
To: &lt;sip:TO_NUM@domain&gt;;tag=b802e73ab92fec121a4f880263d541a3.b5ab.<br>
...<br>
<br>
U XXX.XXX.XXX.XXX:50034 -&gt; 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: &quot;FROM_NUM&quot; &lt;sip:FROM_NUM@domain&gt;;tag=45a59ea2bc86747fo0.<br>
To: &lt;sip:TO_NUM@domain&gt;.<br>
...<br>
<br>
U YYY.YYY.YYY.YYY:5060 -&gt; ZZZ.ZZZ.ZZZ.ZZZ:5060<br>
INVITE sip:TO_NUM@ZZZ.ZZZ.ZZZ.ZZZ:5060;transport=udp SIP/2.0.<br>
Record-Route: &lt;sip:TO_NUM@domain:5060;nat=yes;ftag=45a59ea2bc86747fo0;lr=on&gt;.<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: &quot;FROM_NUM&quot; &lt;sip:FROM_NUM@domain&gt;;tag=45a59ea2bc86747fo0.<br>
To: &lt;sip:TO_NUM@domain&gt;.<br>
...<br>
<br>
U ZZZ.ZZZ.ZZZ.ZZZ:5060 -&gt; YYY.YYY.YYY.YYY:5060<br>
SIP/2.0 100 Trying.<br>
Call-ID: df9cc79e-ffa2ffb3@[INTERNAL_IP].<br>
CSeq: 102 INVITE.<br>
From: &quot;FROM_NUM&quot; &lt;sip:FROM_NUM@domain&gt;;tag=45a59ea2bc86747fo0.<br>
To: &lt;sip:TO_NUM@domain&gt;;tag=3eddfbdb7400749.<br>
...<br>
U ZZZ.ZZZ.ZZZ.ZZZ:5060 -&gt; 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: &quot;FROM_NUM&quot; &lt;sip:FROM_NUM@domain&gt;;tag=45a59ea2bc86747fo0.<br>
To: &lt;sip:TO_NUM@domain&gt;;tag=3eddfbdb7400749.<br>
...<br>
<br>
U YYY.YYY.YYY.YYY:5060 -&gt; 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: &quot;FROM_NUM&quot; &lt;sip:FROM_NUM@domain&gt;;tag=45a59ea2bc86747fo0.<br>
To: &lt;sip:TO_NUM@domain&gt;;tag=3eddfbdb7400749.<br>
...<br>
<br>
here is snippet from cfg:<br>
<br>
route[3]<br>
{<br>
 &nbsp; &nbsp;# invite route<br>
 &nbsp; &nbsp; &nbsp; &nbsp;if(nat_uac_test(&quot;19&quot;) )<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setbflag(6); #Changed from 7 to 6 on 28-May-2008<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; force_rport();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fix_nated_contact();<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
 &nbsp; &nbsp; &nbsp;# .......skipped other<br>
}<br>
<br>
onreply_route[1] {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (isbflagset(6) || isbflagset(7)) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (status =~ &quot;(180)|(183)|2[0-9][0-9]&quot;) &nbsp;{<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#xlog(&quot;----------- USE MEDIA PROXY ---------- \n &quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;use_media_proxy();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;force_rport();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
 &nbsp; &nbsp; &nbsp; if (nat_uac_test(&quot;19&quot;)) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fix_nated_contact();<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<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 &nbsp; &nbsp;: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel &nbsp; &nbsp;: (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
Mobile : (+1) (706) 338-8599<br>
</blockquote></div><br>