---------- Forwarded message ----------
From: "Alexander Lopez" < [EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <[email protected]>
Date: Sat, 14 Oct 2006 13:04:08 -0400
Subject: RE: [asterisk-users] Re: Generate Random Numbers in dialplan
Use the AGI I sent. It looks like the email did not put a <CR>
correctly.
Run it from the commandline and see if you get output.
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.
RANDNUM=`echo $RANDOM$RANDOM | cut -c1-5`
echo "SET VARIABLE asteriskrandom $RANDNUM \"\"\n"
_______________________________________________ --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
