Hi<br><br>As request is coming from Public IP , use_mediaproxy is not being called for invite.<br>But callee is behind NAT that's why use_mediaproxy has been called in reply route.<br><br>One more thing, I have put force_rport at the beginning of main route , I have removed that & the issue is fixed.<br>
but Now facing signaling issue in case internal & external port are different for nated client.<br><br>Please advice what to do<br><br>Thanks<br>Krunal Patel<br><br><div class="gmail_quote">On Tue, Dec 16, 2008 at 5:35 PM, Dan Pascu <span dir="ltr"><<a href="mailto:dan@ag-projects.com">dan@ag-projects.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
You need to call use_media_proxy for the INVITE request as well.<br>
<div><div></div><div class="Wj3C7c"><br>
On Tuesday 16 December 2008, Krunal Patel wrote:<br>
> Hi<br>
><br>
> I am getting error: use_media_proxy(): empty response from mediaproxy .<br>
><br>
> Here is the scenario for which I am getting the error.<br>
><br>
> Caller is public & callee is behind nat.<br>
> When openser gets 183 or 200 OK from callee, use_mediaproxy is being<br>
> called & got the error.<br>
><br>
> here is the snippet from cfg.<br>
> on_reply_route[1]<br>
> {<br>
> if (status=~"(180)|(183)|2[0-9][0-9]") {<br>
><br>
> if ((isbflagset(6) || isbflagset(7) || nat_uac_test("19"))<br>
> &&!search("^Content-Length:[ ]*0")) {<br>
> xlog("USEMEDIAPROXY#####$fU#############\n ");<br>
> use_media_proxy();<br>
> };<br>
> if(client_nat_test("1")) {<br>
> fix_nated_contact();<br>
> xlog("fixnated contact##################\n ");<br>
> if (status=~"(183)|(200)") {<br>
> xlog("fixnatedSDP##################\n ");<br>
> fix_nated_sdp("3");<br>
> };<br>
> };<br>
><br>
> };<br>
> }<br>
><br>
> debug message:<br>
><br>
> Dec 16 09:39:22 proxydispatcher[3621]: lookup<br>
> <a href="mailto:3F38861B-6A0A-E583-B0E6-9B9EF4C5F84F@192.168.1.10">3F38861B-6A0A-E583-B0E6-9B9EF4C5F84F@192.168.1.10</a><br>
> 192.168.1.11:49156:audio XXX.XXX.XXX.XXX <a href="http://domain.com" target="_blank">domain.com</a> local unknown<br>
> unknown<br>
> SJphone/1.60.320/L=20(SJ=20Labs) info=<a href="http://from:FROM@domain.com:5061" target="_blank">from:FROM@domain.com:5061</a>,<br>
</div></div>> <a href="mailto:to%3ATO@domain.com">to:TO@domain.com</a> <<a href="mailto:to%253ATO@domain.com">to%3ATO@domain.com</a>><br>
<div class="Ih2E3d">> ,fromtag:1027223280,totag:1056113071618701460<br>
> Dec 16 09:39:22 proxydispatcher[3621]: execution time: 0.03 ms<br>
> Dec 16 09:39:22 /usr/local/sbin/openser[14733]: error:<br>
> use_media_proxy(): empty response from mediaproxy<br>
><br>
> Please let me know what I am doing wrong.<br>
><br>
> --<br>
> Krunal patel<br>
<br>
<br>
<br>
</div>--<br>
<font color="#888888">Dan<br>
</font></blockquote></div><br>