From 0ee75b88cfe03e46289de0de96e8ed4580c797d3 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 27 九月 2022 14:04:21 +0800
Subject: [PATCH] Merge branch 'Dev-Branch' into dev--wxr

---
 HDL_ON/DAL/ThirdPartySdk/HDLLinphone.cs |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/DAL/ThirdPartySdk/HDLLinphone.cs b/HDL_ON/DAL/ThirdPartySdk/HDLLinphone.cs
index c644c46..e652116 100644
--- a/HDL_ON/DAL/ThirdPartySdk/HDLLinphone.cs
+++ b/HDL_ON/DAL/ThirdPartySdk/HDLLinphone.cs
@@ -117,7 +117,12 @@
 
             this.currentHDLSipInfo = mHDLSipInfo;
 
-            if (mHDLSipInfo == null) return;
+            if (mHDLSipInfo == null) {
+                //new alert
+                return;
+            }
+
+
 
 #if __IOS__
             //Shared.IOS.HDLLinphoneSDK.HDLLinPhoneSDK.Instance().Login("1003", "123456", "192.168.31.194:5060");
@@ -233,6 +238,10 @@
                         SetAccountAndLogin(mHDLSipInfo, mHDLCallVideoInfo.InterphoneType);
                         Utlis.WriteLine("CALL 鑾峰彇SIP璐﹀彿鎴愬姛锛�" + mHDLSipInfo.sipAccount);
                     });
+                }
+                else
+                {
+                    new Alert("", $"鑾峰彇Sip璐﹀彿淇℃伅澶辫触.", "纭畾").Show();
                 }
             }
             catch { }
@@ -485,6 +494,15 @@
 #if __IOS__
                 //鑷爺鍙瀵硅
                 HDLLinPhoneSDK.Instance().GotoHDLSRLinphoneIntercomVC(mHDLCallVideoInfo.DeviceName,mHDLCallVideoInfo.DeviceSipAccount);
+#else
+                var intent = new Intent(Shared.Application.Activity, typeof(Com.Hdl.Hdllinphonesdk.Activity.HDLLinphoneReverseCallActivity));  
+                if (mHDLCallVideoInfo != null)
+                {
+                    //intent.PutExtra(HDLLinphoneKit.KeyTitleName, mHDLCallVideoInfo.DeviceName);
+                    intent.PutExtra("lpTitleName", mHDLCallVideoInfo.DeviceName);
+                    intent.PutExtra("lpSipAccount", mHDLCallVideoInfo.DeviceSipAccount);
+                }
+                Shared.Application.Activity.StartActivity(intent);
 #endif
             }
             else {
@@ -534,7 +552,8 @@
             var intent = new Intent(Shared.Application.Activity, typeof(Com.Hdl.Hdllinphonesdk.Activity.HDLLinphoneIntercomActivity));
             if (mHDLCallVideoInfo != null)
             {
-                intent.PutExtra(HDLLinphoneKit.KeyTitleName, mHDLCallVideoInfo.DeviceName);
+                //intent.PutExtra(HDLLinphoneKit.KeyTitleName, mHDLCallVideoInfo.DeviceName);
+                intent.PutExtra(HDLLinphoneKit.KeyTitleName, mHDLCallVideoInfo.CallId);
             }
             Shared.Application.Activity.StartActivity(intent);
 #endif

--
Gitblit v1.8.0