Dear all<br><br>I have a opensips/mediaproxy,run a basic script. Opensips/mediaproxy using public IP address, client behind NAT ( maybe Cisco PIX. i do not control the NAT box)<br><br>Everything works fine if i force opensips not listen on 5060, and clients mus not listen on port 5060 UDP.<br>
<br>If one client listen on port 5060, something wrong happens.<br>The NAT box do some very nasty things.<br><br>With fix_nated_contact and fix_contact, fix_nated_register, i can manage to place a call OK.<br><br>But I can not fix call tear down request.<br>
Here&#39;s a sip log when 02 client behind the same NAT box tried to call ok, then client_13 tried to tear down the call to client_12<br><br>UDP, client_13_WAN_IP:port  -&gt; opensipPublicIP:5080<br><br>BYE sip:opensipsIP:5080;ftag=59fbbd9a;lr=on;did=f12.8b280607 <br>
SIP/2.0..Via: SIP/2.0/UDP 10.0.0.115:5060;rport;branch=z9hG4bKde05e887e5..<br>From: &lt;sip:13@opensipsIP:5080&gt;;tag=0c46ffef..<br>To: 12&quot; &lt;sip:12@opensipsIP:5080&gt;;tag=59fbbd9a..Call-ID: <a href="mailto:21a6b8b248a7bf607d055ce36b157b34@10.0.0.96">21a6b8b248a7bf607d055ce36b157b34@10.0.0.96</a>..<br>
Route: &lt;<a href="http://sip:12@10.0.0.96:5060">sip:12@10.0.0.96:5060</a>&gt;..<br>Contact:&lt;<a href="http://sip:13@10.0.0.115:5060">sip:13@10.0.0.115:5060</a>&gt;..<br>CSeq: 801 BYE..<br>Max-Forwards: 70..<br>User-Agent: CM5K  (709190)..<br>
Content-Length: 0..<br><br><br>And here&#39;s opensips debug message<br><br> DBG:rr:after_strict: Next hop: &#39;<a href="http://sip:12@10.0.0.96:5060">sip:12@10.0.0.96:5060</a>&#39; is strict router<br><br>And then opensips send BYE message to <a href="http://10.0.0.96:5060">10.0.0.96:5060</a>, not to WANIP:Port of the destination client. Ofcourse the destination cound not receive BYE message, call tear down failed.<br>
<br>I tried to remove_hf, subst_uri, replace... the BYE message just after it enter routing script, but nothing works.<br><br>Please suggest me one way to get rid of this NAT box. Or the only solution is change both ports on opensips and clients?<br>
<br><br>Regards<br><br><br>