[asterisk-bugs] [Asterisk 0014267]: macro compatibility

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 14 17:31:10 CDT 2010


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14267 
====================================================================== 
Reported By:                dimas
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14267
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 169153 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-18 16:27 CST
Last Modified:              2010-10-14 17:31 CDT
====================================================================== 
Summary:                    macro compatibility
Description: 
In 1.4 AEL used to generate macro- prefix for all macro contexts and
transform &m1() calls to Macro(m1). Now 1.6 Macro is deprcated and AEL
generates Gosub instead and does NOT generate macro- prefix.

The problem is that if your dialplan calls AEL macros from regular
dialplan - it will not work because AEL-generated macros do NOT have macro-
prefix while Macro application will add it. For the same reason features
like

myfeature => #,self,Macro,feature1

will not work anymore if feature1 is defined in the AEL.
====================================================================== 

---------------------------------------------------------------------- 
 (0128071) dimas (reporter) - 2010-10-14 17:31
 https://issues.asterisk.org/view.php?id=14267#c128071 
---------------------------------------------------------------------- 
Okay, the issue is 2 years old. I started a discussion on d-ev back then as
I was told to -
http://www.mail-archive.com/asterisk-dev@lists.digium.com/msg35376.html

But it did not lead to any result.

Now after two years we are migrating to 1.6 and as I see the issue is
still here. Asterisk is not backward compatible with old features.conf
because of the issue. This is not documented anywhere and worst of all
there is really no way of implementing what worked just fine in 1.4 with
the new 1.6.2

1. You cannot use Macro in features.conf to call the AEL macro because it
now requires Gosub
2. You cannot use Gosub in the features.conf because  only one argument
can be passed to the features application while Gosub requires three. You
cannot use neither coma (because feature attributes are already
coma-separated) nor pipe (because it s not a valid argument separator
anymore) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-14 17:31 dimas          Note Added: 0128071                          
2010-10-14 17:31 dimas          Status                   closed => new       
2010-10-14 17:31 dimas          Resolution               no change required =>
reopened
======================================================================




More information about the asterisk-bugs mailing list