[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:00:17 CDT 2008


The following issue has been set as RELATED TO issue 0013357. 
====================================================================== 
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:00 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...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-04 08:00 murf           Relationship added       related to 0013357  
======================================================================




More information about the asterisk-bugs mailing list