国标级联 续订失败不要主动断开
This commit is contained in:
parent
aa55464a17
commit
58f950c207
@ -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 {
|
||||
|
@ -226,6 +226,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));
|
||||
|
@ -307,7 +307,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 (Exception e) {
|
||||
logger.error("[命令发送失败] 国标级联定时注册: {}", e.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user