Remove stun option
This commit is contained in:
parent
543c275654
commit
d8bcc6864f
1 changed files with 1 additions and 9 deletions
10
README.md
10
README.md
|
@ -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
|
|
||||||
$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}"
|
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>"
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue