similar to: Asterisk 1.4.30 is slow sending STDIN to AGI script

Displaying 20 results from an estimated 20000 matches similar to: "Asterisk 1.4.30 is slow sending STDIN to AGI script"

2011 Feb 22
1
[1.4.39.1/AGI] ast_carefulwrite: write() returned error: Broken pipe
Hello Incoming calls from the FXO trigger an AGI script which simply NOOP data sent by Asterisk through stdin. The first two NOOP work fine, but after this, Asterisk isn't happy: ============= extensions.conf ... [from_fxo] exten => s,1,Wait(2) exten => s,n,Set(CID=${CALLERID(num)}) exten => s,n,AGI(/var/tmp/test.lua) exten => s,n,Wait(5) exten => s,n,Hangup =============
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
2003 Nov 26
3
AGI - CallerID ??
I have a client who needs an application for there field techs to call in when they arrive on site and when they leave. The logic behind it seems pretty simple. I am going to write something in AGI to capture some DTMF tones and update this data into MySQL to run some reports from. But here's my initial problem. I have started to create a simple AGI script to capture the CallerID, but I
2010 Jul 30
2
agi macro problem
I am trying this approach to see who picked the line: Here is what i am doing: EXEC DIAL SIP/ vaso &Zap/35||M(testing^30086) Macro: [macro-testing] exten => s,1,DumpChan() exten => s,2,AGI(whopicked.rb) exten => s,3,Hangup()
2009 Jun 04
2
broken pipe in perl agi
Hi gang, Since I'm getting no joy from device_Status or SIPPEER in 1.4.26-rc1, I thought I would do an AGI to read my hints and check for line in use that way. The AGI works fine from a prompt, but returns the dreaded "utils.c:966 ast_carefulwrite: write() returned error: Broken pipe" when I try to run it from the dialplan. Here is my dialplan snippet;
2004 Jun 10
4
How to get the Called id with AGI
Hi all, Is there a way to get the "called id" (the B number) with AGI perl ? I know how to get the caller id which is working fine and is just below: #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); $callerid = $input{'callerid'}; $AGI->say_digits($callerid); } Thanks in advance, Angel.
2011 Mar 11
1
Asterisk 1.8 AGI error ast_carefulwrite: write() returned error
Hey Guys, We upgrade asterisk from 1.2.x to 1.8.2.3 and my one of agi script doesn't working We have allpage.agi script for paging system on all polycom 501 but after upgrade it broke. Any idea what is this error ? extension.conf exten => 7770,1,agi(allpage.agi) exten => 7770,2,meetme(7770,dq) exten => 7770,3,playback(beep) exten => 7770,4,hangup following is agi debug....
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
2004 Oct 05
5
Asterisk Perl AGI
Hello everybody: This could be a stupid question, or may be not; I'm not sure 'cause I have not a very wide experience working with Asterisk, actually I just started last week. I need to make an IVR system work and I choose working with AGIs, written in Perl. The available documentation I've found show it as a very simple proccess, but it doesn't work for me... and I
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 Dec 14
1
AGI with PHP
Hi All, I'm having problems getting results from a PHP file. This is what the CLI is showing. -- Executing [111 at internal:1] AGI("Console/dsp", "GoTalk.php") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/GoTalk.php [Dec 14 11:57:25] ERROR[20260]: utils.c:1019 ast_carefulwrite: write() returned error: Broken pipe If I run the PHP file from
2003 Apr 11
1
Weird AGI/X100P behavior
I've got a single phone line coming into an X100P. In extensions.conf I've got this: [inboundzap] exten => s,1,Answer exten => s,2,EAgi,hanguptest.agi I see the ring come in and Asterisk detects it and tries to do something with it: NOTICE[20492]: File chan_zap.c, Line 4017 (ss_thread): Got event 2 (Ring/Answered)... -- Executing Answer("Zap/1-1", "") in
2009 Apr 08
1
Perl AGI
Hi all, I have the below peace of my AGI script...the problem here is that I cannot fetch the extension value to inside the script and assign it to another variable...I highlighted it in red #!/usr/bin/perl #use DBD::mysql; use DBI; use DBD::mysql; use Asterisk::AGI; ############################ #To read asterisk variable values. $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse();
2003 Nov 27
1
AGI (IF/ELSE)
I need some help with some statements..... #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); my $callerid = $input{'callerid'}; if ($optemp != 1) { my $empid = $AGI->get_data('employee',-1,5); $AGI->stream_file(entered); $AGI->say_digits($empid); my $optemp =
2007 Nov 14
4
Problem with AGI Script
I have asterisk 1.2.18 running on a new system we just installed. Although I've used AGIs many times in the past, I'm stumped on this one. It may just be a simple issue that I need another eyeset to look at. My AGI does the following: #!/usr/bin/perl #Load a few modules... use Asterisk::AGI; use DBI; $AGI = new Asterisk::AGI; #Grab input from Asterisk my %input =
2004 May 07
1
meetme conf-background.agi
Hello there! Somebody tried the meetme|b which initiates the conf-background AGI. Actually I want to originate another call from a conference.my AGI originates the call and connects it to the conference, but the calleeee is nowhere My extension exten => 21,1,meetme(21|pb) and my AGI **************************************************************************** #!/usr/bin/perl -w
2006 Feb 26
11
Asterisk question
Any idea how to read an external file, grab some stuff and push it back into an Asterisk variable? I can do it the other way with: system(echo "${UNIQUEID} =>" >> /home/ast/curr_calls) but I'm a bit stumped on how to go the other way around.... much thanks, Paul Hales
2008 Jul 23
3
Trouble Playing message file via Perl AGI
Hi all, I'm trying to build an IVR using the Perl AGI module at http://search.cpan.org/~jamesgol/asterisk-perl-0.10/lib/Asterisk/AGI.pm But, I'm having trouble getting my program to play a message and wait for a keystroke. I am able to use this code to play the file, so I know that the $msg variable points to a valid sound file: $result = $agi->exec("background $msg");
2009 Jun 24
7
PHP AGI Not Working and Odd Behavior
Hi, I'm running asterisk 1.4.22 on a debian server. I have php5 installed and it works correctly command line. When trying to run a php script via AGI, I get messages such as: GI Tx >> I> AGI Rx << #!/usr/bin/php5 -q AGI Tx >> 510 Invalid or unknown command The scripts are completely executable and owned by asterisk -rwxr-xr-x 1 asterisk asterisk Googling is not helping
2014 Feb 14
1
ConfBridge on asterisk 11
I believe I am running an AGI (to put users in a conf) before the confbridge is built. So the users are not really get in the conf... exten X,1,run agi to put users in conf exten X,n,ConfBridge() How do I have in the dial plan ConfBridge() and someplace run an AGI that brings the users I want into that Conf. I cannot delay in the AGI and wait for the conf because the conf is not built until I