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

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jun 5 15:54:19 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
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:                     new
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-05-2008 15:54 CDT
====================================================================== 
Summary:                    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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-05-08 15:54  chris-mac      Asterisk Version          => 1.6.0-beta9     
06-05-08 15:54  chris-mac      SVN Branch (only for SVN checkou => N/A          
  
======================================================================




More information about the asterisk-bugs mailing list