search for: agivar

Displaying 10 results from an estimated 10 matches for "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($...
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)
...#39;, 'r'); $stdout = fopen('php://stdout', 'w'); $stdlog = fopen('/var/log/asterisk/my_agi.log', 'w'); while (!feof($stdin)) { $temp = fgets($stdin); $temp = str_replace("\n","",$temp); $s = explode(":",$temp); $agivar[$s[0]] = trim($s[1]); if (($temp == "") || ($temp == "\n")) { break; } } fputs($stdout,"SAY PHONETIC \"abc\" \"#\" \n"); fflush($stdout); $msg = fgets($stdin,1024); fputs($stdlog,$msg . "\n"); ?> Extension...
2007 Aug 24
0
MYSQL problem and configuration
...turn0; } else { fwrite(STDERR,"PASS (".$matches[1].")\n"); fflush(STDERR); return $matches[1]; } } else { fwrite(STDERR,"FAIL (unexpected result '$res')\n"); fflush(STDERR); return -1; }}$agivar = init();$hostname= 'xxxx'; $database= 'xxxxx'; $username= 'xxxxx'; $password= 'xxxx'; $dbprotect = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR); mysql_select_db($database, $dbprotect);$result = mysql_query("SELECT...
2006 Nov 30
1
AGI PHP Issues (AGI script runs but phone hangs up too quickly)
...#39;, 'r'); $stdout = fopen('php://stdout', 'w'); $stdlog = fopen('/var/log/asterisk/my_agi.log', 'w'); while (!feof($stdin)) { $temp = fgets($stdin); $temp = str_replace("\n","",$temp); $s = explode(":",$temp); $agivar[$s[0]] = trim($s[1]); if (($temp == "") || ($temp == "\n")) { break; } } fputs($stdout,"SAY PHONETIC \"abc\" \"#\" \n"); fflush($stdout); $msg = fgets($stdin,1024); fputs($stdlog,$msg . "\n"); ?> Extension...