[Asterisk-Users] time variable

Ronald Wiplinger ronald at elmit.com
Tue Jul 4 05:54:45 MST 2006


I want to get a variable, depending on the time.
I tried this one, but it does not work:

exten => 75,1,Set(guess=SYSTEM(echo $((1 + $(date +%S)*100 % 23)))

The idea is that the variable guess will change every 23 times per minute.

How would be the right syntax?


bye

Ronald Wiplinger




More information about the asterisk-users mailing list