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
534d633a
Commit
534d633a
authored
Sep 07, 2021
by
Wenpeng Song
Browse files
Correction of #5679 for incoming call
parent
2d85eb3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
net/asterisk/files/iopsys/lib/voice/config_asterisk.sh
View file @
534d633a
...
...
@@ -802,12 +802,11 @@ configure_extensions() {
else
sed
-i
"s/|HOWLER_TIMEOUT|/
$howler_timeout
/"
$WORK_DIR
/extensions.conf
fi
if
[
-n
"
$internal_service
"
-a
"
$internal_service
"
=
"1"
]
;
then
if
[
-n
"
$callforward_enabled
"
-a
"
$callforward_enabled
"
=
"1"
]
;
then
sed
-i
"s/|INCOMING_HANDLER|/Macro(callhandler,
\$
{CHANNEL(endpoint)})/"
$WORK_DIR
/extensions.conf
else
sed
-i
"s/|INCOMING_HANDLER|/Goto(call_line,
\$
{EXTEN},1))/"
$WORK_DIR
/extensions.conf
fi
if
[
-n
"
$internal_service
"
-a
"
$internal_service
"
=
"1"
-a
\(
-n
"
$callforward_enabled
"
-a
"
$callforward_enabled
"
=
"1"
\)
]
;
then
sed
-i
"s/|INCOMING_HANDLER|/Macro(callhandler,
\$
{CHANNEL(endpoint)})/"
$WORK_DIR
/extensions.conf
else
sed
-i
"s/|INCOMING_HANDLER|/Goto(call_line,
\$
{EXTEN},1))/"
$WORK_DIR
/extensions.conf
fi
if
[
-n
"
$extension_all_ports
"
]
;
then
...
...
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