From a879e5dac4fc7cee747e25a63002c40462cdaef7 Mon Sep 17 00:00:00 2001
From: lss <lsc@hdlchina.com.cn>
Date: 星期四, 26 五月 2022 11:39:43 +0800
Subject: [PATCH] 兼容全视通可视对讲

---
 HDL_ON/Common/ApiUtlis.cs |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index 35d8c7d..c2ac822 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -306,9 +306,11 @@
                             }
                             else if (video.interphoneType == InterphoneType.FREEVIEW.ToString())
                             {//涓哄叏瑙嗛�氬彲瑙嗗璁�
+                                DB_ResidenceData.Instance.SupportFacePass = true;
                                 Entity.DB_ResidenceData.Instance.SupportVisitorManage = true;
                                 Entity.DB_ResidenceData.Instance.SupportFVDevice = true;
 
+                                //isInterphoneType_HDL = true;
                                 isInterphoneType_FREEVIEW = true;
 
                             }
@@ -322,15 +324,24 @@
                         if (isInterphoneType_HDL)
                         {
                             //HDLLinphone鍙瀵硅,鑾峰彇Sip璐﹀彿骞跺垵濮嬪寲SDK
-                            HDLLinphone.Current.GetHDLSipInfoAndInitSDK(DB_ResidenceData.Instance.CurrentRegion.id);
-
+                            HDLCallVideoInfo callVideoInfo = new HDLCallVideoInfo();
+                            callVideoInfo.HomeId = DB_ResidenceData.Instance.CurrentRegion.id;
+                            callVideoInfo.InterphoneType = InterphoneType.HDL.ToString();
+                            HDLLinphone.Current.GetHDLSipInfoAndInitSDK(callVideoInfo);
+                        }
+                        else if (isInterphoneType_FREEVIEW)
+                        {
+                            //HDLLinphone鍙瀵硅,鑾峰彇Sip璐﹀彿骞跺垵濮嬪寲SDK
+                            HDLCallVideoInfo callVideoInfo = new HDLCallVideoInfo();
+                            callVideoInfo.HomeId = DB_ResidenceData.Instance.CurrentRegion.id;
+                            callVideoInfo.InterphoneType = InterphoneType.FREEVIEW.ToString();
+                            HDLLinphone.Current.GetHDLSipInfoAndInitSDK(callVideoInfo);
                         }
                         else
                         {
                             Utlis.WriteLine("褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅,閫�鍑虹櫥褰曟墍鏈夎处鍙�");
                             //褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅
                             HDLLinphone.Current.LogoutAllAccount();
-
                         }
                     }
 

--
Gitblit v1.8.0