mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 06:53:41 +00:00
Only care about a compatible codec for early bridging if we are actually bridging to another channel. If we are not we actually want to bring the audio back to us.
(closes issue #13545) Reported by: davidw git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@165591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1540,9 +1540,8 @@ int ast_rtp_early_bridge(struct ast_channel *dest, struct ast_channel *src)
|
||||
else
|
||||
destcodec = 0;
|
||||
/* Ensure we have at least one matching codec */
|
||||
if (!(srccodec & destcodec)) {
|
||||
if (srcp && !(srccodec & destcodec)) {
|
||||
ast_channel_unlock(dest);
|
||||
if (src)
|
||||
ast_channel_unlock(src);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user