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

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jun 9 10:34:19 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
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-09-2008 10:34 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-09-08 10:34  
---------------------------------------------------------------------- 
Sorry, I was able to reproduce this problem on trunk just fine, and that's
what that original patch did.  I have modified the patch to compile on 1.6,
though I have not yet tested it in that configuration. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-09-08 10:34  Corydon76      Note Added: 0088486                          
======================================================================




More information about the asterisk-bugs mailing list