} else {
profile_name = "default";
}
- params = switch_mprintf("conf_name=%s&profile_name=%s");
+ params = switch_mprintf("conf_name=%s&profile_name=%s", conf_name, profile_name);
/* Open the config from the xml registry */
if (!(cxml = switch_xml_open_cfg(global_cf_name, &cfg, params))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", global_cf_name);
profile_name = "default";
}
- params = switch_mprintf("conf_name=%s&profile_name=%s");
+ params = switch_mprintf("conf_name=%s&profile_name=%s", conf_name, profile_name);
/* Open the config from the xml registry */
if (!(cxml = switch_xml_open_cfg(global_cf_name, &cfg, params))) {