Example #1
0
        private ExtendedDeviceID_t ReadConfController(IStructReader reader)
        {
            try
            {
                object result;

                logger.Info("CSTAConferencedParser.ReadConfController: try to read conf controller from stream...");

                if (reader.TryReadStruct(typeof(ExtendedDeviceID_t), out result))
                {
                    logger.Info("CSTAConferencedParser.ReadConfController: successfully read conf controller from stream!");

                    ExtendedDeviceID_t confController = (ExtendedDeviceID_t)result;

                    logger.Info("CSTAConferencedParser.ReadConfController: confController.deviceID.device={0};confController.deviceIDType={1};confController.deviceIDStatus={2}", confController.deviceID.device, confController.deviceIDType, confController.deviceIDStatus);

                    return(confController);
                }
            }
            catch (Exception err)
            {
                logger.Error(string.Format("Error in CSTAConferencedParser.ReadConfController: {0}", err));
            }

            return(new ExtendedDeviceID_t());
        }
Example #2
0
        private ExtendedDeviceID_t ReadAddedParty(IStructReader reader)
        {
            try
            {
                logger.Info("CSTAConferencedParser.ReadAddedParty: try to read added party from stream...");

                object result;

                if (reader.TryReadStruct(typeof(ExtendedDeviceID_t), out result))
                {
                    logger.Info("CSTAConferencedParser.ReadAddedParty: successfully read added party from stream!");

                    ExtendedDeviceID_t addedParty = (ExtendedDeviceID_t)result;

                    logger.Info("CSTAConferencedParser.ReadAddedParty: addedParty.deviceID.device={0};addedParty.deviceIDType={1};addedParty.deviceIDStatus={2}", addedParty.deviceID.device, addedParty.deviceIDType, addedParty.deviceIDStatus);

                    return(addedParty);
                }
            }
            catch (Exception err)
            {
                logger.Error(string.Format("Error in CSTAConferencedParser.ReadAddedParty: {0}", err));
            }

            return(new ExtendedDeviceID_t());
        }
        private ExtendedDeviceID_t ReadTransferredDevice(IStructReader reader)
        {
            try
            {
                logger.Info("CSTATransferredParser.ReadTransferredDevice: try to read transferred device from stream...");

                object result;

                if (reader.TryReadStruct(typeof(ExtendedDeviceID_t), out result))
                {
                    logger.Info("CSTATransferredParser.ReadTransferredDevice: successfully read transferred device from stream!");

                    ExtendedDeviceID_t transferredDevice = (ExtendedDeviceID_t)result;

                    logger.Info("CSTATransferredParser.ReadTransferringDevice: transferredDevice.deviceID.device={0};transferredDevice.deviceIDType={1};transferredDevice.deviceIDStatus={2}", transferredDevice.deviceID.device, transferredDevice.deviceIDType, transferredDevice.deviceIDStatus);

                    return(transferredDevice);
                }
            }
            catch (Exception err)
            {
                logger.Error(string.Concat("Error in CSTATransferredParser.ReadTransferredDevice: ", err.ToString()));
            }

            return(new ExtendedDeviceID_t());
        }