[asterisk-bugs] [Asterisk 0013178]: Can not substring a variable using variables
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Jul 28 05:47:10 CDT 2008
The following issue has been SUBMITTED.
======================================================================
http://bugs.digium.com/view.php?id=13178
======================================================================
Reported By: leobrown
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 13178
Category: Core/PBX
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.6.0-beta9
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-07-28 05:47 CDT
Last Modified: 2008-07-28 05:47 CDT
======================================================================
Summary: Can not substring a variable using variables
Description:
The asterisk format for creating substrings ${VAR:1:2} works perfectly with
static figures, but does not accept variable offsets, for instance:
${VAR:0:-${LEN}}
What happens in this case, where VAR=123 and LEN=1 is an evaluation to
"1231" rather than "12" - a string with a single character removed from the
back.
Possible workaround in dialplans would be an asterisk SUBSTR() function,
but this does not exist.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2008-07-28 05:47 leobrown Asterisk Version => 1.6.0-beta9
2008-07-28 05:47 leobrown SVN Branch (only for SVN checkouts, not tarball
releases) => N/A
======================================================================
More information about the asterisk-bugs
mailing list