[Asterisk-cvs] asterisk/channels chan_iax2.c,1.144,1.145 iax2-parser.c,1.20,1.21

markster at lists.digium.com markster at lists.digium.com
Tue May 25 11:02:50 CDT 2004


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

Modified Files:
	chan_iax2.c iax2-parser.c 
Log Message:
Handle debugging of unknown IE's properly


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- chan_iax2.c	25 May 2004 13:57:57 -0000	1.144
+++ chan_iax2.c	25 May 2004 15:16:45 -0000	1.145
@@ -508,7 +508,8 @@
 
 static void iax_debug_output(const char *data)
 {
-	ast_verbose(data);
+	if (iaxdebug)
+		ast_verbose(data);
 }
 
 static void iax_error_output(const char *data)

Index: iax2-parser.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-parser.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- iax2-parser.c	25 May 2004 04:34:43 -0000	1.20
+++ iax2-parser.c	25 May 2004 15:16:45 -0000	1.21
@@ -553,7 +553,7 @@
 			break;
 		default:
 			snprintf(tmp, sizeof(tmp), "Ignoring unknown information element '%s' (%d) of length %d\n", iax_ie2str(ie), ie, len);
-			errorf(tmp);
+			outputf(tmp);
 		}
 		/* Overwrite information element with 0, to null terminate previous portion */
 		data[0] = 0;




More information about the svn-commits mailing list