search for: asteriskrandom

Displaying 1 result from an estimated 1 matches for "asteriskrandom".

2006 Oct 14
0
Re: Generate Random Numbers in dialplan
...put. The AGI works ok for me. You have to insert a carriage return before the second "echo". You also have to remove the single quote inserted after the 5. from -5'` to -5` See corrected script below. #!/bin/sh RANDNUM=`echo $RANDOM$RANDOM | cut -c1-5` echo "SET VARIABLE asteriskrandom $RANDNUM \"\"\n" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061014/7858a665/attachment.htm