/usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties
/opt/freeswitch/etc/freeswitch/vars.xml
/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml
and then run bbb-conf --restart
With 2.3 the script call by /etc/rc.local (I did configure and enable the rc-local service) has only a partial effect, freeswitch is still not working properly (error 1002 at the echo test) . No problem with the webcam on the other hand.
I also did try to add the script without the last call to bbb-conf --restart in the file /etc/bigbluebutton/bbb-conf/apply-config.sh which is supposed to be executed before bbb is launched, but this drive to the same 1002 error.
Running the script by hand and then reboot solves the problem but I would like an automatic solution ....
As someone any idea ?
There are quite a few places where you got the IP in bbb configs.
Why do you even turn the server on and off regularly :-P
My guess is the best might be running the installer script every
time the IP changes ...
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-setup/920bd5ec-c3ed-4d81-81eb-2c85202733b0n%40googlegroups.com.
Why do you even turn the server on and off regularly :-P
My guess is the best might be running the installer script every time the IP changes ...
Look at /etc/bigbluebutton/nginx/sip.nginx and make sure this is the external IP, and also /opt/freeswitch/conf/sip_profiles/external.xml they need to match.
1002 is websockets failing.
Regards,
Stephen
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-setup/b46d78ff-e794-8481-b810-677aa9ca1259%40gmx.de.
You shouldn’t get 1002 if only internal is misconfigured, but the backend bbb components would fail to connect to freewitch, so joining the conference fails. But with other errors 1xxx errors
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-setup/99322bde-3151-4771-946d-ce472efc5a06n%40googlegroups.com.
You shouldn’t get 1002 if only internal is misconfigured, but the backend bbb components would fail to connect to freewitch, so joining the conference fails. But with other errors 1xxx errors
How do you stop the instance, the hard power off, or putting the server in standby mode? Do you use the apis, or the scaleway console.
Looks like standby mode may continue to incur charges? I’m starting of instance and testing.
Regards
Stephen
From: bigbluebu...@googlegroups.com <bigbluebu...@googlegroups.com> On Behalf Of Fabrice Rouillier
Sent: Friday, May 7, 2021 6:08 AM
To: BigBlueButton-Setup <bigbluebu...@googlegroups.com>
Subject: Re: [bigbluebutton-setup] BBB-2.3 and Local IP change
You shouldn’t get 1002 if only internal is misconfigured, but the backend bbb components would fail to connect to freewitch, so joining the conference fails. But with other errors 1xxx errors
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-setup/bd1aae41-41f8-4cd7-a83e-f405d06add90n%40googlegroups.com.
How do you stop the instance, the hard power off, or putting the server in standby mode? Do you use the apis, or the scaleway console.
Can you share the script that changes the internal IP is all the locations for 2.3, I have scaleway instance running to test, will try to get the config files changed before any of the systemd services startup.
I believe your rc. Script is doing it after bbb is up if I had to guess.
Regards,
Stephen
From: bigbluebu...@googlegroups.com <bigbluebu...@googlegroups.com> On Behalf Of Fabrice Rouillier
Sent: Friday, May 7, 2021 7:27 AM
To: BigBlueButton-Setup <bigbluebu...@googlegroups.com>
Subject: Re: [bigbluebutton-setup] BBB-2.3 and Local IP change
How do you stop the instance, the hard power off, or putting the server in standby mode? Do you use the apis, or the scaleway console.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-setup/60ae76ee-d3b2-4b94-bd1c-63ae021d32can%40googlegroups.com.
So here is what I did for 2.3 to get the stop/start to fully work In Scaleway.
No need to run bbb-conf –restart.
The systemd files are starting all the bbb services immediately, if you tail /opt/freeswitch/log, you will see the error where freeswitch sip profiles fail to load because of old IP not able to bind.
My solution
Create /var/lib/cloud/scripts/per-boot/change-insternal-ip-on-boot.sh and do a chmod +x on it so it is executable
#!/bin/bash
ifconfig >/tmp/changeinternal
old_internal=`cat /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml | grep localIpAddress | sed 's/localIpAddress: //'`
new_internal=`scw-metadata PRIVATE_IP`
echo "OLD $old_internal NEW $new_internal Internal" >>/tmp/changeinternal
sed -i "s/$old_internal/$new_internal/g" /opt/freeswitch/etc/freeswitch/vars.xml
sed -i "s/$old_internal/$new_internal/g" /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml
changed_internal=`cat /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml | grep localIpAddress | sed 's/localIpAddress: //'`
echo "Changed to $changed_internal" >>/tmp/changeinternal
/opt/freeswitch/bin/fs_cli -p $(xmlstarlet sel -t -m 'configuration/settings/param[@name="password"]' -v @value /opt/freeswitch/etc/freeswitch/autoload_configs/event_socket.conf.xml) -x "reload mod_sofia" >>/tmp/changeinternal
Pretty much same as yours, im doing it in cloud-init, per boot.
You can eliminate the red5 sip.properties line is yours, not needed for 2.3
Also notice the last line… I let BBB start as normal, then I reload mod_sofia to get the profiles loaded with the new internal IP.
Tested half dozen times, and starting allows for both full, listen only audio to work, as well as camera/screenshare immediately on start up.
You could mess with the systemd files im sure to wait for change be bore starting freeswitch, but this approach has no changes to bbb package, and the services are up sooner.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-setup/f5caa8c8-9c29-4979-8037-506101ab6071n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-setup/e365e31e-9de1-489e-9789-bf1c27ff22c2n%40googlegroups.com.