mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
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
This commit is contained in:
@@ -2035,6 +2035,9 @@ static int execute_menu_entry(struct confbridge_conference *conference,
|
|||||||
case MENU_ACTION_PLAYBACK:
|
case MENU_ACTION_PLAYBACK:
|
||||||
if (!stop_prompts) {
|
if (!stop_prompts) {
|
||||||
res |= action_playback(bridge_channel, menu_action->data.playback_file);
|
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;
|
break;
|
||||||
case MENU_ACTION_RESET_LISTENING:
|
case MENU_ACTION_RESET_LISTENING:
|
||||||
@@ -2091,6 +2094,9 @@ static int execute_menu_entry(struct confbridge_conference *conference,
|
|||||||
case MENU_ACTION_LEAVE:
|
case MENU_ACTION_LEAVE:
|
||||||
ao2_lock(conference);
|
ao2_lock(conference);
|
||||||
ast_bridge_remove(conference->bridge, bridge_channel->chan);
|
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);
|
ao2_unlock(conference);
|
||||||
break;
|
break;
|
||||||
case MENU_ACTION_NOOP:
|
case MENU_ACTION_NOOP:
|
||||||
|
|||||||
Reference in New Issue
Block a user