Detected the following WebRTC issue: Error 1010: ICE negotiation timeout. Do you want to try Flash instead?

1,850 views
Skip to first unread message

nag...@ipivot.io

unread,
Oct 30, 2017, 9:18:41 PM10/30/17
to BigBlueButton-Setup
Team,

I have been struggling to resolve the WebRTC issue. I tried all my best with all info and links given and reaching for help. I did test https:/demo.bigbluebutton.org/ on my machine and it is working fine. Hope I am providing all the details you may need.

BigBlueButton Server 2.0.0-beta (708)
                    Kernel version: 4.4.0-1038-aws
                      Distribution: Ubuntu 16.04.3 LTS (64-bit)
                            Memory: 4045 MB
/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
                Port test (tunnel): bbb.jobprep.io
                              red5: bbb.jobprep.io
              useWebrtcIfAvailable: true
/opt/freeswitch/etc/freeswitch/sip_profiles/external.xml (FreeSWITCH)
                    websocket port:     <param name=
                    WebRTC enabled: true
/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: bbb.jobprep.io
                              port:
                              port: 443 ssl
                    bbb-client dir: /var/www/bigbluebutton
/var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties (bbb-web)
                      bbb-web host: bbb.jobprep.io
/var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp (API demos)
                               url: bbb.jobprep.io
/usr/share/red5/webapps/bigbluebutton/WEB-INF/red5-web.xml (red5)
                  voice conference: FreeSWITCH
/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback host: bbb.jobprep.io

** Potential problems described below **
# IP does not match:
#                           IP from ifconfig: 172.31.65.27
#   /etc/nginx/sites-available/bigbluebutton: bbb.jobprep.io
# Warning: API URL IPs do not match host:
#
#                                IP from ifconfig: 172.31.65.27
#  /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp: bbb.jobprep.io

# Warning: The setting of 34.237.48.244 for bbb.sip.app.ip in
#
#    /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties
#
# does not match the local IP address (172.31.65.27).
# (This is OK if you've manually changed the values to an external
# FreeSWITCH server.)
# Warning: The setting of 34.237.48.244 for proxy_pass in
#
#    /etc/bigbluebutton/nginx/sip.nginx
#
# does not match the local IP address (172.31.65.27).
# (This is OK if you've manually changed the values)
# Warning: The setting of 34.237.48.244 for local_ip_v4 in
#
#    /opt/freeswitch/etc/freeswitch/vars.xml
#
# does not match the local IP address (172.31.65.27).
# (This is OK if you've manually changed the values)
# Warning: The API demos are installed and accessible from:
#
#    https://bbb.jobprep.io/demo/demo1.jsp
#
# These API demos allow anyone to access your server without authentication
# to create/manage meetings and recordings. They are for testing purposes only.
# If you are running a production system, remove them by running:
#
#    sudo apt-get purge bbb-demo

*************************************************************************************************************************************************************************************************

● freeswitch.service - freeswitch
   Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2017-10-31 00:47:37 UTC; 12min ago
  Process: 28311 ExecStart=/opt/freeswitch/bin/freeswitch -u freeswitch -g daemon -ncwait $DAEMON_OPTS (code=exited, status=0/SUCCESS)
 Main PID: 28320 (freeswitch)
    Tasks: 38
   Memory: 74.3M
      CPU: 6.551s
   CGroup: /system.slice/freeswitch.service
           └─28320 /opt/freeswitch/bin/freeswitch -u freeswitch -g daemon -ncwait -nonat
Oct 31 00:47:35 ip-172-31-65-27 systemd[1]: Starting freeswitch...
Oct 31 00:47:35 ip-172-31-65-27 freeswitch[28311]: 28320 Backgrounding.
Oct 31 00:47:37 ip-172-31-65-27 systemd[1]: Started freeswitch.

*************************************************************************************************************************************************************************************************
freeswitch.log

ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8162 AUDIO RTP [sofia/external/09...@34.237.48.244] 34.237.48.244 port 29308 -> 34.237.48.244 port 15005 codec: 100 ms: 20
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_rtp.c:4191 Starting timer [soft] 320 bytes per 20ms
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8382 Activating RTCP PORT 0
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_rtp.c:4587 RTCP send rate is: 5000 and packet rate is: 20000 Remote Port: 15006
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_rtp.c:2566 Setting RTCP remote addr to 34.237.48.244:15006 2
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:2204 Setting Jitterbuffer to 20ms (1 frames) (20 max frames)
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8466 sofia/external/09...@34.237.48.244 Set 2833 dtmf send payload to 101
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8473 sofia/external/09...@34.237.48.244 Set 2833 dtmf receive payload to 101
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8496 sofia/external/09...@34.237.48.244 Set rtp dtmf delay to 40
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [NOTICE] sofia_media.c:92 Pre-Answer sofia/external/09...@34.237.48.244!
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_channel.c:3482 (sofia/external/09...@34.237.48.244) Callstate Change RINGING -> EARLY
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8145 Audio params are unchanged for sofia/external/09...@34.237.48.244.
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] mod_sofia.c:881 Local SDP sofia/external/09...@34.237.48.244:
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 v=0^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 o=FreeSWITCH 1509382139 1509382140 IN IP4 34.237.48.244^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 s=FreeSWITCH^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 c=IN IP4 34.237.48.244^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 t=0 0^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 m=audio 29308 RTP/AVP 100 101^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=rtpmap:100 SPEEX/16000^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=rtpmap:101 telephone-event/8000^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=fmtp:101 0-16^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=ptime:20^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=sendrecv^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=rtcp:29309 IN IP4 34.237.48.244^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [NOTICE] mod_dptools.c:1352 Channel [sofia/external/09...@34.237.48.244] has been answered
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_channel.c:3781 (sofia/external/09...@34.237.48.244) Callstate Change EARLY -> ACTIVE
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] sofia.c:7283 Channel sofia/external/09...@34.237.48.244 entering state [completed][200]
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 EXECUTE sofia/external/09...@34.237.48.244 conference(09364@cdquality)

*********************************************************************************************************************************************************************************************************************
TEST if hairping NAT:


ubuntu@ip-172-31-65-27:/opt/freeswitch$ sudo curl --trace-ascii - -k https://bbb.jobprep.io:443/bigbluebutton/api
== Info:   Trying 34.237.48.244...
== Info: Connected to bbb.jobprep.io (34.237.48.244) port 443 (#0)
== Info: found 148 certificates in /etc/ssl/certs/ca-certificates.crt
== Info: found 592 certificates in /etc/ssl/certs
== Info: ALPN, offering http/1.1
== Info: SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
== Info:         server certificate verification SKIPPED
== Info:         server certificate status verification SKIPPED
== Info:         common name: bbb.jobprep.io (matched)
== Info:         server certificate expiration date OK
== Info:         server certificate activation date OK
== Info:         certificate public key: RSA
== Info:         certificate version: #3
== Info:         subject: CN=bbb.jobprep.io
== Info:         start date: Mon, 30 Oct 2017 18:51:17 GMT
== Info:         expire date: Sun, 28 Jan 2018 18:51:17 GMT
== Info:         issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
== Info:         compression: NULL
== Info: ALPN, server accepted to use http/1.1
=> Send header, 95 bytes (0x5f)
0000: GET /bigbluebutton/api HTTP/1.1
0021: Host: bbb.jobprep.io
0037: User-Agent: curl/7.47.0
0050: Accept: */*
005d:
<= Recv header, 17 bytes (0x11)
0000: HTTP/1.1 200 OK
<= Recv header, 31 bytes (0x1f)
0000: Server: nginx/1.10.3 (Ubuntu)
<= Recv header, 37 bytes (0x25)
0000: Date: Tue, 31 Oct 2017 01:10:49 GMT
<= Recv header, 38 bytes (0x26)
0000: Content-Type: text/xml;charset=utf-8
<= Recv header, 28 bytes (0x1c)
0000: Transfer-Encoding: chunked
<= Recv header, 24 bytes (0x18)
0000: Connection: keep-alive
<= Recv header, 25 bytes (0x19)
0000: Cache-Control: no-cache
<= Recv header, 35 bytes (0x23)
0000: P3P: CP="No P3P policy available"
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 86 bytes (0x56)
0000: 4b
0004: <response><returncode>SUCCESS</returncode><version>1.1</version>
0044: </response>
0051: 0
0054:
<response><returncode>SUCCESS</returncode><version>1.1</version></response>== Info: Connection #0 to host bbb.jobprep.io left intact

*********************************************************************************************************************************************************************************************************************************

Regards,
Nagesh



Chad Pilkey

unread,
Oct 30, 2017, 11:48:23 PM10/30/17
to BigBlueButton-Setup
The bbb-conf script looks like it can't parse some of your configuration files successfully.

/opt/freeswitch/etc/freeswitch/sip_profiles/external.xml (FreeSWITCH)
      websocket port:     <param name=
      WebRTC enabled: true
/etc/nginx/sites-available/bigbluebutton (nginx)
      server name: bbb.jobprep.io
      port:
      port: 443 ssl
      bbb-client dir: /var/www/bigbluebutton

It looks like there might be a typo somewhere in your sip_profile/external.xml which could be causing issues.

The script also doesn't seem to be able to find a bind to port 80 for nginx, but that should be unrelated to this.


On Monday, October 30, 2017 at 9:18:41 PM UTC-4, nag...@ipivot.io wrote:
Team,

I have been struggling to resolve the WebRTC issue. I tried all my best with all info and links given and reaching for help. I did test https:/demo.bigbluebutton.org/ on my machine and it is working fine. Hope I am providing all the details you may need.

ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8466 sofia/exte...@34.237.48.244 Set 2833 dtmf send payload to 101
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8473 sofia/exte...@34.237.48.244 Set 2833 dtmf receive payload to 101
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8496 sofia/exte...@34.237.48.244 Set rtp dtmf delay to 40
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [NOTICE] sofia_media.c:92 Pre-Answer sofia/exte...@34.237.48.244!
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_channel.c:3482 (sofia/exte...@34.237.48.244) Callstate Change RINGING -> EARLY
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_core_media.c:8145 Audio params are unchanged for sofia/exte...@34.237.48.244.
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] mod_sofia.c:881 Local SDP sofia/exte...@34.237.48.244:

ce1c6ad4-713a-4940-84ad-1d71e0dc7803 v=0^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 o=FreeSWITCH 1509382139 1509382140 IN IP4 34.237.48.244^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 s=FreeSWITCH^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 c=IN IP4 34.237.48.244^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 t=0 0^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 m=audio 29308 RTP/AVP 100 101^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=rtpmap:100 SPEEX/16000^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=rtpmap:101 telephone-event/8000^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=fmtp:101 0-16^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=ptime:20^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=sendrecv^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 a=rtcp:29309 IN IP4 34.237.48.244^M
ce1c6ad4-713a-4940-84ad-1d71e0dc7803
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [NOTICE] mod_dptools.c:1352 Channel [sofia/external/09...@34.237.48.244] has been answered
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] switch_channel.c:3781 (sofia/exte...@34.237.48.244) Callstate Change EARLY -> ACTIVE
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 2017-10-31 00:57:27.124855 [DEBUG] sofia.c:7283 Channel sofia/exte...@34.237.48.244 entering state [completed][200]
ce1c6ad4-713a-4940-84ad-1d71e0dc7803 EXECUTE sofia/exte...@34.237.48.244 conference(09...@cdquality)

*********************************************************************************************************************************************************************************************************************
TEST if hairping NAT:



*********************************************************************************************************************************************************************************************************************************

Regards,
Nagesh



nag...@ipivot.io

unread,
Oct 31, 2017, 7:34:28 PM10/31/17
to BigBlueButton-Setup
Hi Chad,

Thanks for your response.

Here is the further info, which might help. I didn't notice any typo error, may be wrong.

2017-10-30 21:39:24.161673 [DEBUG] sofia.c:4629 debug [0]
2017-10-30 21:39:24.161681 [DEBUG] sofia.c:4629 sip-trace [no]
2017-10-30 21:39:24.161684 [DEBUG] sofia.c:4629 sip-capture [no]
2017-10-30 21:39:24.161686 [DEBUG] sofia.c:4629 rfc2833-pt [101]
2017-10-30 21:39:24.161692 [DEBUG] sofia.c:4629 sip-port [5060]
2017-10-30 21:39:24.161699 [DEBUG] sofia.c:4629 dialplan [XML]
2017-10-30 21:39:24.161708 [DEBUG] sofia.c:4629 context [public]
2017-10-30 21:39:24.161716 [DEBUG] sofia.c:4629 dtmf-duration [2000]
2017-10-30 21:39:24.161721 [DEBUG] sofia.c:4629 inbound-codec-prefs [OPUS,speex@16000h@20i,speex@8000h@20i,G722,PCMU,PCMA,VP8]
2017-10-30 21:39:24.161732 [DEBUG] sofia.c:4629 outbound-codec-prefs [OPUS,speex@16000h@20i,G722,PCMU,PCMA,VP8]
2017-10-30 21:39:24.161740 [DEBUG] sofia.c:4629 hold-music [local_stream://moh]
2017-10-30 21:39:24.161774 [DEBUG] sofia.c:4629 rtp-timer-name [soft]
2017-10-30 21:39:24.161783 [DEBUG] sofia.c:4629 local-network-acl [localnet.auto]
2017-10-30 21:39:24.161792 [DEBUG] sofia.c:4629 manage-presence [false]
2017-10-30 21:39:24.161797 [DEBUG] sofia.c:4629 inbound-codec-negotiation [generous]
2017-10-30 21:39:24.161802 [DEBUG] sofia.c:4629 nonce-ttl [60]
2017-10-30 21:39:24.161806 [DEBUG] sofia.c:4629 auth-calls [false]
2017-10-30 21:39:24.161813 [DEBUG] sofia.c:4629 inbound-late-negotiation [true]
2017-10-30 21:39:24.161820 [DEBUG] sofia.c:4629 inbound-zrtp-passthru [true]
2017-10-30 21:39:24.161823 [DEBUG] sofia.c:4629 rtp-ip [::1]
2017-10-30 21:39:24.161827 [DEBUG] sofia.c:4629 sip-ip [::1]
2017-10-30 21:39:24.161834 [DEBUG] sofia.c:4629 rtp-timeout-sec [300]
2017-10-30 21:39:24.161838 [DEBUG] sofia.c:4629 rtp-hold-timeout-sec [1800]
2017-10-30 21:39:24.161856 [DEBUG] sofia.c:4629 tls [false]
2017-10-30 21:39:24.161862 [DEBUG] sofia.c:4629 tls-only [false]
2017-10-30 21:39:24.161867 [DEBUG] sofia.c:4629 tls-bind-params [transport=tls]
2017-10-30 21:39:24.161874 [DEBUG] sofia.c:4629 tls-sip-port [5081]
2017-10-30 21:39:24.161882 [DEBUG] sofia.c:4629 tls-passphrase []
2017-10-30 21:39:24.161892 [DEBUG] sofia.c:4629 tls-verify-date [true]
2017-10-30 21:39:24.161898 [DEBUG] sofia.c:4629 tls-verify-policy [none]
2017-10-30 21:39:24.161910 [DEBUG] sofia.c:4629 tls-verify-depth [2]
2017-10-30 21:39:24.161920 [DEBUG] sofia.c:4629 tls-verify-in-subjects []

Regards,
Nagesh

Chad Pilkey

unread,
Nov 1, 2017, 3:19:23 PM11/1/17
to BigBlueButton-Setup
That's just some log messages. I'm not sure what I'm supposed to be looking at.

Can you post the output from "tail -n20 /opt/freeswitch/etc/freeswitch/sip_profiles/external.xml". That will output the last 20 lines of the file.

Fred Dixon

unread,
Nov 2, 2017, 8:24:13 PM11/2/17
to bigbluebu...@googlegroups.com
Hi Nagesh,

The warning

# Warning: The setting of 34.237.48.244 for bbb.sip.app.ip in
#
#    /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties
#
# does not match the local IP address (172.31.65.27).

shows that you have assigned the external IP address for bbb-sip.  However, the documentation states you need to use the internal IP address.  See


Double-check that you have the correct settings as per the above documentation and try the audio again.


Regards,.. Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsub...@googlegroups.com.
To post to this group, send email to bigbluebutton-setup@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton
Reply all
Reply to author
Forward
0 new messages