similar to: AGI and fork()

Displaying 20 results from an estimated 90000 matches similar to: "AGI and fork()"

2011 Apr 13
4
AGI and forking
Hi. I just want to make sure I understand this before doing something that might break things spectacularly for our users and customers :) We are using Asterisk 1.6.2.9 and my programming language of choice is Perl. I want, when a call comes in on someone's DDI number (which the person who dialled it can only possibly have obtained by dialling 1471 after we called them), to be able to
2019 Apr 19
2
Forking AGI or GoSub
In PHP something like: $pid = pcntl_fork(); if ($pid != 0) { // we are the parent // do parent stuff exit; } // we are the child, detatch from terminal $sid = posix_setsid(); if ($sid < 0) { die; } // do child stuff On 04/19/2019 02:00 PM, Mark Wiater wrote: > On 4/19/2019 1:49 PM, Dovid Bender wrote: >> Mark, >> >> I am using PHP agi and when forking
2017 Jun 30
2
Simplest way of executing a non-blocking (async) python AGI script?
OK, I give up and come grovelling, "Fork" was suggested at 18:23, it's now 22:20 and I have been through 4 different methods, all block with a 2 second delay before returning to dialplan. Here are just some of the examples I have tried, as as per the suggestions, I am closing all possible outputs in the forked process. https://docs.python.org/3.5/library/multiprocessing.html
2007 Mar 22
3
ChanSpy and MeetMe
I have been successful using ChanSpy on a standard Dial call but when attempting to ChanSpy on an incoming call that has been added to a MeetMe conference (attempting to coach an agent that is speaking to a conference of callers) it seems to fail to connect to the channel. Here's the console dump: -- Accepting call from '2154182700' to '3399' on channel 0/18, span 4
2004 Aug 26
2
<<< AGI and EXEC function CONFIRMATION >>>
Howdie- Can anyone please confirm that the BACKGROUND application does ***NOT*** return IMMEDIATELY when called from within an AGI EXEC command? It seems that EXEC waits until DTMF or THE END OF THE AUDIO FILE to return to the AGI script. This essentially prevents repeated calls to BACKGROUND (or I assume any other asterisk dialplan application) from within an AGI, and prevents
2003 Nov 19
0
GoTo or Dial in AGI??
I have two possible senarios for making a call from an AGI.. Senario1 - Using GoTo In the extensions.conf I have.. [dial-out] exten => _9.,1,AGI(myagi) exten => _9.,2,Dial(SIP/blah/${EXTEN:1}) In the AGI I have.. EXEC GoTo dial-out|9555678|2 So using this method I don't have to really edit the AGI ever if I change the dialplan around as long at the context is correct.. At the end of
2010 Jan 07
4
AGI perl script set timeout within script?
Hi All, I'm running an AGI, calling a perl script the does number lookups to a remote server. I would like to put a timeout in the script. The problem I'm running into is if the DNS server is not responding, the script hangs and waits for 30 seconds before returning to the Asterisk dialplan. I would like a timeout of 1 second, then return. Here is my clean script:
2019 Apr 10
7
Forking AGI or GoSub
I have an AGI that can sometimes take time complete. I don't want the dialplan to be held up by the agi. Is there any way to call it and have Asterisk continue with the dialplan? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190410/4c704231/attachment.html>
2006 Apr 25
3
Background asynchronous AGI
I have been writing a lot of AGI programs in C with good success. I would like somehow to have an AGI program continue in the background while the pbx execution returns to the dialplan and continues. Is this possible? I was thinking that perhaps I could fork or create another thread within the AGI prog. The reason I want to do so is in order to monitor external information (e.g. credit limit and
2004 Jul 01
2
DISA and AGI: authenticate by caller ID?
I'm having trouble getting an AGI exec command to spawn app_disa. The script executes properly, but does not spawn DISA. The CLI gives no helpful clues. Am I doing the exec incorrectly? I want to have a way to authenticate callers to the extension by Caller ID... if their caller ID is in my database and set to active, they can call out. [like a calling card but auth'd by CID instead
2007 Apr 26
0
FW: ChanSpy and MeetMe
> On Mon, 26 Mar 2007 10:42:38 -0700, Stephen Uhler wrote > > >>>GDrayer@guesswho.com said: > > > I have been successful using ChanSpy on a standard Dial call but when > > > attempting to ChanSpy on an incoming call that has been added to a > > > MeetMe conference (attempting to coach an agent that is speaking to a > > > conference of callers)
2008 Mar 24
2
Getting Exec Format Error when running AGI call
Dear friends, I am having problem with running a sample php and I can't figure out why. I can run the sample.php using CLI but when I run it inside the dialplan it does not work. Can someone please suggest the config problem that I may have made? dommy:/var/lib/asterisk/agi-bin# php sample.php #!/usr/bin/php5 -q VERBOSE "Here we go!" 2 VERBOSE "Call from - Calling
2007 May 14
3
Proper AGI use with MySQL
Hi, We have a "simple" AGI script that provides some IVR functionality. It connects to a MySQL database in order to create a call record and capture IVR data. During the IVR process, we need to store the time the call started, so basically we INSERT a new MySQL row with callstart = NOW(), uniqueid = AGI(agi_uniqueid). As the user selects different options, we update the row to reflect
2007 Feb 01
0
Dialplan programming vs. AGI vs. ???
This depends on your application. As you say you are able to do everything you require in dialplan at that is great. I have used AGI fairly extensively becuase the stuff I want to do can't be done in dialplan alone. For instance i have written a auto attendants that can be dynamically controlled by a non-techie user with real time and in call reconfiguration. Also i have written IVR apps that
2009 Jun 04
3
PHP/AGI/SetVar Issue
Is there a limitation to the number of variables you can set from a PHP agi script? I have a simple example and I can't get it to let me set more than 1. I am pretty sure I am just missing something, but I've searched all over an can't find the answer. Here is the extensions.conf part: exten => _XXXXXXXXXX,1,AGI,diallocal.agi exten => _XXXXXXXXXX,n,NoOp(${ISLOCALCONTEXT})
2007 Jan 12
4
FW: Get dialed numbers in AGI
On 1/11/07, Mike D'Ambrogia <miked@jamagination.com> wrote: > > Ralph > > Kind of new to asterisk, and really new to AGI but it looks like you were > trying to have the AGI script tell asterisk to read and lay the results into > my_var and then regain control in the AGI script, is that correct? > > If so I don't think that will work since the dialplan
2010 May 07
1
Execute AGI, Then Continue
Hi all, I'm running Asterisk 1.6.2.7 using the following pseudo-dialplan (not actual dialplan, because of complexity): [something] exten => s,1,Answer() exten => s,n,AGI(blah,arg1,arg2) exten => s,n,Playback(blah) exten => s,n,DoMoreStuff() exten => s,n,Hangup() What I'd like to do, is have Asterisk launch my AGI script and continue executing dialplan without waiting for
2006 May 31
0
AGI MySql
thanks Billy. I replaced print "STREAM FILE $filename \"\"\n"; with print "EXEC PLAYBACK $filename \n"; and it worked fine. Interestingly when I did print "STREAM FILE beep \"\"\n"; within the script, it worked. If I wasnt a newbie to asterisk I wouldve thought this to be strange. >From: "William Piper"
2017 Jun 30
3
Simplest way of executing a non-blocking (async) python AGI script?
I use a python AGI which pulls some info from a web service, which should take half a second. Sometimes, it takes 5-10 seconds which blocks the dialplan execution, but the dialplan should continue immediately as it's not dependent on the AGI/web service data. What's the simplest, easiest quickest least-code way of firing off an AGI with some variable, and then returning to the dialplan?
2004 May 10
1
AGI.pm wait_for_digit() not working for me!!!
Hello everybody!!! I really need your help guys, I am using the AGI mode in meetme application, and I want that AGI should wait for an input from the client/user i.e. a digit and then proceed, but I have used that AGI function agi->wait_for_digit(), but no use....my agi just passes, or ignores this function, where AGI should stop here and wait for the input.... .....my extension in my