| | |
| | | { IsBackground = false }.Start(); |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 拒接(挂段所有呼叫) |
| | | /// </summary> |
| | | public void HDLRejectCallIn() { |
| | | |
| | | if (CheckmHDLCallVideoInfoIsNullOrEmpty()) return; |
| | | |
| | | new Thread(() => |
| | | { |
| | | Dictionary<string, object> dic = new Dictionary<string, object>(); |
| | | dic.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); |
| | | dic.Add("deviceId", mHDLCallVideoInfo.DeviceId); |
| | | dic.Add("interphoneType", "HDL"); |
| | | dic.Add("callId", mHDLCallVideoInfo.CallId);//呼叫id |
| | | |
| | | var requestJson = HttpUtil.GetSignRequestJson(dic); |
| | | var revertObj = HttpUtil.RequestHttpsPostFroHome(NewAPI.API_POST_VideoDevice_RejectCallIn, requestJson); |
| | | if (revertObj.Code == StateCode.SUCCESS) |
| | | { |
| | | |
| | | } |
| | | else |
| | | { |
| | | Utlis.WriteLine("POST 更新状态失败 code: " + revertObj.Code); |
| | | } |
| | | |
| | | }) |
| | | { IsBackground = false }.Start(); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | |
| | | { |
| | | //showToast("拒接"); |
| | | hdlLinphone.HDLUpdateCallStatus(CallStatusType.REJECT, InterphoneType.HDL); |
| | | hdlLinphone.HDLRejectCallIn(); |
| | | } |
| | | |
| | | /// <summary> |