[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
Fri Jul 31 02:57:36 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15423 
====================================================================== 
Reported By:                leobrown
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   15423
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
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:              2009-07-31 02:57 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);
};
====================================================================== 

---------------------------------------------------------------------- 
 (0108450) leobrown (reporter) - 2009-07-31 02:57
 https://issues.asterisk.org/view.php?id=15423#c108450 
---------------------------------------------------------------------- 
I am sure I can provide access to a system where this can be tested. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-31 02:57 leobrown       Note Added: 0108450                          
======================================================================




More information about the asterisk-bugs mailing list