[OpenSIPS-Users] Help!! error: use_media_proxy(): empty response from mediaproxy

Krunal Patel krunal.lists at gmail.com
Tue Dec 16 13:14:52 CET 2008


Hi

As request is coming from Public IP , use_mediaproxy is not being called for
invite.
But callee is behind NAT that's why use_mediaproxy has been called in reply
route.

One more thing, I have put force_rport at the beginning of main route , I
have removed that & the issue is fixed.
but Now facing signaling issue in case internal & external port are
different for nated client.

Please advice what to do

Thanks
Krunal Patel

On Tue, Dec 16, 2008 at 5:35 PM, Dan Pascu <dan at ag-projects.com> wrote:

>
> You need to call use_media_proxy for the INVITE request as well.
>
> On Tuesday 16 December 2008, Krunal Patel wrote:
> > Hi
> >
> > I am getting error: use_media_proxy(): empty response from mediaproxy .
> >
> > Here is the scenario for which I am getting the error.
> >
> > Caller is public & callee is behind nat.
> > When openser gets 183 or 200 OK from callee, use_mediaproxy is being
> > called & got the error.
> >
> > here is the snippet from cfg.
> > on_reply_route[1]
> > {
> >     if (status=~"(180)|(183)|2[0-9][0-9]") {
> >
> >         if ((isbflagset(6) || isbflagset(7) || nat_uac_test("19"))
> > &&!search("^Content-Length:[ ]*0")) {
> >                 xlog("USEMEDIAPROXY#####$fU#############\n ");
> >                 use_media_proxy();
> >         };
> >         if(client_nat_test("1")) {
> >                 fix_nated_contact();
> >                 xlog("fixnated contact##################\n ");
> >                 if (status=~"(183)|(200)") {
> >                     xlog("fixnatedSDP##################\n ");
> >                     fix_nated_sdp("3");
> >                 };
> >         };
> >
> >     };
> > }
> >
> > debug message:
> >
> > Dec 16 09:39:22  proxydispatcher[3621]: lookup
> > 3F38861B-6A0A-E583-B0E6-9B9EF4C5F84F at 192.168.1.10
> > 192.168.1.11:49156:audio XXX.XXX.XXX.XXX domain.com local unknown
> > unknown
> > SJphone/1.60.320/L=20(SJ=20Labs) info=from:FROM at domain.com:5061,
> > to:TO at domain.com <to%3ATO at domain.com> <to%3ATO at domain.com<to%253ATO at domain.com>
> >
> > ,fromtag:1027223280,totag:1056113071618701460
> > Dec 16 09:39:22  proxydispatcher[3621]: execution time:  0.03 ms
> > Dec 16 09:39:22  /usr/local/sbin/openser[14733]: error:
> > use_media_proxy(): empty response from mediaproxy
> >
> > Please let me know what I am doing wrong.
> >
> > --
> > Krunal patel
>
>
>
> --
> Dan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081216/97677928/attachment.htm 


More information about the Users mailing list