diff --git a/pom.xml b/pom.xml
index 71dd9485..f0052470 100644
--- a/pom.xml
+++ b/pom.xml
@@ -60,6 +60,20 @@
org.springframework.boot
spring-boot-starter-data-redis
+
+
+ redis.clients
+ jedis
+
+
+ io.lettuce
+ lettuce-core
+
+
+
+
+ org.apache.commons
+ commons-pool2
org.springframework.boot
diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/timeout/impl/TimeoutProcessorImpl.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/timeout/impl/TimeoutProcessorImpl.java
index 41650044..86861af1 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/timeout/impl/TimeoutProcessorImpl.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/timeout/impl/TimeoutProcessorImpl.java
@@ -26,11 +26,17 @@ public class TimeoutProcessorImpl implements InitializingBean, ITimeoutProcessor
@Override
public void process(TimeoutEvent event) {
- // TODO Auto-generated method stub
- CallIdHeader callIdHeader = event.getClientTransaction().getDialog().getCallId();
- String callId = callIdHeader.getCallId();
- SipSubscribe.Event errorSubscribe = sipSubscribe.getErrorSubscribe(callId);
- SipSubscribe.EventResult timeoutEventEventResult = new SipSubscribe.EventResult<>(event);
- errorSubscribe.response(timeoutEventEventResult);
+ try {
+ // TODO Auto-generated method stub
+ CallIdHeader callIdHeader = event.getClientTransaction().getDialog().getCallId();
+ String callId = callIdHeader.getCallId();
+ SipSubscribe.Event errorSubscribe = sipSubscribe.getErrorSubscribe(callId);
+ SipSubscribe.EventResult timeoutEventEventResult = new SipSubscribe.EventResult<>(event);
+ errorSubscribe.response(timeoutEventEventResult);
+ sipSubscribe.removeErrorSubscribe(callId);
+ sipSubscribe.removeOkSubscribe(callId);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
}
}