[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
Wed Sep 3 15:20:23 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
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-03 15:20 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

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-03 15:20 blitzrage      Summary                  Function CUT dont work
if passed as parameter to macro => Function CUT doesn't work if passed as
parameter to macro in AEL
======================================================================




More information about the asterisk-bugs mailing list