diff options
author | Jonathan Rose <jrose@digium.com> | 2013-11-11 20:28:38 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-11-11 20:28:38 +0000 |
commit | d720bc76867aaee9f1a6c3030c98bbb9b6f2af66 (patch) | |
tree | 6bf82ce9c911166449d2665c20bf95477514bc5a /apps/app_confbridge.c | |
parent | 92cf776119a6758be4335f1098f05b3305b95237 (diff) |
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/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_confbridge.c')
-rw-r--r-- | apps/app_confbridge.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/app_confbridge.c b/apps/app_confbridge.c index 2e7f437b1..52cb04d15 100644 --- a/apps/app_confbridge.c +++ b/apps/app_confbridge.c @@ -2035,6 +2035,9 @@ static int execute_menu_entry(struct confbridge_conference *conference, 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 @@ static int execute_menu_entry(struct confbridge_conference *conference, 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: |