aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authormvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-12 10:25:52 +0000
committermvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-12 10:25:52 +0000
commit9be92190c5be978a80f318f53e1b55b020d9f206 (patch)
treeea862cf185c5b7c2079f3df65f462e8ea862a416 /pbx
parent2266260aa934e5aa4479a1bbe75b93e75ba377d0 (diff)
in 1.4 the functions still have | as argument seperator.
This commit fixes the use of RAND in the ael random function. (closes issue #13061) Reported by: danpwi git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130373 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_ael.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index 282c552d2..0e9539966 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -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;