[asterisk-bugs] [Asterisk 0015423]: Gosub-Local Variables in AEL2 Cannot be set in a Queue with Local Channels

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 23 11:45:47 CDT 2010


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15423 
====================================================================== 
Reported By:                leobrown
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15423
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-30 04:06 CDT
Last Modified:              2010-06-23 11:45 CDT
====================================================================== 
Summary:                    Gosub-Local Variables in AEL2 Cannot be set in a
Queue with Local Channels
Description: 
When using AEL2, using the Macro construct creates priorities that set the
macro variables in the macro. When this macro is called as part of a Local
channel in a queue, this causes the error "Tried to set LOCAL(extn), but we
aren't within a Gosub routine".

The config below will re-create the issue when you dial extension 100, and
sample output is shown in additional info below.

=========queues.conf=========
[testqueue]
retry=1
timeout=30
member=>Local/s at testmacro

=======extensions.ael========
macro testmacro(arg){
 Noop(${arg});
};

100 => {
 Queue(testqueue);
};
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-23 11:45 lmadsen        Description Updated                          
2010-06-23 11:45 lmadsen        Additional Information Updated                  
 
======================================================================




More information about the asterisk-bugs mailing list