mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-04 12:21:54 +00:00
insist on a conference profile
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4165 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7cbfdbf5b9
commit
b650424da0
@ -3022,6 +3022,14 @@ static switch_status_t conf_api_sub_transfer(conference_obj_t *conference, switc
|
|||||||
if ((profiles = switch_xml_child(cfg, "profiles"))) {
|
if ((profiles = switch_xml_child(cfg, "profiles"))) {
|
||||||
xml_cfg.profile = switch_xml_find_child(profiles, "profile", "name", profile_name);
|
xml_cfg.profile = switch_xml_find_child(profiles, "profile", "name", profile_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!xml_cfg.profile) {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot find profile: %s\n", profile_name);
|
||||||
|
switch_xml_free(cxml);
|
||||||
|
cxml = NULL;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
xml_cfg.controls = switch_xml_child(cfg, "caller-controls");
|
xml_cfg.controls = switch_xml_child(cfg, "caller-controls");
|
||||||
#ifdef OPTION_IVR_MENU_SUPPORT
|
#ifdef OPTION_IVR_MENU_SUPPORT
|
||||||
xml_cfg.menus = switch_xml_child(cfg, "menus");
|
xml_cfg.menus = switch_xml_child(cfg, "menus");
|
||||||
@ -3662,6 +3670,13 @@ static void conference_function(switch_core_session_t *session, char *data)
|
|||||||
xml_cfg.profile = switch_xml_find_child(profiles, "profile", "name", profile_name);
|
xml_cfg.profile = switch_xml_find_child(profiles, "profile", "name", profile_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!xml_cfg.profile) {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot find profile: %s\n", profile_name);
|
||||||
|
switch_xml_free(cxml);
|
||||||
|
cxml = NULL;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
xml_cfg.controls = switch_xml_child(cfg, "caller-controls");
|
xml_cfg.controls = switch_xml_child(cfg, "caller-controls");
|
||||||
#ifdef OPTION_IVR_MENU_SUPPORT
|
#ifdef OPTION_IVR_MENU_SUPPORT
|
||||||
xml_cfg.menus = switch_xml_child(cfg, "menus");
|
xml_cfg.menus = switch_xml_child(cfg, "menus");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user