[asterisk-bugs] [Asterisk 0016809]: [patch] Design functionality test for dialplan pattern matching

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 11 14:10:34 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16809 
====================================================================== 
Reported By:                lmadsen
Assigned To:                mmichelson
====================================================================== 
Project:                    Asterisk
Issue ID:                   16809
Category:                   Tests/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-11 07:26 CST
Last Modified:              2010-02-11 14:10 CST
====================================================================== 
Summary:                    [patch] Design functionality test for dialplan
pattern matching
Description: 
Since we've had a couple of dialplan matching problems before in the past,
I'd like to try and create a set of tests that run through a set of complex
conditions, make sure they get the correct output (i.e. utilize the right
pattern match).

This is based from an email that Jared had sent. I know he'll have a lot
of examples to provide for this test!
====================================================================== 

---------------------------------------------------------------------- 
 (0118014) jsmith (administrator) - 2010-02-11 14:10
 https://issues.asterisk.org/view.php?id=16809#c118014 
---------------------------------------------------------------------- 
Not sure whether this is useful or not, but I thought I'd add it just in
case:

[test1]
exten => _1XX,1,Verbose(2,Monkey)
include => test2

[test2]
exten => _1XX,1,Verbose(2,Squirrel)

exten => _2XX,1,Verbose(2,Spaceship)
exten => _2XX,n,Goto(1${EXTEN:1},1)

exten => _3XX,1,Verbose(2,Apathy)
exten => _3XX,n,Goto(test2,2${EXTEN:1},1)

Dial 100, and you should get "Monkey"
Dial 200, and you should get "Spaceship" and "Monkey"
Dial 300, and you should get "Apathy" and "Spaceship" and "Squirrel" 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-11 14:10 jsmith         Note Added: 0118014                          
======================================================================




More information about the asterisk-bugs mailing list