[Asterisk-cvs] asterisk/channels chan_iax2.c,1.251,1.252

markster at lists.digium.com markster at lists.digium.com
Sat Feb 19 14:47:48 CST 2005


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

Modified Files:
	chan_iax2.c 
Log Message:
Provide more info when native bridge cannot occur (bug #3627)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.251
retrieving revision 1.252
diff -u -d -r1.251 -r1.252
--- chan_iax2.c	18 Feb 2005 06:14:54 -0000	1.251
+++ chan_iax2.c	19 Feb 2005 20:46:34 -0000	1.252
@@ -2765,8 +2765,13 @@
 			return -2;
 		}
 		if (c0->nativeformats != c1->nativeformats) {
-			if (option_verbose > 2)
-				ast_verbose(VERBOSE_PREFIX_3 "Operating with different codecs, can't native bridge...\n");
+			if (option_verbose > 2) {
+				char buf0[255];
+				char buf1[255];
+				ast_getformatname_multiple(buf0, sizeof(buf0) -1, c0->nativeformats);
+				ast_getformatname_multiple(buf1, sizeof(buf1) -1, c1->nativeformats);
+				ast_verbose(VERBOSE_PREFIX_3 "Operating with different codecs %d[%s] %d[%s] , can't native bridge...\n", c0->nativeformats, buf0, c1->nativeformats, buf1);
+			}
 			/* Remove from native mode */
 			lock_both(callno0, callno1);
 			iaxs[callno0]->bridgecallno = 0;




More information about the svn-commits mailing list