mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-14 21:10:11 +01:00
Set SIP dtmf mode to auto if it was set to the obsolete compatibility.
Ref:#16274
This commit is contained in:
parent
497967b693
commit
6011f9bb49
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue