测试sip消息预处理

This commit is contained in:
648540858 2022-09-01 22:27:18 +08:00
parent 90aa9be073
commit 8695e85165
2 changed files with 31 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public class SipLayer{
* sip_server_log.log sip_debug_log.log ERROR, INFO, WARNING, OFF, DEBUG, TRACE
*/
properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "ERROR");
properties.setProperty("gov.nist.javax.sip.SIP_MESSAGE_VALVE", "com.genersoft.iot.vmp.gb28181.session.SipMessagePreprocessing");
// if (logger.isDebugEnabled()) {
// properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "DEBUG");
// }

View File

@ -0,0 +1,30 @@
package com.genersoft.iot.vmp.gb28181.session;
import gov.nist.javax.sip.message.SIPRequest;
import gov.nist.javax.sip.stack.MessageChannel;
import gov.nist.javax.sip.stack.SIPMessageValve;
import javax.sip.SipStack;
import javax.sip.message.Response;
public class SipMessagePreprocessing implements SIPMessageValve {
@Override
public boolean processRequest(SIPRequest sipRequest, MessageChannel messageChannel) {
return false;
}
@Override
public boolean processResponse(Response response, MessageChannel messageChannel) {
return false;
}
@Override
public void init(SipStack sipStack) {
}
@Override
public void destroy() {
}
}