[Asterisk-Users] time variable

C F shmaltz at gmail.com
Tue Jul 4 11:21:28 MST 2006


I don't know if this will help you, but have you tried ${EPOCH}
Also check this out:
http://www.voip-info.org/wiki/view/Asterisk+variables

On 7/4/06, Ronald Wiplinger <ronald at elmit.com> wrote:
> 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
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list