CallID cid = (CallID) message.getCallId(); String callId = null; if (cid != null) callId = cid.getCallId(); String firstLine = message.getFirstLine().trim(); String inputText = (logContent ? message.encode() : message.encodeMessage() ) ; String tid = message.getTransactionId(); logMessage( inputText, from, to, sender, callId, firstLine, null, tid, time);
String logInfo = message; if (printWriter == null) { System.out.println(logInfo); } else { printWriter.println(logInfo); } if (LogWriter.needsLogging) { logWriter.logMessage(" ]]>"); logWriter.logMessage("</debug>"); logWriter.logMessage(logInfo); logWriter.logMessage("<debug>"); logWriter.logMessage("<![CDATA[ "); }
	public void logMessage(		SIPMessage message,		String from,		String to,		boolean sender,		long time) {		checkLogFile();		CallID cid = (CallID) message.getCallId();		String callId = null;		if (cid != null)			callId = cid.getCallId();		String firstLine = message.getFirstLine().trim();		String inputText = (logContent ? message.encode() : message.encodeMessage() ) ;		String tid = message.getTransactionId();		logMessage(			inputText,			from,			to,			sender,			callId,			firstLine,			null,			tid,			time);	}