Quantcast
Channel: VOIP-info.org Page Changes
Viewing all articles
Browse latest Browse all 2667

Asterisk cmd ExecIfTime

$
0
0
Diff from version 3 to 4 (current)

@@ -5,14 +5,25 @@

 
 !!Description
 Version 1.2 - 1.4
- ExecIfTime(<times>,<weekdays>,<mdays>,<months>|appname|appargs):
+ ExecIfTime(<times>,<weekdays>,<mdays>,<months>|appname|appargs)
 
 Version 1.4.24.1
- ExecIfTime(<times>,<weekdays>,<mdays>,<months>?appname|appargs):
+ ExecIfTime(<times>,<weekdays>,<mdays>,<months>?appname|appargs)
 
 Version 1.6
- ExecIfTime(<times>,<weekdays>,<mdays>,<months>?appname~np~[(appargs)]):~/np~
+ ExecIfTime(<times>,<weekdays>,<mdays>,<months>?appname~np~[(appargs)])~/np~
+
+Verson 1.8
+ ExecIfTime(<times>,<weekdays>,<mdays>,<months>,~np~[timezone]~/np~?appname~np~[(appargs)])~/np~
 
 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
+
 
UserCommentTimeVersion
aemerich2015-04-02 17:394

Viewing all articles
Browse latest Browse all 2667

Trending Articles