[Devel] Patch: nathelper trivial fix

John Riordan john at junctionnetworks.com
Fri Feb 24 23:03:30 CET 2006


Hi,

Issue:

Getting annoying ERROR messages in syslog that are not ERRORs.

Feb 21 03:07:37 ra /usr/local/sbin/openser[14672]: ERROR: extract_mediaip: no `c=' in SDP
Feb 21 03:13:15 ra /usr/local/sbin/openser[14700]: ERROR: extract_mediaip: no `c=' in SDP
Feb 21 03:21:03 ra /usr/local/sbin/openser[14779]: ERROR: extract_mediaip: no `c=' in SDP

This ERROR message is incorrectly generated when fix_nated_sdp
is called on a message which has sdp including a 'c=' field.

Patch:

Changed the logging from ERROR to DBG

John


-------------- next part --------------
Index: sip-server/modules/nathelper/nathelper.c
===================================================================
RCS file: /cvsroot/openser/sip-server/modules/nathelper/nathelper.c,v
retrieving revision 1.12
diff -u -r1.12 nathelper.c
--- sip-server/modules/nathelper/nathelper.c	10 Feb 2006 18:55:46 -0000	1.12
+++ sip-server/modules/nathelper/nathelper.c	24 Feb 2006 21:56:17 -0000
@@ -1018,7 +1018,7 @@
 		cp = cp1 + 2;
 	}
 	if (cp1 == NULL) {
-		LOG(L_ERR, "ERROR: extract_mediaip: no `%s' in SDP\n",line);
+		LOG(L_DBG, "DEBUG: extract_mediaip: no `%s' in SDP\n",line);
 		return -1;
 	}
 	mediaip->s = cp1 + 2;


More information about the Devel mailing list