[Asterisk-Users] talking clock
Deepakumar JV
jvdeepak at yahoo.com
Thu Feb 5 04:05:50 MST 2004
> How about a followup post showing exactly what your extensions.conf
> entries look like, and what you had to go to get it twekaed to your
> satisfaction?
Here is the working extension.conf i came up with
[time]
exten => 5559,1,Answer()
exten => 5559,2,Playback(time)
exten => 5559,3,SayUnixTime(||IM)
exten => 5559,4,SetVar(TIME1=${DATETIME})
exten => 5559,5,SubString,TIME2=${TIME1}|-2|2
exten => 5559,6,Playback(beep)
exten => 5559,7,SayNumber(${TIME2})
exten => 5559,8,Playback(second)
exten => 5559,9,Wait(1)
exten => 5559,10,Goto(time,5559,2)
but then i got to know about the S option in SayUnixTime() from Dan. THANKS
DAN.
exten => 5558,1,SayUnixTime(|GB|IM 'beep' S 'second')
exten => 5558,2,Goto(time,5558,1)
Thanks to everyone for helping me.
Now i have small problem which i am trying to fix with my less programming
knowledge. I get to hear the time in odd intervals, like 11:30:06 then
11:30:11 then 11:30:15 then 11:30:19 then 11:30:19 so the interval varies 4
and 5 seconds alternatively.
I wanted this clock to tell the time every 10 seconds and it should be the
actual system time.
ie., at 11:30:20 it should execute 5558,1 and at 11:30:30 it should execute
5558,1 that way i can hear the time every 10 seconds.
Regards
Deepak
More information about the asterisk-users
mailing list