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 the section called “GotoIfTime()) or IFTIME() (see the section called “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 o
ptional
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. F
urther
> information on the time speicification can be found in examples illust
rating
> how to do time-based context includes in the dialplan.

See also. the section called “Exec(), the section called “ExecIf(), the section called “GotoIfTime(), the section called “IFTIME()