| | |
| | | mHDLSipInfo.sipPasswd, |
| | | "139.159.157.75:47000",//mHDLSipInfo.realm, |
| | | //"sip:139.159.157.75:47000;transport=udp", |
| | | HDLLinphoneKit.InterPhoneTypeFreeview// |
| | | HDLLinphoneKit.InterPhoneTypeFreeview |
| | | ); |
| | | } |
| | | else |
| | |
| | | { |
| | | 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); |
| | | }); |
| | | } |
| | |
| | | { |
| | | Utlis.WriteLine("OnIncomingCall :" + userName); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |