[asterisk-users] Generate Random Numbers in dialplan
Steve Edwards
asterisk.org at sedwards.com
Fri Oct 13 13:10:38 MST 2006
Well, you learn something new every day :)
FYI, $RANDOM returns a value between 0 and 32767.
On Fri, 13 Oct 2006, Alexander Lopez wrote:
> System(echo $RANDOM)
>
>
>
>
>
> ________________________________
>
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jon
> Weisman
> Sent: Friday, October 13, 2006 12:53 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [asterisk-users] Generate Random Numbers in dialplan
>
>
>
> Hi All,
>
>
>
> Anyone know how to generate random numbers in the dial plan? I've tried
> using the RAND function but it doesnt work. Basically I need to generate
> a random 5 digit number everytime a particular extension is dialed and
> then save that into a variable. Any ideas?
>
>
>
> Thanks,
>
> Jon
>
>
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list