similar to: Run-away Asterisk

Displaying 20 results from an estimated 8000 matches similar to: "Run-away Asterisk"

2007 Mar 02
1
How to fail an AGI
I mean how do I set failure condition in AGI? My script exits with code 0 upon success, and non-zero when problems occur - the standard *nix way. But Asterisk always report "AGI Script completed, returning 0", and AGISTATUS is always SUCCESS. Yuan Liu
2008 Jan 14
1
AGISTATUS is SUCCESS even though my PHP script returned -1
Hi, Using Asterisk 1.4.17. I'm calling a PHP script through AGI. No matter what my script returns (0 or -1), AGISTATUS always appears to be 0 = SUCCESS. I was wanting my script to be able to return a value to the dialplan and then test AGISTATUS but it looks like I'm going down the wrong path. Any suggestions? Thanks, Brian -------------- next part -------------- An HTML attachment
2010 Jun 30
2
Return agi script.
Good afternoon list. I'm trying to use ${AGISTATUS} after the execution of my script in PHP Agi. But after running the script, it just returns me 0 (true). Thus: -- <SIP/213-00000019>AGI Script check.agi completed, returning 0 I tried putting the lines "return false;" or "return 1;" but did not change anything. Does anyone have a clue? Thanks, Rodrigo Lang.
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
2010 Jan 02
4
Help getting info from caller
Hello. Happy New Year to everyone. I have a small WISP and would like to have customers to call our number to check their balance. I am planning on writing an AGI with php so it can get the customer info from the customer database. I don't know how to interact with the caller while in the agi script so this is what I have in mind: [test-agi] exten => 33,1,Answer() exten =>
2005 Mar 08
1
STOP NOW not responding
Has anyone had any new information about STOP NOW hanging? I am using Asterisk@Home 0.6 and today my system just stopped responding. I issued the usual STOP NOW command and it just returns to the CLI. I have found a lot of info regarding others having this happen but nothing that addresses resolution. I do not do a lot of calls so I am not sure why this would occur. Any info woud be
2010 Aug 06
2
How to reuse mysql connection between AGI's
Hey, Is there any way to share?MySQL?connection between different agi's.Actually when call comes to asterisk box it executes various agi scripts sequentially. Each script checks various values by making a new?MySQL?connection and then execute query and then disconnects.? So,?Ideally?there should be one connection, and it should be reused between each agi and when a call is over it should be
2020 Oct 27
2
Expert to work on load issue
Jon, We are only using FastAgi. On the second system (running Asterisk 16) there are no agi's running (just some bash scripts on call hangup). I did add some hackey code (netstat -nua | grep -v 'udp 0 0' | grep -v udp6 | grep -v ' 0 0.0.0.0' | grep udp) to my bash script to check out the packet queue (with the help of
2008 Jan 17
1
asterisk-users Digest, Vol 42, Issue 51
hi all, how to set the caller id facility for the TDM400p card. Please help me thanks, sandeep.s ----- Original Message ----- From: <asterisk-users-request at lists.digium.com> To: <asterisk-users at lists.digium.com> Sent: Tuesday, January 15, 2008 3:09 PM Subject: asterisk-users Digest, Vol 42, Issue 51 > Send asterisk-users mailing list submissions to > asterisk-users at
2007 Jan 10
1
Priority + 101 exit
Many built-in applications jump to current priority + 101 upon unfavourable output. Does this apply to macros and AGI's also? Precisely, when an AGI returns non-zero, will Asterisk automatically take the call to +101? And when a macro hits an invalid extension, will Asterisk automatically take the call to +101? (So far the "i" extension could not be reached from within a
2007 Jul 12
0
No subject
* The exit behavior of the AGI applications has changed. Previously, when a connection to an AGI server failed, the application would cause the channel to immediately stop dialplan execution and hangup. Now, the only time that the AGI applications will cause the channel to stop dialplan execution is when the channel itself requests hangup. The AGI applications now set an AGISTATUS
2015 Mar 04
0
Failsafe AGI using AEL
For the mailing list archive and for anyone else interested. A few years ago we needed to automatically run a second AGI if the first AGI failed i.e. a "failsafe" setup. Mainly because I'm not a very good programmer. 8-| The code below is very similar to what we use in production. This code is also at http://pastebin.com/LBaLhdfJ for a while. "sm" stands for Switch
2009 May 15
2
change AGI script return result
How I can change AGI script return status to failure from within the script? It always return AGI Script ........ completed, returning 0 Thanks, Hristo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090515/462d5dc3/attachment.htm
2006 Jan 06
3
Asterisk initialization
Hi, I am doing an AGI that logs to a database every Agent login/logoff. My idea is to be able to go to this database and check which agents where logged so that I can force their login in case Asterisk goes down for some reason. The problem is that I would need to reload their status from this AGI when Asterisk initializes. Is there a way to do this? One idea I had was to make safe_asterisk to
2007 Mar 08
2
Call load balancing
I've got a system I'm putting together to handle IVR calls with * I have one head system that terminates two PRIs. It routes the calls from the PRIs to * boxes using IAX I'm planning on having four or five * boxes. The * boxes run AGI scripts to process the IVR calls. Can I load balance the routing if I have five calls each of the IVR * boxes gets two call and the next call would go
2020 Oct 27
2
Expert to work on load issue
Hi, Sorry in advance that I am emailing the users list and not the biz list I think I will find my target audience here. We are looking to hire a consultant to help us figure out an issue. We are having what seems are "random load" issues with bare metal boxes that are dedicated to Asterisk and a few Perl AGI's. We went after all the usual suspects (CPU IDLE, memory usage etc.). I
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
2007 Nov 19
7
asterisk as non-root/best practices
Hi, I have set up asterisk to run as non root, and allow admin users to log in to the server as asterisk, which gives them privileges to edit configs in the asterisk home directory. As for connecting to the console with 'asterisk -r' - this by default does not work as asterisk is owned stored in /usr/sbin/asterisk I am reading that the best way to solve this is to use 'visudo' -
2007 Nov 07
5
What do you do to keep asterisk alive?
I've asterisk stop (presumably segfaulting) a couple of times, and I was just beginning to look at how to keep it running - what have others done? I was thinking of wrapping a script around asterisk like this: while 1 do asterisk -f done /Per Jessen, Z?rich -- http://www.spamchek.com/ - your spam is our business.
2004 Jun 20
1
asterisk console mode
Hi folks, I use safe asterisk to startup and run asterisk in the background. In Safe_asterisk script, there is a parameter (right at the top ), CONSOLE which I can set to no or something. If it is no asterisk startup as asterisk -vvvg , if it is set to something the asterisk startup as asterisk -vvvg -c. Now I am running an agi script when calls get hung-up. That is in my extensions.conf I call