Wednesday, January 2, 2008

Re: [asterisk-users] Asterisk dialplan date and time operations

erik,
cool, there are so many functions in *, it takes a long time to learn
the shortcuts!
thanks erik!
daveC


Erik Wartusch wrote:
> 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
>>
>
>

--
My wife's sister is in California.
I should buy her a Videophone2008!

Truly, The Next Best Thing to Being There!
--

WorldWideVideoPhones.com
856.380.0894


_______________________________________________
--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

No comments: