mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
voice_client: add default call filter if it does not already exist
This commit is contained in:
parent
256948792c
commit
bbede82173
1 changed files with 17 additions and 1 deletions
|
|
@ -1,6 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q get voice_client.RINGING_STATUS >/dev/null && exit 0
|
||||
uci -q get voice_client.call_filter0 >/dev/null || {
|
||||
|
||||
uci -q batch <<-EOT
|
||||
add voice_client call_filter
|
||||
rename voice_client.@call_filter[-1]=call_filter0
|
||||
set voice_client.call_filter0.block_foreign=0
|
||||
set voice_client.call_filter0.block_special_rate=0
|
||||
set voice_client.call_filter0.block_outgoing=0
|
||||
set voice_client.call_filter0.block_incoming=0
|
||||
commit voice_client
|
||||
EOT
|
||||
|
||||
}
|
||||
|
||||
uci -q get voice_client.RINGING_STATUS >/dev/null || {
|
||||
|
||||
uci -q batch <<-EOT
|
||||
add voice_client ringing_status
|
||||
|
|
@ -11,5 +25,7 @@ uci -q batch <<-EOT
|
|||
commit voice_client
|
||||
EOT
|
||||
|
||||
}
|
||||
|
||||
exit 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue