Exemplo n.º 1
0
        private void _btnStart_Click(object sender, EventArgs e)
        {
            var ipEndPoint = SipUtil.ParseIpEndPoint(_txtLocalIPAddress.Text);

            _stack = new SipStack();
            var listeningPoint = _stack.CreateUdpListeningPoint(ipEndPoint);
            _sipProvider = _stack.CreateSipProvider(listeningPoint);
            _sipProvider.AddSipListener(this);
            _stack.Start();
            _tmrDiagnostics.Start();
        }
Exemplo n.º 2
0
        private void _btnStart_Click(object sender, EventArgs e)
        {
            var ipEndPoint = SipUtil.ParseIpEndPoint(_txtLocalIPAddress.Text);

            _stack = new SipStack();
            var listeningPoint = _stack.CreateUdpListeningPoint(ipEndPoint);

            _sipProvider = _stack.CreateSipProvider(listeningPoint);
            _sipProvider.AddSipListener(this);
            _stack.Start();
            _tmrDiagnostics.Start();
        }
Exemplo n.º 3
0
        public void Start(string domain)
        {
            if (RegistrationDatabase == null)
            {
                throw new InvalidOperationException("Property RegistrationDatabase must have been assigned.");
            }

            _registrar = new Registrar(_stack, RegistrationDatabase)
            {
                Domain = new SipUri(null, domain),
                Realm  = domain
            };
            _callRouter = new CallRouter(_registrar);
            _stack.Start();
        }