[asterisk-bugs] [Asterisk 0013416]: Function CUT dont work if passed as parameter to macro

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 3 14:08:22 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13416 
====================================================================== 
Reported By:                yarns
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   13416
Category:                   Functions/func_cut
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 14:08 CDT
====================================================================== 
Summary:                    Function CUT dont work if passed as parameter to
macro
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 14:08 yarns          Asterisk Version          => 1.4.19          
2008-09-03 14:08 yarns          SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list