[Asterisk-cvs] asterisk rtp.c,1.47,1.47.2.1

markster at lists.digium.com markster at lists.digium.com
Wed Feb 18 16:51:23 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv13168

Modified Files:
      Tag: v1-0_stable
	rtp.c 
Log Message:
Fix comparision in native bridge RTP (bug #1043)


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.47
retrieving revision 1.47.2.1
diff -u -d -r1.47 -r1.47.2.1
--- rtp.c	25 Nov 2003 21:15:28 -0000	1.47
+++ rtp.c	18 Feb 2004 21:38:18 -0000	1.47.2.1
@@ -1200,7 +1200,7 @@
 		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);




More information about the svn-commits mailing list