Make presence for conferences work out of the box (#2514)

Use '@' instead of '-' for separating conference name and domain, which
is what FreeSWITCH mod_conference uses.
This commit is contained in:
Stefan Siegel
2017-04-17 17:01:04 +02:00
committed by FusionPBX
parent 0f705cdcc6
commit 1ee633cd10
7 changed files with 19 additions and 19 deletions

View File

@@ -43,7 +43,7 @@ else {
$conference_uuid = check_str($_REQUEST["c"]);
//replace the space with underscore
$conference_name = $conference_uuid.'-'.$_SESSION['domain_name'];
$conference_name = $conference_uuid.'@'.$_SESSION['domain_name'];
//create the conference list command
$switch_cmd = "conference '".$conference_name."' xml_list";

View File

@@ -83,7 +83,7 @@ else {
//show the conferences that have a matching domain
$tmp_domain = substr($name, -strlen($_SESSION['domain_name']));
if ($tmp_domain == $_SESSION['domain_name']) {
$conference_name = substr($name, 0, strlen($name) - strlen('-'.$_SESSION['domain_name']));
$conference_name = substr($name, 0, strlen($name) - strlen('@'.$_SESSION['domain_name']));
if (is_uuid($conference_name)) {
$meeting_uuid = $conference_name;
$sql = "select ";