Commit 69e0b805 authored by Grzegorz Sluja's avatar Grzegorz Sluja
Browse files

Save CW state to uci so that it persists across reboot


Signed-off-by: Grzegorz Sluja's avatarGrzegorz Sluja <grzegorz.sluja@iopsys.eu>
parent b13733c7
......@@ -5,6 +5,8 @@
if [ $2 != '?' ]; then
for tel_line in `uci show $VOICE_UCI_CONFIG | grep telline | grep $1 | cut -d . -f 2`; do
sed -i "/\[$tel_line\]/,/^\[/ s/\(callwaiting=\)[0-9]/\1$2/" $ASTERISK_CONF_DIR/chan_telephony.conf
uci set asterisk.$tel_line.callwaiting_enabled="$2"
uci commit asterisk
done
else
for tel_line in `uci show $VOICE_UCI_CONFIG | grep telline | grep $1 | cut -d . -f 2`; do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment