similar to: Passing literals with commas to subroutine

Displaying 20 results from an estimated 5000 matches similar to: "Passing literals with commas to subroutine"

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
2014 Oct 14
1
Do subroutines need their own h extension?
Hi all, According to the documentation ( http://www.voip-info.org/wiki/view/Asterisk+h+extension): Be aware: Macros require their own h extension as they do not make use of the calling context's h extension! Does this apply to subroutines too? I am unable to find the corresponding explanation. If not: what happens when a call is hanged-up during the execution of a subroutine? Is the h
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)
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 =>
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
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 =>
2012 Dec 19
1
Dialplan - working out when users answer
Hey guys, I've got a part of my dialplan that dials multiple people: exten => direct,n,Dial(${QUEUEEXTS},${RINGTIME}) Multiple extensions are in the ${QUEUEEXTS} from an external script - e.g. SIP/100&SIP/101&SIP/105 etc This works great, however I want to see if I can find a way to work out (and run an AGI script) when the call is picked up by someone. Thanks all!
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?
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
2008 Dec 16
2
1.6 upgrade issues
Greetings list, Over the last few days I've been gearing up to replace a couple of our servers with 1.6 as something of a testbed, but I'm encountering a few problems, and wondering if anyone can help... In extensions.conf, there are a number of contexts defined for each group of users, along the lines of: [groupa] [groupb] etc. In each of those, there's a command include =>
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 =>
2014 Dec 11
2
Finish extension (avoid dialplan to silently continue in the next priority of another extension)
Hi, I have run into a strange behaviour: [ctx-test] exten => h,1,NoOp(*** hangup ***) exten => s,1,NoOp(*** ${EXTEN} ***) same => n,... same => n,... same => n,Hangup() Strangely, the h extension continues on the priority 2 of the extension s. Maybe this is caused by the use of same? How can I make sure that an extension is really ending, something like: exten =>
2012 Mar 01
1
Booting virtual machines automatically
Hello, I am managing several virtual machines (a predefined set) with virsh, and I would like to make sure that all VMs are booted when the host reboots. What is the recommended approach for this? Thanks, Daniel Gonzalez -------------- next part -------------- An HTML attachment was scrubbed... URL:
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
2004 Apr 20
2
compile Fortran code which calls C subroutine
I used "R CMD SHLIB" to compile the fortran filename.f file and the filename.so is generated. But since in filename.f it calls another subroutine written in C, i had problem in "dyn.load" because it could not find the C subroutine. I have the .c file but don't know how to tell R about it. How should I compile when I want to call the fortran function
2010 Mar 16
2
Help running a Fortran subroutine from R
useR's, I need help getting a Fortran DLL successfully returning the correct output. The attached fortran source code (filter2d.f) and DLL (filter2d.dll) are attached. Also, I attached a text file for which I want to apply the filter to (time702.txt). Here is what I am doing... > dyn.load("C:/f/NEW/filter2d.dll") > is.loaded("filter2d") [1] TRUE Then I pass the
2007 Jun 12
1
Building packages with subroutine in fortran 90 under windows xp
Hello, I work under windows xp and I am trying to build a R package with a subroutine written in fortran 90. I have installed all the updated tools and I am working with R-2.4.0 or R-2.5.0. When I check a package with a subroutine in fortran 77 (and extension f) everything is ok. When I try to build the same package with a subroutine in fortran 90 (with extension f90) the following warning
2016 Mar 04
3
ALLOCATE in a FORTRAN subroutine
Hi, I am a FORTRAN developer and I am 'translating' R functions in FORTRAN subroutines. I am 'new' to R. It's my first question in this mailing-list and English is not my natural language. Very often, an R function gives an 'array' as result and you don't have to bother with the dimension of the array : R creates automatically an array with the good length.
2008 Aug 18
2
Call a Fortran subroutine with R: R crashes
Hello, I am trying to call a FORTRAN subroutine within R and something really strange happens: I have a dll-library, that I load with dyn.load('mpbvv.dll'). I have checked the [Ordinal/Name Pointer] Table for the function within the library that I want to call - it is there (objdump - p mpbvv.dll). Then, I have written an R-wrapper to call the FORTRAN subroutine, which works fine. SInce
2000 Nov 09
1
file processing with a FORTRAN subroutine
Dear all, Is it possible to call a FORTRAN subroutine which does file processing (open an input and write to an output file) using the .Fortran command. FYI, I am using R 1.1.1 for windows, Thanks, Agus Agus Salim PhD student Dept. of Statistics University College Cork Ireland Tel:353-21-4902197 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing