Displaying 20 results from an estimated 1000 matches similar to: "phpagi transfer example"
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);
2005 Aug 01
1
How to install PHPAGI?
Hello everyone,
Where can I find instructions on how to install PHPAGI?
BTW, what's the difference between PHPAGI and PHPAGI2? Are they
different products? It's hard to tell from voip-info.org...
Best,
Leo
2009 May 29
1
how to detect dtmf in meetme
hello
i want to kick participant in a meeting by pressing the digit on sip phone.when i entry the meeting ,no matter how i press the button,the dtmf does not work.
here is my dialplan and my agi script,and sip.conf
[from-internal]
exten =>121,1,MeetMeCount(900,CONFCOUNT)
exten =>121,2,GotoIF($[${CONFCOUNT}<10]?3:100)
exten =>121,3,Authenticate(123456)
exten
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 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
2008 Mar 19
3
phpagi
Hello,
How do I install phpagi?
http://phpagi.sourceforge.net/
I couldn't find any info about setup in that site, and I couldn't email the
developers.so I'm lost.
I know it isn't a real question for this list, but I suppose many people
here already have installed it.
So, how can I install it?
Thanks
Carlos
-------------- next part --------------
An HTML
2005 Jun 09
1
PHPAGI Swift Escape Digits
I am trying to use swift in PHP/AGI.
function swift($text, $escape_digits='', $frequency=8000, $voice=NULL,
$fnameIn='')
During swift speaking some text I want the caller to be able to press
1, 2 or 3 to do thing 1, thing 2 or thing 3.
How are these digit defines and then caught?
Thanks,
Michael
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();
2010 May 14
1
is my PHPAGI Soap code right?
Hello,
i try to use soap in the phpagi.
i want to call a function from a web service
when a user call a telephne failed.
this is my phpagi script, Could you show me what's wrong ? becasue i
can't excute it successfully.
please open the following url to see my code:
http://pastebin.com/uzvWSxPy
Thanks!
--
Thanks for your supporting,
have a nice day.
Sucan
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
2007 Jun 19
2
PhpAgi call generation
hi
i'd like to write a simply application in php with phpAgi that:
- connect to Asterisk
- call an external number using a Zap channel
- play a message
here is some code:
<?php
$asm = new AGI_AsteriskManager();
if ($asm->connect()) {
$asm->Originate("Zap/g1/1","number","default","1");
/*
play message...
*/
} else {
2016 Aug 10
2
Replacement for phpagi?
Anyone know a good replacement for phpagi? Unfortunately
development stalled long ago and it has not been updated. What is the
best solution for AMI and AGI on PHP? Thanks.
--
Telecomunicaciones Abiertas de M?xico S.A. de C.V.
Carlos Ch?vez
+52 (55)9116-91161
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();
2005 May 24
3
PHPAGI problems
Hi
Here is part of my extensions.conf
exten => 8661231234,1,agi,dtmf.php
When I dial this number, this is what I see in my asterisk console:
-- Accepting AUTHENTICATED call from 198.22.67.70:
> requested format = gsm,
> requested prefs = (),
> actual format = gsm,
> host prefs = (gsm|ilbc|speex),
> priority = mine
-- Executing
2008 Jan 18
2
SAY TIME + PHPAGI + Timezone
Hello All,
Is there any way to change the timezone on the fly? I have this little
time clock program running on Asterisk system developed using PHPAGI.
Currently, whenever user logs in, Asterisk will prompt the current
system time using "$agi->say_time();" which executes "SAY TIME". Now the
current timezone set on the system is "PST", and I have a request to
2006 Jan 13
4
PHPAGI daemon/background task?
I have a script that I want to leave running in the background to handle
specific manager events.
I'm running into a problem where it gets stuck in the wait_response
function in phpagi-asmanager.php and the PHP maximum execute
timeout kills the script.
The script doesn't interact with the dialplan, so I cannot launch it
from within
Asterisk. Any pointers would be appreciated.
I did
2010 Apr 04
1
[OT] phpagi help
Hi,
I am attempting to connect to the blacklist database using PHPAgi and it always seems to hang. The code snippet I am trying is:
$r = $agi->get_variable("CALLERID(num)");
$cidnum = $r["data"];
if ($cidnum < 1000000000) # No valid callerid.
{
exit(0);
}
$r = $agi->database_get("blacklist", "$cidnum");
if ($r["result"] ==
2007 Feb 12
1
phpagi - Event "On Hangup"
Do you know if it is possible to handle some events with phpagi?
For example:
On hangup (doesn't care if by caller or by asterisk) do something....
Thanks
2013 Apr 17
1
Phpagi action based on outbound call user response
Hello List,
In PHPAGI, I'm using the Astrisk Manager function send_request() to
originate an outbound call. I want to execute the remaining PHP code after
the call gets executed (depending on user input). But presently the call
originates in a different context and asterisk executes the remaining code
in parallel.
Is there a way in which I can pause the code execution until the call is