Disabled WebRTC at all.

462 views
Skip to first unread message

Антон Мацюк

unread,
Oct 13, 2014, 7:12:39 AM10/13/14
to bigbluebu...@googlegroups.com
Hi!
In testing purposes I disabled WebRTC audio on server side (thru bbb-conf).
The purpose is to use Flash as default method to transmit audio.
When I connect to BBB, it asks me:
"Найдена проблема WebRTC: Could not make a WebSocket connection. Хотите ли Вы попробовать Flash?"
translated: "WebRTC problem found: Could not make a WebSocket connection. Do you want to use Flash?"
tip: translate this ugly "Could not make a WebSocket connection." in Russian text to Russian too ;)
The question is: I disabled WebRTC at server side, so why client try to use it?
Maybe it will be better to check first is WebRTC enabled on server?

The answer to "Why not to use WebRTC?": it was problematic to use, I faced with "do you allowed to transmit audio above? Click Allow here." and "click No and try allow Flash instead".
Not intuitive to final user what to do (they, actually, do not like to read what's written to them in interface :) ).
Maybe it will be cool to show the same "volumebar" when testing audio loopback?
And some sort of radiobuttons to select WebRTC/Flash input if both are available...
But it can both make easier or complicate the user experience, I think.
Thanks.

Fred Dixon

unread,
Oct 13, 2014, 8:55:17 AM10/13/14
to bigbluebu...@googlegroups.com
Hi Антон,

> tip: translate this ugly "Could not make a WebSocket connection." in Russian text to Russian too ;)

We're always looking to improve the translations.  If you want to improve the translation, it's easy to contribute.  Sign up for a free account at Transifex and see
  

> The answer to "Why not to use WebRTC?": it was problematic to use

The audio quality is much better than Flash.  See


Try updating your BigBlueButton 0.9.0-beta server to the latest build.  


> Maybe it will be cool to show the same "volumebar" when testing audio loopback?

Agreed.  This is something we want to implement in a future version.  The challenge is that Flash isn't receiving any audio with WebRTC, it's all coming through the browser.  We would need to have the browser give feedback via JavaScript on the audio level and bridge that data into Flash when the user is asked to do the audio test.


> And some sort of radiobuttons to select WebRTC/Flash input if both are available...

The problem is most users wouldn't know what WebRTC meant?  It would be a skill-testing question that would significantly increase the perceived complexity of the interface.

Instead, if the user uses FireFox or Chrome, we automatically try to use WebRTC.  Instead of asking them whether they want WebRTC or not, the interface asks, "Say a few words.  Can you hear yourself?"

If they answer 'yes', the BigBlueButton client connects them with a functioning microphone (using the higher quality WebRTC).

If they answer 'no', the BigBlueButton falls back to using Flash.

If the user joins with IE or Safari, the BigBlueButton client automatically uses Flash (these browsers do not support WebRTC).


By using the above logic, we try to use the best audio channel available and make sure the user has a functioning microphone before entering the session.

To help users get a functioning microphone working, we created this video



Again, if your interested to help add subtitles in Russian to the video, let me know directly.


Thanks again Антон for your feedback.


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-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton

Антон Мацюк

unread,
Oct 13, 2014, 10:33:31 AM10/13/14
to bigbluebu...@googlegroups.com
Cool, I'm already a Transifex "user". In quotes because I have no much time for it :(
Any way, I may try to participate in Russian and Ukrainian. :)

понедельник, 13 октября 2014 г., 15:55:17 UTC+3 пользователь Fred Dixon написал:
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 bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Chad Pilkey

unread,
Oct 13, 2014, 11:07:25 AM10/13/14
to bigbluebu...@googlegroups.com
The text in question actually comes from a JavaScript file and is not translated. You can see the line here, https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-client/resources/prod/lib/bbb_webrtc_bridge_sip.js#L181. I couldn't think of a good way to translate the error messages that are coming from the JS side.

Антон Мацюк

unread,
Oct 13, 2014, 11:35:26 AM10/13/14
to bigbluebu...@googlegroups.com
I thought so :)

понедельник, 13 октября 2014 г., 18:07:25 UTC+3 пользователь Chad Pilkey написал:

Антон Мацюк

unread,
Oct 13, 2014, 11:38:26 AM10/13/14
to bigbluebu...@googlegroups.com
Is it a part of bbb-code?
Why not to return error code instead of text (or with text too) to make errors be translated?

понедельник, 13 октября 2014 г., 18:07:25 UTC+3 пользователь Chad Pilkey написал:
The text in question actually comes from a JavaScript file and is not translated. You can see the line here, https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-client/resources/prod/lib/bbb_webrtc_bridge_sip.js#L181. I couldn't think of a good way to translate the error messages that are coming from the JS side.

Chad Pilkey

unread,
Oct 13, 2014, 12:01:40 PM10/13/14
to bigbluebu...@googlegroups.com
An error code could work. I could then lookup the error code and get the localized text from the Flash locales.

Also for turning off WebRTC you have to make a change to the client as well. You have to change this property on this line to "false", https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-client/resources/config.xml.template#L59.

Антон Мацюк

unread,
Oct 14, 2014, 9:36:20 AM10/14/14
to bigbluebu...@googlegroups.com
Also for turning off WebRTC you have to make a change to the client as well. You have to change this property on this line to "false", https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-client/resources/config.xml.template#L59.
Thanks, it works well.
Flash works well even thru corporative proxy at my work.
I'll look at future releases, maybe in future WebRTC can be used too.
And I can help with that, but not on this pre-production instance that I made.
I should make another instance, with different port, maybe, and test new features there.

Антон Мацюк

unread,
Nov 23, 2014, 8:20:07 AM11/23/14
to bigbluebu...@googlegroups.com
Hi! I have some news.
When bbb-client package being updated (I think it's bbb-client), I have webrtc enabled again.
It was twice at this moment.
Can I do something to disable it permanently?

Fred Dixon

unread,
Nov 23, 2014, 8:25:29 AM11/23/14
to bigbluebu...@googlegroups.com
Hi Антон,

> Can I do something to disable it permanently?

Not at the moment.  You should be able to run

  sudo bbb-conf --disablewebrtc

to disable WebRTC after each upgrade your 0.9.0-beta server.

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-s...@googlegroups.com.

To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Антон Мацюк

unread,
Nov 23, 2014, 8:59:54 AM11/23/14
to bigbluebu...@googlegroups.com
After upgrade FreeSwitch won't start.
I made configuration for client to not try webrtc, saved.
Then made
sudo bbb-conf --disablewebrtc
then
sudo bbb-conf --clean
And FreeSwitch draws me dots (three lines already).

воскресенье, 23 ноября 2014 г., 15:25:29 UTC+2 пользователь Fred Dixon написал:
Hi Антон,

> Can I do something to disable it permanently?

Not at the moment.  You should be able to run

  sudo bbb-conf --disablewebrtc

to disable WebRTC after each upgrade your 0.9.0-beta server.

Regards,... Fred
On Sun, Nov 23, 2014 at 8:20 AM, Антон Мацюк <denixx...@gmail.com> wrote:
Hi! I have some news.
When bbb-client package being updated (I think it's bbb-client), I have webrtc enabled again.
It was twice at this moment.
Can I do something to disable it permanently?

--
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 bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Fred Dixon

unread,
Nov 23, 2014, 9:06:30 AM11/23/14
to bigbluebu...@googlegroups.com
Hi 

> And FreeSwitch draws me dots (three lines already).

It's the bbb-conf program that is drawing dots while it waits for FreeSWITCH to start.

If your not getting FreeSWITCH to start from within bbb-conf, you can always start it directly and see what the output is on the console.  

  sudo bbb-conf --stop
  sudo su - root
  cd /opt/freeswitch/bin
  ./freeswitch

At this point you may some errors from the FreeSWITCH startup sequence. Google will help you find the meaning for some of the errors.

If there are no errors, then try in another terminal to connect to the command line interface

  sudo /opt/freeswitch/bin/fs_cli

What's likely happening is FreeSWITCH is being told to bind to a specific IP address and the bbb-conf --check is looking to connect with BigBlueButton at a different IP address.  Check 


Regards,... Fred


To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.

To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Антон Мацюк

unread,
Nov 23, 2014, 9:53:08 AM11/23/14
to bigbluebu...@googlegroups.com
root@BBBServ:/opt/freeswitch/bin# ./freeswitch
2014-11-23 16:46:16.150230 [INFO] switch_event.c:670 Activate Eventing Engine.
2014-11-23 16:46:16.161644 [WARNING] switch_event.c:652 Create additional event dispatch thread 0
Cannot Initialize [[error near line 2518]: unclosed <!--]

And that's all. Looked into ../log/freeswitch.xml.fsxml

this line contains
<param name="tls-verify-date" value="true"/>
and here is no unclosed comments around it =(

воскресенье, 23 ноября 2014 г., 16:06:30 UTC+2 пользователь Fred Dixon написал:
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsubscribe...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton

--
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 bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Fred Dixon

unread,
Nov 23, 2014, 10:05:37 AM11/23/14
to bigbluebu...@googlegroups.com
Hi Антон,

Did you make any modifications of the FreeSWITCH configuration files?  

If so, recommend you install BigBlueButton on another server (using the default packages) and then copy over the /opt/freeswitch/conf directory to your server in a different location, such as /tmp/conf

You can then compare the configuration files using the command

  diff -r /opt/freeswitch/conf /tmp/conf

With this, you should be able to quickly find any differences between a working set of configuration files and your set of FreeSWITCH configuration files (and any syntax errors that may be causing FreeSWITCH to have troubles loading the configuration).


Regards,... Fred

To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.

To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Антон Мацюк

unread,
Nov 23, 2014, 10:08:13 AM11/23/14
to bigbluebu...@googlegroups.com
Thanks, will try to.

воскресенье, 23 ноября 2014 г., 17:05:37 UTC+2 пользователь Fred Dixon написал:

Антон Мацюк

unread,
Nov 24, 2014, 6:05:44 AM11/24/14
to bigbluebu...@googlegroups.com
denixx@ubuntu-srv-bbb:~$ sudo diff -r /opt/freeswitch/conf/ /home/denixx/conf/
Binary files /opt/freeswitch/conf/freeswitch.serial and /home/denixx/conf/freeswitch.serial differ
diff -r /opt/freeswitch/conf/sip_profiles/external.xml /home/denixx/conf/sip_profiles/external.xml
101c101
<     <param name="ws-binding"  value=":5066"/>
---
>     <!--<!--<param name="ws-binding"  value=":5066"/>-->-->
103,105d102
<     <!-- enable rtcp on every channel also can be done per leg basis with rtcp_audio_interval_msec variable set to passthru to pass it across a call-->
<     <param name="rtcp-audio-interval-msec" value="5000"/>
<     <param name="rtcp-video-interval-msec" value="5000"/>
diff -r /opt/freeswitch/conf/vars.xml /home/denixx/conf/vars.xml
29c29
<   <X-PRE-PROCESS cmd="set" data="local_ip_v4=192.168.0.240"/>
---
>   <X-PRE-PROCESS cmd="set" data="local_ip_v4=127.0.0.1"/>

воскресенье, 23 ноября 2014 г., 17:08:13 UTC+2 пользователь Антон Мацюк написал:
Thanks, will try to.

воскресенье, 23 ноября 2014 г., 17:05:37 UTC+2 пользователь Fred Dixon написал:
You can then compare the configuration files using the command

Антон Мацюк

unread,
Nov 24, 2014, 6:27:06 AM11/24/14
to bigbluebu...@googlegroups.com
I have cleared
<!--<!--<param name="ws-binding"  value=":5066"/>-->-->
to
<param name="ws-binding"  value=":5066"/>
and seems all is ok now, FreeSwitch is up and ready.
Can't even guess who made that, /opt/freeswitch is locked for my user.
I am alone on that virtual servers, they are mine, no one else have access to them.

понедельник, 24 ноября 2014 г., 13:05:44 UTC+2 пользователь Антон Мацюк написал:

Антон Мацюк

unread,
Nov 24, 2014, 6:37:04 AM11/24/14
to bigbluebu...@googlegroups.com
Testcase: run sudo bbb-conf --disablewebrtc four times.
You will get this
<!--<!--<!--<!--<param name="ws-binding"  value=":5066"/>-->-->-->-->

понедельник, 24 ноября 2014 г., 13:27:06 UTC+2 пользователь Антон Мацюк написал:

Fred Dixon

unread,
Nov 24, 2014, 7:38:00 AM11/24/14
to bigbluebu...@googlegroups.com
Hi Антон,

Yes.  I just figured that out before I had read your last message. :-)  

We'll add more logic to --disablewebrtc so it doesn't double comment the line with ws-binding.   

Good catch!

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-s...@googlegroups.com.

To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Антон Мацюк

unread,
Nov 24, 2014, 9:26:47 AM11/24/14
to bigbluebu...@googlegroups.com
Thanks :)
I am glad that I am useful. ;)

понедельник, 24 ноября 2014 г., 14:38:00 UTC+2 пользователь Fred Dixon написал:
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 bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages