diff --git a/voip/startvoipprocess.php b/voip/startvoipprocess.php index ecf3f281..d236a340 100644 --- a/voip/startvoipprocess.php +++ b/voip/startvoipprocess.php @@ -42,13 +42,16 @@ include (realpath(dirname(__FILE__) . "/../db.inc.php")); /** * Process */ -include (realpath(dirname(__FILE__) . "/../functions/functions.process.php"); +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")); +if ($p) +{ + kill_process($p); + end_process($p); +} +start_process(realpath(dirname(__FILE__) . "/../admin/process.php")); ?>