My deepest apologies. After I&#39;d stuffed it into PasteBin an hour or so later (honestly) it told me it was suspicious of the content and wanted verification, which when I did, it told me the paste had been nuked already. Helpful.<br>
<br>The CORRECT PasteBin URI (and working as of _now_ ;) is: <a href="http://pastebin.com/b2FGgTRX">http://pastebin.com/b2FGgTRX</a><br><br>Thanks!<br><br> - Jock<br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 2:13 AM, Saúl Ibarra Corretgé <span dir="ltr">&lt;<a href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<div><div></div><div class="h5"><br>
On Aug 15, 2011, at 5:54 PM, Jock McKechnie wrote:<br>
<br>
&gt; Greetings all;<br>
&gt;<br>
&gt; We&#39;ve recently started rolling out MediaProxy devices at work and I&#39;ve noticed when we&#39;re chaining several systems together in a call path that the MediaProxy/OpenSIPS box likes to change the ACK header in a manner which breaks the calls. When MediaProxy gets the ACK it will remove the host information from the URI of the final SBC in the chain and instead replace it with the IP of the proxy that immediately follows the MediaProxy/OpenSIPS box... which, of course, the next OpenSIPS box then sees itself on the ACK and removes the host information, producing a broken ACK that the far-end carrier throws up their hands at and ignores.<br>

&gt;<br>
&gt; This is a little complicated, so bear with me, but the call flow looks like this (private IPs are for illustrative purposes only):<br>
&gt; Call source (currently an Asterisk machine) - 192.168.0.1 -&gt;<br>
&gt; OpenSIPS/MediaProxy system (v.1.7.0 and latest darcs MediaProxy source) - 192.168.1.1 -&gt;<br>
&gt; Local OpenSER proxy (v.<a href="tel:1.3.2%29%20-%20192.168.2.2" value="+13219216822">1.3.2) - 192.168.2.2</a> -&gt;<br>
&gt; Carrier proxy (Unknown type) - 10.5.5.5 -&gt;<br>
&gt; Carrier SBC (Sonus) - 10.10.10.10<br>
&gt;<br>
&gt; As I understand it, the ACK is supposed to be formatted like so:<br>
&gt; ACK sip:<a href="tel:%2B16415551212" value="+16415551212">+16415551212</a>@10.10.10.10:5060;transport=udp SIP/2.0<br>
&gt;<br>
&gt; Where the ACK has the IP address of the carrier&#39;s SBC that&#39;s at the very end of the call chain in its URI. Instead the MediaProxy/OpenSIPS box produces an ACK like so:<br>
&gt; ACK sip:<a href="tel:%2B16415551212" value="+16415551212">+16415551212</a>@192.168.2.2:5060;transport=udp SIP/2.0<br>
&gt;<br>
&gt; Which is the IP of the final proxy in our company that hands the calls off to the carrier. The proxy then strips its own IP out of the ACK and sends this to the carrier:<br>
&gt; ACK sip:10.5.5.5;lr;ftag=as6e98d5f7<br>
&gt;<br>
&gt; Without a user in the SIP URI and the wrong IP in the ACK, the carrier completely ignores this response and continues to send &#39;200 OK&#39;s which we don&#39;t respond to, so eventually the carrier terminates the call as it naturally assumes we went missing.<br>

&gt;<br>
&gt; I could sure use some suggestions. The OpenSER box is using a very simple &quot;accept and forward&quot; stateless configuration and its only job is to aggregate calls from several boxes behind it and send it on to a single carrier address (10.5.5.5). The OpenSIPS config includes MediaProxy and also a local dispatcher file to fail-over calls between local proxies. The MediaProxy config has tested good when used directly between Asterisk and the carrier proxy. If I connect Asterisk directly to the local proxy, the call works fine as there&#39;s no funny business going on with the ACKs w/o the OpenSIPS/MediaProxy box in between to rewrite the ACK.<br>

&gt;<br>
<br>
</div></div>MediaProxy only mangles the SDP, it never touches the RURI, so you can discard it as the culprit :-)<br>
<br>
There are many hops in the scenario you described, so the best would be to look at SIP traces and see which one of the hops is mangling the data in a bogus way and why.<br>
<div class="im"><br>
&gt; The MediaProxy config can be found on PasteBin (for some goofy reason pasting directly into gmail under Opera removes all line-feeds. Haaaaandy.)<br>
&gt; <a href="http://pastebin.com/XruQ2rPk" target="_blank">http://pastebin.com/XruQ2rPk</a><br>
&gt;<br>
<br>
</div>I get a &quot;Unknown paste ID&quot; :-S<br>
<br>
<br>
Regards,<br>
<br>
--<br>
Saúl Ibarra Corretgé<br>
AG Projects<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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></div><br>