Client transaction for all messages but Invite.
Наследование: IClientTransaction
Пример #1
0
        public IClientTransaction CreateClientTransaction(IRequest message)
        {
            IClientTransaction transaction;
            if (message.Method == SipMethod.INVITE)
                transaction = new ClientInviteTransaction(_transport, message);
            else
                transaction = new ClientNonInviteTransaction(_transport, message);

            _clientTransactions.Add(transaction.Id, transaction);
            transaction.Terminated += OnTerminated;
            return transaction;
        }
Пример #2
0
        public IClientTransaction CreateClientTransaction(IRequest message)
        {
            IClientTransaction transaction;

            if (message.Method == SipMethod.INVITE)
            {
                transaction = new ClientInviteTransaction(_transport, message);
            }
            else
            {
                transaction = new ClientNonInviteTransaction(_transport, message);
            }

            _clientTransactions.Add(transaction.Id, transaction);
            transaction.Terminated += OnTerminated;
            return(transaction);
        }