Код: Выделить всё
[root@pbxast asterisk]# cat museum.ivr
; конфиг IVR
[museum]
exten => s,5,GotoIfTime(9:00-18:00|mon-fri|*|*?wellcome_museum,s,1)
exten => s,4,GotoIfTime(12:30-13:30|mon-fri|*|*?not_working_museum,s,1)
exten => s,3,GotoIfTime(18:01-8:59|mon-fri|*|*?not_working_museum,s,1)
exten => s,2,GotoIfTime(*|sat-sun|*|*?not_working_museum,s,1)
exten => s,1,GotoIfTime(*,*,7-10,May?not_working_museum,s,1)
[wellcome_museum]
exten => s,1,Answer()
exten => s,n,Set(CALLERPRES()=allowed_not_screened)
exten => s,n,MixMonitor(/var/spool/asterisk/monitor/${UNIQUEID}_(${STRFTIME(${EPOCH},,%d-%m-%Y)}_${STRFTIME(${EPOCH},,%H-%M)})_SRC(${CDR(src)})-DST(${CDR(dst)}).wav,b)
exten => s,n,Goto(museum_rule,s,1)
[museum_rule]
exten => s,1,Answer()
exten => s,n,Background(custom/welcomemuseum)
exten => s,3,Playback(custom/calls-are-recorded)
exten => s,4,Dial(DAHDI/g12/408,10,s,1))
exten => s,5,Answer
exten => s,6,Playback(ru/vm-nobodyavail)
exten => s,7,Playback(ru/vm-intro)
exten => s,8,Goto(voicemail_mu,s,1))
[not_working_museum]
exten => s,2,Playback(cu[code]
Код: Выделить всё
Connected to Asterisk 11.9.0 currently running on pbxast (pid = 4362)
-- Accepting call from '175' to '213' on channel 0/31, span 2
-- Executing [213@from-meridian:1] Goto("DAHDI/i2/175-dff", "from-internal,213,1") in new stack
-- Goto (from-internal,213,1)
-- Executing [213@from-internal:1] Goto("DAHDI/i2/175-dff", "museum,s,1") in new stack
-- Goto (museum,s,1)
-- Executing [s@museum:1] GotoIfTime("DAHDI/i2/175-dff", "*,*,7-10,May?not_working_museum,s,1") in new stack
-- Executing [s@museum:2] GotoIfTime("DAHDI/i2/175-dff", "*|sat-sun|*|*?not_working_museum,s,1") in new stack
-- Executing [s@museum:3] GotoIfTime("DAHDI/i2/175-dff", "18:01-8:59|mon-fri|*|*?not_working_museum,s,1") in new stack
-- Executing [s@museum:4] GotoIfTime("DAHDI/i2/175-dff", "12:30-13:30|mon-fri|*|*?not_working_museum,s,1") in new stack
-- Executing [s@museum:5] GotoIfTime("DAHDI/i2/175-dff", "9:00-18:00|mon-fri|*|*?wellcome_museum,s,1") in new stack
-- Goto (wellcome_museum,s,1)
-- Executing [s@wellcome_museum:1] Answer("DAHDI/i2/175-dff", "") in new stack
-- Executing [s@wellcome_museum:2] Set("DAHDI/i2/175-dff", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@wellcome_museum:3] MixMonitor("DAHDI/i2/175-dff", "/var/spool/asterisk/monitor/1400209678.7080_(16-05-2014_09-07)_SRC(175)-DST(213).wav,b") in new stack
-- Executing [s@wellcome_museum:4] Goto("DAHDI/i2/175-dff", "museum_rule,s,1") in new stack
-- Goto (museum_rule,s,1)
-- Executing [s@museum_rule:1] Answer("DAHDI/i2/175-dff", "") in new stack
-- Executing [s@museum_rule:2] BackGround("DAHDI/i2/175-dff", "custom/welcomemuseum") in new stack
== Begin MixMonitor Recording DAHDI/i2/175-dff
-- <DAHDI/i2/175-dff> Playing 'custom/welcomemuseum.slin' (language 'en')
-- Executing [s@museum_rule:3] Playback("DAHDI/i2/175-dff", "custom/calls-are-recorded") in new stack
-- <DAHDI/i2/175-dff> Playing 'custom/calls-are-recorded.slin' (language 'en')
-- Executing [s@museum_rule:4] Dial("DAHDI/i2/175-dff", "DAHDI/g12/408,10,s,1)") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called DAHDI/g12/408
-- Accepting call from '175' to '408' on channel 0/30, span 2
-- Executing [408@from-meridian:1] Dial("DAHDI/i2/175-e01", "IAX2/karaganda/408") in new stack
-- Called IAX2/karaganda/408
-- DAHDI/i2/408-e00 is proceeding passing it to DAHDI/i2/175-dff
-- Call accepted by 192.168.8.18 (format alaw)
-- Format for call is (alaw)
-- IAX2/karaganda-25107 answered DAHDI/i2/175-e01
-- DAHDI/i2/408-e00 answered DAHDI/i2/175-dff
-- Hungup 'DAHDI/i2/408-e00'
== Spawn extension (museum_rule, s, 4) exited non-zero on 'DAHDI/i2/175-dff'
-- Hungup 'DAHDI/i2/175-dff'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording DAHDI/i2/175-dff
-- Span 2: Channel 0/30 got hangup request, cause 16
-- Hungup 'IAX2/karaganda-25107'
== Spawn extension (from-meridian, 408, 1) exited non-zero on 'DAHDI/i2/175-e01'
-- Hungup 'DAHDI/i2/175-e01'
?enafed писал(а):exten => s,4,Dial(DAHDI/g12/408,10,s,1))
core show application Dial писал(а):[Syntax]
Dial(Technology/Resource[&Technology2/Resource2[&...]][,timeout[,options[,URL]]])
Идет звонок без hangup. Правило VM все так же не работает.exten => s,4,Dial(IAX2/karaganda/408,10,s,1))
Палки так и должны быть? Вроде запятые... или пофигу?exten => s,3,GotoIfTime(12:30-13:30|mon-fri|*|*?voicemail_mu,s,1)
exten => s,4,GotoIfTime(18:01-8:59|*|*|*?voicemail_mu,s,1)
exten => s,5,GotoIfTime(*|sat-sun|*|*?voicemail_mu,s,1)
exten => s,6,GotoIfTime(9:00-18:00|mon-fri|*|*?voicemail_mu,s,1
Здесь не надо было указатьexten => s,2,Voicemail(609,s)
"палки" деприкейтнуты, лучше использовать запятыеstarley440 писал(а):Палки так и должны быть? Вроде запятые... или пофигу?