if (ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "%s requires an argument (conference name[,options])\n", app);
- res = -1; /* invalid PIN */
+ res = -1;
goto confbridge_cleanup;
}
if (conf_set_menu_to_user(conference_bridge_user.menu_name, &conference_bridge_user)) {
ast_log(LOG_WARNING, "Conference menu %s does not exist and can not be applied to confbridge user.\n",
args.menu_name);
- res = -1; /* invalid PIN */
+ res = -1;
goto confbridge_cleanup;
}
}
if (ast_test_flag(&conference_bridge_user.u_profile, USER_OPT_TALKER_DETECT)) {
char *conf_name = ast_strdup(args.conf_name); /* this is freed during feature cleanup */
if (!(conf_name)) {
- res = -1; /* invalid PIN */
+ res = -1;
goto confbridge_cleanup;
}
ast_bridge_features_set_talk_detector(&conference_bridge_user.features,
/* Look for a conference bridge matching the provided name */
if (!(conference_bridge = join_conference_bridge(args.conf_name, &conference_bridge_user))) {
- res = -1; /* invalid PIN */
+ res = -1;
goto confbridge_cleanup;
}