[asterisk-bugs] [Asterisk 0013178]: Can not substring a variable using variables
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Jul 28 11:06:48 CDT 2008
A NOTE has been added to this issue.
======================================================================
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: feedback
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 11:06 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.
======================================================================
----------------------------------------------------------------------
(0090761) leobrown (reporter) - 2008-07-28 11:06
http://bugs.digium.com/view.php?id=13178#c90761
----------------------------------------------------------------------
It's not my day today. This is resolved!
Issue History
Date Modified Username Field Change
======================================================================
2008-07-28 11:06 leobrown Note Added: 0090761
======================================================================
More information about the asterisk-bugs
mailing list