mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
Spotted this bug today myself, trying to reproduce a BE bug. Use a vert bar instead of a comma, when calling RAND.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3597,7 +3597,7 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement,
|
|||||||
if_test->type = AEL_IF_CONTROL;
|
if_test->type = AEL_IF_CONTROL;
|
||||||
if_end->type = AEL_APPCALL;
|
if_end->type = AEL_APPCALL;
|
||||||
if ( p->type == PV_RANDOM )
|
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
|
else
|
||||||
snprintf(buf1,sizeof(buf1),"$[%s]",p->u1.str);
|
snprintf(buf1,sizeof(buf1),"$[%s]",p->u1.str);
|
||||||
if_test->app = 0;
|
if_test->app = 0;
|
||||||
|
Reference in New Issue
Block a user