Kaynağa Gözat

Using Server IP instead generic IP

Using Server IP to set SIP ip in freeswitch.
master
lmartin 3 yıl önce
ebeveyn
işleme
03a9bddf1f
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2
    1
      update-bbb.sh

+ 2
- 1
update-bbb.sh Dosyayı Görüntüle

@@ -11,9 +11,10 @@ fi
11 11
 
12 12
 BBB_WEB_URL=$(cat ${SERVLET_DIR}/WEB-INF/classes/bigbluebutton.properties | grep -v '#' | sed -n '/^bigbluebutton.web.serverURL/{s/.*=//;p}')
13 13
 RESULT=$(echo $BBB_WEB_URL | awk 'sub(/^.{8}/,"")')
14
+MY_IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
14 15
 
15 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 19
 bbb-conf --setip $RESULT
19 20
 bbb-conf --restart

Loading…
İptal
Kaydet