similar to: Macros, GoSub & StackPop

Displaying 20 results from an estimated 3000 matches similar to: "Macros, GoSub & StackPop"

2010 Jul 17
1
AGI gosub return value
It appears that there's no way to get the return value from a GOSUB into an AGI script. Is that correct?
2019 Oct 11
3
clarification on gosub, macros and AEL
I'm trying to clarify my understand of gosub, macros and AEL. My understanding is that macros using the Macro() application, which is defined in extensions.conf by: [macro-foo] ... and called in extensions.conf with exten => _9NXXNXXXXXX.,n,Macro(fastbusy) is deprecated in favour of Gosub(). True so far? But then there are "macro"s defined in extensions.ael: macro foo() {
2010 May 30
1
Wierd behavior of illegal extension
Suppose I have a subroutine (called by Gosub) S that's called from a macro M and there's a goto to an illegal extension in S. That does go to 'i' in S but seems to pop the macro stack so that when there's a later fallthrough in M, the calls hangs up rather than returning to the caller of M. Is this a bug or a feature?
2009 Aug 17
2
Accessing Asterisk gosub arguments in extensions.lua
How does one go about accessing gosub arguments from Asterisk in extensions.lua? For example, I have the following in extensions.conf: exten => 1000,1,Wait(1) exten => 1000,n,Gosub(functions,mytest,1("123")) exten => 1000,n,Hangup And then the following in extensions.lua: extensions = { functions = { ["mytest"] = function()
2009 Apr 29
1
Replacement of Macro() with Gosub()
Hi, Is there some more thorough documentation of this change that has happened in 1.6? The upgrade.txt and changes.txt files mention it, but I have already seen details of this change that do not appear to be documented except in conversations on the mailing list... 1) It appears that it is no longer legal to have: [macro-contaxtA] ...stuff... [contextA] ...stuff... Is this true? Or have I
2009 Feb 24
3
Gosub behavior change <=1.6.0.5 to 1.6.0.6
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Here's one that may be of interest to any upgraders. If you rely on the behavior of gosub you may want to make note of this change. I have an incoming call context: exten => _XXXX,n,GoSub(incoming,${EXTEN},1(${EXTEN})); that is supposed to gosub into the incoming extension at priority 1. Versions before 1.6.0.6 would drop into the
2010 Aug 03
4
Dial() M parameter in 1.6.2.11-rc2
Hi, I can't figure out what syntax to use with the Dial() "M" parameter for the AEL parser to interpret properly. Creating an AEL macro named "macro-screen()" partly works as a hack, but it must not turn into a gosub properly, so I get warnings about the "return;". Dial(...,tgM(&screen)) with the ael macro named "screen" does not work
2019 Oct 15
4
clarification on gosub, macros and AEL
>>> Nobody has any information or opinions on any of this? Personally, I don't think MACROS are going anywhere any time soon, so I have not bothered looking into a substitution. As for ael; I've never used it. Doug
2010 Jul 23
2
application call to Gosub affects flow of control, and needs to be re-written using AEL
Hi, For some reason (outbound call tracking) I've got a few different outbound call process (using a macro for queuemetrics logging, or direct call) i wanted to factorise the routing process so i came up with something like the following. All in one it's working like expected, however every "ael reload" command trigger a lot of warning like that "application call
2009 Mar 06
1
GoSub & Queue
I have a caller screen queue setup. Basically a caller calls in, goes through a IVR, and before that caller is put into the queue, they get a sub ran on them first asking for them to say there name. That gets saved and they are entered into the queue using Queue(mainqueue,,,,300). In the queues.conf i have a list of members these are local/extension at external-default, there are two
2010 Apr 02
1
Gosub replacement within AEL2 dialplans
Hello, When reloading a diaplan (asterisk 1.6.1.X), I can see in console : [Apr 2 09:02:00] WARNING[2217]: ael/pval.c:2522 check_pval_item: Warning: file /etc/asterisk/extensions.ael, line 621-621: application call to Gosub affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! What is then the recommended substitution for Gosub() application
2011 Mar 04
3
Gosub and 'h' (again?)
Problem as follows: [default] exten => 777,1,Gosub(sub,1,1) exten => 777,n,Hangup() exten => h,1,NoOp(hung up in 'default' context) [sub] exten => 1,1,NoOp(in sub) exten => 1,n,Playback(tt-monkeys) exten => 1,n,Return() exten => h,1,NoOp(hung up in 'sub' context) This works fine if the caller listens to all the 'tt-monkeys' and let's the system
2003 Aug 24
2
line numbering and gosub
Hi list, been playing with * for a bit now and have found at least two things that make it difficult. 1. priority numbers in extensions.conf This line numbering gig can be a PIA. While I under- stand there needs to be a way to branch control (ergo goto), it would seem that line numbering is tied to 1,2,3,4 as in exten => s,1,doblah exten => s,2,dofi exten => s,3 gogetalife exten
2008 Oct 06
1
AEL and swap from macros to contexts
Hi, according to discussion on asterisk IRC, where people said, that macros will be depracated, I tried to migrate from macros to contexts and Gosub but if I try to use gosub in extensions.ael, ael compiler complains, that I shouln't use Gosub app, but I can't find ael keyword, that will be Gosub equivalent, or can I ignore this ael warnings? thanks PJ LOG: lev:3 file:pval.c
2008 Dec 17
1
ael queue gosub already has PBX structure??
Hello, I want that after client and queue member call would be established, cmd queue runs some 'procedures' . So I am using cmd Queue option 'gosub'. This is my example of ael : context QUEUE { _X. => { Ringing(); Wait(4); Answer(); Queue(${Queue},wr,,,60,,,check-record); Hangup(); }; }; macro check-record() {
2009 Jul 09
1
1.6 macro deprecation, dial macros
I understand that standalone macros have been deprecated in 1.6 for gosub routines. I've been working on converting them all but was wondering about dial macros - it doesn't look like there's a replacement yet to call a gosub routine from the dial command. Or am I looking at this wrong? hose
2008 Dec 05
1
Gosubs broken since r160626 (1.6.0 SVN) ?
Hi all, I've just upgraded to latest 1.6.0 SVN from a few days ago and my Gosubs have stopped working. This is from the verbose logs: -- Executing [03333407271 at incoming-aaisp:4] GotoIf("IAX2/aaisp-3802", "1?5:7") in new stack -- Goto (incoming-aaisp,03333407271,5) -- Executing [03333407271 at incoming-aaisp:5] Gosub("IAX2/aaisp-3802",
2011 Nov 14
0
Asterisk 1.6 AEL Macro vs GoSub
Hi, I have recently run into the problem with macro implementation in AEL in Asterisk 1.6. I have some older AEL dialplan which runs on 1.4 but it does not on 1.6 and I'm not sure how to solve this correctly. Let me explain... For example, in Asterisk 1.4 I have a macro like this: macro read_digits(digits) { Set(playlist=${SHELL(${PYTHON} ${SCRIPTS}/read_digits.py
2008 Feb 12
3
LCR in Asterisk
Hi all, I am planning to implement LCR routing on my already running asterisk server. Uptill now i have found out that asterisk has no support for lcr, i have to do something about it myself, for example using the AGI. Im looking for ideas here. Whats the best way to start implementing lcr in asterisk. Should i use agi and start implementing my own lcr script or is there any plugin available which
2007 Nov 29
2
Using existing extensions.conf macros, and co-habitation
I'm trying to set up my extensions.conf file using some of the existing macros like stdexten, etc. while at the same time having two logically separate virtual PBX's (with no "default" context) and two trunks coming into separate contexts, i.e. one for residence and one for my at-home business. I noticed, however, that macro-stdexten depends on the "default" context: