[asterisk-users] Asterisk dialplan date and time operations

Erik Wartusch we at deuromedia.at
Wed Jan 2 09:34:24 CST 2008


daveC,

No it's even simpler. ( I dont need an IF case)
I just want to add e.g. 15 minutes to the current date / time:

So simply said:

${STRFTIME(${EPOCH},,%Y%m%d%H%M)} + 15 minutes!

My question was how can I do that.? Of yourse e.g. if it's 23.57 pm and I add 
15 minutes the day should increase +1 and the hours start with 0:x the 
minutes with 12 ( and not 72 as the normal addition would result).

Kind Regards,

Erik


Am Mittwoch, 2. Januar 2008 16:02 schrieb dave cantera:
>  erik,
>  you can start here:
>  http://www.voip-info.org/wiki-Asterisk+cmd+GotoIfTime
>  http://www.asteriskguru.com/tutorials/gotoiftime.html
>  daveC
>
>  Erik Wartusch wrote:
> Hi all,
>
> Im using Asterisk 1.4.11 and I want to proceed some time and date
> operations in my dial plan. (for a time shifted callback).
>
> Should look like:
>
> CURRENT TIME + x minutes.
>
> Of course it should increase the hours for example in this case:
>
> 10.59 + 5 minutes = 11.04
>
> I guess I've to use the math function in 1.4 but how can I manage easily
> the time operations?
>
> Kind Regards,
>
> Erik
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
=======================================

Erik Wartusch
Deuromedia Technologies GmbH
Barichgasse 40-42
1030 Wien
Austria

Phone: +43 16986442 1205
Fax:   +43 16986442 200 
email: we at deuromedia.at

www.deuromedia.com



More information about the asterisk-users mailing list