Displaying 1 result from an estimated 1 matches for "readstdin".
2005 Mar 24
0
AGI commands STDOUT problem
...= "SAY NUMBER 66 \"\"";
$this->ExecuteCommand($command);
return true;
}
public function __destruct()
{
fclose($this->log_stream);
}
private function WriteLog($Message)
{
return fwrite($this->log_stream, $Message."\n");
}
private function ReadStdin($Bytes = null)
{
$Bytes = $Bytes === null ? $this->read_bytes : $Bytes;
$this->WriteLog("\nReading {$Bytes} bytes response from Asterisk...");
$response = fgets(STDIN, $Bytes);
$this->WriteLog("Received response: {$response}");
return $response;
}
private...