Displaying 20 results from an estimated 4000 matches similar to: "Problem with AGI"
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;
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
2011 Feb 24
1
missing argument on AGI
Hi All,
I'm using the asterisk 1.4.39.2 with phpagi 2.20 I have setup a dial plan:
[callback-outbound]
exten => _00.,1,Macro(callout|${EXTEN})
[macro-callout]
exten => s,1,AGI(getchannel.php|${ARG1})
exten => s,2,Dial(Local/${OUTBOUND}@from-internal/nj||tr)
exten => s,3,Hangup()
but for some reason i am not receiving the argument:
Executing [s at macro-callout:2]
2006 Dec 27
1
php agi trixbox help
I have this code which was taken from the phpagi project page along with the
following in extensions_conf and the output from the asterisk CLI. When I
call the 311 extension, I does nothing then hangs up. What am I doing
wrong??
----php code------------
#!/usr/local/bin/php -q
<?php
set_time_limit(30);
require('phpagi.php');
$agi = new AGI();
$agi->answer();
$cid =
2009 Sep 02
0
problem with agi script not getting variable
I am learning agi scripting using php. I m using phpagi 2.x on asterisk 1.2.
I hve written a simple script that reads out the callerid using flite. My
problem is that I seems the script is not getting the callerID.
Bellow is the script
_________________
#!/usr/bin/php -q
<?php
/**
* @package phpAGI_examples
* @version 2.0
*/
set_time_limit(30);
2010 Nov 20
0
AGI CDR Update (with set variable) problem.
hello,
First of all i am using Asterisk 1.6.2.9-2
The following problem seem like a bug to me but im not sure.
Any help or comment will be great..
We are trying to implement our own billing software with AGI - Php Scripts.
When a hangup received, i am calling a script to calculate the bill and we
are trying to write the results to cdr database.
We added two fileds to cdr table as rate
2006 Nov 02
1
AGI Problems
Hi,
I've got a setup whereby calls come into the asterisk server (1.2.7.1)
over a IAX2 trunk and into a dialplan that launches a php AGI script:
[live-full]
exten => _X.,1,Set(TIMEOUT(absolute)=0)
exten => _X.,2,NoOp(${EXTEN})
exten => _X.,3,DEADAGI(live-full.php)
exten => _X.,4,Wait,2
exten => _X.,5,Hangup
The script is using phpagi-2 from http://phpagi.sourceforge.net/ and
2007 Jun 15
2
combining AGI with dialplans
On 2007-05-15 Tony Mountifield wrote (wrt using AGI scripts to dial out):
> Can't comment on this one, as I never use AGI to dial.
> My AGIs just set the context, extension and priority,
> and exit to the dialplan to do any dialling.
(http://article.gmane.org/gmane.comp.telephony.pbx.asterisk.user/185537)
I would like to do this, but I am having trouble figuring out how. I have
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();
2014 Nov 18
2
AGI and AMI in PHP -- What's current?
I'm writing some code that needs to access AMI in PHP. (I'll probably be
doing AGI later as well.)
I'm looking at phpagi (2.20), but it hasn't been updated since 2010 and
appears to be a bit behind current Asterisk -- No event handler for event
'fullybooted'.
What PHP framework/library are you using -- and why?
--
Thanks in advance,
2014 Sep 23
2
read digits from the user through php agi script
hi everyone,
actually i want to release an IVR system using PHPAGI API , in this IVR i
want to get value from the user.
I already used get_data defined in phpagi but they are not able to get the
value given by the user and store it in a php variable.
i tested this :
$result = $agi->get_data('beep', 3000, 20);
$keys = $result['result'];
but every time i found in $keys variable
2005 Oct 13
1
AGI Variable problem
Hello all,
I try to use a agi script to get a variable from * und put them into a
script which gives me another variablke and put this in *.
My problem is now it seems the var ID is empty coz i always jump into
the result 0 loop.
The $MSN should be in the SetCIDNum.
#!/usr/bin/php -q
<?php
include("/var/lib/asterisk/agi-bin/phpagi.php");
$agi = new AGI();
$ID =
2012 Jan 12
1
how to set callerid in php AGI file.
Hi,
I am using phpagi for agi scripting. and want to update callerid number but
didn't get any success. please help me how to update PHPAGI is new for me.
Below is the code which I write.
#!/usr/bin/php -q
<?php
set_time_limit(30);
//require(.phpagi.php.);
include("phpagi.php");
$agi = new AGI();
//answer the call
$agi-> answer();
2004 Jul 06
2
AGI - No audio
All,
I am currently working with the AGI interface using PHP, I have it working
to execute commands that do not require prompts to be played, but when I
execute an AGI command to play a prompt or stream a prompt all i get is
silence (although I can see in the log where it says the correct name for
the prompt to be played).
I have looked through the wiki and googled extensively, so if something
2009 Jun 04
3
PHP/AGI/SetVar Issue
Is there a limitation to the number of variables you can set from a PHP agi
script? I have a simple example and I can't get it to let me set more than
1. I am pretty sure I am just missing something, but I've searched all over
an can't find the answer. Here is the extensions.conf part:
exten => _XXXXXXXXXX,1,AGI,diallocal.agi exten =>
_XXXXXXXXXX,n,NoOp(${ISLOCALCONTEXT})
2004 Sep 15
0
AGI didn't get var from Asterisk?
Dear All,
Just hope your guys out there can help me through..since I've been playing for serval hours....and still not able to resolve it...
The workflow as I've created an .call file for Asterisk to call out and it's working fine with outdial, passing variable to asterisk..But the problem is when the calls reached Context and execute AGI script, the script didn't get any
2006 Nov 30
1
AGI PHP Issues (AGI script runs but phone hangs up too quickly)
Sorry to re-post this but I'm sure it's something simple that someone has
found before.
To summarise:
Dial plan answers the phone
AGI script executes
AGI debug in console show phonetics ABC - However no audio at all on the
phone and this step is less than 1 second.
Dial plan Busy
Phone hangs up.
Total time less than a second.
This is such a simple AGI script do I need
2007 Sep 13
0
[phpAGI] generate a call from a SIP device to Asterisk
Hi
i need to generate a call from a SIP hardware device to Asterisk.
The device isn't registered with a sip account to Asterisk.
What i've done, is to do this (using phpAGI):
.....
$asm->Originate(SIP/user_on_device at ip_of_device,2000,"default","1");
.....
And on the extension 2000 in the context "default"
exten => 2000,1,ChanSpy(|g(100))
exten
2006 Feb 06
1
php agi configuration issue
Hi all,
I would like to eliminate about 150 lines in log /var/log/messages) every
time a call is placed/received
If I type, on the asterisk console,
set verbose 0
the lines in the log disappear, but it appears to me too drastic as a
method....
The lines shown in the log don't appear (at least to me) very critical: no
problems at all are shown.
Isn't any way to turn off this debug ? I
2009 Aug 18
1
Play Fake ring in phpagi
> I'm going blind searching - maybe you know?
>
> During the execution of a script I want to play fake ring to caller.
> Both of these examples complain of missing option:
>
> $agi->exec("Ringing");
> $agi->exec("Playtones ring");
>
> Notice: Undefined variable: options in
> /var/lib/asterisk/agi-bin/includes/phpagi.php on line 326