[asterisk-bugs] [Asterisk 0016482]: Serious problem with pattern matching (regression in #15421)
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Dec 21 03:55:50 CST 2009
The following issue has been SUBMITTED.
======================================================================
https://issues.asterisk.org/view.php?id=16482
======================================================================
Reported By: wdoekes
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 16482
Category: PBX/pbx_config
Reproducibility: always
Severity: major
Priority: normal
Status: new
Asterisk Version: SVN
JIRA:
Regression: Yes
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 235811
Request Review:
======================================================================
Date Submitted: 2009-12-21 03:55 CST
Last Modified: 2009-12-21 03:55 CST
======================================================================
Summary: Serious problem with pattern matching (regression in
https://issues.asterisk.org/view.php?id=15421)
Description:
Hi, with the following dialplan:
[context]
exten => _[23],1,Set(category=NL-normal)
exten => _[45],1,Set(category=NL-normal)
exten => _[67],1,Set(category=NL-normal)
exten => _[89],1,Set(category=NL-normal)
exten => _X,1,Set(category=NL-unknown) ; (catch all)
_X sorts above [23] since asterisk 1.6.1.10.
Look at the following outputs:
[Asterisk 1.6.1.9]
*CLI> dialplan show context
[ Context 'context' created by 'pbx_config' ]
'_[23]' => 1. Set(category=NL-normal)
[pbx_config]
'_[45]' => 1. Set(category=NL-normal)
[pbx_config]
'_[67]' => 1. Set(category=NL-normal)
[pbx_config]
'_[89]' => 1. Set(category=NL-normal)
[pbx_config]
'_X' => 1. Set(category=NL-unknown)
[pbx_config]
[Asterisk 1.6.1.10 and above, up to -svn]
*CLI> dialplan show context
[ Context 'context' created by 'pbx_config' ]
'_[89]' => 1. Set(category=NL-normal)
[pbx_config]
'_X' => 1. Set(category=NL-unknown)
[pbx_config]
'_[67]' => 1. Set(category=NL-normal)
[pbx_config]
'_[45]' => 1. Set(category=NL-normal)
[pbx_config]
'_[23]' => 1. Set(category=NL-normal)
[pbx_config]
In my real world case:
exten => _+31X!,2,Set(category=NL-unknown) ; (catch all)
sorts above:
exten => _+31[2357]XXXXXXXX,2,Set(category=NL-normal)
yielding NL-unknown for normal Dutch phone numbers.
As far as I can see, this bug was introduced by the patch applied to fix
https://issues.asterisk.org/view.php?id=15421. (It touches the ext_cmp stuff and
was introduced in 1.6.1.10.)
I'll try to come up with more detailed information. (But I've flagged it
as Major in the mean time as I believe it to be a serious issue.)
Regards,
Walter Doekes
OSSO B.V.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-12-21 03:55 wdoekes New Issue
2009-12-21 03:55 wdoekes Asterisk Version => SVN
2009-12-21 03:55 wdoekes Regression => Yes
2009-12-21 03:55 wdoekes SVN Branch (only for SVN checkouts, not tarball
releases) => trunk
2009-12-21 03:55 wdoekes SVN Revision (number only!) => 235811
======================================================================
More information about the asterisk-bugs
mailing list