[Home]

Summary:ASTERISK-07519: Replace the Gosub command with an internal AEL2 command?
Reporter:Sherwood McGowan (rushowr)Labels:
Date Opened:2006-08-10 20:40:03Date Closed:2011-06-07 14:02:36
Priority:MajorRegression?No
Status:Closed/CompleteComponents:PBX/pbx_ael
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Murf, I know I know, I'm back... ;-)
I like the replacement goto statement, and jump is nice, but how hard would it be to create a replacement for Gosub? I've been having issues with macros needing to call other macros (I use 'em like functions) but if there's more than one or two deep, it won't work, and it's a pain. I'd love to see the ability to call a label or extension within another context with a return address saved so that when the end of the called context is hit, we return to the calling context.....
Make sense?
Comments:By: Sherwood McGowan (rushowr) 2006-08-10 21:31:30

Quick thought to add....
Another thing that would be AWESOME would be to make the AEL2 version of subroutine handling allow supplying arguments to the subroutine, kind of like a merge between the Asterisk macros and Gosub called contexts.... Basically, I'm dying for the ability to define something like a function that when called, will save a return address AND won't have the problems that Macros have of not always working when they're called from within another Macro/Function.....

By: Tilghman Lesher (tilghman) 2006-08-10 22:37:20

This is a feature request, and feature requests are to be filed on the Wiki, not in the bugtracker.  Therefore, this bug is being suspended until such time as there is candidate code.

Please, in the future, do not open bugs for feature requests.