From ba6d84cdc82bd2b5aa938b3b4abd122cc8e77b1b Mon Sep 17 00:00:00 2001
From: songww <songww@inspur.com>
Date: 星期六, 16 五月 2020 14:47:28 +0800
Subject: [PATCH] 删除部分代码
---
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/RegisterRequestProcessor.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/RegisterRequestProcessor.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/RegisterRequestProcessor.java
index ebb6db4..ca1ba5d 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/RegisterRequestProcessor.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/RegisterRequestProcessor.java
@@ -45,7 +45,7 @@
public class RegisterRequestProcessor implements ISIPRequestProcessor {
@Autowired
- private SipConfig config;
+ private SipConfig sipConfig;
@Autowired
private RegisterLogicHandler handler;
@@ -63,7 +63,7 @@
* 璇锋眰娑堟伅
*/
@Override
- public void process(RequestEvent evt, SipLayer layer, ServerTransaction transaction) {
+ public void process(RequestEvent evt, SipLayer layer) {
try {
System.out.println("鏀跺埌娉ㄥ唽璇锋眰锛屽紑濮嬪鐞�");
Request request = evt.getRequest();
@@ -77,7 +77,7 @@
// 鏍¢獙瀵嗙爜鏄惁姝g‘
if (authorhead != null) {
passwordCorrect = new DigestServerAuthenticationHelper().doAuthenticatePlainTextPassword(request,
- config.getSipPassword());
+ sipConfig.getSipPassword());
}
// 鏈惡甯︽巿鏉冨ご鎴栬�呭瘑鐮侀敊璇� 鍥炲401
@@ -89,7 +89,7 @@
System.out.println("瀵嗙爜閿欒 鍥炲401");
}
response = layer.getMessageFactory().createResponse(Response.UNAUTHORIZED, request);
- new DigestServerAuthenticationHelper().generateChallenge(layer.getHeaderFactory(), response, config.getSipDomain());
+ new DigestServerAuthenticationHelper().generateChallenge(layer.getHeaderFactory(), response, sipConfig.getSipDomain());
}
// 鎼哄甫鎺堟潈澶村苟涓斿瘑鐮佹纭�
else if (passwordCorrect) {
@@ -141,7 +141,7 @@
device.setTransport(isTcp ? "TCP" : "UDP");
}
}
- transaction.sendResponse(response);
+ layer.getServerTransaction(evt).sendResponse(response);
// 娉ㄥ唽鎴愬姛
// 淇濆瓨鍒皉edis
// 涓嬪彂catelog鏌ヨ鐩綍
--
Gitblit v1.8.0