I take that back.  That ACK does show up as a loose route, but I am still not sure why the RURI is getting changed<br><br><div class="gmail_quote">On Fri, Jul 6, 2012 at 10:26 PM,  <span dir="ltr">&lt;<a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">When comparing my sip trace to &quot; <a href="http://www.tech-invite.com/Ti-sip-dialog.html#inv-ok" target="_blank">http://www.tech-invite.com/Ti-sip-dialog.html#inv-ok</a> &quot; my 200OKs look right.  They are being routed based on their VIA headers.  The ACK messages don&#39;t look right when compared with the tech-invite website because the tech-invite websites ACK step doesn&#39;t have any Record-Route headers in them, only Route headers.  My first ACK looks right with the ROUTE headers, but after that ACK is processed by my OpenSIPS/SBC the ACK message that is passed on to the OpenSIPS/Proxy has a ton of Record-Route headers and the RURI doesn&#39;t have the same uri as the first ACK.  In my script I see that the ACK that comes from the caller is not being seen as a Loose Route so it is instead going to this part of my script
<br>
<br>                        if ( is_method(&quot;ACK&quot;) ) {
<br>                                if ( t_check_trans() ) {
<br>                                        # non loose-route, but stateful ACK; must be an ACK after
<br>                                        # a 487 or e.g. 404 from upstream server
<br>                                        force_send_socket(99.XX.XX.161:5060);
<br>                                        t_relay(&quot;udp:<a href="http://sip.XX.com:5060" target="_blank">sip.XX.com:5060</a>&quot;);
<br>                                        exit;
<br>
<br>
<br>Perhaps this is the issue.  Why would the ACK not show up as a loose route?  This would explain why Record-Route headers are showing up in the ACK that is sent on to the OpenSIPS/Proxy.
<br><div class="HOEnZb"><div class="h5">
<br>
<br>
<br>On , <a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a> wrote:
<br>&gt; I did not find the problem.  Yeah I&#39;ve been looking at that exact link to see what I am doing wrong.  When I don&#39;t have the OpenSIPS/SBC device in the equation, and a firewall that isn&#39;t a pain, my logic on the OpenSIPS/Proxy works without issue.  I&#39;ll have to look harder at the ACK and Route headers and see what is going wrong.  If anyone spots the issue let me know.
<br>&gt; 
<br>&gt; 
<br>&gt; 
<br>&gt; On , Ali Pey <a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt; wrote:
<br>&gt; &gt; Does this mean that you found the problem?
<br>&gt; &gt; 
<br>&gt; &gt; Basically you need to follow the Ack&#39;s request URI and Route headers to see why it&#39;s being routed the way it is and then you&#39;d know how to fix it. 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; This is a good example similar to your scenario that you can use as a reference: <a href="http://www.tech-invite.com/Ti-sip-dialog.html" target="_blank">http://www.tech-invite.com/Ti-sip-dialog.html</a> 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; Regards,
<br>&gt; &gt; Ali Pey
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; On Thu, Jul 5, 2012 at 10:18 PM,  <a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>&gt; wrote:
<br>&gt; &gt; 
<br>&gt; &gt; I see that the third 200 OK is edited by my OpenSIPS/Proxy server but that is because in the location table in the &quot;received&quot; 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>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; On , Ali Pey <a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt; wrote:
<br>&gt; &gt; 
<br>&gt; &gt; &gt; Examine the Contact header of the 200 OK. That&#39;s where this usually gets messed up.
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; Regards,
<br>&gt; &gt; 
<br>&gt; &gt; &gt; Ali Pey
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; On Wed, Jul 4, 2012 at 3:49 PM, Duane Larson <a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>&gt; wrote:
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; I have the following scenario
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt;          
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; LAN  OpenSIPS/SBC  INTERNET  OpenSIPS/Proxy
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &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; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt; The OpenSIPS/Proxy device sits on the internet and has the following IP 50.xx.xx.156.
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &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; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &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; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &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; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt; Here is the siptrace of the call
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt; <a href="http://pastebin.com/wpbut5Nb" target="_blank">http://pastebin.com/wpbut5Nb</a>
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt; Here is the current config on the OpenSIPS/SBC box
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt; <a href="http://pastebin.com/PsahZEX3" target="_blank">http://pastebin.com/PsahZEX3</a>
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt;  
<br>&gt; &gt; 
<br>&gt; &gt; &gt; Any ideas where I&#39;ve messed up?
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; _______________________________________________
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; Users mailing list
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; &gt;
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; _______________________________________________
<br>&gt; &gt; 
<br>&gt; &gt; Users mailing list
<br>&gt; &gt; 
<br>&gt; &gt; <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<br>&gt; &gt; 
<br>&gt; &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; &gt;</div></div></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>