diff --git a/bbb-voice-conference/config/freeswitch/conf/autoload_configs/event_socket.conf.xml b/bbb-voice-conference/config/freeswitch/conf/autoload_configs/event_socket.conf.xml index 227b8860f84cab321b34f544ca7dd58de9b6df6f..e4581bc948f51078d57b1852c20f1872734f0f29 100644 --- a/bbb-voice-conference/config/freeswitch/conf/autoload_configs/event_socket.conf.xml +++ b/bbb-voice-conference/config/freeswitch/conf/autoload_configs/event_socket.conf.xml @@ -4,6 +4,6 @@ <param name="listen-ip" value="127.0.0.1"/> <param name="listen-port" value="8021"/> <param name="password" value="ClueCon"/> - <param name="apply-inbound-acl" value="localnet.auto"/> + <!-- param name="apply-inbound-acl" value="localnet.auto"/ --> </settings> </configuration> diff --git a/bigbluebutton-config/bin/bbb-conf b/bigbluebutton-config/bin/bbb-conf index e7b864b9206a9578934c79e6087a4d5773029f6f..03eb8d785f3159e5732f67ec34f5128c1d9bb1c5 100755 --- a/bigbluebutton-config/bin/bbb-conf +++ b/bigbluebutton-config/bin/bbb-conf @@ -143,7 +143,7 @@ need_root() { } usage() { - echo "BigBlueButton Configuration Utility - Version 0.71-dev3" + echo "BigBlueButton Configuration Utility - Version 0.71-dev4" echo "http://code.google.com/p/bigbluebutton/wiki/BBBConf" echo echo "$0 [options]" @@ -162,7 +162,9 @@ usage() { echo echo "Administration": echo " --restart Restart BigBueButton" - echo " --clean Clear all the log files and restart BigBlueButton" + echo " --stop Stop BigBueButton" + echo " --start Start BigBueButton" + echo " --clean Restart and clean all log files" echo " --zip Zip up log files for reporting an error" echo if [ "$(is_vm)" ]; then @@ -245,12 +247,35 @@ start_bigbluebutton () { /etc/init.d/asterisk start fi /etc/init.d/activemq start + + echo -n "Waiting for active MQ to start: " + while ! nc -z -w 1 127.0.0.1 61616; do + echo -n "." + sleep 1 + done + echo + + if [ "$VOICE_CONFERENCE" == "bbb-voice-freeswitch.xml" ]; then + echo -n "Waiting for FreeSwitch to start: " + + while ! nc -z -w 1 127.0.0.1 8021; do + echo -n "." + sleep 1 + done + echo + else + echo -n "Waiting for Asterisk to start: " + + while ! nc -z -w 1 127.0.0.1 5038; do + echo -n "." + sleep 1 + done + fi + /etc/init.d/bbb-openoffice-headless start - sleep 5 /etc/init.d/nginx start /etc/init.d/red5 start /etc/init.d/${TOMCAT} start - sleep 5 } display_bigbluebutton_status () { @@ -267,6 +292,16 @@ fi # Parse the parameters while [ $# -gt 0 ]; do + if [ "$1" = "-stop" -o "$1" = "--stop" ]; then + stop_bigbluebutton + exit 0 + fi + + if [ "$1" = "-start" -o "$1" = "--start" ]; then + start_bigbluebutton + exit 0 + fi + if [ "$1" = "-check" -o "$1" = "--check" -o "$1" = "-c" ]; then CHECK=1 shift;shift