diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-18 21:38:46 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-18 21:38:46 +0000 |
commit | 35614d2c0f57fa4fd2986a2e3f4b4a85af00b545 (patch) | |
tree | 0fd977fddc335f2f61ecb42499b04e389530693b /rtp.c | |
parent | 70f1498cbd187bac9fffe7bfc903cf721f8461af (diff) |
Fix comparision in RTP native bridge (bug #1043)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2192 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-x | rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |