similar to: Multiple AGI Issues

Displaying 20 results from an estimated 30000 matches similar to: "Multiple AGI Issues"

2006 Jan 25
3
Fast AGI Options. Eeeek!
Some questions regarding calling Fast AGI from the dial plan. Considering that the server side of the Fast AGI has to be able to a) use threading and b) connect to MySQL, this causes some serious limitations. I'm not a C programmer, so development options are either perl or python. It appears that the perl DBI isn't thread safe, so that rules out Perl. Python's database interfaces
2006 Jan 11
17
Nested MySQL Commands
Is it possible to have nested MySQL queries in extensions.conf? Ie, perform a query, grab a value, and then jump to another location in the dialplan and do another query based on that original value. I'm having problems with the result and fetchid's and I'm not sure if it's even possible to do this or not. Thanks, Doug. -------------- next part -------------- An HTML
2006 Jan 13
3
FastAGI Command Execution
I've noticed that with FastAGI (and maybe AGI) that when you sequentially send a sequence of dial commands, if the call is picked up, that after the call ends, the Fast AGI script keeps executing the commands! Is there anyway to stop execution once a call is picked up? I think looking at the result codes after the Dial to determine if the call was picked up or not is not a good idea... if it
2018 Sep 14
3
AGI timeout option
Hello list, Hope you all doing well! Recently, I had an issue with a FastAGI PHP script, which under some specific situation would run into an infinity loop, consuming all CPU resources. This also was preventing Asterisk to terminated the call properly because it was waiting for the AGI to return... The application uses AGIspeedy to process the AGI calls, not sure if this can be affecting this
2007 May 17
4
FastAGI hangs up channel if server is not available
Hi all, Running 1.2.14 When I call a FastAGI script such as this script for an incoming call: [calldirect] exten=>s,1,Answer() exten=>s,2,AGI(agi://192.168.1.175/calldirect?check&${CALLERID(num)}) exten=>s,3,Goto(check_time,s,1) and the FastAGI server is not running (Asterisk gets "connection refused" TCP error), Asterisk just terminates the call like so: May 17
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
2006 Feb 16
3
AGI Flakyness *sigh*
Well, I'm about ready to throw Asterisk across the room. Can someone tell me WHY, when you've sent a Dial command to Asterisk via AGI, if the callee hangs up the call, Asterisk sends a return code, but if the caller hangs up, it does not??? This means if an agi script services a call, and after the two parties have finished speaking, the person who initiated the call hangs up, the agi
2006 Apr 03
2
SIP Responsecodes
Hi, It seems as 'the google' has left me today so I am trying the list. How do I get access to SIP responsecodes from dialplan/agi. Yes I know that I should stay with 'DIALSTATUS' but there are cases where I need the responsecode like '484 adress incomplete' and not just the 'NO ANSWER' DIALSTATUS. Is there a channel variable/function that skipped over by
2008 Oct 05
5
asterisk, phpagi and singleton
Hello, I've this situation: 300+ simultaneous calls and dialplan like this: exten => _X.,1,Answer() exten => _X.,2,DEADAGI(check_status.php) exten => _X.,3,Dial(SIP/other/${NUMBER}) exten => _X.,4,Hangup exten => h,1,DEADAGI(cdr.php) When project is running , I had a lot of defunct php scripts (I've exceed mysql connection limits and so on, deadagi help a bit). The
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?
2009 Aug 13
2
Database Access from dialplan.
Summary: Is it possible to append to a user-defined text file from the dialplan without using AGI ? Background: We are using our Asterisk server to place outbound calls alone. We've 8 E1s that enables us to place about 240 calls concurrently. The server is a bit old, and we are not able to reach our maximum capacity. The dialplan makes use of MySQL to record call status information to our
2005 Feb 03
1
FastAgi Help
Dear List after a lot googling and watching source example of FastAGI i cant find a simple way to convert a very simple perl AGI script... perhaps im not a developer.. Why i have need to use FastAGI?...Very load CPU usage on my box... with only 100 calls.. So i have two way res_perl or FastAGI on some other box.. I cant test res_perl becasue when i try to compile it i have this error:
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
2009 Jul 23
1
odd behaviour with AGI and dial agent
Hi, I have come across an odd problem. Basically I am transferring a call to an agent. The agent is logged in and set as paused. In order to find which agent to call I am using a fastagi script to just set a variable. When it falls through the agi script and dials the agent (using the variable) it doesn't connect the call properly to the agent. I get the beep but no audio (along with
2007 May 08
3
MYSQL Query --> PAGE
I have all my SIP users in a realtime database. I would like to use MySQL command to query the database and use the results from the query to page all the phones found in the query. The results from the MySQL query will be multiple rows of extension: Something like: mysql> Select extension from sip where extension like '6%' 6001 6002 6003 ex.... I need to put all the results into a
2007 Aug 09
1
generating a GUID
I have a need to have a GUID (for example, bcd47ccc-d7c9-ddb6-dc11-6746a770d77d [36 characters long including the "-"]) generated in the dialplan. Is there any asterisk function that would do this ? I would prefer not to have to shell out every time a call comes in. Julian
2008 Jul 16
4
asterisk + web services
List, We're working on an upcoming job that may require us to access a web service (WS). I'm curious to hear peoples thoughts on the best way to do this with asterisk. We'll be submitting a single number to the WS and it will return a success or error. One solution would be to write a simple perl script to interface into to the WS, and use SYSTEM() from asterisk to call it.
2018 Sep 14
2
AGI timeout option
I don't know AGIspeedy, but I have some PHP scripts where I set a connect timeout using streams. Example using https, but should be easily adaptable to non-s http.: $pbxsh_bin = @file_get_contents("https://blah.blah.blah", FALSE, @stream_context_create(array('https' => array('timeout' => 5, "verify_peer"=>false,
2011 Nov 21
2
Continue AGI after Dial() following caller hang up?
Hello, We would like to continue a Perl AGI after a Dial() it has done completes following caller hangup. We would like to do this in the same AGI, and not using a new AGI from the 'h' extension. It works fine when the called party hangs up and the 'g' option is used, but not for caller hangup. Is this possible? If not a confirmation that this is the case would be very helpful.
2006 May 23
3
AGI ?
Hi All, I have been attempting to get an AGI LCRdialout script to work. Basically what I need to have happen is when someone dials out a number the script check to see if it is local if so, go out the ZAP channel. If the ZAP channel is busy, go out the IAX channels, if IAX is all busy, go out the SIP channels. Here is a sample of what I have in my script. #!/usr/bin/perl use strict; use