C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DialogueState SIPDialogueStateEnum

Защищенные свойства (Protected)

Свойство Тип Описание
logger ILog
m_CRLF string
m_sipVersion string

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetByeRequest ( SIPEndPoint localSIPEndPoint ) : SIPRequest
GetRemoteTargetProtocol ( ) : SIPProtocolsEnum

Описание методов

Hangup() публичный Метод

public Hangup ( SIPTransport sipTransport, SIPEndPoint outboundProxy ) : void
sipTransport SIPTransport
outboundProxy SIPEndPoint
Результат void

SIPDialogue() публичный Метод

public SIPDialogue ( ) : System
Результат System

SIPDialogue() публичный Метод

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
Результат System

SIPDialogue() публичный Метод

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
Результат System

SIPDialogue() публичный Метод

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
Результат System

SIPDialogue() публичный Метод

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
Результат System

Описание свойств

DialogueState публичное свойство

public SIPDialogueStateEnum DialogueState
Результат SIPDialogueStateEnum

logger защищенное статическое свойство

protected static ILog logger
Результат ILog

m_CRLF защищенное статическое свойство

protected static string m_CRLF
Результат string

m_sipVersion защищенное статическое свойство

protected static string m_sipVersion
Результат string