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

Added featue for allowing operators to choose their own extension if not assigned one already

This commit is contained in:
Adam Zammit
2013-11-26 11:49:38 +11:00
parent 5d812fa968
commit 6d81384378
4 changed files with 155 additions and 0 deletions

View File

@@ -52,6 +52,21 @@ if (ALTERNATE_INTERFACE && !is_voip_enabled($operator_id))
include_once("waitnextcase_interface2.php");
die();
}
else if (ALLOW_OPERATOR_EXTENSION_SELECT && VOIP_ENABLED)
{
$sql = "SELECT o.voip,e.extension_id
FROM `operator` as o
LEFT JOIN `extension` as e ON (e.current_operator_id = o.operator_id)
WHERE o.operator_id = $operator_id";
$ve = $db->GetRow($sql);
if ($ve['voip'] == 1 && empty($ve['extension_id']))
{
include_once("selectextension.php");
die();
}
}
$db->StartTrans();