Bug fixed for conference active

This commit is contained in:
FusionPBX 2023-06-27 10:15:05 -06:00 committed by GitHub
parent d24acf66bf
commit c393b27bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -43,15 +43,19 @@
$text = $language->get(); $text = $language->get();
//get the http get or post and set it as php variables //get the http get or post and set it as php variables
if (is_numeric($_REQUEST["c"])) { if (!empty($_REQUEST["c"]) && is_numeric($_REQUEST["c"])) {
$conference_id = $_REQUEST["c"]; $conference_id = $_REQUEST["c"];
} }
elseif (is_uuid($_REQUEST["c"])) { elseif (!empty($_REQUEST["c"]) && is_uuid($_REQUEST["c"])) {
$conference_id = $_REQUEST["c"]; $conference_id = $_REQUEST["c"];
} }
else {
//exit if the conference id is invalid
exit;
}
//replace the space with underscore //replace the space with underscore
$conference_name = !empty($conference_id).'@'.$_SESSION['domain_name']; $conference_name = $conference_id.'@'.$_SESSION['domain_name'];
//create the conference list command //create the conference list command
$switch_cmd = "conference '".$conference_name."' xml_list"; $switch_cmd = "conference '".$conference_name."' xml_list";