[asterisk-commits] rmudgett: trunk r410492 - in /trunk: ./ apps/confbridge/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 12 13:47:17 CDT 2014


Author: rmudgett
Date: Wed Mar 12 13:47:10 2014
New Revision: 410492

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=410492
Log:
app_confbridge: Make explicitly stop MOH if a user is kicked or hangs up while MOH is playing.

When MOH is playing to a user in a conference and the user is kicked or
hangs up from the conference then the AMI MusicOnHoldStop events didn't
happen.  (Asterisk v11 AMI event: MusicOnHold, state:Stop)

(closes issue ASTERISK-23311)
Reported by: Benjamin Keith Ford

Review: https://reviewboard.asterisk.org/r/3306/
........

Merged revisions 410490 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 410491 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/apps/confbridge/conf_state.c
    trunk/apps/confbridge/conf_state_inactive.c
    trunk/apps/confbridge/conf_state_single.c
    trunk/apps/confbridge/conf_state_single_marked.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/apps/confbridge/conf_state.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/confbridge/conf_state.c?view=diff&rev=410492&r1=410491&r2=410492
==============================================================================
--- trunk/apps/confbridge/conf_state.c (original)
+++ trunk/apps/confbridge/conf_state.c Wed Mar 12 13:47:10 2014
@@ -74,6 +74,9 @@
 void conf_default_leave_waitmarked(struct confbridge_user *user)
 {
 	conf_remove_user_waiting(user->conference, user);
+	if (user->playing_moh) {
+		conf_moh_stop(user);
+	}
 }
 
 void conf_change_state(struct confbridge_user *user, struct confbridge_state *newstate)

Modified: trunk/apps/confbridge/conf_state_inactive.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/confbridge/conf_state_inactive.c?view=diff&rev=410492&r1=410491&r2=410492
==============================================================================
--- trunk/apps/confbridge/conf_state_inactive.c (original)
+++ trunk/apps/confbridge/conf_state_inactive.c Wed Mar 12 13:47:10 2014
@@ -66,7 +66,7 @@
 
 static void leave_waitmarked(struct confbridge_user *user)
 {
-	conf_remove_user_waiting(user->conference, user);
+	conf_default_leave_waitmarked(user);
 	if (user->conference->waitingusers == 0) {
 		conf_change_state(user, CONF_STATE_EMPTY);
 	}

Modified: trunk/apps/confbridge/conf_state_single.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/confbridge/conf_state_single.c?view=diff&rev=410492&r1=410491&r2=410492
==============================================================================
--- trunk/apps/confbridge/conf_state_single.c (original)
+++ trunk/apps/confbridge/conf_state_single.c Wed Mar 12 13:47:10 2014
@@ -72,6 +72,9 @@
 static void leave_unmarked(struct confbridge_user *user)
 {
 	conf_remove_user_active(user->conference, user);
+	if (user->playing_moh) {
+		conf_moh_stop(user);
+	}
 
 	if (user->conference->waitingusers) {
 		conf_change_state(user, CONF_STATE_INACTIVE);

Modified: trunk/apps/confbridge/conf_state_single_marked.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/confbridge/conf_state_single_marked.c?view=diff&rev=410492&r1=410491&r2=410492
==============================================================================
--- trunk/apps/confbridge/conf_state_single_marked.c (original)
+++ trunk/apps/confbridge/conf_state_single_marked.c Wed Mar 12 13:47:10 2014
@@ -71,6 +71,9 @@
 static void leave_marked(struct confbridge_user *user)
 {
 	conf_remove_user_marked(user->conference, user);
+	if (user->playing_moh) {
+		conf_moh_stop(user);
+	}
 
 	conf_change_state(user, CONF_STATE_EMPTY);
 }




More information about the asterisk-commits mailing list