[asterisk-users] time on asterisk
Jordan Novak
jnovak at logisticshealth.com
Thu Jun 12 08:23:48 CDT 2008
I am also having this problem using includes based on time of day,
however the restart did not help and when enabled it finds no context
with extension 's'. This is for my incoming calls, see below... Any
Ideas!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[default]
include =>extensions
include => after|18:00-7:29|mon-fri|*|*
include => during|7:30-17:59|mon-fri|*|*
;include => after|*|sat|*|*
;include => after|*|sun|*|*
;;;;;;;;;;;;;;;;;;;;;always on;;;;;;;;;;;;;;;;;;;;;;;;;;;
;exten => s,1,Answer
;off
;exten => s,2,Background(/tmp/afterhours)
;on
;exten =>s,2,dial(sip/202&sip/203,20)
;exten=>s,3,hangup()
;;;;;;;;;;;;;;;;;;;;;maingreeting ;;;;;;;;;;;;;;;;;;;;;;;;
[during]
exten => s,1,Answer
exten => s,2,SetMusicOnHold(default)
exten =>s,3,Set(TIMEOUT(DIGIT)=3)
exten => s,4,Background(/tmp/maingreeting)
exten =>s,5,waitexten(5)
exten =>s,6,dial(sip/201,20|t))
exten =>s,7,hangup()
exten => 1,1,Goto(dental,s,1)
exten =>1,2,hangup()
exten => 2,1,dial(zap/g2/322)
exten => 2,2,voicemail(u322))
exten =>2,3,hangup()
exten => 3,1,dial(sip/241,20)
exten => 3,2,voicemail(u241)
exten =>3,3,hangup()
exten => 4,1,Goto(medical,s,1)
exten =>4,2,hangup()
exten => 6,1,dial(sip/232,20)
exten => 6,2,voicemail(u232)
exten =>6,3,hangup()
exten => 7,1,Goto(admin,s,1)
exten =>7,2,hangup()
exten => 0,1,dial(sip/201,20)
exten => 0,2,voicemail(u201)
exten =>0,3,hangup()
;;;;;;;;;;;;;;;;;;;;;;;;;;;Nightmode;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[after]
exten => s,1,Answer
exten =>s,2,Set(TIMEOUT(DIGIT)=2)
exten => s,3,Background(/tmp/afterhours)
exten =>s,4,waitexten(10)
exten =>s,5,hangup()
exten =>5,1,Dial(zap/g1/XXXXXXXXXXXX,20)
exten =>5,2,hangup()
More information about the asterisk-users
mailing list