[asterisk-bugs] [Asterisk 0017263]: [patch] Freenum-in-a-can dialplan correction for failing pattern match

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Apr 29 13:24:14 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17263 
====================================================================== 
Reported By:                pprindeville
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17263
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.6 
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-04-29 13:22 CDT
Last Modified:              2010-04-29 13:24 CDT
====================================================================== 
Summary:                    [patch] Freenum-in-a-can dialplan correction for
failing pattern match
Description: 
Although the existing rule:

exten => _stdexten-.,1,Goto(stdexten-NOANSWER,1)	; Treat anything else as
no answer

will match the extension stdexten-CONGESTION, for instance, a similar
rule:

exten => _fn-.,1,NoOp(ISN: ${DIALSTATUS})

will not.  Apparently in the first instance, 'n' and 'x' are just letters,
but in the second case, 'n' means [1-9].

It's not clear what the difference is.  Adding a workaround.

====================================================================== 

---------------------------------------------------------------------- 
 (0121181) pprindeville (reporter) - 2010-04-29 13:24
 https://issues.asterisk.org/view.php?id=17263#c121181 
---------------------------------------------------------------------- 
With the patch:

    -- Executing [555*99999 at outbound-freenum2:6]
GotoIf("SIP/guest_1-00000029", "0?from:") in new stack
    -- Executing [555*99999 at outbound-freenum2:7]
Set("SIP/guest_1-00000029", "DIALSTATUS=CONGESTION") in new stack
    -- Executing [555*99999 at outbound-freenum2:8]
Goto("SIP/guest_1-00000029", "fn-CONGESTION,1") in new stack
    -- Goto (outbound-freenum2,fn-CONGESTION,1)
    -- Executing [fn-CONGESTION at outbound-freenum2:1]
NoOp("SIP/guest_1-00000029", "ISN: CONGESTION") in new stack
    -- Executing [fn-CONGESTION at outbound-freenum2:2]
Congestion("SIP/guest_1-00000029", "") in new stack
  == Spawn extension (outbound-freenum2, fn-CONGESTION, 2) exited non-zero
on 'SIP/guest_1-00000029' 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-29 13:24 pprindeville   Note Added: 0121181                          
======================================================================




More information about the asterisk-bugs mailing list