| | |
| | | |
| | | //登录sip服务器 |
| | | #if __IOS__ |
| | | Shared.IOS.HDLLinphoneSDK.HDLLinPhoneSDK.Instance().Login(mHDLSipInfo.sipAccount, mHDLSipInfo.sipPasswd, mHDLSipInfo.realm,"UDP"); |
| | | string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | System.Version currentVersion = new System.Version(systemVersion); |
| | | System.Version version17 = new System.Version(17, 0); |
| | | if (currentVersion.CompareTo(version17) > 0) |
| | | { |
| | | HDLLinPhoneSDK.Instance().Login(mHDLSipInfo.sipAccount, mHDLSipInfo.sipPasswd, mHDLSipInfo.realm, "udp"); |
| | | } |
| | | else |
| | | { |
| | | HDLLinPhoneSDK.Instance().Login(mHDLSipInfo.sipAccount, mHDLSipInfo.sipPasswd, mHDLSipInfo.realm, DB_ResidenceData.Instance.linphoneConnectType.ToString()); |
| | | } |
| | | #else |
| | | if (mInterphoneType == InterphoneType.FREEVIEW.ToString()) |
| | | { |