Now I see what you&#39;re saying. I thought mediaproxy used the wrong port in the re-invite, while it is in fact not engaged at all and thus the original IP and port is sent on. That makes a lot of sense, thank you.<br><br>

According to the docs the engage_media_proxy should only be called once on the initial invite thou and after that use the dialog module to trace the dialog. Any suggestions as how to debug where it fails? I&#39;m not getting any output in the syslog.<br>

<br>Cheers,<br>Magnus<br><br><div class="gmail_quote">2010/2/3 Iñaki Baz Castillo <span dir="ltr">&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">El Miércoles, 3 de Febrero de 2010, Magnus Burman escribió:<br>
</div><div class="im">&gt; None of my users are behind NAT, they&#39;re all on public IPs (I control their<br>
&gt; connection).<br>
<br>
</div>It could occur that the gateway just allows RTP from certains IP&#39;s.<br>
<div class="im"><br>
<br>
&gt; Sorry if it&#39;s a stupid question, but what do you mean with &quot;the SDP is not<br>
&gt; modified by mediaproxy&quot;?<br>
<br>
</div>Do you know how MediaProxy works by replacing the media IP in the SDP of<br>
INVITE and responses? Take a look to the first (initial) INVITE. The INVITE<br>
arrives to OpenSIPS with a media address XX.XX.XX.XX in the SDP, but when it<br>
leaves the proxy to go to the gateway the media is different because opensips<br>
has modified it to make it going through the MediaProxy server.<br>
<br>
But this doesn&#39;t occur for the re-INVITE as you can see in your trace.<br>
<div class="im"><br>
<br>
&gt; On line 276 in the re-invite (Opensips --&gt; UA) the port used is different:<br>
&gt; m=audio 40518 RTP/AVP 18 8 0 101&#39;<br>
&gt; The original invite (line 73) reads: m=audio 58928 RTP/AVP 18 8 0 101&#39;<br>
<br>
</div>Not just the port but also the SDP. And this occurs because the explained<br>
above: opensips is not replacing the ip:port in the SDP for the re-INVITE and<br>
its response. You should check why not.<br>
<br>
However I don&#39;t know mediaproxy module functions very well so I don&#39;t know<br>
what &quot;engage_mediaproxy&quot; should do. I just can tell you what is happening in<br>
the trace.<br>
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div class="h5">Iñaki Baz Castillo &lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;<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>
</div></div></blockquote></div><br>