From 6e4a8cac04432f5a36d5c5e3c5eb3d28d2295a5c Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期二, 12 一月 2021 09:36:55 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0 --- src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java index 9ec2b49..8602468 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommanderForPlatform.java @@ -1,6 +1,9 @@ package com.genersoft.iot.vmp.gb28181.transmit.cmd; import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform; +import com.genersoft.iot.vmp.gb28181.event.SipSubscribe; + +import javax.sip.header.WWWAuthenticateHeader; public interface ISIPCommanderForPlatform { @@ -9,5 +12,21 @@ * @param parentPlatform * @return */ - boolean register(ParentPlatform parentPlatform, String callId, String realm, String nonce, String scheme); + boolean register(ParentPlatform parentPlatform); + boolean register(ParentPlatform parentPlatform, String callId, WWWAuthenticateHeader www, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent); + + /** + * 鍚戜笂绾у钩鍙版敞閿� + * @param parentPlatform + * @return + */ + boolean unregister(ParentPlatform parentPlatform, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent); + + + /** + * 鍚戜笂绾у钩鍙戦�佸績璺充俊鎭� + * @param parentPlatform + * @return callId(浣滀负鎺ュ彈鍥炲鐨勫垽瀹�) + */ + String keepalive(ParentPlatform parentPlatform); } -- Gitblit v1.8.0