Summary:ASTERISK-15332: [patch] Set time for use in evaluating holiday dialplans
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2009-12-17 19:14:31.000-0600Date Closed:2010-01-13 15:27:36.000-0600
Versions:Frequency of
Environment:Attachments:( 0) 20091217__issue16464.diff.txt
( 1) 20100112__issue16464.diff.txt
Description:Allow an administrator to evaluate whether a dialplan is correctly configured for a holiday, without needing to down the server and change the actual date and time.
Comments:By: Leif Madsen (lmadsen) 2009-12-18 07:34:57.000-0600

I really like this idea. Nice work!

By: Digium Subversion (svnbot) 2010-01-13 15:27:35.000-0600

Repository: asterisk
Revision: 239957

U   trunk/include/asterisk/pbx.h
U   trunk/main/pbx.c

r239957 | tilghman | 2010-01-13 15:27:34 -0600 (Wed, 13 Jan 2010) | 12 lines

Add the TESTTIME() dialplan function, which permits testing GotoIfTime.
Specifically, by setting TESTTIME() to a particular date and time, you
can test whether a dialplan correctly branches as was intended.  This was
developed after recent questions on the -users list on how to test their
holiday dialplan logic.
(closes issue ASTERISK-15332)
Reported by: tilghman
      20100112__issue16464.diff.txt uploaded by tilghman (license 14)

Review: https://reviewboard.asterisk.org/r/458/