Definitely not - I know there was a lengthy discussion about calling use_media_proxy twice and that function a while ago. The only thing I do with a natted invite is this:<br><br># NAT test<br> if( is_method("INVITE") && !has_totag() )<br>
{<br> $avp(can_uri) = $ru;<br><br> setflag(3); # flag for NAT<br> force_rport();<br> fix_contact();<br> append_hf("P-hint: NAT\r\n");<br>
xlog( "L_INFO", "Engaging media proxy" );<br> engage_media_proxy();<br> }<br><br>Charles<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 3:54 PM, Brian ipt <span dir="ltr"><<a href="mailto:voiplists@iptel.co">voiplists@iptel.co</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Feb 10, 2012 at 9:21 PM, Charles Solar <span dir="ltr"><<a href="mailto:charlessolar@gmail.com" target="_blank">charlessolar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have been using engage_media_proxy in my script, but it seems to cause problems when I failover in the dynamic routing module. <br>This is the scenario:<br><br>1. Incoming call<br>2. Engage media proxy<br>3. Try first GW (which is down)<br>
4. Failure route<br>5. Try next GW<br>6. Next GW sends Session progress & invite<br>7. Media proxy module 'fixes' my SDP contact twice<br><br>My SIP message end up with duplicated SDP contact info. For example:<a name="13569431a4825d64_13569252baca8add_#top"><font color="#cc6600"> c=IN IP4 33.66.22.1133.66.22.11<br>
<br></font>If the first gateway works, this does not happen. In fact it works perfectly. But I guess engage_media_proxy or the dialog module is having an issue with a failure scenario?<br><br>My failure route is pretty simple:<br>
<br>failure_route[4] {<br> xlog("L_INFO", "Failure Route: $rm, $fu, $ru\n");<br><br> if (use_next_gw()) {<br> xlog("L_INFO", "Trying next gateway" );<br>
t_relay();<br> exit;<br> } else {<br> xlog( "L_INFO", "Exhausted gateway list" );<br> t_reply ("503", "Service not available");<br>
exit;<br> }<br>}<br><br>Should I switch to use_media_proxy/end_media_session if I want to expect failovers? Or could I be doing something wrong?<br><br>Thanks guys<span><font color="#888888"><br>
Charles<br></font></span></a></blockquote><div><br></div><div><br></div><div><br></div></div></div><div>Hi Charles,</div><div><br></div><div>Are you using fix_nated_sdp anywhere in your scripts or using anything else that modifies the SDP?</div>
<div><br></div><div>Brian</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a name="13569431a4825d64_13569252baca8add_#top"><span><font color="#888888"><font color="#cc6600"></font></font></span></a>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">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></blockquote></div><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a 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></blockquote></div><br>