mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added VoIP watch from browser (executes background PHP file process.php)
This commit is contained in:
@@ -347,13 +347,18 @@ class voipWatch extends voip {
|
||||
*
|
||||
*
|
||||
*/
|
||||
function watch()
|
||||
function watch($process_id = false)
|
||||
{
|
||||
/**
|
||||
* Database file
|
||||
*/
|
||||
include_once(dirname(__FILE__).'/../db.inc.php');
|
||||
|
||||
/**
|
||||
* Process file
|
||||
*/
|
||||
if ($process_id) include_once(dirname(__FILE__).'/../functions/functions.process.php');
|
||||
|
||||
$line = "";
|
||||
|
||||
if ($this->socket === false)
|
||||
@@ -482,6 +487,8 @@ class voipWatch extends voip {
|
||||
|
||||
@flush();
|
||||
|
||||
if ($process_id) $this->keepWatching = !is_process_killed($process_id);
|
||||
|
||||
} while ($this->keepWatching);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user