测试sip消息预处理
This commit is contained in:
parent
90aa9be073
commit
8695e85165
@ -64,6 +64,7 @@ public class SipLayer{
|
|||||||
* sip_server_log.log 和 sip_debug_log.log ERROR, INFO, WARNING, OFF, DEBUG, TRACE
|
* 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.TRACE_LEVEL", "ERROR");
|
||||||
|
properties.setProperty("gov.nist.javax.sip.SIP_MESSAGE_VALVE", "com.genersoft.iot.vmp.gb28181.session.SipMessagePreprocessing");
|
||||||
// if (logger.isDebugEnabled()) {
|
// if (logger.isDebugEnabled()) {
|
||||||
// properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "DEBUG");
|
// properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "DEBUG");
|
||||||
// }
|
// }
|
||||||
|
@ -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() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user