similar to: passing commands asterisk cli and getting output using PHP AGI

Displaying 20 results from an estimated 50000 matches similar to: "passing commands asterisk cli and getting output using PHP AGI"

2009 Sep 17
1
Freepbx database
Hellos I am using freepbx and asterisk. I am writing an AGI script to edit the values in findmefollow table. The script will enable users to delete and add follow me numbers from their phones. I want it to enable users enable/disable follow me. I can't seem to find a value in the database that deals with enabling/disabling followme. Please help -- Best Regards, James Mutuku Ndeti Agile
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);
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();
2008 Mar 24
2
Getting Exec Format Error when running AGI call
Dear friends, I am having problem with running a sample php and I can't figure out why. I can run the sample.php using CLI but when I run it inside the dialplan it does not work. Can someone please suggest the config problem that I may have made? dommy:/var/lib/asterisk/agi-bin# php sample.php #!/usr/bin/php5 -q VERBOSE "Here we go!" 2 VERBOSE "Call from - Calling
2011 Feb 02
1
AGI script exits non-zero when running system command
Hey guys I was hoping I could get a few pointers on a problem I have been trying to debug for the last couple of months regarding asterisk AGI scripts and unexpected termination. I have this agi script that accepts incoming faxes using RxFax on the latest asterisk 1.4 branch. Its written with perl and it works fine except for one line that causes the entire script to terminate unexpectedly. The
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]
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 =>
2006 Dec 12
1
AGI problema
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Verdana">Hi all. I've written a AGI in C language.
2011 Apr 27
1
AGI WAIT FOR DIGIT - key press BEFORE command
Hi, Consider the following situation : <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 <SIP/asterisk-0000001d>AGI Tx >> 200 result=48 <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 <SIP/asterisk-0000001d>AGI Tx >> 200 result=48 <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 <SIP/asterisk-0000001d>AGI Tx >>
2009 Sep 10
1
Help with dialparties.agi
Hellos, I have asterisk 1.2 and freepbx 2.3. I have edited the agi script(dialparties.agi). Everytime I restart asterisk, the file gets overwritten. How do I make sure my changes are not overwritten? What generates dialparties.agi? Thanks -- Best Regards, James Mutuku Ndeti Agile Systems Limited +254722490994 www.agile.co.ke mutuku.wordpress.com Has your organization implemented a customer
2013 Apr 01
0
Getting DIALSTATUS via agi
Hi all, Hopefully, I just need a second set of eyes on this one, but I just can't figure out what I'm doing wrong. I'm using an agi script to dial a number, check the dial result, and act accordingly. The problem is that I'm not getting anything back from DIALSTATUS, or HANGUPCAUSE. Here is the relevant perl code: ===============================================================
2006 Mar 20
4
simple perl-agi - where's the error?
Hello! I'm trying to setup a perl-deadagi, but my perl skills lack. can someone tell me why the following code doesn't work: #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; $dialstring = $AGI->get_variable("DIALSTRING"); $res = $AGI->exec("DIAL $dialstring"); the asterisk output says: AGI Rx << GET VARIABLE DIALSTRING AGI Tx >> 200
2011 Feb 22
1
[1.4.39.1/AGI] ast_carefulwrite: write() returned error: Broken pipe
Hello Incoming calls from the FXO trigger an AGI script which simply NOOP data sent by Asterisk through stdin. The first two NOOP work fine, but after this, Asterisk isn't happy: ============= extensions.conf ... [from_fxo] exten => s,1,Wait(2) exten => s,n,Set(CID=${CALLERID(num)}) exten => s,n,AGI(/var/tmp/test.lua) exten => s,n,Wait(5) exten => s,n,Hangup =============
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)");
2011 Mar 11
1
Asterisk 1.8 AGI error ast_carefulwrite: write() returned error
Hey Guys, We upgrade asterisk from 1.2.x to 1.8.2.3 and my one of agi script doesn't working We have allpage.agi script for paging system on all polycom 501 but after upgrade it broke. Any idea what is this error ? extension.conf exten => 7770,1,agi(allpage.agi) exten => 7770,2,meetme(7770,dq) exten => 7770,3,playback(beep) exten => 7770,4,hangup following is agi debug....
2010 Jul 27
2
Urgent help = RUBY & AGI
Here's something that should be easy for RUBY pro's. Here is a script: 1.times do r = $agi.exec('DIAL', SIP/voipuser&Zap/32&Zap/33&Zap/34&Zap/35) r = $agi.get_variable('DIALSTATUS') # $agi.set_variable(' WHOANSWERED
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
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
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 Sep 14
2
AGI script fails on IAX channels (from call file).
Hi Guys, I have already tried this one on the developers list. I have not been successful getting much back there and I have notified them that I will post this on the users list instead. Hopefully somebody have tried something similar and can help out. I am developing AGI scripts on Asterisk and have run into some very strange behaviour and I think this is a bug, but I am not completely sure.