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 &amp; invite<br>7. Media proxy module &#39;fixes&#39; my SDP contact twice<br><br>My SIP message end up with duplicated SDP contact info.  For example:<a name="#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(&quot;L_INFO&quot;, &quot;Failure Route: $rm,  $fu,  $ru\n&quot;);<br><br>        if (use_next_gw()) {<br>                xlog(&quot;L_INFO&quot;, &quot;Trying next gateway&quot; );<br>

                t_relay();<br>                exit;<br>        } else {<br>                xlog( &quot;L_INFO&quot;, &quot;Exhausted gateway list&quot; );<br>                t_reply (&quot;503&quot;, &quot;Service not available&quot;);<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<br>Charles<br><font color="#cc6600"></font></a>