Fix the status select on the active calls page.
This commit is contained in:
parent
393057ee23
commit
03a0679e08
|
|
@ -157,31 +157,21 @@ if (count($_GET)>0) {
|
||||||
$dnd->domain_name = $_SESSION['domain_name'];
|
$dnd->domain_name = $_SESSION['domain_name'];
|
||||||
$dnd->extension = $extension;
|
$dnd->extension = $extension;
|
||||||
if ($user_status == "Do Not Disturb") {
|
if ($user_status == "Do Not Disturb") {
|
||||||
$dnd->dnd_enabled = "true";
|
$dnd->enabled = "true";
|
||||||
if ($dnd_action == "add") {
|
|
||||||
$dnd->dnd_add();
|
|
||||||
}
|
|
||||||
if ($dnd_action == "update") {
|
|
||||||
$dnd->dnd_update();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//for other status disable dnd
|
//for other status disable dnd
|
||||||
if ($dnd_action == "update") {
|
if ($dnd_action == "update") {
|
||||||
$dnd->dnd_enabled = "false";
|
$dnd->enabled = "false";
|
||||||
$dnd->dnd_update();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$dnd->debug = false;
|
//$dnd->debug = false;
|
||||||
$dnd->dnd_status();
|
$dnd->set();
|
||||||
unset($dnd);
|
unset($dnd);
|
||||||
}
|
}
|
||||||
unset ($prep_statement);
|
unset ($prep_statement);
|
||||||
}
|
}
|
||||||
|
|
||||||
//synchronize the xml config
|
|
||||||
save_hunt_group_xml();
|
|
||||||
|
|
||||||
//synchronize the xml config
|
//synchronize the xml config
|
||||||
save_dialplan_xml();
|
save_dialplan_xml();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue