Displaying 3 results from an estimated 3 matches for "futuretime".
2007 Dec 05
5
New feature: calling all bug marshals
Hi.
I wanted to write a "popcorn" app for myself, both to learn how to
script in extensions.conf, but also because it was something handy.
Along the way, I found myself doing something like:
[popcorn]
exten => s,1,Set(FUTURETIME=$[${EPOCH} + 10])
...
exten => s,n,While(${EPOCH} < ${FUTURETIME})
exten => s,n,Wait(0.01)
exten => s,n,EndWhile()
exten => s,n,Play(beep)
exten => s,n,Hangup()
and hating myself for it (my Asterisk runs on a 500MHz Geode LX).
So I decided it would be useful (in general, and edu...
2007 Dec 05
2
New feature: calling all bug marshals
> Hi.
>
> I wanted to write a "popcorn" app for myself, both to learn how to
> script in extensions.conf, but also because it was something handy.
>
> Along the way, I found myself doing something like:
>
> [popcorn]
> exten => s,1,Set(FUTURETIME=$[${EPOCH} + 10])
> ...
> exten => s,n,While(${EPOCH} < ${FUTURETIME})
> exten => s,n,Wait(0.01)
> exten => s,n,EndWhile()
> exten => s,n,Play(beep)
> exten => s,n,Hangup()
>
> and hating myself for it (my Asterisk runs on a 500MHz Geode LX).
>
> So I...
2004 Dec 12
1
Totally LOST with dialplan and Extensions.
...exten => 13,4,Hangup
exten => t,1,Goto(#,1)
exten => i,1,Playback(invalid)
exten => 600,1,Playback(demo-echotest)
exten => 600,n,Echo
exten => 600,n,Playback(demo-echodone)
exten => 600,n,Goto(s,6)
exten => ${SpeakingClock},1,Wait(1)
exten => ${SpeakingClock},2,setvar(FutureTime=$[${EPOCH} + 10])
exten => ${SpeakingClock},3,Wait,3
exten => ${SpeakingClock},4,SayUnixTime(${FutureTime},,R)
exten => ${SpeakingClock},5,playback(vm-and)
exten => ${SpeakingClock},6,SayUnixTime(${FutureTime},,S)
exten => ${SpeakingClock},7,playback(seconds)
exten => ${SpeakingCl...