[asterisk-bugs] [Asterisk 0014076]: Extensions configuration is not being sorted correctly
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Dec 15 07:23:02 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14076
======================================================================
Reported By: toc
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 14076
Category: Core/Configuration
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.6.0
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-12-15 06:53 CST
Last Modified: 2008-12-15 07:23 CST
======================================================================
Summary: Extensions configuration is not being sorted
correctly
Description:
The matching performed on extensions.conf is not sorting the items as
expected.
Take this example:
[test-ext]
exten => _.,1,NoOp(Match 1)
exten => s-Nothing,1,NoOp(Match 3)
exten => _s.,1,NoOp(Match 2)
exten => _s-.,1,NoOp(Match 4)
The result of:
[test-ext]
exten => _.,1,NoOp(Match 1)
exten => s-Nothing,1,NoOp(Match 3)
exten => _s.,1,NoOp(Match 2)
exten => _s-.,1,NoOp(Match 4)
Is:
— Executing [s-Test at test-ext:1] NoOp("Local/s-Test at test-ext-0cbc;2",
"Match 2") in new stack
I would expect the match to occur on Match 4, this is the closed match
based on the number of items to match on.
Swap them around:
[test-ext]
exten => _.,1,NoOp(Match 1)
exten => s-Nothing,1,NoOp(Match 3)
exten => _s-.,1,NoOp(Match 4)
exten => _s.,1,NoOp(Match 2)
And this is the output:
— Executing [s-Test at test-ext:1] NoOp("Local/s-Test at test-ext-5f64;2",
"Match 4") in new stack
It appears to be inconsistent in applying the matching as I would expect
regardless of entry position, the same results to occur due to the
matching.
======================================================================
----------------------------------------------------------------------
(0096373) toc (reporter) - 2008-12-15 07:23
http://bugs.digium.com/view.php?id=14076#c96373
----------------------------------------------------------------------
Even more strange is this match:
[test-ext]
exten => _s-.,1,NoOp(Match 4)
exten => _.,1,NoOp(Match 1)
exten => _s.,1,NoOp(Match 2)
originate Local/sd at test-ext extension s-Nothing at test-ext
-- Executing [sd at test-ext:1] NoOp("Local/sd at test-ext-dcaf;2", "Match
4") in new stack
This shouldn't match at Match 4 at all - it should at either Match 1 or
Match 2.
Maybe the "-" is being evaluated in some way.
Issue History
Date Modified Username Field Change
======================================================================
2008-12-15 07:23 toc Note Added: 0096373
======================================================================
More information about the asterisk-bugs
mailing list