[Asterisk-Users] talking clock

Dan Tucny dan at tucny.com
Wed Feb 4 16:50:26 MST 2004


;
; Talking clock (123)
;
exten => 123,1,SayUnixTime(|GB|HM 'vm-and' S 'digits/seconds')
exten => 123,2,Wait(1)
exten => 123,3,Goto(1)

the seconds sound can be picked up from John Todd's site,
http://www.loligo.com/asterisk/

Dan

On Wed, 2004-02-04 at 14:44, Deepakumar JV wrote:
> Thanks for your reply Brian.
> 
> I am able to get only the hour and minute but not the seconds. I need
> seconds also, any suggestions?
> 
> Regards
> Deepak
> ----- Original Message ----- 
> From: "Brian West" <brian at bkw.org>
> To: <asterisk-users at lists.digium.com>
> Sent: Wednesday, February 04, 2004 02:23 PM
> Subject: Re: [Asterisk-Users] talking clock
> 
> 
> > 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
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list