<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div>Hi <br></div><div><br></div><div>I only use 'use_media_proxy' in my dispatch route. below is my script where use_media_proxy is invoked</div><div><br></div><div><br></div><div><br></div><div>route[1] {<br> #check for nat flag<br> # Fix the test for NAT flag<br> if (isbflagset(2))<br> {<br> fix_nated_contact();<br> use_media_proxy();<br> }<br><br> t_on_reply("1");<br>
t_on_failure("1");<br><br> if(is_method("INVITE")) {<br> #if(isflagset(12)){<br> # xlog("L_INFO", "Call sip-to-domain-final - $ruri M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");<br> # }<br><br><br> if(t_check_trans())<br> {<br> # xlog("L_INFO", "Duplicate message $ruri M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); <br> exit;<br> }<br> }<br> # send it out now; use stateful forwarding as it works
reliably<br> # even for UDP2TCP<br> # xlog("L_INFO", "Request leaving server - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");<br> if (!t_relay()) {<br> #xlog("L_INFO", "(Rewriting) t_relay 1 - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");<br> if(isbflagset(2))<br> end_media_session();<br> sl_reply_error();<br> }<br> exit;<br>}<br></div><div>and also in on_reply right to fix the replies for
NAT</div><div><br></div><div><br></div><div>onreply_route[1]<br>{<br> # xlog("L_INFO", "Reply - S=$rs D=$rr F=$fu T=$tu IP=$si ID=$ci\n");<br><br> if(nat_uac_test("1"))<br> fix_nated_contact();<br><br> if(isbflagset(2) && status =~ "(180)|(183)|(2[0-9][0-9])") {<br> if(!search("^Content-Length:[ ]*0"))<br> use_media_proxy();<br> }<br>}<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size:
12pt;"><br>How are you using MediaProxy? Using engage_mediaproxy or the individual functions? Any chance you called use_media_proxy twice?<br><br><br>Regards,<br><br>-- <br>Saúl Ibarra Corretgé<br>AG Projects<br><br><br><br><br><br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br></div></div></div></body></html>