Set SIP dtmf mode to auto if it was set to the obsolete compatibility.

Ref:#16274
This commit is contained in:
Kent Ekholm 2018-11-28 10:59:10 +01:00
parent 497967b693
commit 6011f9bb49

View file

@ -58,5 +58,12 @@ uci -q batch <<-EOT
commit firewall
EOT
exit 0
# If dtmfmode is set to the obsolete compatability change to auto
sed -i 's/dtmfmode\s*=\s*compatibility/dtmfmode=auto/' /etc/asterisk/sip.conf
if [ $(uci get voice_client.SIP.dtmfmode) == 'compatibility' ]; then
uci set voice_client.SIP.dtmfmode='auto'
uci commit
fi
exit 0