diff --git a/app/music_on_hold/app_config.php b/app/music_on_hold/app_config.php
index dc5c576885..bbdf22032b 100644
--- a/app/music_on_hold/app_config.php
+++ b/app/music_on_hold/app_config.php
@@ -43,4 +43,47 @@
$apps[$x]['permissions'][5]['groups'][] = "superadmin";
$apps[$x]['permissions'][5]['groups'][] = "admin";
+ //schema details
+ $y = 0; //table array index
+ $z = 0; //field array index
+ $apps[$x]['db'][$y]['table'] = "v_music_on_hold";
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "music_on_hold_uuid";
+ $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
+ $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
+ $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
+ $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "music_on_hold_name";
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "music_on_hold_category";
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "music_on_hold_rate";
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "8000,16000,32000,48000";
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "music_on_hold_shuffle";
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "true/false";
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "music_on_hold_timer";
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "soft";
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "music_on_hold_chime_list";
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "music_on_hold_chime_freq";
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "music_on_hold_chime_max";
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
+
?>
\ No newline at end of file
diff --git a/app/music_on_hold/resources/classes/switch_music_on_hold.php b/app/music_on_hold/resources/classes/switch_music_on_hold.php
index 7ca9ecf355..41f8f920bc 100644
--- a/app/music_on_hold/resources/classes/switch_music_on_hold.php
+++ b/app/music_on_hold/resources/classes/switch_music_on_hold.php
@@ -154,7 +154,7 @@ include "root.php";
$array = array_merge($array, glob($music_on_hold_dir."/*/*", GLOB_ONLYDIR));
}
//list the categories
- $moh_xml = "";
+ $xml = "";
foreach($array as $moh_dir) {
//set the directory
$moh_dir = substr($moh_dir, strlen($music_on_hold_dir."/"));
@@ -167,14 +167,14 @@ include "root.php";
$moh_name = "default/$moh_rate";
}
//build the xml
- $moh_xml .= " \n";
- $moh_xml .= " \n";
- $moh_xml .= " \n";
- $moh_xml .= " \n";
- $moh_xml .= " \n";
- $moh_xml .= " \n";
- $moh_xml .= " \n";
- $this->xml = $moh_xml;
+ $xml .= " \n";
+ $xml .= " \n";
+ $xml .= " \n";
+ $xml .= " \n";
+ $xml .= " \n";
+ $xml .= " \n";
+ $xml .= " \n";
+ $this->xml = $xml;
}
}
diff --git a/resources/templates/conf/autoload_configs/local_stream.conf.xml b/resources/templates/conf/autoload_configs/local_stream.conf.xml
index b0e8d96ea7..8be463fff1 100644
--- a/resources/templates/conf/autoload_configs/local_stream.conf.xml
+++ b/resources/templates/conf/autoload_configs/local_stream.conf.xml
@@ -1,6 +1,6 @@
-
+