]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fixes CID pattern matching behavior to mirror that of extension pattern matching.
authorDavid Brooks <dbrooks@digium.com>
Wed, 16 Sep 2009 18:00:45 +0000 (18:00 +0000)
committerDavid Brooks <dbrooks@digium.com>
Wed, 16 Sep 2009 18:00:45 +0000 (18:00 +0000)
commit6913d06d19011d659ad590b9292394025c86f4d8
tree719bb08be960909018871ac83f056bd04a2ad94a
parent03d3a47ca741bb2c4d87cb371dc6211d82480a53
Fixes CID pattern matching behavior to mirror that of extension pattern matching.

Pattern matching for extensions uses a type of scoring system, giving values for
specificity to each character in the pattern. Unfortunately, this is done character
by character, in order. This does lead to some less specific patterns being first
in line for matching, but it will usually get the job done.

This patch merely brings CID matching to the same level as extension matching.
This patch does not attempt to tackle the problem shared by extension matching.

(closes issue #14708)
Reported by: klaus3000

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@218867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/pbx.c