[asterisk-commits] mjordan: branch 11 r428113 - /branches/11/apps/confbridge/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 17 09:26:52 CST 2014


Author: mjordan
Date: Mon Nov 17 09:26:50 2014
New Revision: 428113

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=428113
Log:
apps/app_confbridge: Ensure 'normal' users hear message when last marked leaves

When r428077 was made for ASTERISK-24522, it failed to take into account users
who are neither wait_marked nor end_marked. These users are *also* supposed to
hear the 'leader has left the conference' message. Granted, this behaviour is
a bit odd; however, that is how it used to work... and behaviour changes are
not good.

This patch ensures that if there are any 'normal' users present when the last
marked user leaves the conference, the message will still be played to them.

Note that this regression was caught by the Asterisk Test Suite's
confbridge_nominal test, which has a quirky combination of users.

Modified:
    branches/11/apps/confbridge/conf_state_multi_marked.c

Modified: branches/11/apps/confbridge/conf_state_multi_marked.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/confbridge/conf_state_multi_marked.c?view=diff&rev=428113&r1=428112&r2=428113
==============================================================================
--- branches/11/apps/confbridge/conf_state_multi_marked.c (original)
+++ branches/11/apps/confbridge/conf_state_multi_marked.c Mon Nov 17 09:26:50 2014
@@ -105,6 +105,11 @@
 				cbu_iter->conference_bridge->activeusers--;
 				AST_LIST_INSERT_TAIL(&cbu_iter->conference_bridge->waiting_list, cbu_iter, list);
 				cbu_iter->conference_bridge->waitingusers++;
+			} else {
+				/* User is neither wait_marked nor end_marked; however, they
+				 * should still hear the prompt.
+				 */
+				need_prompt = 1;
 			}
 		}
 		AST_LIST_TRAVERSE_SAFE_END;




More information about the asterisk-commits mailing list