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


On Sunday, May 31, 2015, Michael Jerris <mike@jerris.com> wrote:
Typically this happens when the traffic isn't making it back to FreeSWITCH.

On Sunday, May 31, 2015, Jon Lederman <jonlederman@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@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@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  ♬

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