1.解决轮询内存增长过快问题
This commit is contained in:
parent
42ccd2b7f0
commit
37e4375037
@ -26,11 +26,17 @@ public class TimeoutProcessorImpl implements InitializingBean, ITimeoutProcessor
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void process(TimeoutEvent event) {
|
public void process(TimeoutEvent event) {
|
||||||
// TODO Auto-generated method stub
|
try {
|
||||||
CallIdHeader callIdHeader = event.getClientTransaction().getDialog().getCallId();
|
// TODO Auto-generated method stub
|
||||||
String callId = callIdHeader.getCallId();
|
CallIdHeader callIdHeader = event.getClientTransaction().getDialog().getCallId();
|
||||||
SipSubscribe.Event errorSubscribe = sipSubscribe.getErrorSubscribe(callId);
|
String callId = callIdHeader.getCallId();
|
||||||
SipSubscribe.EventResult<TimeoutEvent> timeoutEventEventResult = new SipSubscribe.EventResult<>(event);
|
SipSubscribe.Event errorSubscribe = sipSubscribe.getErrorSubscribe(callId);
|
||||||
errorSubscribe.response(timeoutEventEventResult);
|
SipSubscribe.EventResult<TimeoutEvent> timeoutEventEventResult = new SipSubscribe.EventResult<>(event);
|
||||||
|
errorSubscribe.response(timeoutEventEventResult);
|
||||||
|
sipSubscribe.removeErrorSubscribe(callId);
|
||||||
|
sipSubscribe.removeOkSubscribe(callId);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user