[asterisk-commits] mjordan: branch 11 r376415 - in /branches/11: ./ apps/confbridge/conf_state.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Nov 18 08:27:24 CST 2012


Author: mjordan
Date: Sun Nov 18 08:27:20 2012
New Revision: 376415

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=376415
Log:
Add a test event that reports changes in ConfBridge state

This patch adds a test event to ConfBridge that reports transitions between
states in ConfBridge.  This is used by tests in the Asterisk Test Suite
that verify state changes based on the entering/leaving of conference
participants.
........

Merged revisions 376414 from http://svn.asterisk.org/svn/asterisk/branches/10

Modified:
    branches/11/   (props changed)
    branches/11/apps/confbridge/conf_state.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.

Modified: branches/11/apps/confbridge/conf_state.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/confbridge/conf_state.c?view=diff&rev=376415&r1=376414&r2=376415
==============================================================================
--- branches/11/apps/confbridge/conf_state.c (original)
+++ branches/11/apps/confbridge/conf_state.c Sun Nov 18 08:27:20 2012
@@ -38,6 +38,7 @@
 #include "asterisk.h"
 
 #include "asterisk/logger.h"
+#include "asterisk/test.h"
 #include "include/conf_state.h"
 #include "include/confbridge.h"
 
@@ -60,6 +61,10 @@
 void conf_change_state(struct conference_bridge_user *cbu, struct conference_state *newstate)
 {
 	ast_debug(1, "Changing conference '%s' state from %s to %s\n", cbu->conference_bridge->name, cbu->conference_bridge->state->name, newstate->name);
+	ast_test_suite_event_notify("CONF_CHANGE_STATE", "Conference: %s\r\nOldState: %s\r\nNewState: %s\r\n",
+			cbu->conference_bridge->name,
+			cbu->conference_bridge->state->name,
+			newstate->name);
 	if (cbu->conference_bridge->state->exit) {
 		cbu->conference_bridge->state->exit(cbu);
 	}




More information about the asterisk-commits mailing list