コード例 #1
0
ファイル: ProxyServerTU.cs プロジェクト: KhaledSMQ/SipServer
        private void ProccessCancelRequest(AcceptedRequest tu, IncomingMessageEx request)
        {
            var statusCode = StatusCodes.CallLegTransactionDoesNotExist;

            int inviteTransactionKId = Transaction.GetRelaytedInviteServerKId(request.TransactionId);

            if (inviteTransactionKId != Transaction.InvalidKId)
            {
                var requestProxy = requestProxyes.TryGetValue(inviteTransactionKId);

                if (requestProxy != null)
                {
                    CancelClients(requestProxy, request.Reader);
                    statusCode = StatusCodes.OK;
                }
            }

            SendResponse(request, statusCode);
        }