Canvas LMS Join Audio Problem

764 views
Skip to first unread message

Kafkas Kartalı

unread,
Jul 4, 2019, 6:41:13 AM7/4/19
to BigBlueButton-dev
Hello to everyone,

I use the BigblueButton plugin in Canvas LMS. I get error 1004 when I try to join the webinar with audio. When I join Webinar over Sakai LMS with the same server features, I do not get 1004 error.

Thanks for your help.

Translated by Google Translate.

Our respect.

Chad Pilkey

unread,
Jul 4, 2019, 4:51:10 PM7/4/19
to BigBlueButton-dev
Are you self-hosting Canvas and BigBlueButton? If I remember correctly, Canvas sends a 20 digit voiceBridge instead of the normal 5 digits. You can double check this by joining a meeting, opening the browser's dev tools (F12), go to the Network tab, reload the page, check the voiceBridge in the "enter" API response. Once you've confirmed that 20 digits in the length, edit /opt/freeswitch/conf/dialplan/default/bbb_echo_test.xml and change the following:

expression="^9196$|^9196(\d{5,6})$"

to

expression="^9196$|^9196(\d{5,6}|\d{20,21})$"

Kafkas Kartalı

unread,
Jul 4, 2019, 7:56:14 PM7/4/19
to BigBlueButton-dev
Hi Chad,

Firstly, thank you. I have followed the steps you mentioned, but when the participants choose the "listen only" option, they get the same error (1004).

Canvas LMS is hosted on our own servers (Ubuntu 16.04 / Bitnami Apps).

The voiceBridge value is 20 digits.

4 Temmuz 2019 Perşembe 19:51:10 UTC+3 tarihinde Chad Pilkey yazdı:

Chad Pilkey

unread,
Jul 4, 2019, 8:10:47 PM7/4/19
to BigBlueButton-dev
It looks like there's also some regular expressions in /opt/freeswitch/conf/dialplan/default/bbb_conference.xml that need to be updated in the same way.

Kafkas Kartalı

unread,
Jul 5, 2019, 8:50:08 AM7/5/19
to BigBlueButton-dev
Hi Chad,

Unfortunately, the same problem persists. Do I need to make changes to another file?
Thank you.

4 Temmuz 2019 Perşembe 23:10:47 UTC+3 tarihinde Chad Pilkey yazdı:

Fred Dixon

unread,
Jul 5, 2019, 12:43:11 PM7/5/19
to BigBlueButton-dev

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/b446383d-80d2-4fba-be12-a53f145ac877%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
BigBlueButton Developer
@bigbluebutton

Chad Pilkey

unread,
Jul 5, 2019, 5:21:15 PM7/5/19
to BigBlueButton-dev
Both those posts are out of date with the recent dialplan changes that we made. The two files that I mentioned are the only place where the length of the voice bridge is checked. Running "grep -r "d{5,6}" /opt/freeswitch/conf/" will show them.

Might just have to go to the FreeSWITCH logs to find out what FS is failing on. The log I'll need takes a bit to get the cleaned version. Need to get a fresh join attempt, then find the FS session for that attempt, and finally fetch the logs for that session.

1. Try to join the audio with a user name that you know, let it fail
2. Run `grep "firstname" /opt/freeswitch/var/log/freeswitch/freeswitch.log` to print out some of the messages
3. Find the alphanumeric ID at the start of the last line. It'll look something like "ee5157b3-49bf-4e30-97a6-e0fbeb3b2b0f"
4. Run `grep "sessionID" /opt/freeswitch/var/log/freeswitch/freeswitch.log | cleaned-fs-log.log`
5. Attach the log here

That log file will have the complete picture of what FreeSWITCH did when it handled the call and what caused it to reject the call.
To unsubscribe from this group and stop receiving emails from it, send an email to bigblueb...@googlegroups.com.

Carl Gosselin

unread,
Jul 5, 2019, 5:31:53 PM7/5/19
to bigblueb...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.

To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-dev.

Kafkas Kartalı

unread,
Jul 5, 2019, 6:55:06 PM7/5/19
to BigBlueButton-dev
Hi Fred,

Thanks for the solution. Currently it runs smoothly on BBB-2.2-Beta-12.

My changes:

sudo vim /opt/freeswitch/conf/dialplan/default/bbb_echo_test.xml

<include>
  <extension name="bbb_echo_test_direct">
    <condition field="destination_number" expression="^9196$|^9196(\d{5,20})$">

sudo vim /opt/freeswitch/conf/dialplan/default/bbb_conference.xml

<extension name="bbb_conferences_ws">
      <condition field="destination_number" expression="^(\d{5,20})$">
.
.
.

  <extension name="bbb_conferences">
       <condition field="destination_number" expression="^(\d{5,20})$">

Best regards.

5 Temmuz 2019 Cuma 15:43:11 UTC+3 tarihinde Fred Dixon yazdı:
To unsubscribe from this group and stop receiving emails from it, send an email to bigblueb...@googlegroups.com.

Kafkas Kartalı

unread,
Jul 5, 2019, 6:57:13 PM7/5/19
to BigBlueButton-dev
Thank's Chad. 

It works fine with the following changes.

sudo vim /opt/freeswitch/conf/dialplan/default/bbb_echo_test.xml

<include>
  <extension name="bbb_echo_test_direct">
    <condition field="destination_number" expression="^9196$|^9196(\d{5,20})$">

sudo vim /opt/freeswitch/conf/dialplan/default/bbb_conference.xml

<extension name="bbb_conferences_ws">
      <condition field="destination_number" expression="^(\d{5,20})$">
.
.
.

  <extension name="bbb_conferences">
       <condition field="destination_number" expression="^(\d{5,20})$">

Best regards.

5 Temmuz 2019 Cuma 20:21:15 UTC+3 tarihinde Chad Pilkey yazdı:

Chad Pilkey

unread,
Jul 5, 2019, 8:02:07 PM7/5/19
to BigBlueButton-dev
I would try the breakout rooms to make sure that they aren't creating a voice bridge with 21 digits.

Adon Irani

unread,
Aug 27, 2019, 5:50:55 PM8/27/19
to BigBlueButton-dev
For me "Modules" deployment of BigBlueButton worked out of the box, but "Conferences" gave 1004 error.

Then following the above, "Conferences" worked but the "Modules" deployment of BigBlueButton broke.


in bbb_conference.xml i needed: (in both places)
<condition field="destination_number" expression="^(\d{5,6}|\d{20})$">

but in bbb_echo_test.xml: (as proposed in this thread)
<condition field="destination_number" expression="^9196$|^9196(\d{5,20})$">

My regex is rusty, so not entirely sure why the 5,20 didn't work in both cases.

Adon

Chad Pilkey

unread,
Aug 27, 2019, 7:24:58 PM8/27/19
to BigBlueButton-dev
Anything that matches (\d{5,6}|\d{20}) should also match (\d{5,20}). The former says, "Match a string with a minimum of five digits and a maximum of 6 digits, or with exactly 20 digits". The latter says, "Match any string with a minimum of 5 digits and a maximum of 20 digits". The former is more exact because it will only match the exact two scenarios rather than everything in between.
Reply all
Reply to author
Forward
0 new messages