wxr
2023-11-23 90d4fdb42a7f4818897ff76def0a151a99d2d9e1
HDL_ON/Common/ApiUtlis.cs
@@ -337,33 +337,33 @@
                                //======================获取Sip账号并且初始化SDK可视对讲设备列表====================
                                //如果检测线程没启动,才继续下面操作 因为App有可能刚启动马上收到推送了,然后才执行到这里
                                if (HDLLinphone.Current.CheckIncomingCallThreadIsNull())
                                {
                                //if (HDLLinphone.Current.CheckIncomingCallThreadIsNull())
                                //{
                                    
                                    //当前住宅是HDL可视对讲类型的设备
                                    if (isInterphoneType_HDL)
                                    {
                                        //HDLLinphone可视对讲,获取Sip账号并初始化SDK
                                        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("当前住宅不支持HDL可视对讲,退出登录所有账号");
                                        //当前住宅不支持HDL可视对讲
                                        HDLLinphone.Current.LogoutAllAccount();
                                    }
                                }
                                //    //当前住宅是HDL可视对讲类型的设备
                                //    if (isInterphoneType_HDL)
                                //    {
                                //        //HDLLinphone可视对讲,获取Sip账号并初始化SDK
                                //        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("当前住宅不支持HDL可视对讲,退出登录所有账号");
                                //        //当前住宅不支持HDL可视对讲
                                //        HDLLinphone.Current.LogoutAllAccount();
                                //    }
                                //}