diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-11-28 00:13:10 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-11-28 00:13:10 +0000 |
commit | 95a4a82702e27826f48f3ef8dfb63ea518b19f23 (patch) | |
tree | ffdead75230baa775c1ef747f31adccec76c3e0a /UPGRADE.txt | |
parent | ebcc4e3da1b71ca12f98a3cf957865d8dd43aa40 (diff) |
Fix extension matching with the '-' char.
The '-' char is supposed to be ignored by the dialplan extension matching.
Unfortunately, it's treatment is not handled consistently throughout the
extension matching code.
* Made the old exten matching code consistently ignore '-' chars.
* Made the old exten matching code consistently handle case in the
matching.
* Made ignore empty character sets.
* Fixed ast_extension_cmp() to return -1, 0, or 1 as documented. The only
user of it in pbx_lua.c was testing for -1. It was originally returning
the strcmp() value for less than which is not usually going to be -1.
* Fix character set sorting if the sets have the same number of characters
and start with the same character. Character set [0-9] now sorts before
[02-9a] as originally intended.
* Updated some extension label and priority already in use warnings to
also indicate if the extension is aliased.
(closes issue ASTERISK-19205)
Reported by: Philippe Lindheimer, Birger "WIMPy" Harzenetter
Tested by: rmudgett
Review: https://reviewboard.asterisk.org/r/2201/
........
Merged revisions 376688 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 376689 from http://svn.asterisk.org/svn/asterisk/branches/10
........
Merged revisions 376690 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@376691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'UPGRADE.txt')
-rw-r--r-- | UPGRADE.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/UPGRADE.txt b/UPGRADE.txt index 429709fc1..66eb5aaea 100644 --- a/UPGRADE.txt +++ b/UPGRADE.txt @@ -61,6 +61,9 @@ Dialplan: In previous versions of Asterisk, variables created and evaluated in the dialplan were evaluated case-insensitively, but built-in variables and variable evaluation done internally within Asterisk was done case-sensitively. + - Asterisk has always had code to ignore dash '-' characters that are not + part of a character set in the dialplan extensions. The code now + consistently ignores these characters when matching dialplan extensions. From 10 to 11: |