Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Feed
openwrt-telephony
Commits
69e0b805
Commit
69e0b805
authored
Jul 23, 2021
by
Grzegorz Sluja
Browse files
Save CW state to uci so that it persists across reboot
Signed-off-by:
Grzegorz Sluja
<
grzegorz.sluja@iopsys.eu
>
parent
b13733c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
net/asterisk/files/iopsys/lib/voice/cw.sh
View file @
69e0b805
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment