void HoldThread()
        {
            // Wait for dial complete
            _dialCompletedEvent.WaitOne();

            // Disconnect current PO connection
            this.Connection.IsConnected = false;
            SendConnection(this.Connection);

            // Hold Connection
            if (this.HoldConnection == null)
            {
                var scr = new SwitchConnectionEnd(OtherDevice.WaitingMusic)
                {
                    IsConnected = true
                };
                var dest = new SwitchConnectionEnd(this.Channel.HostPhone)
                {
                    IsConnected = false
                };
                this.HoldConnection = new SwitchConnection(this.ClientApp.ClientId, scr, dest);
            }

            this.HoldConnection.Source.IsConnected = true;
            this.HoldConnection.Dest.IsConnected   = false;
            SendConnection(this.HoldConnection);
        }
示例#2
0
        public void AdjustConnectionEndVolumn(SwitchConnectionEnd switchCN)
        {
            var msg = new AdjVolMessage()
            {
                Id     = switchCN.Address,
                Volumn = (byte)switchCN.Volumn
            };

            this.Presentation.SendData(msg);
        }
        protected override SwitchConnection CreateConnection()
        {
            var scr = new SwitchConnectionEnd(this.ClientApp.Channels.PO.PO)
            {
                IsConnected = true
            };
            var dest = new SwitchConnectionEnd(this.Channel.HostPhone)
            {
                IsConnected = true
            };

            return(new SwitchConnection(this.ClientApp.ClientId, scr, dest));
        }
示例#4
0
 void INovaAlertService.AdjustConnectionEndVolumn(SwitchConnectionEnd switchCN)
 {
     Switch.AdjustConnectionEndVolumn(switchCN);
 }