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
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;