B.37. ExecIfTime()

Executes an application based on the current time.
ExecIf(times|daysofweek|daysofmonth|months?application[,arguments])
If the current time is in the time window defined, application is executed with arguments and the result returned. The time window is defined the same way as it is for include (see the section called “Time-conditional include statements”), GotoIfTime() (see Section B.51, “GotoIfTime()) or IFTIME() (see Section C.28, “IFTIME()).
If the current time is not in the time window defined, execution continues in the next priority.

Note

Internal help for this application in Asterisk 1.4:
  -= Info about application 'ExecIfTime' =- 

[Synopsis]
Conditional application execution based on the current time

[Description]
  ExecIfTime(<times>|<weekdays>|<mdays>|<months>?appname[|appargs]):
This application will execute the specified dialplan application, with optional
arguments, if the current time matches the given time specification.
diff output to internal help in Asterisk 1.2:
10c10,12
< arguments, if the current time matches the given time specification.
---
> arguments, if the current time matches the given time specification. Further
> information on the time speicification can be found in examples illustrating
> how to do time-based context includes in the dialplan.