I see that the third 200 OK is edited by my OpenSIPS/Proxy server but that is because in the location table in the "received" field I stored the received Public IP address so that the replies are sent to the Public IP address of the device instead of the private IP that was in the original contact header.
<br />
<br />
<br />
<br />On , Ali Pey &lt;alipey@gmail.com&gt; wrote:
<br />&gt; Examine the Contact header of the 200 OK. That&#39;s where this usually gets messed up.
<br />&gt; 
<br />&gt; Regards,
<br />&gt; Ali Pey
<br />&gt; 
<br />&gt; On Wed, Jul 4, 2012 at 3:49 PM, Duane Larson duane.larson@gmail.com&gt; wrote:
<br />&gt; 
<br />&gt; 
<br />&gt; I have the following scenario
<br />&gt;  
<br />&gt;          
<br />&gt; LAN  OpenSIPS/SBC  INTERNET  OpenSIPS/Proxy
<br />&gt; 
<br />&gt; 
<br />&gt;  
<br />&gt;  
<br />&gt; I have the OpenSIPS/SBC device because the firewall that is protecting the LAN doesn&#39;t play well with SIP.  It has the following IPs (LAN = 192.168.88.1), WAN (99.xx.xx.161).
<br />&gt; 
<br />&gt; 
<br />&gt;  
<br />&gt; The OpenSIPS/Proxy device sits on the internet and has the following IP 50.xx.xx.156.
<br />&gt;  
<br />&gt; All of the devices on the LAN point to the OpenSIPS/SBC as their proxy and then the OpenSIPS/SBC relays all requests to the OpenSIPS/Proxy.
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt;  
<br />&gt; The issue I am seeing is that when a call is set up after the Callee sends the 200 OK the Caller sends the ACK but the ACK is never getting to the Callee.  So the Callee keeps sending 200 OKs and eventually when someone hangs up the other person doesn&#39;t know.
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt;  
<br />&gt; I see that when the Caller sends the ACK it is sent to the OpenSIPS/SBC LAN address, then the OpenSIPS/SBC sends the ACK to the OpenSIPS/Proxy, then the OpenSIPS/Proxy sends it back to the OpenSIPS/SBC WAN address.  All of that is good but the next thing that happens is that the OpenSIPS/SBC sends the ACK not to the Callee but to its WAN interface.  I know this has something to do with my VIA headers but I am not sure how my config is messed up.
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt;  
<br />&gt;  
<br />&gt; Here is the siptrace of the call
<br />&gt;  
<br />&gt; http://pastebin.com/wpbut5Nb
<br />&gt;  
<br />&gt; Here is the current config on the OpenSIPS/SBC box
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt;  
<br />&gt; http://pastebin.com/PsahZEX3
<br />&gt;  
<br />&gt;  
<br />&gt; Any ideas where I&#39;ve messed up?
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; _______________________________________________
<br />&gt; 
<br />&gt; 
<br />&gt; Users mailing list
<br />&gt; 
<br />&gt; 
<br />&gt; Users@lists.opensips.org
<br />&gt; 
<br />&gt; 
<br />&gt; http://lists.opensips.org/cgi-bin/mailman/listinfo/users
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt; 
<br />&gt;