[asterisk-bugs] [Asterisk 0013061]: random appears to be broken
noreply at bugs.digium.com
noreply at bugs.digium.com
Sat Jul 12 05:19:53 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13061
======================================================================
Reported By: danpwi
Assigned To: mvanbaak
======================================================================
Project: Asterisk
Issue ID: 13061
Category: PBX/pbx_ael
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: 1.4.20.1
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 07-12-2008 02:11 CDT
Last Modified: 07-12-2008 05:19 CDT
======================================================================
Summary: random appears to be broken
Description:
As far as I can tell, random() always returns false. To reproduce:
context ael-randtest {
123 => {
one=0; two=0;
for(x=0; ${x} < 100; x=${x} + 1) {
random(50)
one=${one} + 1;
else
two=${two} + 1;
}
Verbose(0,${one} ${two});
}
}
and then 'originate Local/123 at ael-randtest application noop' from the CLI.
It always outputs '0 100' as opposed to the expected (approx) 50 50.
======================================================================
----------------------------------------------------------------------
mvanbaak - 07-12-08 05:19
----------------------------------------------------------------------
Thank you.
This is indeed the correct fix for 1.4
1.6 and trunk use the , as seperator. 1.4 still uses the |
Issue History
Date Modified Username Field Change
======================================================================
07-12-08 05:19 mvanbaak Note Added: 0090138
======================================================================
More information about the asterisk-bugs
mailing list