[OpenSIPS-Users] Mediaproxy and ICE

Saúl Ibarra Corretgé saul at ag-projects.com
Wed Apr 23 16:49:06 CEST 2014


Hi there,

On Apr 19, 2014, at 8:18 PM, ag at ag-projects.com wrote:

> I acknowledge that there is is a bug in MediaProxy when engaging ICE. The timeout after 3 minutes is kicking in sometimes when it should not be.
> 
> We are hunting this bug now.
> 
> Adrian
> 
> On 19 Apr 2014, at 06:32, Hòa Nguyễn <hoanguyen2708 at gmail.com> wrote:
> 
>> I suppose you've used engage_media_proxy() to allocate media session in OpenSIPS
>> You might want to know that if mediaproxy-relay receive a little traffic from phone then don't receive anything anymore in the next 180s, it will assume that your phone has been crash or something and close the session, then if you use engage_media_proxy(), the relay will send the signal to the dispatcher to close the dialog, hence make OpenSIPS send BYE to both of phones
>> I think in your situation, it can be that your phone first will send RTP to mediaproxy-relay first, then it decides to make a P2P connection and success, then it will uses the P2P and don't send anything to relay anymore, that make relay release the session and close your call. The solution is not using engage_media_proxy, instead using use_media_proxy/end_media_session
>> 

I managed to catch (and hopefully fix!) the bug. We tested it and it works, but some extra testing would be nice. You can find the patch attached, which can be applied against the 2.6.0 release.


Cheers,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ice_fix.diff
Type: application/octet-stream
Size: 2803 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20140423/8de43fb8/attachment-0001.obj>
-------------- next part --------------

--
Saúl Ibarra Corretgé
AG Projects





More information about the Users mailing list