]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
in 1.4 the functions still have | as argument seperator.
authorMichiel van Baak <michiel@vanbaak.info>
Sat, 12 Jul 2008 10:25:52 +0000 (10:25 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Sat, 12 Jul 2008 10:25:52 +0000 (10:25 +0000)
This commit fixes the use of RAND in the ael random function.

(closes issue #13061)
Reported by: danpwi

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@130373 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_ael.c

index 282c552d2382f7fc3a97935b12654291f95ad365..0e9539966c54772f5429d52ac824f09a4fc6b02d 100644 (file)
@@ -3627,7 +3627,7 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement,
                        if_test->type = AEL_IF_CONTROL;
                        if_end->type = AEL_APPCALL;
                        if ( p->type == PV_RANDOM )
-                               snprintf(buf1,sizeof(buf1),"$[${RAND(0,99)} < (%s)]",p->u1.str);
+                               snprintf(buf1,sizeof(buf1),"$[${RAND(0|99)} < (%s)]",p->u1.str);
                        else
                                snprintf(buf1,sizeof(buf1),"$[%s]",p->u1.str);
                        if_test->app = 0;