[asterisk-bugs] [Asterisk 0011329]: AEL macro argument variables aren't properly quoted when set

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Nov 20 15:41:13 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11329 
====================================================================== 
Reported By:                rain
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11329
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.14  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-20-2007 15:40 CST
Last Modified:              11-20-2007 15:41 CST
====================================================================== 
Summary:                    AEL macro argument variables aren't properly quoted
when set
Description: 
When the dialplan code is generated to set a macro's variables, the
argument data isn't properly escaped, causing the loss of any quoting in
the macro.  For example, if the macro in the 'additional information' field
was called like so:

&foo(abc "def" geh);

...the following message would be logged:

I got [abc def geh] but I want it to look like [abc "def" geh]

The easiest fix is probably to wrap ${ARGn} inside a ${QUOTE()} in the
generated dialplan code.
====================================================================== 

---------------------------------------------------------------------- 
 rain - 11-20-07 15:41  
---------------------------------------------------------------------- 
The attached patch fixes the issue as suggested in the bug report. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-20-07 15:41  rain           Note Added: 0074109                          
======================================================================




More information about the asterisk-bugs mailing list