[asterisk-bugs] [Asterisk 0012800]: [patch] extenpatternmatchnew=yes breaks GotoIf

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Jun 8 19:14:49 CDT 2008


The following issue is now READY FOR TESTING. 
====================================================================== 
http://bugs.digium.com/view.php?id=12800 
====================================================================== 
Reported By:                chris-mac
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12800
Category:                   Applications/NewFeature
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.6.0-beta9 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-05-2008 15:54 CDT
Last Modified:              06-08-2008 19:14 CDT
====================================================================== 
Summary:                    [patch] extenpatternmatchnew=yes breaks GotoIf
Description: 
The following works just fine with extenpatternmatchnew=no

[macro-DialPSTN]
exten => s,1,NoOp(**************** DialPSTN ********************** )
exten => s,n,Set(DYNAMIC_FEATURES=apps)
exten => s,n,Set(CDR(DST_NAME)=${ARG1})
exten => s,n,Set(CDR(DIRECTION)=out)
exten => s,n,GotoIf($["${SIP_HEADER(X-DDI-local)}" = "1"]?local:pstn)
exten => s,n(local),Goto(from-pstn,${CDR(dst)},1)
exten => s,n(pstn),Set(CDR(DST_RATE)=${ARG2})
...

but with extenpatternmatchnew=yes I am getting the following error:

-- Executing [s at macro-DialPSTN:5] GotoIf("SIP/10001-081d6b00",
"0?local:pstn") in new stack
[Jun  5 21:57:06] NOTICE[26908]: pbx.c:2926 pbx_extension_helper: Cannot
find extension 's' in context 'macro-DialPSTN'
[Jun  5 21:57:06] WARNING[26908]: pbx.c:8053 pbx_parseable_goto: Priority
'pstn' must be a number > 0, or valid label

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

---------------------------------------------------------------------- 
 Corydon76 - 06-08-08 19:14  
---------------------------------------------------------------------- 
Patch uploaded.  I need feedback from you on how it works for you. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-08-08 19:14  Corydon76      Note Added: 0088451                          
06-08-08 19:14  Corydon76      Status                   new => ready for testing
06-08-08 19:14  Corydon76      Summary                  extenpatternmatchnew=yes
breaks GotoIf => [patch] extenpatternmatchnew=yes breaks GotoIf
======================================================================




More information about the asterisk-bugs mailing list