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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user