Hello I am looking for a AGI application that can say the current time with seconds, but i don't need the day/year. Has anyone got this already? Thanks in advance Deepak -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040204/ebaf9880/attachment.htm
SayUnixTime will do that just give it the format you want. SayUnixTime([unixtime][|[timezone][|format]]) unixtime: time, in seconds since Jan 1, 1970. May be negative. defaults to now. timezone: timezone, see /usr/share/zoneinfo for a list. defaults to machine default. format: a format the time is to be said in. See voicemail.conf. defaults to "ABdY 'digits/at' IMp" Returns 0 or -1 on hangup. bkw On Wed, 4 Feb 2004, Deepakumar JV wrote:> Hello > > I am looking for a AGI application that can say the current time with seconds, but i don't need the day/year. > > Has anyone got this already? > > Thanks in advance > Deepak
You can add: ; Say Current Date and Time ; exten => 13,1,DateTime() exten => 13,2,Wait(1) exten => 13,3,DateTime() exten => 13,4,Hangup into exten. maybe that helps http//www.ntfs.org ________________________________ From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Deepakumar JV Sent: 04 February 2004 14:20 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] talking clock Hello I am looking for a AGI application that can say the current time with seconds, but i don't need the day/year. Has anyone got this already? Thanks in advance Deepak -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040204/e879cc44/attachment.htm