private function reloadServices() { $pFax = new paloFax($this->_DB); $pEmail = new paloEmail($this->_DB); $flag = true; if (!$pFax->restartService()) { $this->errMsg .= $pFax->errMsg; $flag = false; } if (!$pEmail->reloadPostfix()) { $this->errMsg .= $pEmail->errMsg; $flag = false; } $sComando = '/usr/bin/elastix-helper asteriskconfig reload 2>&1'; $output = $ret = NULL; exec($sComando, $output, $ret); if ($ret != 0) { $this->errMsg = implode('', $output); $flag = false; } return $flag; }