Skip to content

Commit a4bb33d

Browse files
committed
Made public IP configurable
1 parent 5bae046 commit a4bb33d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apply-config-sample.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/bash
22

3+
# Public IP address of the BBB server
4+
PUBLIC_IP="148.251.131.28"
5+
36
# Pull in the helper functions for configuring BigBlueButton
47
source /etc/bigbluebutton/bbb-conf/apply-lib.sh
58

69
enableUFWRules
710

8-
echo "Warning: change external_rtp_ip and external_sip_ip to the public IP of your BBB server."
9-
1011
echo "Running three parallel Kurento media server"
1112
enableMultipleKurentos
1213

@@ -89,8 +90,8 @@ sed -i "s/defaultCopyright = .*/defaultCopyright = \'<p>HigherEdLab.com<\/p>\';/
8990
echo "Fix for 1007 and 1020 - https://github.com/manishkatyan/bbb-optimize#fix-1007-and-1020-errors"
9091
xmlstarlet edit --inplace --update '//profile/settings/param[@name="ext-rtp-ip"]/@value' --value "\$\${external_rtp_ip}" /opt/freeswitch/etc/freeswitch/sip_profiles/external.xml
9192
xmlstarlet edit --inplace --update '//profile/settings/param[@name="ext-sip-ip"]/@value' --value "\$\${external_sip_ip}" /opt/freeswitch/etc/freeswitch/sip_profiles/external.xml
92-
xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_rtp_ip=")]/@data' --value "external_rtp_ip=176.9.30.208" /opt/freeswitch/etc/freeswitch/vars.xml
93-
xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_sip_ip=")]/@data' --value "external_sip_ip=176.9.30.208" /opt/freeswitch/etc/freeswitch/vars.xml
93+
xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_rtp_ip=")]/@data' --value "external_rtp_ip=$PUBLIC_IP" /opt/freeswitch/etc/freeswitch/vars.xml
94+
xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_sip_ip=")]/@data' --value "external_sip_ip=$PUBLIC_IP" /opt/freeswitch/etc/freeswitch/vars.xml
9495

9596
echo "Fix till 2.2.30 - https://github.com/bigbluebutton/bigbluebutton/issues/9667"
9697
yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.media.sipjsHackViaWs true

0 commit comments

Comments
 (0)