Add the TESTTIME() dialplan function, which permits testing GotoIfTime.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 13 Jan 2010 21:27:34 +0000 (21:27 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 13 Jan 2010 21:27:34 +0000 (21:27 +0000)
commitecbe7eff7a557a4aa55fb43e60299cf4f36165d9
treebd84872c5ca0ec098e3ded6ff22ec2e680cee56f
parent919437428ea4856e5305e2a8f987e8290b38d20a
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 #16464)
 Reported by: tilghman
 Patches:
       20100112__issue16464.diff.txt uploaded by tilghman (license 14)

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/pbx.h
main/pbx.c