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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 11 07:38:16 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16809 
====================================================================== 
Reported By:                lmadsen
Assigned To:                lmadsen
====================================================================== 
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 07:38 CST
====================================================================== 
Summary:                    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!
====================================================================== 

---------------------------------------------------------------------- 
 (0117988) jsmith (administrator) - 2010-02-11 07:38
 https://issues.asterisk.org/view.php?id=16809#c117988 
---------------------------------------------------------------------- 
; dial extension 249, and see which answers
[pattern-testing]
exten => _N[2-4]X,1,NoOp(foo)
exten => _N[246]X,1,NoOp(bar)

; dial extensions 555 and 123 and see what happens
[pattern-testing-cidmatch]
exten => _NXX/6104,1,NoOp(apple)
exten => _NXX/6104,2,NoOp(banana)
exten => _NXX/6104,3,NoOp(cherry)

exten => _NXX,1,NoOp(aardvark)
exten => _NXX,2,NoOp(bear)
exten => _NXX,3,NoOp(chihuahua)

exten => 123,1,Set(CALLERID(num)=6104)
exten => 123,n,DumpChan()
exten => 123,n,Goto(555,1) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-11 07:38 jsmith         Note Added: 0117988                          
======================================================================




More information about the asterisk-bugs mailing list