Commit 534d633a authored by Wenpeng Song's avatar Wenpeng Song
Browse files

Correction of #5679 for incoming call

parent 2d85eb3c
......@@ -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
......
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