Blog

Asterisk 1.6 speaking clock macro for AEL

Got bored, so I made a nice speaking clock for asterisk 1.6.
This is for AEL2 format, although it’s pretty obvious how you’d create this in standard extension format:

macro talkingclock() {
Answer();
Wait(1);
SayUnixTime();
Playback(vm-and);
SayUnixTime(,,S);
Playback(seconds);
HangUp();
}

Then just lob this in your default context:

123 => &talkingclock();