| | |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | InitLinphone(); |
| | | try |
| | | { |
| | | InitLinphone(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log($"InitLinphone exception : {ex.Message}"); |
| | | } |
| | | mHDLSipInfo.homeId = mHDLCallVideoInfo.HomeId; |
| | | SetAccountAndLogin(mHDLSipInfo, mHDLCallVideoInfo.InterphoneType); |
| | | try { |
| | | SetAccountAndLogin(mHDLSipInfo, mHDLCallVideoInfo.InterphoneType); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log($"SetAccountAndLogin exception : {ex.Message}"); |
| | | } |
| | | Utlis.WriteLine("CALL 获取SIP账号成功:" + mHDLSipInfo.sipAccount); |
| | | }); |
| | | } |
| | |
| | | |
| | | #region ■ -- 新接听和开锁接口_______________________________ |
| | | /// <summary> |
| | | /// 开锁 |
| | | /// 可视对讲开锁 |
| | | /// </summary> |
| | | public void HDLUnlockAction() |
| | | { |
| | |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if(revertObj == null) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | #if __IOS__ |
| | | if (revertObj.Code == StateCode.SUCCESS) |