Beispiel #1
0
        public void Answered(int answerStatusCode, SIPResponseStatusCodesEnum answerStatus, string answerReason, SIPEndPoint localEndPoint, SIPEndPoint remoteEndPoint)
        {
            IsAnswered         = true;
            AnswerTime         = DateTime.UtcNow;
            AnswerStatus       = (int)answerStatus;
            AnswerReasonPhrase = answerReason;
            AnsweredAt         = DateTime.Now;

            if (localEndPoint != null)
            {
                LocalSIPEndPoint = localEndPoint;
            }

            if (remoteEndPoint != null)
            {
                RemoteEndPoint = remoteEndPoint;
            }

            CDRAnswered?.Invoke(this);
        }
Beispiel #2
0
 public void TimedOut()
 {
     HangupReason = "Timed out";
     CDRAnswered?.Invoke(this);
 }
Beispiel #3
0
 public void Cancelled(string cancelReason = null)
 {
     HangupReason = (cancelReason != null) ? cancelReason : "Client cancelled";
     CDRAnswered?.Invoke(this);
 }