Пример #1
0
        void Form_Load(object sender, EventArgs e)
        {
            _txtFromAlias.Text     = "alice";
            _txtToAlias.Text       = "bob";
            _chkPeerToPeer.Checked = false;
            _chkPeerToPeer_CheckedChanged(null, null);

            _softPhone = SoftPhoneFactory.CreateSoftPhone(SipUtil.ParseIpEndPoint(this.MainForm.Configuration.BindIpEndPoint));
            _softPhone.IncomingCall += _softPhone_IncomingCall;
            _softPhone.Start();
        }
Пример #2
0
        protected override void Given()
        {
            _aliceEndPoint = TestConstants.LocalEndPoint1;
            _bobEndPoint   = TestConstants.LocalEndPoint2;

            _phoneAlice = SoftPhoneFactory.CreateSoftPhone(_aliceEndPoint);
            _phoneAlice.IncomingCall += _phoneAlice_IncomingCall;
            _phoneAlice.Start();

            _phoneBob = SoftPhoneFactory.CreateSoftPhone(_bobEndPoint);
            _phoneBob.IncomingCall += _phoneBob_IncomingCall;
            _phoneBob.Start();

            GivenOverride();
        }
Пример #3
0
        protected override void Given()
        {
            _aliceEndPoint = TestConstants.LocalEndPoint1;
            _bobEndPoint = TestConstants.LocalEndPoint2;

            _phoneAlice = SoftPhoneFactory.CreateSoftPhone(_aliceEndPoint);
            _phoneAlice.IncomingCall += _phoneAlice_IncomingCall;
            _phoneAlice.Start();

            _phoneBob = SoftPhoneFactory.CreateSoftPhone(_bobEndPoint);
            _phoneBob.IncomingCall += _phoneBob_IncomingCall;
            _phoneBob.Start();

            GivenOverride();
        }
Пример #4
0
        void Form_Load(object sender, EventArgs e)
        {
            _txtFromAlias.Text = "alice";
            _txtToAlias.Text = "bob";
            _chkPeerToPeer.Checked = false;
            _chkPeerToPeer_CheckedChanged(null,null);

            _softPhone = SoftPhoneFactory.CreateSoftPhone(SipUtil.ParseIpEndPoint(this.MainForm.Configuration.BindIpEndPoint));
            _softPhone.IncomingCall += _softPhone_IncomingCall;
            _softPhone.Start();
        }