Displaying 20 results from an estimated 50000 matches similar to: "AGI questions.."
2003 Nov 25
4
AGI Rocks!! (A happy camper)
A note to all those who are avoiding writing up an AGI becasue it looks
two complicated..
I have just written up my first and its awesome.. It makes Asterisk open
to all sorts of possibilities.. let your imagination run wild..
I put off writing an AGI script because a) I could not find any docs b)
it looked like the only way to do it was perl and I know nothing about
perl and c) I am not a
2004 May 27
4
AGI Pascal
Hi,
Has anyone done any AGI scripting in pascal. I would appreciate help anyone
can offer. My understandin on AGI scripting is very flaky, I am assuming
whatever language is used the application needs to be compile and made
executable. So if I write a script in pascal, I would compile it with
something like freepascal and make it executable.
Thanks
Umar Sear
2003 Nov 10
3
AGI and PHP
i've just spent the pass 2 days trying to get AGI to work with PHP;
i made a lot of silly mistakes along the way which could have been
avoided if only there were some kinda howto or samples. at the risk
of looking stupid, i decided to shared my experience in hopes that
it might help some newbie get going with PHP.
1. first order of business is to be aware of your php environment; i m
NOT
2006 Dec 18
2
AGI Help Please
List,
I finally decided to break down & start playing with AGI scripts, but for
the life of me, I can't figure out what I am doing wrong.
Below is a super simple script to run a query in mysql to see how many call
records there are for the extension calling in, then print the total in the
CLI.
This is all I get on the CLI:
-- Executing AGI("SIP/216-0baa",
2009 Feb 25
5
AGI problem using mono (.Net)
Hello.
I have a software developer creating a .Net / mono program to use as an
AGI script. We are having problems getting it to stream files. From what
we can tell, it is talking to asterisk correctly when called from the
dial plan. Its stderr output goes to the asterisk console. But asterisk
doesn't give any indication that it receives the STREAM FILE command.
Asterisk simply quickly
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
2003 Sep 19
7
AGI problem
Hi.
I have the next configuration... I dial from my analog phone in the
TDM400P to extension 102, and the second agi works about 1 out of 10
times, the other nine it gives me these error on the asterisk console:
-- Starting simple switch on 'Zap/2-1'
-- Executing Macro("Zap/2-1", "receivecall") in new stack
-- Executing AGI("Zap/2-1",
2004 May 20
2
AGI/php script not working
Dear all
I am just getting started with AGI
so I wrote the following script as a simple test
but all that happens is silence before it times out and hangs up
can someone help to get me started?
yet if i use the agi-test.agi script everything works I don't see the
difference
Thanks
php -q
<?php
fputs(STDOUT 'SAY NUMBER 123 "#*"\n');
$lin =
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
2005 May 25
15
PHP/AGI Problem
Hi
I am currently developing a IVR application using
PHP/AGI. I am using the PHPAGI class at
http://phpagi.sourceforge.net/ to handle the
commuication with my *.
The application basically asks a caller to enter in
some information which is then processed and a answer
is read back out to them. I want the application to
loop back to the beginning after giving the answer so
they can try another
2006 May 22
1
Script AGI on C
Hi Folks:
I used that one example for AGI script on C web, only to fill the working with the Asterisk. I compiled and it worked great. I executed accidentally the ls -l command in directory where was the source and executable, I noted and was surprised that because the executable size was to further 20 times more than source.
I executed the gcc -Os source.c -o executable.agi command several
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?
2016 Jan 06
2
No joy with my first AGI Python script
It's very simple but it doesn't work. Here's the entire script.
#! /usr/bin/python
import sys
env = {}
def comm(cmd):
sys.stdout.write(cmd.strip() + '\n')
sys.stdout.flush()
return sys.stdin.readline().strip()
while 1:
line = sys.stdin.readline().strip()
if line == '': break
key,data = line.split(':')
if key[:4] == 'agi_':
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
2009 May 27
1
PHP AGI Problems
(Accidentally posted this to asterisk-dev, should be here)
fgets is only returning one character... either when run as an AGI or
run as a test on PHP on CLI...
Example, enter 3333, then fgets returns '3'.
Also, GET DATA seems to be returning early and the loop keeps
prompting 'invalid'...
Any suggestions on how to improve my AGI class so it actually works?
Thanks.
[code]
2007 Jan 16
2
Really Big Queues
Hi,
How do you folks handle really large queues (350+ simultaneous
callers) in your Asterisk PBXes?
We're going to be bringing in around 16 PRIs' worth of inbound
callers, doing skills-based routing, and queuing them up for
approximately 200 agents.
What's the best way to handle all of these callers? We want to record
the calls and we'll probably use the ramdisk method that has
2007 Feb 10
3
Dial out from AGI
I'm writing an AGI script and want it to dial a number on a channel
connected to the PSTN. It would look something like this (pseudo-code
follows):
if ($a){
dial("8005551212");
}else{
dial("8665550000");
}
The part I can't seem to get right is the "dial" function. I tried to
mimic the dial plan like so
sub dial($number){
print
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
2004 Jul 15
3
Important note for AGI with PHP newbies
I say this note is important only because I (a AGI PHP newbie) was
tormented by this problem for many an hour, even though I'm sure it's
documented somewhere or obvious to more experienced users.
So as I was experimenting with AGI in PHP scripting I was baffled by why
Asterisk was properly receiving AGI commands written to stdout but
always returning "510 invalid command" to the
2012 Feb 11
1
Asterisk perl AGI confusing variables
Hello all,
I'm struck with a very strange problem today. I've an AGI with some code
subroutine snippet as follows:
sub enable_sbc($) {
my $carrier = shift;
my $tmp = substr($carrier,1);
my $jkh = $tmp;
$server_port = $ast_agi->get_variable("SIPPEER($jkh,port)");
$ser_ip = $ast_agi->get_variable("SIPPEER($tmp,ip)");