Files
fusionpbx/app/conferences/app_defaults.php
T

25 lines
648 B
PHP
Raw Normal View History

2017-04-17 20:11:35 -06:00
<?php
if ($domains_processed == 1) {
2023-11-29 13:48:47 -07:00
//replace - with an @ symbol
2018-06-05 18:21:38 -06:00
$sql = "update v_dialplan_details ";
$sql .= "set dialplan_detail_data = replace(dialplan_detail_data, '-','@') ";
$sql .= "where dialplan_detail_type = 'conference' and dialplan_detail_data like '%-%';";
2019-07-29 09:26:52 -06:00
$database->execute($sql);
2018-06-05 18:21:38 -06:00
unset($sql);
2017-04-17 20:11:35 -06:00
2023-11-29 13:48:47 -07:00
//add the domain_name as the context
$sql = "UPDATE v_conferences as c ";
$sql .= "SET conference_context = ( ";
$sql .= " SELECT domain_name FROM v_domains as d ";
$sql .= " WHERE d.domain_uuid = c.domain_uuid ";
$sql .= ") ";
$sql .= "WHERE conference_context is null; ";
$database->execute($sql);
unset($sql);
2017-04-17 20:11:35 -06:00
}
?>