[Freeswitch-users] DTLS ICE and WebRTC using Freeswitch 1.6

Anthony Minessale anthony.minessale at gmail.com
Mon Jun 1 18:38:00 MSD 2015


Ice must negotiate, then dtls.  The ice is not encrypted.


On Sunday, May 31, 2015, Michael Jerris <mike at jerris.com> wrote:

> Typically this happens when the traffic isn't making it back to FreeSWITCH.
>
> On Sunday, May 31, 2015, Jon Lederman <jonlederman at gmail.com
> <javascript:_e(%7B%7D,'cvml','jonlederman at gmail.com');>> wrote:
>
>> Hi,
>>
>> We are having trouble getting WebRTC working with 1.6.  I have tracked
>> the problem down to the do_dtls function in switch_rtp.c (shown partially
>> below).  Two things we have noticed:
>>
>> 1) It appears that ice.ready and ice.ready are always 0.
>> 2) DTLS negotiation never completes the handshake.
>>
>> Does ice have to be operative in order for dtls negotiation to proceed or
>> the other way around?  What should I look for, which may prevent the ice
>> setup and/or dtls handshake.
>> We are running on google cloud.  Are there networking/NAT issues running
>> on cloud servers that might interfere with either ICE or DTLS?
>>
>> Thanks in advance.
>>
>> -Jon
>>
>>
>> static int do_dtls(switch_rtp_t *rtp_session, switch_dtls_t *dtls)
>> {
>>         int r = 0, ret = 0, len;
>>         switch_size_t bytes;
>>         unsigned char buf[4096] = "";
>>         int ready = rtp_session->ice.ice_user ? (rtp_session->ice.rready
>> && rtp_session->ice.ready) : 1;
>>
>>
>>
>>         if (!dtls->bytes && !ready) {
>>
>> //switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session),
>> SWITCH_LOG_ALERT, "Ice not ready");
>>                 return 0;
>>         }
>>
>>>>
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>

-- 
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*

ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org  ☎ +19193869900

https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150601/3fe560b0/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list