[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 27 15:42:15 CST 2007
A NOTE has been added to this issue.
======================================================================
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: assigned
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-27-2007 15:42 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-27-07 15:42
----------------------------------------------------------------------
I'm sorry to be thick-headed on this, but I have to wonder. We've been
passing in args to macros this way ever since AEL first version, and this
sort of change could take all sorts of users by surprise.
Is it possible for you to pass QUOTE(arg data) into the macro call
yourself?
¯ocall(blah,QUOTE(hi "mom" there),ehlo);
??
Issue History
Date Modified Username Field Change
======================================================================
11-27-07 15:42 murf Note Added: 0074435
======================================================================
More information about the asterisk-bugs
mailing list