Quantcast
Channel: VOIP-info.org Wiki Changes
Viewing all articles
Browse latest Browse all 5767

Asterisk cmd ExecIfTime

$
0
0
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



Viewing all articles
Browse latest Browse all 5767

Trending Articles