[asterisk-bugs] [JIRA] (ASTERISK-16121) [patch] strange extension pattern matching

Matt Jordan (JIRA) noreply at issues.asterisk.org
Mon Jan 14 13:59:46 CST 2013


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

Matt Jordan updated ASTERISK-16121:
-----------------------------------

    Target Release Version/s:     (was: 1.8.20.0)
                                  (was: 10.12.0)
                                  (was: 10.12.0-digiumphones)
                                  (was: 11.2.0)
    
> [patch] strange extension pattern matching
> ------------------------------------------
>
>                 Key: ASTERISK-16121
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-16121
>             Project: Asterisk
>          Issue Type: Bug
>          Components: PBX/General
>            Reporter: Steve Murphy
>         Attachments: 20100727__issue17366.diff.txt, extension.conf
>
>
> Maybe I'm just hallucinating, but if I goto(mysw-17-3,label)  and have these extensions defined:
> _mysw-17-.
> _mysw-1-.
> mysw-17-
> mysw-17-*
> mysw-17-2
> mysw-17-1
> s
> The last match I would expect would be the second item in the list above, but that's the one that is chosen.
> ****** STEPS TO REPRODUCE ******
> Define (in AEL or extensions.conf) :
>  context test394 {
>     s => goto mysw-15-OK|label;
>     mysw-15-OK => {
>     label:
>           Set(zz=3);
>       goto sw-17-${zz}|label2;
>     }
>     _mysw-1-. => { label2:NoOp(in exten _mysw-1-.); goto s|1;}
>     _mysw-17-. => { label2:NoOp(in exten _mysw-17-.); goto s|1;}
>     mysw-17- => { label2:NoOp(in exten mysw-1-); goto s|1;}
>     mysw-17-* => { label2:NoOp(in exten mysw-1-*); goto s|1;}
>     mysw-17-2 => { label2:NoOp(in exten mysw-1-2); goto s|1;}
>     mysw-17-1 => { label2:NoOp(in exten mysw-1-1); goto s|1;}
> }                                                                                                                                                   
> load it into asterisk, and on the console:
> *CLI> dialplan show mysw-17-3 at test394
> [ Context 'test394' created by 'pbx_ael' ]
>   '_mysw-1-.' =>    1. NoOp(in exten _mysw-1-.)                   [pbx_ael]
>                     2. Goto(s,1)                                  [pbx_ael]
>   '_mysw-17-.' =>   1. NoOp(in exten _mysw-17-.)                  [pbx_ael]
>                     2. Goto(s,1)                                  [pbx_ael]
> -= 2 extensions (4 priorities) in 1 context. =-
> I really can't warp my brain to understand why _mysw-1-. is even in the list,
> because the - just before the dot in the mysw-1-. pattern should have disqualified that pattern!
> But, if I'm missing something (and I'm known to do that!), please let me know!
> ****** ADDITIONAL INFORMATION ******
> BTW-
> This little tidbit of information has nothing to do with this bug, but the new pattern matcher selects the expected exten, mysw-17-.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list