int stasis_app_control_remove_channel_from_bridge( struct stasis_app_control *control, struct ast_bridge *bridge) { ast_debug(3, "%s: Sending channel remove_from_bridge command\n", stasis_app_control_get_channel_id(control)); return app_send_command_on_condition( control, app_control_remove_channel_from_bridge, bridge, app_control_can_remove_channel_from_bridge); }
int stasis_app_control_add_channel_to_bridge( struct stasis_app_control *control, struct ast_bridge *bridge) { ast_debug(3, "%s: Sending channel add_to_bridge command\n", stasis_app_control_get_channel_id(control)); return app_send_command_on_condition( control, control_add_channel_to_bridge, bridge, NULL, app_control_can_add_channel_to_bridge); }
int stasis_app_send_command(struct stasis_app_control *control, stasis_app_command_cb command_fn, void *data) { return app_send_command_on_condition(control, command_fn, data, NULL); }