Откуда: Уфа
Сообщений: 5856
|
Re: FreePBX, мультиуровневый IVR
сделай вручную, вот пример:
[inbound-ivr]
exten => s,1,noop(------====inbound-ivr====------)
exten => s,n,answer
exten => s,n,macro(usersets-1,goto,end,Set,__concurrent=TRUE)
exten => s,n(begin),playback(silence/3)
exten => s,n,background(custom/intro)
exten => s,n,background(custom/if-you-want-recive-fax-press-6)
exten => s,n,background(custom/otdel-sbyta-press-4)
exten => s,n,background(custom/otdel-snabjeniya-press-2)
exten => s,n,background(custom/otdel-buhgaltery-press-3)
exten => s,n,background(custom/otdel-yurist-press-1)
exten => s,n,background(custom/inter-phone-number-or-wait)
exten => s,n,waitexten(10)
;exten => s,n,Set(loop=${loop}+1)
;exten => s,n,gotoif(($["${loop}" = "3"]?:loop)
exten => s,n,goto(ext-group,600,1)
exten => 4,1,ForkCDR()
exten => 4,n,goto(inbound-ivr-sbyt,s,1)
exten => 2,1,ForkCDR()
exten => 2,n,goto(inbound-ivr-snab,s,1)
exten => 3,1,ForkCDR()
exten => 3,n,goto(inbound-ivr-buhg,s,1)
exten => 1,1,ForkCDR()
exten => 1,n,goto(inbound-ivr-yurist,s,1)
exten => 6,1,ForkCDR()
exten => 6,n,goto(inbound-ivr-fax,s,1)
exten => _1XX,1,ForkCDR()
exten => _1XX,n,goto(ext-local,${EXTEN},1)
[inbound-ivr-sbyt]
exten => s,1,noop(------====inbound-ivr-sbyt====------)
exten => s,n,background(custom/for-kiselev-press-1)
exten => s,n,background(custom/for-mahrova-press-2)
exten => s,n,background(custom/for-ipulaeva-press-3)
exten => s,n,background(custom/for-budeeva-press-4)
exten => s,n,waitexten(5)
exten => s,n,goto(ext-group,600,1)
;exten => 1,1,goto(ext-local,103,1)
;exten => 2,1,goto(ext-local,117,1)
;exten => 3,1,goto(ext-local,124,1)
;exten => 4,1,goto(ext-local,104,1)
exten => 1,1,ForkCDR()
exten => 1,n,goto(ext-queues,610,1)
exten => 2,1,ForkCDR()
exten => 2,n,goto(ext-queues,611,1)
exten => 3,1,ForkCDR()
exten => 3,n,goto(ext-queues,612,1)
exten => 4,1,ForkCDR()
exten => 4,n,goto(ext-queues,613,1)
exten => 9,1,ForkCDR()
exten => 9,n,goto(inbound-ivr,s,1)
;exten => _1XX,1,goto(ext-local,${EXTEN},1)
[inbound-ivr-snab]
exten => s,1,noop(------====inbound-ivr-snab====------)
exten => s,n,background(custom/for-melkozerov-press-1)
exten => s,n,background(custom/for-zjidkov-press-2)
exten => s,n,waitexten(5)
exten => s,n,goto(ext-group,600,1)
exten => 1,1,ForkCDR()
exten => 1,n,goto(ext-local,123,1)
exten => 2,1,ForkCDR()
exten => 2,n,goto(ext-local,120,1)
exten => 9,1,ForkCDR()
exten => 9,n,goto(inbound-ivr,s,1)
;exten => _1XX,1,goto(ext-local,${EXTEN},1)
[inbound-ivr-buhg]
exten => s,1,noop(------====inbound-ivr-buhg====------)
exten => s,n,goto(ext-local,106,1)
[inbound-ivr-yurist]
exten => s,1,noop(------====inbound-ivr-yurist====------)
exten => s,n,goto(ext-local,114,1)
[inbound-ivr-fax]
exten => s,1,noop(------====inbound-ivr-fax====------)
exten => s,n,background(custom/fax-intro)
exten => s,n,waitexten(5)
exten => s,n,goto(macro-fax,f-101,1)
exten => 9,1,goto(inbound-ivr,s,1)
exten => _1XX,1,ForkCDR()
exten => _1XX,n,goto(macro-fax,f-${EXTEN},1)
|