Now I see what you'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'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"><<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>></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">> None of my users are behind NAT, they're all on public IPs (I control their<br>
> connection).<br>
<br>
</div>It could occur that the gateway just allows RTP from certains IP's.<br>
<div class="im"><br>
<br>
> Sorry if it's a stupid question, but what do you mean with "the SDP is not<br>
> modified by mediaproxy"?<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't occur for the re-INVITE as you can see in your trace.<br>
<div class="im"><br>
<br>
> On line 276 in the re-invite (Opensips --> UA) the port used is different:<br>
> m=audio 40518 RTP/AVP 18 8 0 101'<br>
> The original invite (line 73) reads: m=audio 58928 RTP/AVP 18 8 0 101'<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't know mediaproxy module functions very well so I don't know<br>
what "engage_mediaproxy" 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 <<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>><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>