C# Class SIPSorcery.SIP.SIPDialogue

See "Chapter 12 Dialogs" in RFC3261.
The standard states that there are two independent CSeq's for a dialogue: one for requests from the UAC and for requests from the UAS. In practice it's been noted that is a UAS (initial UAS) sends an in-dialogue request with a CSeq less than the UAC's CSeq it can cause problems. To avoid this issue when generating requests the remote CSeq is always used.
Afficher le fichier Open project: sipsorcery/sipsorcery Class Usage Examples

Méthodes publiques

Свойство Type Description
DialogueState SIPDialogueStateEnum

Protected Properties

Свойство Type Description
logger ILog
m_CRLF string
m_sipVersion string

Méthodes publiques

Méthode Description
Hangup ( SIPTransport sipTransport, SIPEndPoint outboundProxy ) : void
SIPDialogue ( ) : System
SIPDialogue ( SIPRequest nonInviteRequest, string owner, string adminMemberId, string toTag ) : System

This constructor is used to create non-INVITE dialogues for example the dialogues used in SIP event interactions where the dialogue is created based on a SUBSCRIBE request.

SIPDialogue ( UACInviteTransaction uacInviteTransaction, string owner, string adminMemberId ) : System

This constructor is used by client user agents or SIP elements acting in a client user agent role. When acting as a client user agent the local fields are contained in the From header and the remote fields are in the To header.

SIPDialogue ( UASInviteTransaction uasInviteTransaction, string owner, string adminMemberId ) : System

This constructor is used by server user agents or SIP elements acting in a server user agent role. When acting as a server user agent the local fields are contained in the To header and the remote fields are in the From header.

SIPDialogue ( string callId, SIPRouteSet routeSet, SIPUserField localUser, SIPUserField remoteUser, int cseq, SIPURI remoteTarget, string localTag, string remoteTag, Guid cdrId, string owner, string adminMemberId, string sdp, string remoteSDP ) : System

Private Methods

Méthode Description
GetByeRequest ( SIPEndPoint localSIPEndPoint ) : SIPRequest
GetRemoteTargetProtocol ( ) : SIPProtocolsEnum

Method Details

Hangup() public méthode

public Hangup ( SIPTransport sipTransport, SIPEndPoint outboundProxy ) : void
sipTransport SIPTransport
outboundProxy SIPEndPoint
Résultat void

SIPDialogue() public méthode

public SIPDialogue ( ) : System
Résultat System

SIPDialogue() public méthode

This constructor is used to create non-INVITE dialogues for example the dialogues used in SIP event interactions where the dialogue is created based on a SUBSCRIBE request.
public SIPDialogue ( SIPRequest nonInviteRequest, string owner, string adminMemberId, string toTag ) : System
nonInviteRequest SIPRequest
owner string
adminMemberId string
toTag string
Résultat System

SIPDialogue() public méthode

This constructor is used by client user agents or SIP elements acting in a client user agent role. When acting as a client user agent the local fields are contained in the From header and the remote fields are in the To header.
public SIPDialogue ( UACInviteTransaction uacInviteTransaction, string owner, string adminMemberId ) : System
uacInviteTransaction UACInviteTransaction
owner string
adminMemberId string
Résultat System

SIPDialogue() public méthode

This constructor is used by server user agents or SIP elements acting in a server user agent role. When acting as a server user agent the local fields are contained in the To header and the remote fields are in the From header.
public SIPDialogue ( UASInviteTransaction uasInviteTransaction, string owner, string adminMemberId ) : System
uasInviteTransaction UASInviteTransaction
owner string
adminMemberId string
Résultat System

SIPDialogue() public méthode

public SIPDialogue ( string callId, SIPRouteSet routeSet, SIPUserField localUser, SIPUserField remoteUser, int cseq, SIPURI remoteTarget, string localTag, string remoteTag, Guid cdrId, string owner, string adminMemberId, string sdp, string remoteSDP ) : System
callId string
routeSet SIPRouteSet
localUser SIPUserField
remoteUser SIPUserField
cseq int
remoteTarget SIPURI
localTag string
remoteTag string
cdrId Guid
owner string
adminMemberId string
sdp string
remoteSDP string
Résultat System

Property Details

DialogueState public_oe property

public SIPDialogueStateEnum DialogueState
Résultat SIPDialogueStateEnum

logger protected_oe static_oe property

protected static ILog logger
Résultat ILog

m_CRLF protected_oe static_oe property

protected static string m_CRLF
Résultat string

m_sipVersion protected_oe static_oe property

protected static string m_sipVersion
Résultat string