mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
rever oops
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2606 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9361860401
commit
89649d47d8
@ -2183,22 +2183,18 @@ static void conference_function(switch_core_session_t *session, char *data)
|
|||||||
*dpin++ = '\0';
|
*dpin++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((profile_name = strchr(conf_name, '@'))) {
|
||||||
|
*profile_name++ = '\0';
|
||||||
|
|
||||||
/* Open the config from the xml registry */
|
/* Open the config from the xml registry */
|
||||||
if (!(cxml = switch_xml_open_cfg(global_cf_name, &cfg, NULL))) {
|
if (!(cxml = switch_xml_open_cfg(global_cf_name, &cfg, NULL))) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", global_cf_name);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", global_cf_name);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((profile_name = strchr(conf_name, '@'))) {
|
|
||||||
*profile_name++ = '\0';
|
|
||||||
|
|
||||||
if ((profiles = switch_xml_child(cfg, "profiles"))) {
|
if ((profiles = switch_xml_child(cfg, "profiles"))) {
|
||||||
profile = switch_xml_find_child(profiles, "profile", "name", profile_name);
|
profile = switch_xml_find_child(profiles, "profile", "name", profile_name);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if ((profiles = switch_xml_child(cfg, "profiles"))) {
|
|
||||||
profile = switch_xml_find_child(profiles, "profile", "name", "default");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isbr) {
|
if (isbr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user