Hi, In my application I want to have the sysdate + 5 minutes. I know that the sysdate is in the variable ${DATTIME} But now I want to now how I get the sysdate + 5 minutes into a variable? Doe's anybody knows the answer? Kind Regards Arjan Kroon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060420/ad3e2927/attachment.htm
${EPOCH} * Current unix style epoch Add your 5mins as seconds, and convert if necessary, you could do it like this in the dialplan to give the same format as ${DATETIME} (which is deprecated by the way): ${STRFTIME($[${EPOCH} + 300],,%d%m%Y-%H:%M:%S)} Read doc/README.variables to find out how to do this sort of stuff. Arjan Kroon wrote:> Hi, > > In my application I want to have the sysdate + 5 minutes. > > I know that the sysdate is in the variable ${DATTIME} > > But now I want to now how I get the sysdate + 5 minutes into a variable? > > Doe?s anybody knows the answer? > > Kind Regards > > Arjan Kroon > >------------------------------------------------------------------------ > >_______________________________________________ >--Bandwidth and Colocation provided by Easynews.com -- > >Asterisk-Users mailing list >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >
Grab the UNIX timestamp and add 5*60 to it.> In my application I want to have the sysdate + 5 minutes. > > I know that the sysdate is in the variable ${DATTIME} > > But now I want to now how I get the sysdate + 5 minutes into a variable? > > Doe's anybody knows the answer?
Hi All I want bulding next scenario conferences: Dial number conference room after automatic connect 2 users Can any one help me with samples this scenario Thanks Viktor Tatianin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060421/31a45b42/attachment.htm