[asterisk-commits] mjordan: branch 12 r428114 - in /branches/12: ./ apps/confbridge/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 17 09:27:05 CST 2014
Author: mjordan
Date: Mon Nov 17 09:27:03 2014
New Revision: 428114
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=428114
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.
........
Merged revisions 428113 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
branches/12/ (props changed)
branches/12/apps/confbridge/conf_state_multi_marked.c
Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: branches/12/apps/confbridge/conf_state_multi_marked.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/apps/confbridge/conf_state_multi_marked.c?view=diff&rev=428114&r1=428113&r2=428114
==============================================================================
--- branches/12/apps/confbridge/conf_state_multi_marked.c (original)
+++ branches/12/apps/confbridge/conf_state_multi_marked.c Mon Nov 17 09:27:03 2014
@@ -105,6 +105,11 @@
user_iter->conference->activeusers--;
AST_LIST_INSERT_TAIL(&user_iter->conference->waiting_list, user_iter, list);
user_iter->conference->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