[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 Aug 12 11:20:50 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-08-12 11:20 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);
};
====================================================================== 

---------------------------------------------------------------------- 
 (0108954) leobrown (reporter) - 2009-08-12 11:20
 https://issues.asterisk.org/view.php?id=15423#c108954 
---------------------------------------------------------------------- 
Do you need any more info on this one? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-12 11:20 leobrown       Note Added: 0108954                          
======================================================================




More information about the asterisk-bugs mailing list