Skip to content
Snippets Groups Projects
Commit dc73b512 authored by Dixon Fred's avatar Dixon Fred Committed by GitHub
Browse files

Merge pull request #3615 from ffdixon/update-bbb-conf-3

bbb-conf now recommends editing external.xml if FreeSWITCH is listening to 5066 with SSL enabled 
parents b8dde7b9 0589105b
No related branches found
No related tags found
No related merge requests found
......@@ -910,6 +910,15 @@ check_configuration() {
echo "# $FREESWITCH_EXTERNAL"
echo
fi
if grep ws-binding $FREESWITCH_EXTERNAL > /dev/null; then
echo "# Warning: You have configured SSL, but FreeSWITCH is still listening"
echo "# on port 5066. You should edit "
echo "#"
echo "# $FREESWITCH_EXTERNAL"
echo "#"
echo "# and remove the line that contains ws-binding."
echo
fi
fi
if [ $DISTRIB_ID != "centos" ]; then
......@@ -1487,7 +1496,12 @@ if [ $CHECK ]; then
echo " red5: $RED5_IP"
echo " useWebrtcIfAvailable: $WEBRTC_ENABLED_CLIENT"
WEBRTC_SOCKET=$(sudo cat $FREESWITCH_EXTERNAL | sed -n '/ws-binding/{s/.*value="://;s/".*//;p}')
if grep -q ws-binding $FREESWITCH_EXTERNAL; then
WEBRTC_SOCKET=$(sudo cat $FREESWITCH_EXTERNAL | sed -n '/ws-binding/{s/.*value="://;s/".*//;p}')
fi
if grep -q wss-binding $FREESWITCH_EXTERNAL; then
WEBRTC_SOCKET=$(sudo cat $FREESWITCH_EXTERNAL | sed -n '/wss-binding/{s/.*value="://;s/".*//;p}')
fi
echo
echo "$FREESWITCH_EXTERNAL (FreeSWITCH)"
echo " websocket port: $WEBRTC_SOCKET"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment