similar to: Queue: Passing params to macros and gosubs

Displaying 20 results from an estimated 10000 matches similar to: "Queue: Passing params to macros and gosubs"

2013 Aug 02
1
Dial application "b" subroutine arguments not passing?
Asterisk 11.1.0 I'm trying to use the "b" subroutine of the Dial application so that I can do some stuff with our internal applications that need to have access to the called channel information. I can see that the subroutine is being executed, but the arguments I pass don't see to make it to the subroutine. [callmenow] exten => s,1,NoOp(callmenow: Queue without answer)
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
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",
2014 Dec 11
0
Passing literals with commas to subroutine [SOLVED]
On Tuesday 09 Dec 2014, Daniel Gonzalez wrote: > Hi, > > Let's say I do: > > Set(data=xxx,yyy) > Gosub(my-sub,s,1(${data})) > > My subroutine will only receive "xxx" for ARG1. How can I pass a literal > with a comma to a single argument in a subroutine? > > (The point is: when calling the subroutine I do not know if the variable > has a comma
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
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() {
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
2014 Dec 09
4
Passing literals with commas to subroutine
Hi, Let's say I do: Set(data=xxx,yyy) Gosub(my-sub,s,1(${data})) My subroutine will only receive "xxx" for ARG1. How can I pass a literal with a comma to a single argument in a subroutine? (The point is: when calling the subroutine I do not know if the variable has a comma or not.) Thanks, Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 Feb 24
1
Macros, GoSub & StackPop
Hi - I have a Macro that contains a GoTo. The documentation indicates: If you GoTo out of the Macro context, the Macro will terminate and control will return at the location refered to by the Goto. I thought I might convert the Macro to a GoSub routine, but the documentation doesn't mention what happens if you GoTo out. It does however mention that the return address gets pushed onto the
2010 May 18
3
About option U in Dial Ast version 1.6.2
Has any one used this? U(x[^arg[^...]]): x - Name of the subroutine to execute via Gosub arg - Arguments for the Gosub routine Execute via Gosub the routine <x> for the *called* channel before connecting to the calling channel. Arguments can be specified to the Gosub using '^' as a delimiter. The Gosub routine can set the variable ${GO
2009 Mar 16
1
Best way to do temporal joins in R?
I've been playing with zoo a bit, and it seems ok except it doesn't support non-unique time stamps when performing joins. I have two databases which contain a dataframe of a Date object (with the time, not just MM/DD/YY), e.g.: DB 1: UniqueID,Date1,Data 1,Data 2 DB 2: Date2, Station, Data 3 We'll say Station can contain three values: A,B and C DB 1 may have some repeat times,
2009 Jul 12
2
strata -- really slow performance
I'm a bit confused why the following command is taking an extrodinarily long time (> 2-3 hours) to run on an 3.06ghz iMac (brand new). I'm trying to do a stratified random sample, drawing only a single value per UniqueID from the patch_summary data frame: uniqueids <- unique(patch_summary$UniqueID) uniqueids_stratasize <- c(1:length(uniqueids))*0+1
2016 Jun 04
2
Including doesn't have any effect
On Sat, 4 Jun 2016, Frank Vanoni wrote: > Another possible approach to blacklist two (or more) specific callers > (098765432 and 012345678 as example) > > exten => _+x.,1,Gosub(blacklist,s,1) > exten => _+x.,n,.... > exten => black,1,playback(tt-monkeys) > > In blacklist.conf > > exten => s/098765432,1,Goto(black,1) > exten =>
2011 May 05
1
Why is PQMSTATUS empty?
Hey all! I'm trying to do a bit of logic here so that a user only has to dial one code to pause/unpause in a queue (e.g. *0 will (un)pause depending on the users's state). My logic looks fine to me but every time ${PQMSTATUS} shows up empty. Here's the extensions.conf part.... exten => *0,1,NoOp(${PQMSTATUS}) exten => *0,n,Macro(user-callerid,SKIPTTL,) exten =>
2008 Nov 09
3
set(CALLERID(name) not working
I've tried to create a subroutine that sets callerid name based on number. extensions.conf: ........... exten => s,1,Answer() exten => s,n,GoSub(set-callerid-name,0${CALLERID(num)},1) exten => s,n,Dial(${mainline},60) ....... [set-callerid-name] exten => 0,1,NoOp( no CALLERID num set) exten => 02025462677,1,Set(CALLERID(name) = "Fred" ) ................ exten =>
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
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
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?
2014 Dec 13
1
How to get BEEP BEEP BEEP when underline sends 486 Busy Here.
Hello There, I would like to play a busy tone (ie BEEP BEEP BEEP) when the underline carrier sends back 486 Busy Here. Looking at Dial parameters ( http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial), it mentioned something about the r parameter as not being very professional or something like that... Then there was: U(x): Executes, via gosub, routine x on the called channel. This is similar
2008 Aug 04
0
Help needed: strange issue with share mapping at logon
Hello all, I've run into an issue while migrating a client's Samba PDC from Debian 3.x to OpenSuSE 10.3, have been beating my head against it for over a week, and am now turning to the mailing list for help. We're running Samba 3.0.26a-3-1478-SUSE-SL10.3 authenticating against OpenLDAP 2.3.37. Integration of Samba and OpenLDAP works, and importing the 2000+ existing user accounts