How to speak random DateTime

Hi there,

I know SayUnixtime application, it speaks current time.

I want to save time date in a variable from database and want to play that time and date in dialplan.

I don’t have any idea how to do it.

Please help me out anyone, I will be very thankful to you.

Sohaib Khan

SayUnixTime can take an argument:
wiki.asterisk.org/wiki/display/ … ayUnixTime
STRPTIME function can format a string to Unix time with %s
wiki.asterisk.org/wiki/display/ … n_STRPTIME

exten => s,1,Set(FUTURE_TIME=${STRPTIME(2015-01-01 07:30:35,%s)})
same => n,SayUnixTime(${FUTURE_TIME})