[asterisk-commits] murf: trunk r75505 - /trunk/pbx/pbx_ael.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 17 16:52:52 CDT 2007
Author: murf
Date: Tue Jul 17 16:52:51 2007
New Revision: 75505
URL: http://svn.digium.com/view/asterisk?view=rev&rev=75505
Log:
Spotted this bug today myself, trying to reproduce a BE bug. Use a vert bar instead of a comma, when calling RAND.
Modified:
trunk/pbx/pbx_ael.c
Modified: trunk/pbx/pbx_ael.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_ael.c?view=diff&rev=75505&r1=75504&r2=75505
==============================================================================
--- trunk/pbx/pbx_ael.c (original)
+++ trunk/pbx/pbx_ael.c Tue Jul 17 16:52:51 2007
@@ -3597,7 +3597,7 @@
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;
More information about the asterisk-commits
mailing list