[asterisk-users] Generate Random Numbers in dialplan

Alexander Lopez Alex.Lopez at OpSys.com
Fri Oct 13 11:18:50 MST 2006


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061013/1863f918/attachment.htm


More information about the asterisk-users mailing list