[Freeswitch-users] DTLS ICE and WebRTC using Freeswitch 1.6
Michael Jerris
mike at jerris.com
Sun May 31 23:04:32 MSD 2015
Typically this happens when the traffic isn't making it back to FreeSWITCH.
On Sunday, May 31, 2015, Jon Lederman <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 <javascript:;>
> 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 <javascript:;>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150531/7e63e1aa/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list