From ff1a5ddf80a3e60a9eb28b329ef105bee3978b16 Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Mon, 10 Jan 2011 22:24:18 +0000 Subject: [PATCH] Start the VoIP process from the command line (could add to /etc/rc.local for example) --- voip/startvoipprocess.php | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 voip/startvoipprocess.php diff --git a/voip/startvoipprocess.php b/voip/startvoipprocess.php new file mode 100644 index 00000000..ecf3f281 --- /dev/null +++ b/voip/startvoipprocess.php @@ -0,0 +1,54 @@ + + * @copyright Australian Consortium for Social and Political Research (ACSPRI) 2011 + * @package queXS + * @subpackage admin + * @link http://www.acspri.org.au/ queXS was writen for ACSPRI + * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2 + * + */ + +/** + * Configuration file + */ +include (realpath(dirname(__FILE__) . "/../config.inc.php")); + +/** + * Database file + */ +include (realpath(dirname(__FILE__) . "/../db.inc.php")); + +/** + * Process + */ +include (realpath(dirname(__FILE__) . "/../functions/functions.process.php"); + +//end any other process + +$p = is_process_running(); +if ($p) end_process($p); + +start_process(realpath(dirname(__FILE__) . "/process.php")); + +?>