/// <summary>
 ///  检查livevideo,stopvideo的相关参数
 /// </summary>
 /// <param name="deviceId"></param>
 /// <param name="channelId"></param>
 /// <param name="rs"></param>
 /// <param name="mediaServer"></param>
 /// <param name="videoChannel"></param>
 /// <param name="sipChannel"></param>
 /// <param name="sipDevice"></param>
 /// <returns></returns>
 private static bool CheckIt(string deviceId, string channelId, out ResponseStruct rs,
                             out ServerInstance mediaServer, out VideoChannel videoChannel, out SipChannel sipChannel,
                             out SipDevice sipDevice)
 {
     mediaServer  = null;
     videoChannel = null;
     sipChannel   = null;
     sipDevice    = null;
     rs           = new ResponseStruct()
     {
         Code    = ErrorNumber.None,
         Message = ErrorMessage.ErrorDic ![ErrorNumber.None],
        public static void OnDeviceReadyReceived(SipDevice sipDevice)
        {
            Logger.Debug(
                $"[{Common.LoggerHead}]->设备就绪->{sipDevice.RemoteEndPoint.Address.MapToIPv4().ToString()}-{sipDevice.DeviceId}");
            ResponseStruct rs;
            SipMethodProxy sipMethodProxy2 = new SipMethodProxy(5000);

            if (sipMethodProxy2.GetSipDeviceInfo(sipDevice, out rs))
            {
                Logger.Debug(
                    $"[{Common.LoggerHead}]->获取设备信息成功->{sipDevice.RemoteEndPoint.Address.MapToIPv4().ToString()}-{sipDevice.DeviceId}\r\n{JsonHelper.ToJson(sipDevice.DeviceInfo, Formatting.Indented)}");
            }
            else
            {
                Logger.Warn(
                    $"[{Common.LoggerHead}]->获取设备信息失败->{sipDevice.RemoteEndPoint.Address.MapToIPv4().ToString()}-{sipDevice.DeviceId}\r\n{JsonHelper.ToJson(rs, Formatting.Indented)}");
            }

            SipMethodProxy sipMethodProxy3 = new SipMethodProxy(5000);

            if (sipMethodProxy3.GetSipDeviceStatus(sipDevice, out rs))
            {
                Logger.Debug(
                    $"[{Common.LoggerHead}]->获取设备状态信息成功->{sipDevice.RemoteEndPoint.Address.MapToIPv4().ToString()}-{sipDevice.DeviceId}\r\n{JsonHelper.ToJson(sipDevice.DeviceStatus, Formatting.Indented)}");
            }
            else
            {
                Logger.Warn(
                    $"[{Common.LoggerHead}]->获取设备状态信息失败->{sipDevice.RemoteEndPoint.Address.MapToIPv4().ToString()}-{sipDevice.DeviceId}\r\n{JsonHelper.ToJson(rs, Formatting.Indented)}");
            }

            SipMethodProxy sipMethodProxy = new SipMethodProxy(5000);

            if (sipMethodProxy.DeviceCatalogQuery(sipDevice, out rs))
            {
                Logger.Debug(
                    $"[{Common.LoggerHead}]->设备目录获取成功->{sipDevice.RemoteEndPoint.Address.MapToIPv4().ToString()}-{sipDevice.DeviceId}\r\n{JsonHelper.ToJson(sipDevice.SipChannels, Formatting.Indented)}");
            }
            else
            {
                Logger.Error(
                    $"[{Common.LoggerHead}]->设备目录获取失败->{sipDevice.RemoteEndPoint.Address.MapToIPv4().ToString()}-{sipDevice.DeviceId}\r\n{JsonHelper.ToJson(rs, Formatting.Indented)}");
            }
        }
 public static void OnDeviceStatusReceived(SipDevice sipDevice, DeviceStatus deviceStatus)
 {
     //获取到设备状态时
 }