Beispiel #1
0
        private void ClientTransactionFailed(SIPTransaction sipTransaction, SocketError failureReason)
        {
            logger.LogDebug($"SIPServerUserAgent client failed with {failureReason} in transaction state {m_uasTransaction.TransactionState}.");

            if (sipTransaction.HasTimedOut)
            {
                NoRingTimeout?.Invoke(this);
            }
        }
Beispiel #2
0
        private void ClientTimedOut(SIPTransaction sipTransaction)
        {
            try
            {
                logger.LogDebug($"SIPServerUserAgent client timed out in transaction state {m_uasTransaction.TransactionState}.");

                Log_External(new SIPMonitorConsoleEvent(SIPMonitorServerTypesEnum.UserAgentServer, SIPMonitorEventTypesEnum.DialPlan, "UAS for " + m_uasTransaction.TransactionRequest.URI.ToString() + " timed out in transaction state " + m_uasTransaction.TransactionState + ".", null));

                //if (m_uasTransaction.TransactionState == SIPTransactionStatesEnum.Calling && NoRingTimeout != null)
                //{
                NoRingTimeout?.Invoke(this);
                //}
            }
            catch (Exception excp)
            {
                logger.LogError("Exception ClientTimedOut. " + excp.Message);
            }
        }
        private void ClientTimedOut(SIPTransaction sipTransaction)
        {
            try
            {
                logger.LogDebug($"SIPServerUserAgent client timed out in transaction state {m_uasTransaction.TransactionState}.");

                logger.LogWarning("UAS for " + m_uasTransaction.TransactionRequest.URI.ToString() + " timed out in transaction state " + m_uasTransaction.TransactionState + ".");

                //if (m_uasTransaction.TransactionState == SIPTransactionStatesEnum.Calling && NoRingTimeout != null)
                //{
                NoRingTimeout?.Invoke(this);
                //}
            }
            catch (Exception excp)
            {
                logger.LogError("Exception ClientTimedOut. " + excp.Message);
            }
        }
 public void Redirect(SIPResponseStatusCodesEnum redirectCode, SIPURI redirectURI)
 {
     NoRingTimeout.Invoke(this);
     throw new NotImplementedException("SIPTransferServerUserAgent Redirect");
 }
 public SIPDialogue Answer(string contentType, string body, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode)
 {
     NoRingTimeout.Invoke(this);
     throw new NotImplementedException();
 }
 public void Redirect(SIPResponseStatusCodesEnum redirectCode, SIPURI redirectURI)
 {
     NoRingTimeout.Invoke(this);
     logger.Debug("SIPB2BUserAgent Redirect.");
     //m_uas.Redirect(redirectCode, redirectURI);
 }
 private void ClientTimedOut(SIPTransaction sipTransaction)
 {
     logger.LogDebug($"SIPServerUserAgent client timed out in transaction state {m_uasTransaction.TransactionState}.");
     NoRingTimeout?.Invoke(this);
 }