From eeffa1c6b0e3f8f23d60c60b86fb6dd442ef48c6 Mon Sep 17 00:00:00 2001 From: Fred Dixon Date: Mon, 24 Sep 2018 11:54:44 -0400 Subject: [PATCH] Remove IPV6 in FreeSWITCH --- README.md | 2 +- setup.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9de9c1..ef17d2e 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ docker build -t bigbluebutton . Here we called the BigBlueButton container `bigbluebutton`. To run BigBlueButton in Docker, run the command ~~~ -docker run -p 80:80/tcp -p 443:443/tcp -p 1935:1935 -p 5066:5066 -p 3478:3478 -p 3478:3478/udp bigbluebutton -h +docker run -rm -p 80:80/tcp -p 443:443/tcp -p 1935:1935 -p 5066:5066 -p 3478:3478 -p 3478:3478/udp bigbluebutton -h ~~~ Make sure you provide the host IP of the server on which you run the docker command. Once running, you can navigate to `http://` to access your BigBlueButton server. diff --git a/setup.sh b/setup.sh index e5ec16b..fea727e 100755 --- a/setup.sh +++ b/setup.sh @@ -75,6 +75,13 @@ xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@ xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_sip_ip=")]/@data' --value "stun:coturn" /opt/freeswitch/conf/vars.xml xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "local_ip_v4=")]/@data' --value "${IP}" /opt/freeswitch/conf/vars.xml +if [ -f /opt/freeswitch/conf/sip_profiles/external-ipv6.xml ]; then + mv /opt/freeswitch/conf/sip_profiles/external-ipv6.xml /opt/freeswitch/conf/sip_profiles/external-ipv6.xml_ +fi +if [ -f /opt/freeswitch/conf/sip_profiles/internal-ipv6.xml ]; then + mv /opt/freeswitch/conf/sip_profiles/internal-ipv6.xml /opt/freeswitch/conf/sip_profiles/internal-ipv6.xml_ +fi + sed -i "s/proxy_pass .*/proxy_pass $PROTOCOL_HTTP:\/\/$IP:5066;/g" /etc/bigbluebutton/nginx/sip.nginx sed -i "s/http[s]*:\/\/\([^\"\/]*\)\([\"\/]\)/$PROTOCOL_HTTP:\/\/$HOST\2/g" /var/www/bigbluebutton/client/conf/config.xml