[asterisk-bugs] [Asterisk 0012467]: Can't add 0 in front of function result within if() block of AEL

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Apr 17 08:23:25 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12467 
====================================================================== 
Reported By:                atis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12467
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-17-2008 08:23 CDT
Last Modified:              04-17-2008 08:23 CDT
====================================================================== 
Summary:                    Can't add 0 in front of function result within if()
block of AEL
Description: 
I'm trying to construct syntax that will allow to use function result
directly in mathematical expression, and in case if function result is
empty (NULL), interpret that as 0. This works fine from .conf file or
realtime table:

Set(calls_missed_queue=$[0${DB(agent_globals/${target_num}/calls_missed_queue_${call_from_queue})}+1])

Here's the line from AEL that doesn't work:

if
(${GROUP_COUNT(${target_num}@agent_queue_b)}=1+0${DB(skip_group/${target_num}/agent_queue_b)});

Seems that there's no way how to use this within if() check directly, it
returns error at AEL compile time ("aelparse -d -n -w -q extensions.ael")




====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-17-08 08:23  atis           Asterisk Version          => 1.4.19          
04-17-08 08:23  atis           SVN Branch (only for SVN checkou => N/A          
  
======================================================================




More information about the asterisk-bugs mailing list