Browse Source

Using Server IP instead generic IP

Using Server IP to set SIP ip in freeswitch.
master
lmartin 3 years ago
parent
commit
03a9bddf1f
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      update-bbb.sh

+ 2
- 1
update-bbb.sh View File

11
 
11
 
12
 BBB_WEB_URL=$(cat ${SERVLET_DIR}/WEB-INF/classes/bigbluebutton.properties | grep -v '#' | sed -n '/^bigbluebutton.web.serverURL/{s/.*=//;p}')
12
 BBB_WEB_URL=$(cat ${SERVLET_DIR}/WEB-INF/classes/bigbluebutton.properties | grep -v '#' | sed -n '/^bigbluebutton.web.serverURL/{s/.*=//;p}')
13
 RESULT=$(echo $BBB_WEB_URL | awk 'sub(/^.{8}/,"")')
13
 RESULT=$(echo $BBB_WEB_URL | awk 'sub(/^.{8}/,"")')
14
+MY_IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
14
 
15
 
15
 #This should be dropped into apply-config.sh, but for now we are going to call it here once we update the instance.
16
 #This should be dropped into apply-config.sh, but for now we are going to call it here once we update the instance.
16
-#xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_rtp_ip=")]/@data' --value "external_rtp_ip=234.32.3.3" /opt/freeswitch/conf/vars.xml
17
+#xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_rtp_ip=")]/@data' --value "external_rtp_ip=$MY_IP" /opt/freeswitch/conf/vars.xml
17
 
18
 
18
 bbb-conf --setip $RESULT
19
 bbb-conf --setip $RESULT
19
 bbb-conf --restart
20
 bbb-conf --restart

Loading…
Cancel
Save