[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
Mon Sep 14 12:19:25 CDT 2009


The following issue has been ASSIGNED. 
====================================================================== 
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:                     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-09-14 12:19 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               
====================================================================== 
2009-09-14 12:19 lmadsen        Assigned To              murf =>             
======================================================================




More information about the asterisk-bugs mailing list