From: Matthew Jordan Date: Thu, 14 Feb 2013 15:21:05 +0000 (+0000) Subject: app_confbridge: Fix error messages on exiting conference. X-Git-Tag: certified/11.2-cert1-rc1~2^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a97d765d1d16745ad4d0eac9a31777fcaa9f87ad;p=thirdparty%2Fasterisk.git app_confbridge: Fix error messages on exiting conference. A marked user ending a conference with only end_marked users generates error messages: ERROR[0000][C-00000000]: confbridge/conf_state.c:47 conf_invalid_event_fn: Invalid event for confbridge user '' * The MULTI_MARKED state was doing too much when it was kicking out the end_marked users from the conference. The kicked out users will clean up after themselves when they exit the conference. (closes issue ASTERISK-20991) Reported by: Jeremy Kister Tested by: rmudgett ........ Merged revisions 380892 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/11.2@381415 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/confbridge/conf_state_multi_marked.c b/apps/confbridge/conf_state_multi_marked.c index 69850b18dc..83bd4fa532 100644 --- a/apps/confbridge/conf_state_multi_marked.c +++ b/apps/confbridge/conf_state_multi_marked.c @@ -95,8 +95,6 @@ static void leave_marked(struct conference_bridge_user *cbu) AST_LIST_TRAVERSE_SAFE_BEGIN(&cbu->conference_bridge->active_list, cbu_iter, list) { /* Kick ENDMARKED cbu_iters */ if (ast_test_flag(&cbu_iter->u_profile, USER_OPT_ENDMARKED)) { - AST_LIST_REMOVE_CURRENT(list); - cbu_iter->conference_bridge->activeusers--; cbu_iter->kicked = 1; ast_bridge_remove(cbu_iter->conference_bridge->bridge, cbu_iter->chan); } else if (ast_test_flag(&cbu_iter->u_profile, USER_OPT_WAITMARKED) && @@ -143,7 +141,8 @@ static void leave_marked(struct conference_bridge_user *cbu) case 0: conf_change_state(cbu, CONF_STATE_SINGLE_MARKED); break; - case 1: break; /* Stay in marked */ + case 1: + break; /* Stay in marked */ } break; } @@ -153,7 +152,8 @@ static void leave_marked(struct conference_bridge_user *cbu) case 0: conf_change_state(cbu, CONF_STATE_MULTI); break; - default: break; /* Stay in marked */ + default: + break; /* Stay in marked */ } } }