Esempio n. 1
0
static int app_control_clear_roles(struct stasis_app_control *control,
		struct ast_channel *chan, void *data)
{
	ast_channel_clear_bridge_roles(chan);

	return 0;
}
Esempio n. 2
0
/*!
 * \internal
 * \brief Pull this channel from the Stasis bridge.
 * \since 12.5.0
 *
 * \param self Bridge to operate upon.
 * \param bridge_channel Bridge channel to pull.
 *
 * \note On entry, self is already locked.
 *
 * \return Nothing
 */
static void bridge_stasis_pull(struct ast_bridge *self, struct ast_bridge_channel *bridge_channel)
{
    if ((self->allowed_capabilities & STASIS_BRIDGE_MIXING_CAPABILITIES)
            && ast_test_flag(&self->feature_flags, AST_BRIDGE_FLAG_SMART)) {
        ast_bridge_channel_update_accountcodes(NULL, bridge_channel);
    }

    if (self->technology->capabilities & AST_BRIDGE_CAPABILITY_HOLDING) {
        ast_channel_clear_bridge_roles(bridge_channel->chan);
    }

    ast_bridge_move_hook(bridge_channel->features, bridge_stasis_moving, NULL, NULL, 0);

    ast_bridge_base_v_table.pull(self, bridge_channel);
}
Esempio n. 3
0
void stasis_app_control_clear_roles(struct stasis_app_control *control)
{
    ast_channel_clear_bridge_roles(control->channel);
}