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 <[email protected]> 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 > > [email protected] > > 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:[email protected]:5061, > > to:[email protected] <to%[email protected]> > > <to%[email protected]<to%[email protected]> > > > > ,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 >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
