| | |
| | | mHDLSipInfo.sipAccount, |
| | | mHDLSipInfo.sipPasswd, |
| | | "139.159.157.75:47000",//mHDLSipInfo.realm, |
| | | "sip:139.159.157.75:47000;transport=udp", |
| | | //"sip:139.159.157.75:47000;transport=udp", |
| | | HDLLinphoneKit.InterPhoneTypeFreeview |
| | | ); |
| | | } |
| | |
| | | mHDLSipInfo.sipAccount, |
| | | mHDLSipInfo.sipPasswd, |
| | | mHDLSipInfo.realm, |
| | | "sip:139.159.157.75:47000;transport=udp", |
| | | //mHDLSipInfo.proxy+ ";transport=udp", |
| | | //"sip:139.159.157.75:47000;transport=udp", |
| | | HDLLinphoneKit.InterPhoneTypeHdl |
| | | ); |
| | | } |
| | |
| | | |
| | | Shared.IOS.HDLLinphoneSDK.HDLLinPhoneSDK.Instance().LogoutAllLinphoneUser(); |
| | | #else |
| | | HDLLinphoneKit.Instance.Logout(); |
| | | if (HDLLinphoneKit.Instance != null) |
| | | { |
| | | HDLLinphoneKit.Instance.Logout(); |
| | | } |
| | | else |
| | | { |
| | | |
| | | } |
| | | #endif |
| | | } |
| | | |
| | |
| | | { |
| | | 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); |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | new Alert("", $"获取Sip账号信息失败.", "确定").Show(); |
| | | //Application.RunOnMainThread(() => |
| | | //{ |
| | | // new Alert("", $"获取Sip账号信息失败.", "确定").Show(); |
| | | //}); |
| | | } |
| | | } |
| | | catch { } |
| | |
| | | { |
| | | Utlis.WriteLine("OnIncomingCall :" + userName); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |