[asterisk-bugs] [Asterisk 0013416]: Function CUT doesn't work if passed as parameter to macro in AEL
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Sep 4 08:07:07 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13416
======================================================================
Reported By: yarns
Assigned To: murf
======================================================================
Project: Asterisk
Issue ID: 13416
Category: PBX/pbx_ael
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
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: 2008-09-03 14:08 CDT
Last Modified: 2008-09-04 08:07 CDT
======================================================================
Summary: Function CUT doesn't work if passed as parameter to
macro in AEL
Description:
Function CUT do not worik if passed as parameter to macro
Sample macro:
macro test (abc,cba)
{
NoOp(${cba});
};
Calling macro:
&gsmSelect("testing",${CUT(EXTEN,,3)});
Output from console:
[Sep 3 20:58:42] ERROR[6251]: func_cut.c:263 acf_cut_exec: Syntax:
CUT(<varname>,<char-delim>,<range-spec>) - missing argument!
-- Executing [8-0-693697987 at outgoing:4]
Macro("SIP/192.168.1.215-c4121d60", "test|"testing"|") in new stack
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0013357 AEL doesn't like using dialplan functio...
======================================================================
----------------------------------------------------------------------
(0092062) murf (administrator) - 2008-09-04 08:07
http://bugs.digium.com/view.php?id=13416#c92062
----------------------------------------------------------------------
Sorry to take so long to respond; just thought I'd make note that I am
aware
of this bug; that I intend to fix it; that I know exactly what's going
on,
and have a plan (more or less) on how to fix it; that it will take 1-3
days
of coding, experimenting, testing, etc.
The problem is in the lexical analyzer (flex) spec for 'word'. I need to
absorb everything between ${ and } without caring what characters they
are.
right now, parens are not allowed in 'word' because it would then absorb
parens
when they are important to recognize as tokens on their own.
Issue History
Date Modified Username Field Change
======================================================================
2008-09-04 08:07 murf Note Added: 0092062
======================================================================
More information about the asterisk-bugs
mailing list