Merge "bridge: Kick channel from bridge if hung up during action." into 13

This commit is contained in:
Mark Michelson
2015-08-24 17:11:56 -05:00
committed by Gerrit Code Review

View File

@@ -1914,6 +1914,13 @@ static void bridge_channel_handle_action(struct ast_bridge_channel *bridge_chann
default: default:
break; break;
} }
/* While invoking an action it is possible for the channel to be hung up. So
* that the bridge respects this we check here and if hung up kick it out.
*/
if (bridge_channel->chan && ast_check_hangup_locked(bridge_channel->chan)) {
ast_bridge_channel_kick(bridge_channel, 0);
}
} }
/*! /*!