Displaying 20 results from an estimated 10000 matches similar to: "AGI Test Fails"
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
2003 Oct 10
1
Asterisk crash on AGI
Hi
I've just started to play around with AGI scripts and have run into
problems.
When I run Asterisk in console mode everything works just fine. If I run
Asterisk in 'regular' mode (not console) it crashes if I hang up on the
script. I have used Python scripts to test this and also the "agi-test.agi"
script.
(the Asterisk code was compiled from CVS code just a few days
2007 Apr 11
3
Execute EAGI script with params from extensions.conf
How can I execute an EAGI script with params from extensions.conf
Example python script:
InfMsg -s 1
in my extensions.conf
exten => 492,1,Answer
exten => 492,2,eagi,InfMsg -s 1
exten => 492,3,Hangup()
It doesn?t work
my * report...
-- Executing [92@telpin-112:2] EAGI("Zap/4-1", "InfMsg -s 1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/InfMsg
2003 Jul 12
1
AGI script sample using bash shell script
Hi,
A quick and dirty (aka Rapid Application Developement) AGI script
implement using bash shell. No need to invoke a 10MB perl engine to
process simple asterisk agi scripts.
I found it to be very useful in learning the AGI interface. For example,
I learn that AGI won't execute the next command until you read the
results from STDIN.
Enjoy,
Sunny Woo
Solution Consultant
Avantnix
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 =
2004 Jan 13
6
SIP and AGI crash...
Hi,
I'm trying to use the say-ani agi asterisk-perl script and am experiencing
crashes, I am also experienceing problems with the test-agi scripts shipped
with asterisk.
The clearest demonstration of the problem is that if I dial extension 125
configured as...
exten => 125,1,Ringing
exten => 125,2,Wait(3)
exten => 125,3,Answer
exten => 125,4,Wait(2)
exten =>
2003 Dec 18
11
Sphinx
Hi. I just started trying to play with Sphinx. I followed their site as far as running sphinx-server. It is listening on the default port. I copied sphinx2-simple to another file and changed sphinx2-continuous to sphinx2-server.
So, I ran eagi-sphinx-test under asterisk. What exactly is it supposted to do? Here's what I get:
debian:~# sphinx2-simple2
sphinx2-simple:
Demo CMU Sphinx2
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");
2023 Jul 01
1
SetCallerPres command gone
The AGI debug command worked well, and I found the offending command:
SetCallerPres(allowed)
That worked in Asterisk 13, but from my google searching it looks like this command has disappeared in Asterisk 20 (actually everything after ver 13). I thought it was replaced with CALLERPRES(allowed) but this generated an error too in Asterisk 20.
Is there a replacement command?
-----Original
2006 Apr 13
1
placing call with agi
I'm trying to set up a system so that I can record a conversation over
SIP. Monitor and the like don't work so well for me, because I need to
pipe the conversation to other programs in realtime, rather than record
to a file, so I've been trying to use EAGI instead. (if anyone has any
other suggestions about this, it would be greatly appreciated!)
At this point, I'm a little
2005 Oct 05
1
Caching DTMF tones for get_data AGI?
I'm using get_data in an AGI script and am having a problem when, after
a long time in my IVR, when I ask for a 10-digit phone number, the first
few tries are always invalid -- the number it reads back is very
strange, almost like the DTMF tones from other answers were being cached
and then dumped on the call to get_data.
Anyone ever experienced this before? I have to do some major
2009 Mar 01
1
php agi and get_data errors.
Hallo,
I'm using a self-made script to get the code a user enters on my applications.
Sadly, the code doesn't work, i push the digits, but the result is
always an empty data.
(code=200, result=1, data= '').
Here is the code:
set_time_limit(99999999999999);
require('phpagi.php');
$agi = new AGI();
$agi->answer();
function printdebug($a) {
global $agi;
2014 Aug 07
2
agi get_data noanswer
Hi Guys..
I am making an anoucement machine that is not allowed to "answer" the call
due to a billing issue.
I found that Playback with "noanwser" is usefull in this case.
$AGI->exec('Playback',"$message","noanswer")}
But when i request some values to the user with get_data, i think there is
an answer anywere.
Is there a way to get_data
2007 May 14
4
[*Win32 0.60] Sending call notification by e-mail/web?
Hello,
In case there are other users of the AsteriskWin32 port...
I haven't really used the AGI feature of Asterisk to run an application
from extensions.conf. *Win32 supports Perl, which I don't know. Apparently,
it's also possible to write AGI applications as EXE's (there's a
eagi-test.exe file installed by default).
=> When a call comes in, I'd like an AGI
2008 Feb 04
8
AGI: Not getting answers from get_data in a call-file call
I have the following situation: I drop a call-file into the Asterisk
spool directory and I get called back. That all works.
And I have this script:
#!/usr/bin/perl -w
use Asterisk::AGI;
my $AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
$AGI->answer();
my $i;
$i = $AGI->channel_status();
$AGI->say_digits($i);
$i =
2007 Jan 15
3
php agi - first phrase truncated, all others fine
I have the following code. When I call the extension, it either ignores the
first "Hello there everyone", or says "hello" and moves on sometime stoping
before it finishes hello. The rest of the text reads fine. Anyone else
have this issue??
Thanks!
require('/var/lib/asterisk/agi-bin/phpagi.php');
$agi = new AGI();
$agi->answer();
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
2007 Aug 27
1
Detecting tones
Hello folks,
I'm interested in detecting tones on specific frequencies with
specific timing; for example, I'd like Asterisk to dial out and when
the channel starts/call connects, listen for a 1200Hz tone that plays
for 100ms.
Is this doable with Asterisk using something already extant? After
looking through documentation, mailing lists, and some of the source I
had the idea that I might
2003 Dec 31
1
AGI - IVR - Time Clock
I wanted to post the beginings of my latest IVR Project for an automated
Time Clock software.
The customer has over 300 Field Reps that call in everytime they arrive
on location and whey they leave that location. This is handled by the
receptionist now and she logs in them and out of there Time Clock
Software. Which takes up majority of her day. The customer has
requested a automated way of
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