[OpenSIPS-Users] OpenSIPS+MediaProxy mangling ACKs?

Jock McKechnie jock.mckechnie at gmail.com
Tue Aug 23 21:20:12 CEST 2011


On Tue, Aug 23, 2011 at 2:29 AM, Saúl Ibarra Corretgé
<saul at ag-projects.com>wrote:

> Hi,
>
> On Aug 22, 2011, at 11:21 PM, Jock McKechnie wrote:
>
> > Greetings all;
> >
> > I'm afraid I haven't solved this yet, but I did strip out all the
> dispatcher code and that hasn'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't bypass this in machine in the call flow
> for my testing. Tomorrow I'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.
> >
> > I could sure use a suggestion on what I could try removing/adding to help
> pinpoint what might be going on.
> >
>
> If you want to use the use_media_proxy and end_media_session functions
> you'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).
>
> Or you can use engage_mediaproxy :-)
>
>
Good call, Saúl.
I had a _lot_ of problems getting MediaProxy to work initially so I ended up
using someone else's config.

And this appears to be part of the problem - I'm using a config that works,
but I don't know what it's up to. After removing all sorts of bits and
pieces and adding stuff back I'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.

The onreply_route was:
onreply_route[1] {
        if (status =~ "(183)|(2[0-9][0-9])") {
                if (client_nat_test("1")) {
                        fix_contact();
                        }
                }
        }

Will the removal of this cause any major issues? (The whole config is still
here: http://pastebin.com/b2FGgTRX).

Thank you, all.

 - Jock
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110823/97321970/attachment.htm>


More information about the Users mailing list