public async Task Ikusnet_GetLineStatus()
        {
            var codecApi   = new IkusNetApi(new ProdysSocketPool());
            var lineStatus = await codecApi.GetLineStatusAsync(CodecInformation.Ip);

            Assert.NotNull(lineStatus);
        }
        public async Task GetDeviceName()
        {
            var sut        = new IkusNetApi(new ProdysSocketPool());
            var deviceName = await sut.GetDeviceNameAsync(CodecInformation.Ip);

            Assert.Equal("MTU 25", deviceName);
        }
        public async Task Hangup()
        {
            var  sut    = new IkusNetApi(new ProdysSocketPool());
            bool result = await sut.HangUpAsync(_ip);

            Assert.True(result);
        }
Esempio n. 4
0
        public void GetDeviceName()
        {
            var sut        = new IkusNetApi();
            var deviceName = sut.GetDeviceName(_hostAddress);

            Assert.AreEqual("MTU 25", deviceName);
        }
Esempio n. 5
0
        public void Hangup()
        {
            var  sut    = new IkusNetApi();
            bool result = sut.HangUp(_hostAddress, Codec.Program);

            Assert.IsTrue(result);
        }
        public async Task GetLineStatus()
        {
            var sut = new IkusNetApi(new ProdysSocketPool());

            LineStatus lineStatus = await sut.GetLineStatusAsync(CodecInformation.Ip);

            Assert.Equal(LineStatusCode.NoPhysicalLine, lineStatus.StatusCode);
            Assert.Equal(DisconnectReason.None, lineStatus.DisconnectReason);
        }
Esempio n. 7
0
        public void GetLineStatus()
        {
            var sut = new IkusNetApi();

            LineStatus lineStatus = sut.GetLineStatus(_hostAddress, 0);

            Assert.AreEqual("", lineStatus.RemoteAddress);
            Assert.AreEqual(LineStatusCode.NoPhysicalLine, lineStatus.StatusCode);
            Assert.AreEqual(DisconnectReason.None, lineStatus.DisconnectReason);
            Assert.AreEqual(IpCallType.Invalid, lineStatus.IpCallType);
        }
        public async Task Call()
        {
            var sut = new IkusNetApi(new ProdysSocketPool());

            var callee        = "*****@*****.**";
            var profileName   = "Studio";
            var deviceEncoder = "Program";

            bool result = await sut.CallAsync(_ip, callee, profileName, deviceEncoder);

            Assert.True(result);
        }
Esempio n. 9
0
        public void GetInputLevel()
        {
            var sut = new IkusNetApi();

            sut.SetInputGainLevel(_hostAddress, 0, 6);

            var level = sut.GetInputGainLevel(_hostAddress, 0);

            Assert.AreEqual(6, level);

            sut.SetInputGainLevel(_hostAddress, 0, 4);

            level = sut.GetInputGainLevel(_hostAddress, 0);
            Assert.AreEqual(4, level);
        }
        public async Task GetInputLevel()
        {
            var sut = new IkusNetApi(new ProdysSocketPool());

            await sut.SetInputGainLevelAsync(CodecInformation.Ip, 0, 6);

            var level = await sut.GetInputGainLevelAsync(CodecInformation.Ip, 0);

            Assert.Equal(6, level);

            await sut.SetInputGainLevelAsync(CodecInformation.Ip, 0, 4);

            level = await sut.GetInputGainLevelAsync(CodecInformation.Ip, 0);

            Assert.Equal(4, level);
        }
Esempio n. 11
0
        public void Call()
        {
            var sut = new IkusNetApi();

            var call = new Call()
            {
                Address  = "*****@*****.**",
                CallType = IpCallType.UnicastBidirectional,
                Codec    = Codec.Program,
                Content  = CallContent.Audio,
                Profile  = "Studio"
            };

            bool result = sut.Call(_hostAddress, call);

            Assert.IsTrue(result);
        }