Фон звездочки (ананусу) не могу войти
Фон звездочки (ананусу) не могу войти
Звездочка 13.14.1
705 Ветвление ОК
В случае входящего звонка снаружи
Не идет хорошо
[menu]
exten => s,n,Background(info-1) <ーーI can not enter here
1, я не буду переходить к
exten => 1,1,NoOp("*----------* Outside business hours *----------*")
exten => 1,n,Goto(returnmenu,s,1)
exten => t,1,Goto(s,tryagain)
exten => h,1,Hangup
exten => i,1,Goto(s,tryagain)
Пожалуйста, одолжите мне свою мудрость
extensions.conf
;------------------------------
; Outside line incoming call
;------------------------------
exten => 4000,1,NoOp(${CALLERID(num)})
;*------------------------*
;12/29 - 1/3 Outside business hours
;*------------------------*
exten => 4000,n,GotoIfTime(00:00-08:59,mon-sun,29-31,dec?JIKANGAI)
exten => 4000,n,GotoIfTime(18:00-23:59,mon-sun,1-3,jan?JIKANGAI)
;*------------------------*
;18:00 - 9:00
;*------------------------*
exten => 4000,n,GotoIfTime(00:00-08:59,*,*,*?JIKANGAI)
exten => 4000,n,GotoIfTime(18:00-23:59,*,*,*?JIKANGAI)
;*-------------------------------------------*
exten => 4000,n,AGI(agi_test02.py)
exten => 4000,n,Wait(1)
exten => 4000,n,Playback(contact-info)
exten => 4000,n,Monitor(wav,${CALLFILENAME},m)
exten => 4000,n,Dial(${CALL_GROUP1},60,rtT)
exten => 4000,n,Hangup
exten => 4000,n(JIKANGAI),Goto(menu,s,1)
;--------------------
; test
;--------------------
exten => 705,1,NoOp(${CALLERID(num)})
exten => 705,n,GotoIfTime(09:00-23:59,*,*,*?JIKANGAI)
exten => 705,n,Answer()
exten => 705,n,Playback(beep)
exten => 705,n,Playback(contact-info)
exten => 705,n,Playback(beep)
exten => 705,n,Playback(goodbye)
exten => 705,n,Hangup
exten => 705,n(JIKANGAI),Goto(menu,s,1)
[menu]
exten => s,1,Answer()
exten => s,n,NoOp("*----------* Menu *----------*")
exten => s,n,Set(LCOUNT=0)
exten => s,n,wait(1)
exten => s,n(tryagain),Set(LCOUNT=$[${LCOUNT}+1])
exten => s,n,NoOp(${LCOUNT})
exten => s,n,GotoIf($[${LCOUNT} = 4]?s,hangup)
exten => s,n,NoOp("* WaitExten befor*")
exten => s,n,Set(TIMEOUT(digit)=1)
exten => s,n,Background(info-1)
exten => s,n,WaitExten(5)
exten => s,n,NoOp("* WaitExten after*")
exten => s,n,Goto(s,tryagain)
exten => s,n(hangup),NoOp("*----------* Unnecessary *----------*")
exten => s,n,Playback(goodbye)
exten => s,n,HangUp
exten => 1,1,NoOp("*----------* Turn back *----------*")
exten => 1,n,Goto(returnmenu,s,1)
exten => t,1,Goto(s,tryagain)
exten => h,1,Hangup
exten => i,1,Goto(s,tryagain)
[returnmenu]
exten => s,1,Set(LCOUNT=0)
exten => s,n,NoOp("*----------* time select *----------*")
exten => s,n(tryagain),Set(LCOUNT=$[${LCOUNT}+1])
exten => s,n,NoOp(${LCOUNT})
exten => s,n,GotoIf($[${LCOUNT} = 4]?s,hangup)
exten => s,n,wait(1)
exten => s,n,Background(info-2)
exten => s,n,WaitExten(5)
exten => s,n,Goto(s,tryagain)
exten => s,n,AGI(agi_close.py,9)
exten => s,n(hangup),Playback(info-timeless)
exten => s,n,Playback(goodbye)
exten => s,n,Hangup
exten => t,1,Goto(s,tryagain)
exten => h,1,Hangup
exten => i,1,Goto(s,tryagain)
exten => 0,1,Goto(s,tryagain)
exten => 1,1,wait(1)
exten => 1,n,NoOp('*----------* 9-12 *----------*')
exten => 1,n,AGI(agi_close.py,1)
exten => 1,n,Playback(info-9-12)
exten => 1,n,Playback(beep)
exten => 1,n,Hangup
exten => 2,1,wait(1)
exten => 2,n,NoOp('*----------* 12-15 *----------*')
exten => 2,n,AGI(agi_close.py,2)
exten => 2,n,Playback(info-12-15)
exten => 2,n,Playback(beep)
exten => 2,n,Hangup
exten => 3,1,wait(1)
exten => 3,n,NoOp('*----------* 15-18 *----------*')
exten => 3,n,AGI(agi_close.py,3)
exten => 3,n,Playback(info-15-18)
exten => 3,n,Playback(beep)
exten => 3,n,Hangup