[asterisk-bugs] [JIRA] (ASTERISK-18343) extenpatternmatchnew fails to correctly respect dialplan order (regex match before exact in an included context)

Sean Bright (JIRA) noreply at issues.asterisk.org
Fri Apr 12 11:07:47 CDT 2019


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

Sean Bright updated ASTERISK-18343:
-----------------------------------

    Description: 
extenpatternmatchnew fails to correctly respect dialplan order (regex match before exact in an included context)

Example:

SIP user is a conA member.

'extenpatternmatchnew' is FALSE

If they dial 1234, they get the exact match executed. (RIGHT)
If they dial 1236, they get the regex match executed. (RIGHT)

If they dial 4321, the get they extact match executed (RIGHT)
If they dial 4325, they get the regex match excuted (RIGHT)


'extenpatternmatchnew' is TRUE

If they dial 1234, they get the exact match executed. (RIGHT)
If they dial 1236, they get the regex match executed. (RIGHT)

If they dial 4321, the get they regex match executed (WRONG)
If they dial 4325, they get the regex match excuted (RIGHT)



{noformat}
[conA]
include => conB
exten => 1234,1,verbose(got to 1234)
exten => 1234,n,hangup

exten => _123X,1,verbose(got to 123X exten)
exten => _123X,n,hangup

[conB]

exten => 4321,1,verbose(got to 4321)
exten => 4321,n,hangup

exten => _432X,1,verbose(got to 432X exten)
exten => _432X,n,hangup
{noformat}

  was:
extenpatternmatchnew fails to correctly respect dialplan order (regex match before exact in an included context)

Example:

SIP user is a conA member.

'extenpatternmatchnew' is FALSE

If they dial 1234, they get the exact match executed. (RIGHT)
If they dial 1236, they get the regex match executed. (RIGHT)

If they dial 4321, the get they extact match executed (RIGHT)
If they dial 4325, they get the regex match excuted (RIGHT)


'extenpatternmatchnew' is TRUE

If they dial 1234, they get the exact match executed. (RIGHT)
If they dial 1236, they get the regex match executed. (RIGHT)

If they dial 4321, the get they regex match executed (WRONG)
If they dial 4325, they get the regex match excuted (RIGHT)




[conA]
include => conB
exten => 1234,1,verbose(got to 1234)
exten => 1234,n,hangup

exten => _123X,1,verbose(got to 123X exten)
exten => _123X,n,hangup

[conB]

exten => 4321,1,verbose(got to 4321)
exten => 4321,n,hangup

exten => _432X,1,verbose(got to 432X exten)
exten => _432X,n,hangup


> extenpatternmatchnew fails to correctly respect dialplan order (regex match before exact in an included context)
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-18343
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-18343
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/General
>    Affects Versions: SVN, 13.18.4
>            Reporter: snuffy
>            Severity: Minor
>
> extenpatternmatchnew fails to correctly respect dialplan order (regex match before exact in an included context)
> Example:
> SIP user is a conA member.
> 'extenpatternmatchnew' is FALSE
> If they dial 1234, they get the exact match executed. (RIGHT)
> If they dial 1236, they get the regex match executed. (RIGHT)
> If they dial 4321, the get they extact match executed (RIGHT)
> If they dial 4325, they get the regex match excuted (RIGHT)
> 'extenpatternmatchnew' is TRUE
> If they dial 1234, they get the exact match executed. (RIGHT)
> If they dial 1236, they get the regex match executed. (RIGHT)
> If they dial 4321, the get they regex match executed (WRONG)
> If they dial 4325, they get the regex match excuted (RIGHT)
> {noformat}
> [conA]
> include => conB
> exten => 1234,1,verbose(got to 1234)
> exten => 1234,n,hangup
> exten => _123X,1,verbose(got to 123X exten)
> exten => _123X,n,hangup
> [conB]
> exten => 4321,1,verbose(got to 4321)
> exten => 4321,n,hangup
> exten => _432X,1,verbose(got to 432X exten)
> exten => _432X,n,hangup
> {noformat}



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



More information about the asterisk-bugs mailing list