similar to: Is there a right place for a include_once statement in a PHP AGI script?

Displaying 20 results from an estimated 5000 matches similar to: "Is there a right place for a include_once statement in a PHP AGI script?"

2006 Oct 05
2
Strange thing with Apache and PHP
Hi, I have this line (10) of code in PHP: include_once('../config.inc.php'); I'm 100% sure that the file config.inc.php is a directory up. config.inc.php is in /var/www/html and the file that calls it is in /var/www/html/classes nevertheless, i'm getting the error: "Warning: main(../config.inc): failed to open stream: No such file or directory in
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
2005 Aug 08
1
Found solution to my PHP AGI Script problem...
Dear Moises Silva, Chris Thompson and others, I've finally managed to find the problem with my PHP AGI script! Apparently, my machine has 2 versions of PHP installed. One for CGI and the other for CLI. Without knowing, to hand test my script I was calling the CLI version (/usr/local/bin/php), whereas Asterisk was calling the CGI version (/usr/bin/php). It turns out that my script
2007 Aug 28
1
deadagi and billsec or answeredtime
Hello, I want to create php rate script and I'm using Deadagi. But I allways get billsec 0 , or nothing. Can you help me to solve this problem... My extension.conf: exten => _123,1,DeadAgi(rate.php) exten => _123,2,hangup And my simple test php script rate.php #!/usr/local/bin/php -q <?php include_once (dirname(__FILE__)."/phpagi.php"); $AGI = new AGI();
2005 Jul 02
1
Is it possible to setup group voicemail in Asterisk?
Hello there, I'm a new Asterisk user and I wonder if it is possible to associate a voicemail box with a group of users, i.e., a single recorded message is sent to everyone in that group. If so, where can I find more information about that? Thanks in advance, Leo Burd
2010 Apr 13
2
Possible AGI bug?
Hello all, I wonder if somebody could provide me with some advice on how to track what looks like a bug to me: I've got a PHP AGI script that is called whenever I dial into the system and also whenever I issue a specific Originate() request via AMI. The script works fine when I dial in. However, when I run it via Originate(), it sometimes does not play anything, sometimes plays part
2005 Jul 05
4
How to prevent log files from eating my hard drive?
Hello there, Somehow, Asterisk log files are consuming all the space that I have in my hard disk... They've already eaten 14GB and are still hungry!! What shall I do? I'm not even logging anything in verbose mode!! Help really appreciated!! Best, Leo
2010 Feb 08
2
How to run a remote PHP script and still have access to audio stream?
Hello there, I'm trying to figure out how to run a PHP script on a remote machine and still have access to the audio stream associated with the call. Ideally, I'd love to play/record audio files directly from/to the remote server without having to copy them back and forth to the Asterisk server. What is the best way to do this? Is it possible to combine EAGI with FastAGI in PHP?
2010 Mar 21
1
Asterisk Manager Interface (AMI) proxy recommendation
Hello there, I'm new to Asterisk and I'm trying to figure out a way to make the Asterisk Manager Interface (AMI) accessible to multiple users at the same time. Would anyone recommend an AMI proxy that could be accessed from PHP code? Thanks in advance, Leo
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
2010 Nov 09
1
dovecot sieve plugin
hi... ?exist some way to extract message body contect to a variable with dovecot sieve plugin? ?:(? it's needed to do something like these: if address :matches ["From"] ["*"] { set "sender" "${0}"; <extract body content> # i try using something like "if body :raw :contains ["*"]" and use ${1} but i cant
2005 Jun 29
1
Problems connecting to and from my Asterisk server :(
Hello there, I'm a new Asterisk user and I'm having difficulties to connect to and from my Asterisk server. Can anybody give me a hand? Here's some background information: * I'm running RedHat Linux Enterprise 4.0 * When iptables is stopped, my server can register with IAX service providers and receive registrations from IAX softphones. However, it does not succeed in
2007 Mar 15
8
in-place-editor
hi @ all how can i save my edited text in the database with php? thanks for your support --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send
2005 Mar 24
0
AGI commands STDOUT problem
i have a problem with AGI in Asterisk 1.0.5, the problem occurs either with PHP or C AGI scripts/programs. Well, its simple, either asterisk is not sending correctly the command responses to the standard output, or for some unknown reason to me the scripts/programs are not able to read it from standard input. I have the next C test program for AGI: #include <stdio.h> main() { char
2006 May 30
1
Asterisk::AGI and DIALEDTIME
Hi List, In one of my AGIs (using DeadAGI) I grab the answered time using: my $res = $agi->exec ("DIAL $dialstring"); my $answeredtime = $agi->get_variable ("ANSWEREDTIME"); However this information differs from what's written in the Master.csv file (which happens to be the correct value!) Any ideas why? I'm using asterisk 1.2.7.1 and the
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
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
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
2007 Nov 14
4
Problem with AGI Script
I have asterisk 1.2.18 running on a new system we just installed. Although I've used AGIs many times in the past, I'm stumped on this one. It may just be a simple issue that I need another eyeset to look at. My AGI does the following: #!/usr/bin/perl #Load a few modules... use Asterisk::AGI; use DBI; $AGI = new Asterisk::AGI; #Grab input from Asterisk my %input =
2010 Jun 30
2
Pbx_lua vs. calling lua thru AGI?
Hello I'm taking a look at how to write scripts to be called from the dialplan, and saw pbx_lua mentioned. I'd like to know more about this feature, such as what the difference is with just calling the Lua interpreter through AGI (same difference as between php-cgi and mod_php?), whether it's production-ready, etc. Thank you for any help.