[asterisk-bugs] [JIRA] (ASTERISK-23805) Dialplan pattern matching error

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu May 29 11:18:43 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan closed ASTERISK-23805.
----------------------------------

    Resolution: Not A Bug

A pattern match character of {{Z}} matches {{1-9}}. It shouldn't match 0 - hence, your pattern of:

{code}
_9XZ.
{code}

Should only match characters {{9[0-9][1-9].}}. If it matched {{920}}, something would be horribly wrong.

> Dialplan pattern matching error
> -------------------------------
>
>                 Key: ASTERISK-23805
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23805
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Dial
>    Affects Versions: 11.4.0, 11.9.0
>         Environment: CentOS 6.5
>            Reporter: Andres Mazzocchi
>            Severity: Minor
>
> There's a little flaw in the pattern matching algorythm. This pattern is pretty straighforward:
> {code}
> exten => _9XZ.,1,Answer()
> {code}
> It means one should be able to dial 9(0-9)(1-9). numbers, unlimited length.
> However, if the dialed number begins with 920., Asterisk returns the following error:
> {code}
> ---
> Call from '2801' to extension '920256666' rejected because extension not found in context 'xxxxxxxx'.
> ---
> {code}
> A simple workaround is to add an additional entry tailored for these specific numbers:
> {code}
> exten => _920.,1,Answer()
> {code}
> Furthermore, the pattern recognizes correctly numbers 921 to 929. The only one that is not recognized is 920.
> I've discovered this while using Asterisk 11.4.0, then I upgraded to 11.9.0 and the error is still present. I don't know about the versions in between.



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



More information about the asterisk-bugs mailing list