コード例 #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
ファイル: IntegrationTestBase.cs プロジェクト: goupviet/Hallo
        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
ファイル: SoftPhoneForm.cs プロジェクト: HNeukermans/Hallo
        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();
        }