Update music_on_hold.php

Since using the UUID for the music on hold name in FreeSWITCH adding the domain name as a prefix and rate are no longer needed.
This commit is contained in:
FusionPBX 2016-06-29 17:26:01 -06:00 committed by GitHub
parent 05ff231f9a
commit c6e548c0ba
1 changed files with 0 additions and 6 deletions

View File

@ -185,12 +185,6 @@
//new name
if ($moh_new_name) {
$music_on_hold_name = $moh_name_only;
if ($moh_scope != 'global' ) {
$music_on_hold_name = path_join($_SESSION['domain_name'], $music_on_hold_name);
}
if (!$moh_rate_auto) {
$music_on_hold_name = path_join($music_on_hold_name, $moh_rate);
}
$music_on_hold_path = str_replace($_SESSION['switch']['sounds']['dir'], '$${sounds_dir}', $moh_path);
$sql .= "( ";
$sql .= "'".$music_on_hold_uuid."',";