国标级联 续订失败不要主动断开
This commit is contained in:
parent
17278523d9
commit
eaccb1630b
@ -1,6 +1,5 @@
|
||||
package com.genersoft.iot.vmp.gb28181.bean;
|
||||
|
||||
import gov.nist.javax.sip.message.SIPRequest;
|
||||
import gov.nist.javax.sip.message.SIPResponse;
|
||||
|
||||
public class SipTransactionInfo {
|
||||
|
@ -48,7 +48,7 @@ import java.util.Locale;
|
||||
@RequiredArgsConstructor
|
||||
public class RegisterRequestProcessor extends SIPRequestProcessorParent implements InitializingBean, ISIPRequestProcessor {
|
||||
public static final String METHOD = "REGISTER";
|
||||
|
||||
|
||||
private final SipConfig sipConfig;
|
||||
|
||||
private final SIPProcessorObserver sipProcessorObserver;
|
||||
@ -215,6 +215,7 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen
|
||||
GbSipDate gbSipDate = new GbSipDate(Calendar.getInstance(Locale.ENGLISH).getTimeInMillis());
|
||||
dateHeader.setDate(gbSipDate);
|
||||
response.addHeader(dateHeader);
|
||||
log.debug("dateHeader => {}",dateHeader);
|
||||
|
||||
// 添加Contact头
|
||||
response.addHeader(request.getHeader(ContactHeader.NAME));
|
||||
|
@ -274,7 +274,8 @@ public class PlatformServiceImpl implements IPlatformService {
|
||||
commanderForPlatform.register(parentPlatform, sipTransactionInfo, eventResult -> {
|
||||
logger.info("[国标级联] 平台:{}注册失败,{}:{}", parentPlatform.getServerGBId(),
|
||||
eventResult.statusCode, eventResult.msg);
|
||||
offline(parentPlatform, false);
|
||||
// 国标级联 续订失败不要主动断开
|
||||
// offline(parentPlatform, false);
|
||||
}, null);
|
||||
} catch (InvalidArgumentException | ParseException | SipException e) {
|
||||
logger.error("[命令发送失败] 国标级联定时注册: {}", e.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user