[commit] r4165 - freeswitch/trunk/src/mod/applications/mod_conference
Author: anthm Date: Thu Feb 8 10:39:14 2007 New Revision: 4165 Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c Log: insist on a conference profile Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c (original) +++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c Thu Feb 8 10:39:14 2007 @@ -3022,6 +3022,14 @@ if ((profiles = switch_xml_child(cfg, "profiles"))) { 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"); #ifdef OPTION_IVR_MENU_SUPPORT xml_cfg.menus = switch_xml_child(cfg, "menus"); @@ -3662,6 +3670,13 @@ 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"); #ifdef OPTION_IVR_MENU_SUPPORT xml_cfg.menus = switch_xml_child(cfg, "menus");
participants (1)
-
Freeswitch SVN