[asterisk-users] Feature Request: GotoIfTimeWithOffset

Tilghman Lesher tlesher at digium.com
Fri Dec 18 13:17:00 CST 2009


On Friday 18 December 2009 11:17:24 Steve Edwards wrote:
> On Fri, 18 Dec 2009, Tilghman Lesher wrote:
> > The syntax is actually:
> >
> > Set(TESTTIME()=2009-12-25 10:35:00 CST)
>
> 1) Does this set the "time" to a fixed value or does it set the time at
> the point of execution and then the "clock" increments from there?

It sets a fixed value.

> 2) Does this only affect gotoiftime() or does it affect every time value
> associated with the executing channel?

Right now, it only affects GotoIfTime.  Making it affect all places without
making it global (which kind of defeats the purpose) might be rather
difficult, as the channel reference is not handed down to every utility
function involving time.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list