mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
A timeout of 20 seconds for incoming calls will be set if CFBS is enabled.
That will make the call be forwarded after 20 seconds. When CFBS is not enabled will the incoming call continue to to ring. Ref: #15812
This commit is contained in:
parent
d5ff8096a1
commit
6e7f0620fd
1 changed files with 9 additions and 5 deletions
|
|
@ -1657,11 +1657,15 @@ configure_extensions_provider()
|
||||||
config_get call_queue $1 call_queue
|
config_get call_queue $1 call_queue
|
||||||
config_get call_ivr $1 call_ivr
|
config_get call_ivr $1 call_ivr
|
||||||
if [ -n "$incoming_lines" ]; then
|
if [ -n "$incoming_lines" ]; then
|
||||||
echo "exten => $user,n,Dial($incoming_lines,$(get_voicemail_timeout),tF(hangup,h,2))" >> $tmp
|
echo "exten => $user,n,GotoIf(\${DB_EXISTS(CFBS/$1)}?cfbs)" >> $tmp
|
||||||
echo "exten => $user,n,GotoIf($[\"\${DIALSTATUS}\"=\"ANSWER\"]?endcall)" >> $tmp
|
echo "exten => $user,n,Dial($incoming_lines,$(get_voicemail_timeout),tF(hangup,h,2))" >> $tmp
|
||||||
echo "exten => $user,n,GotoIf($[\"\${DIALSTATUS}\"=\"BUSY\"]?noanswer)" >> $tmp
|
echo "exten => $user,n,Goto($user,nocfbs)" >> $tmp
|
||||||
echo "exten => $user,n,GotoIf($[\"\${DIALSTATUS}\"=\"NOANSWER\"]?noanswer:endcall)" >> $tmp
|
echo "exten => $user,n(cfbs),Dial($incoming_lines,20,tF(hangup,h,2))" >> $tmp
|
||||||
echo "exten => $user,n(noanswer),Macro(callhandler-noanswer,\${CHANNEL(peername)})" >> $tmp
|
echo "exten => $user,n(nocfbs),NoOp()" >> $tmp
|
||||||
|
echo "exten => $user,n,GotoIf($[\"\${DIALSTATUS}\"=\"ANSWER\"]?endcall)" >> $tmp
|
||||||
|
echo "exten => $user,n,GotoIf($[\"\${DIALSTATUS}\"=\"BUSY\"]?noanswer)" >> $tmp
|
||||||
|
echo "exten => $user,n,GotoIf($[\"\${DIALSTATUS}\"=\"NOANSWER\"]?noanswer:endcall)" >> $tmp
|
||||||
|
echo "exten => $user,n(noanswer),Macro(callhandler-noanswer,\${CHANNEL(peername)})" >> $tmp
|
||||||
|
|
||||||
# check for mailbox
|
# check for mailbox
|
||||||
config_get mailbox $1 mailbox
|
config_get mailbox $1 mailbox
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue