Asterisk cmd ExecIfTime

Info about application 'ExecIfTime'

Synopsis

Conditional application execution based on the current time

Description

Version 1.2 - 1.4
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.

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


Info about application 'ExecIfTime'

Synopsis

Conditional application execution based on the current time

Description

Version 1.2 - 1.4
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.

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


Created by: zombie.dk, Last modification: Thu 02 of Apr, 2015 (17:39 UTC) by aemerich
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+