| | |
| | | |
| | | 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"); |
| | | //Shared.IOS.HDLLinphoneSDK.HDLLinPhoneSDK.Instance().Login("6666", "85521566", "116.62.26.215:5060"); |
| | | Shared.IOS.HDLLinphoneSDK.HDLLinPhoneSDK.Instance().Login(mHDLSipInfo.sipAccount, mHDLSipInfo.sipPasswd, mHDLSipInfo.realm); |
| | | #else |
| | | if (mInterphoneType == InterphoneType.FREEVIEW.ToString()) |
| | | { |
| | | //HDLLinphoneKit.Instance.SetAccountAndLogin( |
| | | // mHDLSipInfo.sipAccount, |
| | | // mHDLSipInfo.sipPasswd, |
| | | // mHDLSipInfo.realm, |
| | | // HDLLinphoneKit.InterPhoneTypeFreeview |
| | | // ); |
| | | |
| | | HDLLinphoneKit.Instance.SetAccountAndLogin("A583853817423247", "763548", "139.159.157.75:46000", HDLLinphoneKit.InterPhoneTypeFreeview); |
| | | HDLLinphoneKit.Instance.SetAccountAndLogin( |
| | | mHDLSipInfo.sipAccount, |
| | | mHDLSipInfo.sipPasswd, |
| | | "139.159.157.75:46000", |
| | | HDLLinphoneKit.InterPhoneTypeFreeview |
| | | ); |
| | | } |
| | | else |
| | | { |
| | |
| | | HDLLinphoneKit.InterPhoneTypeHdl |
| | | ); |
| | | } |
| | | // "A583853817423247","763548","139.159.157.75:46000", |
| | | #endif |
| | | } |
| | | |
| | |
| | | SetAccountAndLogin(mHDLSipInfo, mHDLCallVideoInfo.InterphoneType); |
| | | Utlis.WriteLine("CALL 获取SIP账号成功:" + mHDLSipInfo.sipAccount); |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | new Alert("", $"获取Sip账号信息失败.", "确定").Show(); |
| | | } |
| | | } |
| | | catch { } |
| | |
| | | #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 { |
| | |
| | | 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 |