[asterisk-bugs] [JIRA] (ASTERISK-23927) pbx_config do incorrect matching if - happens
Richard Mudgett (JIRA)
noreply at issues.asterisk.org
Wed Jun 25 11:07:56 CDT 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219856#comment-219856 ]
Richard Mudgett commented on ASTERISK-23927:
--------------------------------------------
This does not appear to be a bug. The CLI "dialplan show [[exten]@context]" command shows *all* extensions that could match the given value.
Both patterns match the test extension "RG-600-7987111111501#@testr" you have given. The _RG-6007-X. pattern is the better match because the 7 in the pattern is more specific than the X in the other pattern. The _RG-6007-X. extension pattern will be selected when the dialplan is executed.
Please see
https://wiki.asterisk.org/wiki/display/AST/Pattern+Matching
{quote}
The dash (-) character is ignored in extensions and patterns except when it is used in a pattern to specify a range in a character set. It has no effect in matching or sorting extensions.
{quote}
> pbx_config do incorrect matching if - happens
> ---------------------------------------------
>
> Key: ASTERISK-23927
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23927
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: PBX/pbx_config
> Affects Versions: 1.8.28.2, 11.10.2
> Environment: linux
> Reporter: Alexander Merkulov
> Severity: Critical
>
> If dialplan have context like this:
> [testr]
> exten =>_RG-6007-X.,1, NoCDR(6007)
> exten =>_RG-600-X.,1, NoCDR(600)
> Result of dialplan matching will be
> dialplan show RG-600-7987111111501#@testr
> [ Context 'testr' created by 'pbx_config' ]
> '_RG-6007-X.' => 1. NoCDR(6007) [pbx_config]
> '_RG-600-X.' => 1. NoCDR(600) [pbx_config]
> Resulting match of incorrect dialplan row.
> Issue is critical becuase such dialplan used by freepbx 2.6+ versions for ringgroups.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list