summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-02-21 11:47:41 -0500
committerSean Bright <sean.bright@gmail.com>2017-02-22 05:31:22 -0600
commitca6d001144d56678f40ab2e625be143450dac693 (patch)
tree089ef9d3b1754b025a0385680f09848aa2bf00c1 /tests
parentd5522de597cc6fbbc9747fa6798144cd5d00cdb1 (diff)
pbx_realtime: Prevent premature extension matching
The patterns provided by pbx_realtime were checked in the order in which they were returned from the realtime backend. If there was overlap between multiple patterns, the first one to correctly match was chosen even though it may not have been the best match. We now sort the patterns descending by their length and compare in that order. There may be cases where this still results in a sub-optimal match, but this patch should improve the overall behavior. ASTERISK-18271 #close Reported by: Charlie Smurthwaite Change-Id: I56d9ac15810eb1775966b669c3028e32cc7bd809
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions