[asterisk-bugs] [JIRA] (ASTERISK-19371) Incorrect matching with new pattern match engine enabled

Walter Doekes (JIRA) noreply at issues.asterisk.org
Tue Sep 13 01:26:01 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-19371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=232260#comment-232260 ] 

Walter Doekes commented on ASTERISK-19371:
------------------------------------------

{quote}
Was there a particular reason why you were trying to use \[the "new" pattern matching engine\]?
{quote}
No, there was not. I must've toggled it years ago for fun; new is better right?

When I configured that machine, I didn't correlate the \+31NUMBER bug with the new pattern matching engine. I thought it was some kind of bug related to the {{+}} sign at the time. Now, my asterisklint told me remove the {{_}}'s, at which point the bug reappeared and I decided to figure out what was wrong.

Long story short: I don't mind if the new engine is dropped. I don't use it on purpose.

> Incorrect matching with new pattern match engine enabled
> --------------------------------------------------------
>
>                 Key: ASTERISK-19371
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19371
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/pbx_config
>    Affects Versions: 10.1.2, 11.23.1, 13.11.2, 14.0.0-beta2
>            Reporter: Kinsey Moore
>            Severity: Minor
>
> When executing dialplan with {{extenpatternmatchnew=yes}} set, some patterns do not match the same as they did with the old dialplan engine.  The example that I came across:
> {noformat}
> exten => 7,1,goto(100,1)
> exten => 100,1,noop(Dialplan chose correctly)
> exten => _1X[0-5],1,noop(Dialplan chose WRONG)
> {noformat}
> Under the old dialplan engine, the 100 extension would be chosen (correctly since it is more specific).  Under the new engine, {{_1X\[0-5]}} is chosen instead.  This is not a major issue since the new engine is disabled by default.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list