修正不支持的method处理错误

This commit is contained in:
Lawrence 2021-01-22 15:36:23 +08:00
parent 4c042e249b
commit b0088b8bd3
3 changed files with 4 additions and 5 deletions

View File

@ -132,7 +132,6 @@ public class SIPProcessorFactory {
processor.setRequestEvent(evt);
return processor;
} else if (Request.MESSAGE.equals(method)) {
MessageRequestProcessor processor = new MessageRequestProcessor();
processor.setRequestEvent(evt);
processor.setTcpSipProvider(getTcpSipProvider());
@ -146,12 +145,13 @@ public class SIPProcessorFactory {
processor.setRedisCatchStorage(redisCatchStorage);
return processor;
} else {
return new OtherRequestProcessor();
OtherRequestProcessor processor = new OtherRequestProcessor();
processor.setRequestEvent(evt);
return processor;
}
}
public ISIPResponseProcessor createResponseProcessor(ResponseEvent evt) {
Response response = evt.getResponse();
CSeqHeader cseqHeader = (CSeqHeader) response.getHeader(CSeqHeader.NAME);
String method = cseqHeader.getMethod();

View File

@ -21,7 +21,7 @@ public class OtherRequestProcessor extends SIPRequestAbstractProcessor {
*/
@Override
public void process(RequestEvent evt) {
System.out.println("no support the method! Method:" + evt.getRequest().getMethod());
System.out.println("Unsupported the method: " + evt.getRequest().getMethod());
}
}

View File

@ -21,7 +21,6 @@ export default {
};
},
methods:{
loginout(){
// cookie
this.$cookies.remove("session");