コード例 #1
0
ファイル: ProxyServerTU.cs プロジェクト: KhaledSMQ/SipServer
 private void ProccessTransportError(int clientTransactionId, int serverTransactionId)
 {
     //if (Transaction.GetTransactionKind(clientTransactionId) == Transaction.Kind.InviteClient)
     if (Transaction.IsClientTransaction(clientTransactionId))
     {
         ProccessError(serverTransactionId, clientTransactionId, StatusCodes.ServiceUnavailable);
     }
 }
コード例 #2
0
        private void DoWork <T>(T transaction, int action)
            where T : ITransaction
        {
            if ((action & Transaction.Action.InformTuAboutError) > 0)
            {
                if (Transaction.IsClientTransaction(transaction.Id))
                {
                    producedRequests[transaction.Router].TransportError(transaction.Id, transaction.UserData);
                }
                else
                {
                    acceptedRequests[transaction.Router].TransportError(transaction.Id);
                }
            }

            DoWork(transaction.Id, action);
        }