2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

VoIP is done on an operator by operator basis

This commit is contained in:
azammitdcarf
2009-11-12 03:45:25 +00:00
parent 24b4f9e0e0
commit 2288dc8134
8 changed files with 68 additions and 21 deletions

View File

@@ -44,6 +44,32 @@ include_once(dirname(__FILE__).'/../config.inc.php');
include_once(dirname(__FILE__).'/../db.inc.php');
/**
* Return if VOIP is enabled on an operator by operator basis
* Will always return false if VOIP is globally disabled
*
* @param int $operator_id the operator id
* @return bool True if enabled, false if not
*/
function is_voip_enabled($operator_id)
{
if (VOIP_ENABLED == false)
return false;
global $db;
$sql = "SELECT voip
FROM operator
WHERE operator_id = '$operator_id'";
$rs = $db->GetRow($sql);
if ($rs['voip'] == '1')
return true;
return false;
}
/**
* Return the period of the day for the respondent
*