C# Class SIPSorcery.SIP.SIPTransaction

Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
AckRetransmits int
CDR SIPCDR
CompletedAt System.DateTime
Created System.DateTime
DeliveryFailed bool
DeliveryPending bool
InitialTransmit System.DateTime
LastTransmit System.DateTime
LocalSIPEndPoint SIPEndPoint
OutboundProxy SIPEndPoint
RemoteEndPoint SIPEndPoint
Retransmits int
TimedOutAt System.DateTime
TransactionType SIPTransactionTypesEnum
TransactionsCreated System.Int64
TransactionsDestroyed System.Int64

Protected Properties

Property Type Description
logger log4net.ILog
m_ackRequest SIPRequest
m_ackRequestIPEndPoint SIPEndPoint
m_branchId string
m_callId string
m_localTag string
m_maxRingTime int
m_remoteTag string
m_t1 int
m_t6 int
m_transactionFinalResponse SIPResponse
m_transactionRequest SIPRequest

Public Methods

Method Description
ACKReceived ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPRequest sipRequest ) : void
FireTransactionRemoved ( ) : void
FireTransactionTimedOut ( ) : void
GetRequestTransactionId ( string branchId, SIPMethodsEnum method ) : string
GotRequest ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPRequest sipRequest ) : void
GotResponse ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPResponse sipResponse ) : void
RequestRetransmit ( ) : void
ResendAckRequest ( ) : void
RetransmitFinalResponse ( ) : void
SendFinalResponse ( SIPResponse finalResponse ) : void
SendInformationalResponse ( SIPResponse sipResponse ) : void
SendReliableRequest ( ) : void
SendRequest ( SIPEndPoint dstEndPoint, SIPRequest sipRequest ) : void
SendRequest ( SIPRequest sipRequest ) : void

Protected Methods

Method Description
Cancel ( ) : void
GetInfoResponse ( SIPRequest sipRequest, SIPResponseStatusCodesEnum sipResponseCode ) : SIPResponse
SIPTransaction ( SIPTransport sipTransport, SIPRequest transactionRequest, SIPEndPoint dstEndPoint, SIPEndPoint localSIPEndPoint, SIPEndPoint outboundProxy ) : NUnit.Framework

Creates a new SIP transaction and adds it to the list of in progress transactions.

Private Methods

Method Description
FireTransactionStateChangedEvent ( ) : void
FireTransactionTraceMessage ( string message ) : void
RemoveEventHandlers ( ) : void
ResponseRetransmit ( ) : void
UpdateTransactionState ( SIPTransactionStatesEnum transactionState ) : void

Method Details

ACKReceived() public method

public ACKReceived ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPRequest sipRequest ) : void
localSIPEndPoint SIPEndPoint
remoteEndPoint SIPEndPoint
sipRequest SIPRequest
return void

Cancel() protected method

protected Cancel ( ) : void
return void

FireTransactionRemoved() public method

public FireTransactionRemoved ( ) : void
return void

FireTransactionTimedOut() public method

public FireTransactionTimedOut ( ) : void
return void

GetInfoResponse() protected method

protected GetInfoResponse ( SIPRequest sipRequest, SIPResponseStatusCodesEnum sipResponseCode ) : SIPResponse
sipRequest SIPRequest
sipResponseCode SIPResponseStatusCodesEnum
return SIPResponse

GetRequestTransactionId() public static method

public static GetRequestTransactionId ( string branchId, SIPMethodsEnum method ) : string
branchId string
method SIPMethodsEnum
return string

GotRequest() public method

public GotRequest ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPRequest sipRequest ) : void
localSIPEndPoint SIPEndPoint
remoteEndPoint SIPEndPoint
sipRequest SIPRequest
return void

GotResponse() public method

public GotResponse ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPResponse sipResponse ) : void
localSIPEndPoint SIPEndPoint
remoteEndPoint SIPEndPoint
sipResponse SIPResponse
return void

RequestRetransmit() public method

public RequestRetransmit ( ) : void
return void

ResendAckRequest() public method

public ResendAckRequest ( ) : void
return void

RetransmitFinalResponse() public method

public RetransmitFinalResponse ( ) : void
return void

SIPTransaction() protected method

Creates a new SIP transaction and adds it to the list of in progress transactions.
protected SIPTransaction ( SIPTransport sipTransport, SIPRequest transactionRequest, SIPEndPoint dstEndPoint, SIPEndPoint localSIPEndPoint, SIPEndPoint outboundProxy ) : NUnit.Framework
sipTransport SIPTransport The SIP Transport layer that is to be used with the transaction.
transactionRequest SIPRequest The SIP Request on which the transaction is based.
dstEndPoint SIPEndPoint The socket the at the remote end of the transaction and which transaction messages will be sent to.
localSIPEndPoint SIPEndPoint The socket that should be used as the send from socket for communications on this transaction. Typically this will /// be the socket the initial request was received on.
outboundProxy SIPEndPoint
return NUnit.Framework

SendFinalResponse() public method

public SendFinalResponse ( SIPResponse finalResponse ) : void
finalResponse SIPResponse
return void

SendInformationalResponse() public method

public SendInformationalResponse ( SIPResponse sipResponse ) : void
sipResponse SIPResponse
return void

SendReliableRequest() public method

public SendReliableRequest ( ) : void
return void

SendRequest() public method

public SendRequest ( SIPEndPoint dstEndPoint, SIPRequest sipRequest ) : void
dstEndPoint SIPEndPoint
sipRequest SIPRequest
return void

SendRequest() public method

public SendRequest ( SIPRequest sipRequest ) : void
sipRequest SIPRequest
return void

Property Details

AckRetransmits public property

public int AckRetransmits
return int

CDR public property

public SIPCDR,SIPSorcery.SIP CDR
return SIPCDR

CompletedAt public property

public DateTime,System CompletedAt
return System.DateTime

Created public property

public DateTime,System Created
return System.DateTime

DeliveryFailed public property

public bool DeliveryFailed
return bool

DeliveryPending public property

public bool DeliveryPending
return bool

InitialTransmit public property

public DateTime,System InitialTransmit
return System.DateTime

LastTransmit public property

public DateTime,System LastTransmit
return System.DateTime

LocalSIPEndPoint public property

public SIPEndPoint,SIPSorcery.SIP LocalSIPEndPoint
return SIPEndPoint

OutboundProxy public property

public SIPEndPoint,SIPSorcery.SIP OutboundProxy
return SIPEndPoint

RemoteEndPoint public property

public SIPEndPoint,SIPSorcery.SIP RemoteEndPoint
return SIPEndPoint

Retransmits public property

public int Retransmits
return int

TimedOutAt public property

public DateTime,System TimedOutAt
return System.DateTime

TransactionType public property

public SIPTransactionTypesEnum TransactionType
return SIPTransactionTypesEnum

TransactionsCreated public property

public Int64,System TransactionsCreated
return System.Int64

TransactionsDestroyed public property

public Int64,System TransactionsDestroyed
return System.Int64

logger protected static property

protected static ILog,log4net logger
return log4net.ILog

m_ackRequest protected property

protected SIPRequest,SIPSorcery.SIP m_ackRequest
return SIPRequest

m_ackRequestIPEndPoint protected property

protected SIPEndPoint,SIPSorcery.SIP m_ackRequestIPEndPoint
return SIPEndPoint

m_branchId protected property

protected string m_branchId
return string

m_callId protected property

protected string m_callId
return string

m_localTag protected property

protected string m_localTag
return string

m_maxRingTime protected static property

protected static int m_maxRingTime
return int

m_remoteTag protected property

protected string m_remoteTag
return string

m_t1 protected static property

protected static int m_t1
return int

m_t6 protected static property

protected static int m_t6
return int

m_transactionFinalResponse protected property

protected SIPResponse,SIPSorcery.SIP m_transactionFinalResponse
return SIPResponse

m_transactionRequest protected property

protected SIPRequest,SIPSorcery.SIP m_transactionRequest
return SIPRequest