[asterisk-bugs] [Asterisk 0015244]: Invalid syntax with two ampersands in if block

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jun 1 11:46:02 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15244 
====================================================================== 
Reported By:                atis
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   15244
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.19 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-01 11:46 CDT
Last Modified:              2009-06-01 11:46 CDT
====================================================================== 
Summary:                    Invalid syntax with two ampersands in if block
Description: 
Using syntax:

if (${a}=1 && ${b}=2) {

}

would generate a bad .conf file with:

GotoIf($[${a}=1 && ${b}=2]) which would always return false.

While it would be a feature to add support for double ampersands within IF
block, it's still a good to warn users about such syntax mistakes
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-01 11:46 atis           New Issue                                    
2009-06-01 11:46 atis           Status                   new => assigned     
2009-06-01 11:46 atis           Assigned To               => murf            
2009-06-01 11:46 atis           Asterisk Version          => 1.4.19          
2009-06-01 11:46 atis           Regression                => No              
2009-06-01 11:46 atis           SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list