Really banging my head here, so any help is much appreciated.  I am
doing some interop work on various devices, and one is causing some
problems, and I can't seem to tell why.  The problem is
that the 401 is going back to 5060, not the port the device is coming
through NAT from.<br>
<br>
U <a href="http://76.102.118.209:1296">76.102.118.209:1296</a> -&gt; <a href="http://10.251.27.180:5060">10.251.27.180:5060</a><br>
REGISTER sip:<a href="http://vidtel.com:5060">vidtel.com:5060</a> SIP/2.0.<br>
To: &quot;Daniel Goepp&quot; &lt;<a href="mailto:sip%3A2007@vidtel.com">sip:2007@vidtel.com</a>&gt;.<br>
From: &quot;Daniel Goepp&quot; &lt;<a href="mailto:sip%3A2007@vidtel.com">sip:2007@vidtel.com</a>&gt;;tag=868361b7108d.<br>
Contact: &quot;Daniel Goepp&quot; &lt;<a href="http://sip:2007@192.168.1.115:5060">sip:2007@192.168.1.115:5060</a>&gt;.<br>
Call-ID: <a href="mailto:c6fe66a3a272-4a136765ae26@192.168.1.115">c6fe66a3a272-4a136765ae26@192.168.1.115</a>.<br>
CSeq: 27 REGISTER.<br>
User-Agent: AVSR-C3-ME/1.0.1.ME.149.<br>
Via: SIP/2.0/UDP 192.168.1.115:5060;branch=z9hG4bK-828683511-102.<br>
Max-Forwards: 70.<br>
Expires: 3600.<br>
Content-Length: 0.<br>
<br>
U <a href="http://10.251.27.180:5060">10.251.27.180:5060</a> -&gt; <a href="http://76.102.118.209:5060">76.102.118.209:5060</a><br>
SIP/2.0 401 Unauthorized.<br>
To: &quot;Daniel Goepp&quot; &lt;<a href="mailto:sip%3A2007@vidtel.com">sip:2007@vidtel.com</a>&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.7365.<br>
From: &quot;Daniel Goepp&quot; &lt;<a href="mailto:sip%3A2007@vidtel.com">sip:2007@vidtel.com</a>&gt;;tag=868361b7108d.<br>
Call-ID: <a href="mailto:c6fe66a3a272-4a136765ae26@192.168.1.115">c6fe66a3a272-4a136765ae26@192.168.1.115</a>.<br>
CSeq: 27 REGISTER.<br>
Via: SIP/2.0/UDP 192.168.1.115:5060;branch=z9hG4bK-828683511-102;received=76.102.118.209.<br>
WWW-Authenticate: Digest realm=&quot;<a href="http://vidtel.com">vidtel.com</a>&quot;, nonce=&quot;4af0cca800000047afe210458683fcb29c42c67bbfd52f53&quot;.<br>
Server: OpenSIPS (1.6.0-notls (i386/linux)).<br>
Content-Length: 0.<br>
<br>
I&#39;m fixing contact info in my config:<br>
<br>
        if (nat_uac_test(&quot;3&quot;)) {<br>
                setbflag(6); # Mark as NATed<br>
                if (is_method(&quot;REGISTER&quot;)) {<br>
                        fix_nated_contact();<br>
                }<br>
        }<br>
<br>I&#39;m interested in any input on how the destination port of the response is being figured here.  I have several different devices hitting this server with very similar signaling, coming from behind NAT, that don&#39;t have this problem.<br>
<br>Thanks<br>
<br>-dg<br>