Info about application 'ExecIfTime'
ExecIfTime(<times>,<weekdays>,<mdays>,<months>|appname|appargs)
Version 1.4.24.1
ExecIfTime(<times>,<weekdays>,<mdays>,<months>?appname|appargs)
Version 1.6
ExecIfTime(<times>,<weekdays>,<mdays>,<months>?appname[(appargs)])
Verson 1.8
ExecIfTime(<times>,<weekdays>,<mdays>,<months>,[timezone]?appname[(appargs)])
This application will execute the specified dialplan application, with optional
arguments, if the current time matches the given time specification.
exten => s,n,ExecIfTime(09:00-12:00,mon-fri,1-31,jan-dec?Playback(good_morning))
exten => s,n,ExecIfTime(12:01-18:00,mon-fri,1-31,jan-dec?Playback(good_afternoon))
exten => s,n,ExecIfTime(18:01-21:00,mon-fri,1-31,jan-dec?Playback(good_night))
exten => s,n,Hangup
Synopsis
Conditional application execution based on the current timeDescription
Version 1.2 - 1.4ExecIfTime(<times>,<weekdays>,<mdays>,<months>|appname|appargs)
Version 1.4.24.1
ExecIfTime(<times>,<weekdays>,<mdays>,<months>?appname|appargs)
Version 1.6
ExecIfTime(<times>,<weekdays>,<mdays>,<months>?appname[(appargs)])
Verson 1.8
ExecIfTime(<times>,<weekdays>,<mdays>,<months>,[timezone]?appname[(appargs)])
This application will execute the specified dialplan application, with optional
arguments, if the current time matches the given time specification.
Example (Asterisk 1.6 and 1.8):
exten => s,1,NoOp(Incoming Call)exten => s,n,ExecIfTime(09:00-12:00,mon-fri,1-31,jan-dec?Playback(good_morning))
exten => s,n,ExecIfTime(12:01-18:00,mon-fri,1-31,jan-dec?Playback(good_afternoon))
exten => s,n,ExecIfTime(18:01-21:00,mon-fri,1-31,jan-dec?Playback(good_night))
exten => s,n,Hangup