|
|
@ -1613,6 +1613,8 @@ static struct ast_variable *load_realtime_musiconhold(const char *name)
|
|
|
|
char *category = NULL;
|
|
|
|
char *category = NULL;
|
|
|
|
size_t entry_count = 0;
|
|
|
|
size_t entry_count = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* entries is NULL if there are no results */
|
|
|
|
|
|
|
|
if (entries) {
|
|
|
|
while ((category = ast_category_browse(entries, category))) {
|
|
|
|
while ((category = ast_category_browse(entries, category))) {
|
|
|
|
const char *entry = ast_variable_retrieve(entries, category, "entry");
|
|
|
|
const char *entry = ast_variable_retrieve(entries, category, "entry");
|
|
|
|
|
|
|
|
|
|
|
@ -1625,6 +1627,7 @@ static struct ast_variable *load_realtime_musiconhold(const char *name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ast_config_destroy(entries);
|
|
|
|
ast_config_destroy(entries);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (entry_count == 0) {
|
|
|
|
if (entry_count == 0) {
|
|
|
|
/* Behave as though this class doesn't exist */
|
|
|
|
/* Behave as though this class doesn't exist */
|
|
|
|