Merged revisions 156297 via svnmerge from
authorSteve Murphy <murf@digium.com>
Wed, 12 Nov 2008 19:47:29 +0000 (19:47 +0000)
committerSteve Murphy <murf@digium.com>
Wed, 12 Nov 2008 19:47:29 +0000 (19:47 +0000)
commit449c012c68dbc47a66d60a911fdc628198e1d973
treeb568c03fb28a884c0f12e7234f00f1f855e5b0e3
parent6828c5a0eb7d73ddd28a5786ef16d553d5e06865
Merged revisions 156297 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156297 | murf | 2008-11-12 12:36:16 -0700 (Wed, 12 Nov 2008) | 18 lines

It turns out that the 0x0XX00 codes being returned for
N, X, and Z are off by one, as per conversation with
jsmith on #asterisk-dev;  he was teaching a class
and disconcerted that this published rule was not
being followed, with patterns _NXX, _[1-8]22 and
_[2-9]22... and NXX was winning, but [1-8] should
have been.

This change, tested on these 3 patterns now
picks the proper one.

However, this change may surprise users who
set up dialplans based on previous behavior,
which has been there for what, 2 and half
years or so now.

........

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