From: Mark Spencer Date: Wed, 18 Feb 2004 21:38:46 +0000 (+0000) Subject: Fix comparision in RTP native bridge (bug #1043) X-Git-Tag: 1.0.0-rc1~1074 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb96473eb042931538a404d412fc89940c3f32e6;p=thirdparty%2Fasterisk.git Fix comparision in RTP native bridge (bug #1043) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2192 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/rtp.c b/rtp.c index 023353e19a..888c833290 100755 --- a/rtp.c +++ b/rtp.c @@ -1200,7 +1200,7 @@ int ast_rtp_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, st codec0 = pr0->get_codec(c0); codec1 = pr1->get_codec(c1); /* Hey, we can't do reinvite if both parties speak diffrent codecs */ - if (codec0 != codec1) { + if (!(codec0 & codec1)) { ast_log(LOG_WARNING, "codec0 = %d is not codec1 = %d, cannot native bridge.\n",codec0,codec1); ast_mutex_unlock(&c0->lock); ast_mutex_unlock(&c1->lock);