Upgrade 3CX to v18 and get it hosted free!

Asterisk cmd ExecIfTime

Author image

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

 

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.