public bool OnSipDeviceRegister(ReqAddCameraInstance req) { ResponseStruct rs; var ret = MediaServerApis.AddSipDeviceToDB(req, out rs); if (rs.Code != ErrorNumber.None) { throw new HttpResponseException(JsonHelper.ToJson(rs)); } return(ret); }
public bool OnSipDeviceRegister(ReqAddCameraInstance req) { ResponseStruct rs; var ret = MediaServerApis.AddSipDeviceToDB(req, out rs); if (rs.Code != ErrorNumber.None) { throw new HttpResponseException(JsonHelper.ToJson(rs)); } return(ret); }