Change several bridge functions to return error status.

The bridge frame queue functions need to return an error status if the
frame failed to be queued because of an error condition.  The main calls
that needed to return the status are:
ast_bridge_channel_queue_action_data() and
ast_bridge_channel_write_action_data().  The other return changes are
ripple effects.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-06-21 17:48:14 +00:00
parent f3bfece4c3
commit cd6e2538f2
5 changed files with 106 additions and 85 deletions

View File

@@ -378,11 +378,12 @@ static void softmix_bridge_unsuspend(struct ast_bridge *bridge, struct ast_bridg
*
* \param bridge_channel Which channel source is changing.
*
* \return Nothing
* \retval 0 on success.
* \retval -1 on error.
*/
static void softmix_src_change(struct ast_bridge_channel *bridge_channel)
static int softmix_src_change(struct ast_bridge_channel *bridge_channel)
{
ast_bridge_channel_queue_control_data(bridge_channel, AST_CONTROL_SRCCHANGE, NULL, 0);
return ast_bridge_channel_queue_control_data(bridge_channel, AST_CONTROL_SRCCHANGE, NULL, 0);
}
/*! \brief Function called when a channel is joined into the bridge */