similar to: Important note for AGI with PHP newbies

Displaying 20 results from an estimated 10000 matches similar to: "Important note for AGI with PHP newbies"

2005 Jun 20
3
AGI/PHP errors
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2593 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050620/a0fda201/attachment.jpeg
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]
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
2005 Aug 08
2
URGENT: Problems with PHP AGI...
Hello everyone, I'm having all sorts of problems with my PHP AGI scripts... Basically, my scripts run fine from the command line and don't do anything well called from Asterisk. Here are my questions: a) Does Asterisk require PHP CLI or CGI? From the command line, my script seems to work fine with PHP 4.3.11 (cli) but not with PHP 4.3.9 (cgi) b) How to debug my script? According
2013 Feb 20
2
exten => h,n,AGI(generateCall.php,${NEXT})
not able to run my php from AGIi am using asterisk 1.8.13 (debian)i am able to make call file using php command line..but when executing php from AGI, it is not working..kindly see the attachment if bellow text is not readable...___________________________________________________ File: /etc/asterisk/extensions.conf[call]exten => call,1,Answerexten => call,n,Playback(hello-world)exten =>
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
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 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 =
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 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
2007 Dec 07
2
PHP AGI script
I've got a very nice PHP AGI script but I want to be able to do some database cleanup when the user hangs up the phone. I wish everyone would hang up when they were suposed to, but some people don't. So what does Asterisk send to an AGI file when the line has been disconnected? If I remember reading somewhere correctly, I don't need to use DeadAGI. Instead I'm able to use
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
2005 Sep 23
2
Execute php agi after channel hangup
Hi, following I would like to implement: 1. I receive a call. 2. I hang up the call. 3. I execute a macro I thought about using call files first... but they don't support macros, or? Then I figured I could use php agi after I receive the call, hang up the call with php agi and execute the macro with "exec ...". Unfortunately, the php agi seems to die with the hangup. Does
2009 Mar 09
3
problem with an agi in PHP
Hello, I need to execute an agi in php. I have that: == Using SIP RTP CoS mark 5 -- Executing [0170725000 at mnupprx1:1] Answer("SIP/33179977999-b6c18478", "") in new stack -- Executing [0170725000 at mnupprx1:2] GotoIf("SIP/33179977999-b6c18478", "0?6:3)") in new stack -- Goto (mnupprx1,0170725000,3) -- Executing
2007 Aug 23
3
[PHP-AGI] Problem executing script
Hello,I have succeded in compiling and configuring My TDM Card and asterisk, all works fine. But I have a problem using the PHP Agi.The CLI tells me that when I call my number :-- Starting simple switch on 'Zap/4-1' -- Executing [s at incoming:1] Answer("Zap/4-1", "") in new stack -- Executing [s at incoming:2] AGI("Zap/4-1", "rabot.agi") in
2004 Jul 14
0
Having serious problems with AGI
Hi All, I've been working with AGI for the past week or so building a fairly complex IVR system with database functionality. Most of the work up to this point has been with basically one-way scripts that look up some info in the database and say the data back to the user with the "EXEC Playback my-file" AGI command. However, now I am working on scripts that need to accept user DTMF
2009 Nov 20
1
PHP AGI : handle Event /AGI session
Hi all, I need some advice to know how to handle event in a PHP agi. do you have an exemple of how to it ? more over I need some advices. currently I have the following SW architecture someone send a URL to call someone a PHP script (script 1) is launch and in its I configure Astmanager in order to make an originating call then my script stop running and Asterisk continue processing the call in
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})
2006 Jun 02
1
PHP-AGI help
Can someone help me with this AGI script to send an email. It just isn't working. The file is being called in the dialplan and is saved as em.agi but it isn't sending the email. #!/usr/bin/php4 -q <?php ob_implicit_flush(true); set_time_limit(6); $in = fopen("php://stdin","r"); $stdlog = fopen("/var/log/asterisk/my_agi.log", "w"); //
2009 Aug 06
3
Set PHP binary location for AGI
I am not finding anything relating to this on Google, so I thought I'd pose the question here... I am running Asterisk 1.4 on a CentOS 5 Linux box. I needed to use a custom built PHP5.2.10 install to interconnect with our Firebird SQL database, which I've done. But I noticed that the default install path for PHP5 on this box appears to be /usr/local/bin/php rather than the path