Change pjsip's replacements to be ipv4 only
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Alex 2022-09-12 14:28:43 -04:00
parent d01311c62a
commit 9790cddf49
Signed by: technically
GPG Key ID: 46E0A080F69E83F1
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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"