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

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jun 9 03:19:40 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 03:19 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

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

---------------------------------------------------------------------- 
 chris-mac - 06-09-08 03:19  
---------------------------------------------------------------------- 
Can't compile 1.6.0-beta9 after applying patch:
   [CC] pbx.c -> pbx.o
pbx.c: In function ‘new_find_extension’:
pbx.c:1078: error: ‘struct ast_exten’ has no member named
‘peer_label_table’
pbx.c:1083: error: ‘struct ast_exten’ has no member named
‘peer_label_table’
pbx.c:1088: error: ‘struct ast_exten’ has no member named
‘peer_label_table’
pbx.c:1146: error: ‘struct ast_exten’ has no member named
‘peer_label_table’
make[1]: *** [pbx.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.6.0-beta9/main'
make: *** [main] Error 2

However just checked with trunk r121228 and my dialplan works OK with
extenpatternmatchnew=yes so looks like this issue is already solved.

Thanks 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-09-08 03:19  chris-mac      Note Added: 0088463                          
======================================================================




More information about the asterisk-bugs mailing list