Remove stun option

This commit is contained in:
Dominic Grimm 2024-08-02 15:46:24 +02:00
parent 543c275654
commit d8bcc6864f

View file

@ -110,15 +110,8 @@ case "$1" in
# - T38MODEM_SIP_USERNAME # - T38MODEM_SIP_USERNAME
# - T38MODEM_SIP_PASSWORD # - T38MODEM_SIP_PASSWORD
# - T38MODEM_SIP_SERVER # - T38MODEM_SIP_SERVER
# - T38MODEM_STUN
if [ -z ${T38MODEM_STUN+x} ]; then COMMAND="t38modem -u T38modem --ptty +/dev/ttyT38-1 --sip-proxy ${T38MODEM_SIP_USERNAME}:${T38MODEM_SIP_PASSWORD}@${T38MODEM_SIP_SERVER} --sip-register ${T38MODEM_SIP_USERNAME}@${T38MODEM_SIP_SERVER},${T38MODEM_SIP_PASSWORD} --sip-listen udp\$:5060 --route t38:.*=sip:<dn>@${T38MODEM_SIP_SERVER} --route sip:.*=t38:<dn>"
$STUN="--stun ${T38MODEM_STUN}"
else
$STUN=""
fi
COMMAND="t38modem -u T38modem --ptty +/dev/ttyT38-1 --sip-proxy ${T38MODEM_SIP_USERNAME}:${T38MODEM_SIP_PASSWORD}@${T38MODEM_SIP_SERVER} --sip-register ${T38MODEM_SIP_USERNAME}@${T38MODEM_SIP_SERVER},${T38MODEM_SIP_PASSWORD} --sip-listen udp\$:5060 --route t38:.*=sip:<dn>@${T38MODEM_SIP_SERVER} --route sip:.*=t38:<dn> ${STUN}"
echo "${COMMAND}" echo "${COMMAND}"
exec $COMMAND > /dev/null 2>&1 & exec $COMMAND > /dev/null 2>&1 &
PID=$! PID=$!
@ -161,7 +154,6 @@ sudo chmod +x /etc/t38modem/bin/run
T38MODEM_SIP_USERNAME="USERNAME" T38MODEM_SIP_USERNAME="USERNAME"
T38MODEM_SIP_PASSWORD="PASSWORD" T38MODEM_SIP_PASSWORD="PASSWORD"
T38MODEM_SIP_SERVER="voip.example.com" T38MODEM_SIP_SERVER="voip.example.com"
# T38MODEM_STUN="stun.example.com" # optional
``` ```
- Give only root access to the config - Give only root access to the config