[asterisk-commits] jrose: trunk r402698 - /trunk/apps/app_confbridge.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 11 14:28:41 CST 2013


Author: jrose
Date: Mon Nov 11 14:28:38 2013
New Revision: 402698

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402698
Log:
Confbridge: add test events for dynamic menus test

Adds a couple of test events for conference menu actions so that it's
easy to discern when those menu actions have been triggered.

(issue ASTERISK-22760)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2999/

Modified:
    trunk/apps/app_confbridge.c

Modified: trunk/apps/app_confbridge.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_confbridge.c?view=diff&rev=402698&r1=402697&r2=402698
==============================================================================
--- trunk/apps/app_confbridge.c (original)
+++ trunk/apps/app_confbridge.c Mon Nov 11 14:28:38 2013
@@ -2035,6 +2035,9 @@
 		case MENU_ACTION_PLAYBACK:
 			if (!stop_prompts) {
 				res |= action_playback(bridge_channel, menu_action->data.playback_file);
+				ast_test_suite_event_notify("CONF_MENU_PLAYBACK",
+					"Message: %s\r\nChannel: %s",
+					menu_action->data.playback_file, ast_channel_name(bridge_channel->chan));
 			}
 			break;
 		case MENU_ACTION_RESET_LISTENING:
@@ -2091,6 +2094,9 @@
 		case MENU_ACTION_LEAVE:
 			ao2_lock(conference);
 			ast_bridge_remove(conference->bridge, bridge_channel->chan);
+			ast_test_suite_event_notify("CONF_MENU_LEAVE",
+				"Channel: %s",
+				ast_channel_name(bridge_channel->chan));
 			ao2_unlock(conference);
 			break;
 		case MENU_ACTION_NOOP:




More information about the asterisk-commits mailing list