Page 428 - Asterisk™: The Future of Telephony
P. 428
times
Time ranges, in 24-hour format
days_of_week
Days of the week (mon, tue, wed, thu, fri, sat, sun)
days_of_month
Days of the month (1-31)
months
Months (jan, feb, mar, apr, etc.)
; If we're open, then go to the open context
; We're open from 9am to 6pm Monday through Friday
exten => s,1,GotoIfTime(09:00-17:59,mon-fri,*,*?open,s,1)
;
; We're also late on Tuesday and Thursday
exten => s,n,GotoIfTime(09:00-19:59,tue&thru,*,*?open,s,1)
;
; We're also open from 9am to noon on Saturday
exten => s,n,GotoIfTime(09:00-11:59,sat,*,*?open,s,1)
;
; Otherwise, we're closed
exten => s,n,Goto(closed,s,1)
See Also
GotoIf(), IFTIME
Hangup() Unconditionally hangs up the current channel
Hangup(cause-code)
Unconditionally hangs up the current channel. If supported on the channel, cause-
code will be specified to the remote end as the reason for ending the call. cause-code
defaults to 16 (normal call clearing). Acceptable values for cause-code are the following:
16
Normal call clearing
17
Busy
19
No answer
21
Rejected
34
Congestion
exten => 123,1,Answer()
exten => 123,2,Playback(im-sorry)
exten => 123,3,Hangup()
400 | Appendix B: Application Reference