[asterisk-bugs] [Asterisk 0013178]: Can not substring a variable using variables
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Jul 28 11:11:03 CDT 2008
The following issue has been CLOSED
======================================================================
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: closed
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:
Resolution: unable to reproduce
Fixed in Version:
======================================================================
Date Submitted: 2008-07-28 05:47 CDT
Last Modified: 2008-07-28 11:11 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 11:11 Corydon76 Status feedback => closed
2008-07-28 11:11 Corydon76 Resolution open => unable to
reproduce
======================================================================
More information about the asterisk-bugs
mailing list