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

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Nov 28 17:23:31 CST 2007


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=11329 
====================================================================== 
Reported By:                rain
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   11329
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
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:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             11-20-2007 15:40 CST
Last Modified:              11-28-2007 17:23 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.
====================================================================== 

---------------------------------------------------------------------- 
 murf - 11-28-07 17:23  
---------------------------------------------------------------------- 
Without a quick response, I'm going to close this bug, assuming that you
can call the macro with the QUOTE() function call in the args to get the
effect you are seeking. If this is not the case, please reopen this bug,
and we'll figure something out. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-28-07 17:23  murf           Status                   feedback => closed  
11-28-07 17:23  murf           Note Added: 0074526                          
======================================================================




More information about the asterisk-bugs mailing list