<br><br><div class="gmail_quote">On Tue, Aug 23, 2011 at 2:29 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 class="im"><br>
On Aug 22, 2011, at 11:21 PM, Jock McKechnie wrote:<br>
<br>
&gt; Greetings all;<br>
&gt;<br>
</div><div class="im">&gt; I&#39;m afraid I haven&#39;t solved this yet, but I did strip out all the dispatcher code and that hasn&#39;t helped, so it appears to be something to do with forwarding the calls out while the mediaproxy is enabled. Unfortunately as calls have to be directed through the specific IP of our own local OpenSER proxy to the carrier I can&#39;t bypass this in machine in the call flow for my testing. Tomorrow I&#39;ll try and pull mediaproxy back out of the config and see if it really is to blame, but I have to assume so since I have all of the rest of these features (dispatcher/etc) working happily in other environs.<br>

&gt;<br>
&gt; I could sure use a suggestion on what I could try removing/adding to help pinpoint what might be going on.<br>
&gt;<br>
<br>
</div>If you want to use the use_media_proxy and end_media_session functions you&#39;ll need to call use_media_proxy in a branch route, because after your first attempt of getting the call out you need to end_media_session and use_media_proxy again the new branch (the one that is created for the next gateway).<br>

<br>
Or you can use engage_mediaproxy :-)<br><br></blockquote><div><br>Good call, <span class="gD" style="color: rgb(0, 0, 0);">Saúl</span>.<br>I had a _lot_ of problems getting MediaProxy to work initially so I ended up using someone else&#39;s config.<br>
<br>And this appears to be part of the problem - I&#39;m using a config that works, but I don&#39;t know what it&#39;s up to. After removing all sorts of bits and pieces and adding stuff back I&#39;ve found that if I remove the onreply_route that it _appears_ to work precisely as I expect it. OpenSIPS/MediaProxy is properly handling the media and no screwy ACKs.<br>
<br>The onreply_route was:<br>onreply_route[1] {<br>        if (status =~ &quot;(183)|(2[0-9][0-9])&quot;) {<br>                if (client_nat_test(&quot;1&quot;)) {<br>                        fix_contact();<br>                        }<br>
                }<br>        }<br><br>Will the removal of this cause any major issues? (The whole config is still here: <a href="http://pastebin.com/b2FGgTRX">http://pastebin.com/b2FGgTRX</a>).<br><br>Thank you, all.<br><br>
 - Jock<br></div></div><br>