mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
bridge_native_rtp: Fix native bridge tech being incompatible when it should be.
When checking compatability for the native RTP bridge technology there is a race condition between clearing framehooks that are destroyed when leaving certain bridges with certain technologies (such as bridge_native_rtp) and joining bridges with the bridge_native_rtp technology. Yes, that means a channel in a native RTP bridge could move to another native RTP bridge and be considered incompatible with the new native RTP bridge causing it to revert to a simple bridge technology0. This fixes that bug by ignoring framehooks that have been marked for destruction when checking for compatibility with the bridge_native_rtp technology. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -87,7 +87,7 @@ static int native_rtp_bridge_capable(struct ast_channel *chan)
|
||||
{
|
||||
if (ast_channel_monitor(chan) || (ast_channel_audiohooks(chan) &&
|
||||
!ast_audiohook_write_list_empty(ast_channel_audiohooks(chan))) ||
|
||||
!ast_framehook_list_is_empty(ast_channel_framehooks(chan))) {
|
||||
!ast_framehook_list_contains_no_active(ast_channel_framehooks(chan))) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user