<div dir="ltr">Hi,<div><br><div>Here is what it looks like to me; </div><div><div>NAT&#39;d Client&lt;=====&gt;OpenSIPS+Media-Proxy&lt;======&gt;Second Proxy??&lt;=====&gt;Upstream</div><div><br></div><div>From what I understand, your main issue is that after failover/failure_route your call goes to second Carrier and since the use_media_proxy has been called for first one, hand shake has been done in SDP the media relay still waits on for the first Media stream to continue.  </div><div><br></div><div>What you really want is that even in case of rollover to second , third, or even fourth carrier the media-proxy should redo the SDP exchange for each carrier failover.</div><div><br></div><div>For the above mentioned scenario you need to end_media_proxy() (possibly in failure_route), then in the config area where you dial over to second gateway recall the use_media_proxy function so that media proxy be ready to exchange media with newer SDP IPs.</div><div><br></div><div>BTW if the far end has &quot;rejected&quot; the call by sending Busy you shouldn&#39;t loop try dial again, its not good to keep ringing someone once they&#39;ve rejected call; only if the carrier has sent you some other SIP failure code only then you should go for re-attempt.  <br></div></div><div><br></div><div><br></div><div>Regards,</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 7, 2014 at 7:09 AM, Kristian F. Høgh <span dir="ltr">&lt;<a href="mailto:kfh.opensips@kfh.dk" target="_blank">kfh.opensips@kfh.dk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I receive an INVITE from a NAT&#39;ed client, which I forward to a second proxy after calling use_media_proxy.<br>
The second proxy send the INVITE upstream.<br>
Upstream starts sending RTP (to media-relay), then rejects the call.<br>
I try next gateway (on second proxy), which answers 100, 183 and later 200 OK. (And sends RTP to media-relay)<br>
<br>
Unfortunately the relay received 7 RTP packages from the failed attempt, and therefore RTP from succesfull call is ignored.<br>
<br>
As I know the IP range is non- NAT&#39;ed, I would like to ignore the RTP from the first gateway, by forcing relay to use SDP.<br>
Is it posible to tell the relay &quot;This client is not NAT&#39;ed, use IP address/port from SDP&quot;?<br>
Or<br>
Don&#39;t forward RTP before SDP. (That way, RTP from failed call would be ignored)<br>
<br>
Regards,<br>
Kristian Høgh<br>
<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>
</blockquote></div><br></div>