search for: agivars

Displaying 10 results from an estimated 10 matches for "agivars".

Did you mean: agivar
2009 Apr 23
3
AGI PHP script
...gi-bin/newhire.php -- <DAHDI/50-1>AGI Script newhire.php completed, returning 0 -- Auto fallthrough, channel 'DAHDI/50-1' status is 'UNKNOWN' -- Hungup 'DAHDI/50-1' Here is the script #!/usr/bin/php5 <?php // Get AGI vars from * $agivars = array(); while (!feof(STDIN)) { $agivar = trim(fgets(STDIN)); if ($agivar === '') { break; } $agivar = explode(':', $agivar); $agivars[$agivar[0]] = trim($agivar[1]); } extract($agivars); // Variable Declarations $agi_uniqueid;...
2009 May 04
3
AGI PHP
...ally wait for digits C. How to get it to actually capture the digits (I think it would if it wasn't streaming thru the whole file without waiting for a response.) I'm just trying to capture digits 1-9 nothing fancy. #!/usr/bin/php -q <?php // Get AGI vars from * $agivars = array(); while (!feof(STDIN)) { $agivar = trim(fgets(STDIN)); if ($agivar === '') { break; } $agivar = explode(':', $agivar); $agivars[$agivar[0]] = trim($agivar[1]); } extract($agivars); // Variable Declarations $agi_uniqueid;...
2009 May 27
1
PHP AGI Problems
...t;EXEC CONTROL STREAM FILE $row[path]"); $AGI->send_cmd("EXEC PLAYBACK beep"); function check_msg($ID){ $msg_result=$database->querydb("**********sql query filtered**********"); return $msg_result; } ?> <?php //AGI.class.php class AGI { public $agivars; function _get_agivars(){ $agivars = array(); while (!feof(STDIN)) { $agivar = trim(fgets(STDIN)); if ($agivar === '') { break; } $agivar = explode(':', $agivar); $agivars[$agivar[0]] = trim($a...
2009 Jan 16
0
No subject
...gi-bin/newhire.php -- <DAHDI/50-1>AGI Script newhire.php completed, returning 0 -- Auto fallthrough, channel 'DAHDI/50-1' status is 'UNKNOWN' -- Hungup 'DAHDI/50-1' Here is the script #!/usr/bin/php5 <?php // Get AGI vars from * $agivars = array(); while (!feof(STDIN)) { $agivar = trim(fgets(STDIN)); if ($agivar === '') { break; } $agivar = explode(':', $agivar); $agivars[$agivar[0]] = trim($agivar[1]); } extract($agivars); // Variable Declarations $agi_uniqueid;...
2009 Jan 16
0
No subject
...re.php -- <DAHDI/50-1>AGI Script newhire.php completed, returning 0 -- Auto fallthrough, channel 'DAHDI/50-1' status is 'UNKNOWN' -- Hungup 'DAHDI/50-1' =20 Here is the script =20 =20 #!/usr/bin/php5=20 <?php =20 // Get AGI vars from * =20 $agivars =3D array(); while (!feof(STDIN)) { $agivar =3D trim(fgets(STDIN)); if ($agivar =3D=3D=3D '') { break; } $agivar =3D explode(':', $agivar); $agivars[$agivar[0]] =3D trim($agivar[1]); } extract($agivars); =20 // Variable Declarations =...
2009 May 29
1
how to detect dtmf in meetme
...define('STDERR',fopen('php://stderr','w')); } //$stdout = fopen('php://stdout', 'w'); //print "GET DATA <hello-world.gsm> [<30>[<10>]]\"\"\n"; print "get_data('demo-welcome', 15, 5)\"\"\n"; $agivars = (fgets(STDIN)); print "MeetMeAdmin(900,k,$agivars)\"\"\n"; print "set extension 121\"\"\n"; print "set priority 5\"\"\n"; //fflush($stdout); //;$result = <STDIN>; //;$checkresult($result); //print STDERR "4. Testing '...
2007 Nov 06
2
Recording just first part of call?
I know that I can record the contents of a call by calling Monitor() or MixMonitor() from the dialplan just before invoking Dial(). I have a potential customer who wants only the first minute of each call recorded (for identification purposes, without the storage overhead of keeping the complete call). Can anyone here think of the easiest way to do this? The only possibilities I can think of
2006 Nov 29
1
AGI PHP Issues (Not new to Asterisk but new to AGI)
Sorry to bother you all with what is probably a simple question. I am attempting my first go at a simple AGI application using PHP (Getting Asterisk to SAY PHONETIC ABC). I have dabbled with PHP but I am by no means a professional standard developer. My script seems to execute ok, and I can see asterisk playing the sounds but my phone goes from ringing to busy, and I don't hear the
2007 Aug 24
0
MYSQL problem and configuration
Hello,I am new to asterisk but i have vbeen scriptinh PHP SQL and webLanguages for a long time.I can Give you a solution but using php AGI:extensions.con-----> AGI(connect.agi);/var/lib/asterisk/agi-bin/connect.agi :#!/usr/bin/php -q<?phpset_time_limit(0);ob_implicit_flush();error_reporting(0);//Initialisation des entr?e-sortiefunction init() {#create file handles if
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