[asterisk-bugs] [Asterisk 0007605]: [branch] AEL2 parser doesn't see macros in .conf language files

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Aug 15 14:20:16 CDT 2007


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=7605 
====================================================================== 
Reported By:                rushowr
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   7605
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 59184 
Disclaimer on File?:        No 
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             07-28-2006 10:05 CDT
Last Modified:              08-15-2007 14:20 CDT
====================================================================== 
Summary:                    [branch] AEL2 parser doesn't see macros in .conf
language files
Description: 
The AEL2 parser is apparently not checking existing .conf dialplan files
for macros in addition to .ael/.ael2 files, and therefore reports that the
macro requested doesn't exist. Example:

File example.conf:

[macro-foo]
exten = s,1,Noop(this macro obviously exists!)

File testing.ael

context testing {
  _X. => {
    Noop(about to call the macro);
    &foo;
  }
}

The code above *should* work since macro-foo exists, but it doesn't. I've
thought about naming it foo, but that would make any existing .conf
language code break since Asterisk requires that macros have 'macro-'
prepend macro names .
====================================================================== 

---------------------------------------------------------------------- 
 murf - 08-15-07 14:20  
---------------------------------------------------------------------- 
I merged this code into trunk via 79595. 

Some more work still needs to be on the extconfig stuff, to totally
separate it from the actual files it was separated from.

This functionality is available ONLY to aelparse, external to asterisk. It
is not available to asterisk, because asterisk loads extensions.conf AFTER
extensions.ael, usually, and this makes it difficult to implement. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-15-07 14:20  murf           Note Added: 0068888                          
======================================================================




More information about the asterisk-bugs mailing list