Summary: | ASTERISK-07391: [patch] Behave rationally when substring length is negative | ||
Reporter: | Tilghman Lesher (tilghman) | Labels: | |
Date Opened: | 2006-07-24 15:59:50 | Date Closed: | 2006-08-13 21:14:42 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/Configuration |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20060724__substring_negative_length__3.diff.txt | |
Description: | Currently, when it comes to taking a substring, we define a negative value to mean that we want the entire of the remainder. What we should do, though, is to allow a negative to mean that we want that amount of characters left off the end. This change simplifies the dialplan, such that the following substitution can be made: ${EXTEN:0:$[${LEN(${EXTEN}) - 1]} ${EXTEN:0:-1} | ||
Comments: | By: Russell Bryant (russell) 2006-08-13 21:14:41 added to the trunk in revision 39659, thanks! |