mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
sulu-vendorext: remove unused voip ubus object
This commit is contained in:
parent
7fa5c901f9
commit
9692cf8bc3
1 changed files with 0 additions and 32 deletions
|
|
@ -1,32 +0,0 @@
|
|||
#!/bin/sh
|
||||
. /usr/share/libubox/jshn.sh
|
||||
|
||||
case "$1" in
|
||||
list)
|
||||
echo '{ "reset" : {"sip": "string"} }'
|
||||
;;
|
||||
call)
|
||||
case "$2" in
|
||||
reset)
|
||||
read input;
|
||||
sip=`echo $input | jsonfilter -e '@.sip'`
|
||||
|
||||
if [ "$sip" == "" ] || [ ! $(uci -q get asterisk.$sip) ]; then
|
||||
result="incorrect parameter $input"
|
||||
else
|
||||
ubus call uci set '{"config":"asterisk", "section":"'$sip'", "values": {"enable":"0"}}'
|
||||
ubus call uci commit '{"config":"asterisk"}'
|
||||
ubus call uci set '{"config":"asterisk", "section":"'$sip'", "values": {"enable":"1"}}'
|
||||
ubus call uci commit '{"config":"asterisk"}'
|
||||
result="ok"
|
||||
fi
|
||||
|
||||
json_init
|
||||
json_add_string "status" "$result"
|
||||
json_dump
|
||||
;;
|
||||
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
Loading…
Add table
Reference in a new issue