Change pjsip's replacements to be ipv4 only
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
d01311c62a
commit
9790cddf49
@ -31,6 +31,9 @@ else
|
||||
curl -o /etc/asterisk/modules.conf https://ap5.gonknet.org/modules/$HOSTNAME/$GONK_KEY
|
||||
curl -o /etc/asterisk/logger.conf https://ap5.gonknet.org/logger/$HOSTNAME/$GONK_KEY
|
||||
|
||||
sed "s/##EXTERNAL_IP##/$(curl https://ipv4.myip.wtf/text)/g" /etc/asterisk/pjsip.conf
|
||||
|
||||
|
||||
echo " Setting up auto reload config files..."
|
||||
echo "26 * * * * /usr/bin/reload" >> /etc/cron.d/reload
|
||||
|
||||
|
@ -6,4 +6,7 @@ curl -qo /etc/asterisk/pjsip.conf https://ap5.gonknet.org/pjsip/$HOSTNAME/$GONK_
|
||||
curl -qo /etc/asterisk/modules.conf https://ap5.gonknet.org/modules/$HOSTNAME/$GONK_KEY
|
||||
curl -qo /etc/asterisk/logger.conf https://ap5.gonknet.org/logger/$HOSTNAME/$GONK_KEY
|
||||
|
||||
sed "s/##EXTERNAL_IP##/$(curl https://ipv4.myip.wtf/text)/g" /etc/asterisk/pjsip.conf
|
||||
|
||||
|
||||
asterisk -x "core restart when convenient"
|
Loading…
Reference in New Issue
Block a user