C# Class SIPSorcery.SIP.SIPViaHeader

The Via header only has parameters, no headers. Parameters of from ...;name=value;name2=value2 Specific parameters: ttl, maddr, received, branch. From page 179 of RFC3261: "Even though this specification mandates that the branch parameter be present in all requests, the BNF for the header field indicates that it is optional." The branch parameter on a Via therefore appears to be optionally mandatory?! Any SIP application element that uses transactions depends on the branch parameter for transaction matching. Only the top Via header branch is used for transactions though so if the request has made it to this stack with missing branches then in theory it should be safe to proceed. It will be left up to the SIPTransaction class to reject any SIP requests that are missing the necessary branch.
Afficher le fichier Open project: sipsorcery/sipsorcery Class Usage Examples

Méthodes publiques

Свойство Type Description
Host string
Port int
Transport SIPProtocolsEnum
Version string
ViaParameters SIPParameters

Méthodes publiques

Méthode Description
ParseSIPViaHeader ( string viaHeaderStr ) : SIPSorcery.SIP.SIPViaHeader[]
SIPViaHeader ( ) : NUnit.Framework
SIPViaHeader ( IPEndPoint contactEndPoint, string branch ) : NUnit.Framework
SIPViaHeader ( IPEndPoint contactEndPoint, string branch, SIPProtocolsEnum protocol ) : NUnit.Framework
SIPViaHeader ( SIPEndPoint localEndPoint, string branch ) : NUnit.Framework
SIPViaHeader ( string contactIPAddress, int contactPort, string branch ) : NUnit.Framework
SIPViaHeader ( string contactIPAddress, int contactPort, string branch, SIPProtocolsEnum protocol ) : NUnit.Framework
SIPViaHeader ( string contactEndPoint, string branch ) : NUnit.Framework
ToString ( ) : string

Method Details

ParseSIPViaHeader() public static méthode

public static ParseSIPViaHeader ( string viaHeaderStr ) : SIPSorcery.SIP.SIPViaHeader[]
viaHeaderStr string
Résultat SIPSorcery.SIP.SIPViaHeader[]

SIPViaHeader() public méthode

public SIPViaHeader ( ) : NUnit.Framework
Résultat NUnit.Framework

SIPViaHeader() public méthode

public SIPViaHeader ( IPEndPoint contactEndPoint, string branch ) : NUnit.Framework
contactEndPoint System.Net.IPEndPoint
branch string
Résultat NUnit.Framework

SIPViaHeader() public méthode

public SIPViaHeader ( IPEndPoint contactEndPoint, string branch, SIPProtocolsEnum protocol ) : NUnit.Framework
contactEndPoint System.Net.IPEndPoint
branch string
protocol SIPProtocolsEnum
Résultat NUnit.Framework

SIPViaHeader() public méthode

public SIPViaHeader ( SIPEndPoint localEndPoint, string branch ) : NUnit.Framework
localEndPoint SIPEndPoint
branch string
Résultat NUnit.Framework

SIPViaHeader() public méthode

public SIPViaHeader ( string contactIPAddress, int contactPort, string branch ) : NUnit.Framework
contactIPAddress string
contactPort int
branch string
Résultat NUnit.Framework

SIPViaHeader() public méthode

public SIPViaHeader ( string contactIPAddress, int contactPort, string branch, SIPProtocolsEnum protocol ) : NUnit.Framework
contactIPAddress string
contactPort int
branch string
protocol SIPProtocolsEnum
Résultat NUnit.Framework

SIPViaHeader() public méthode

public SIPViaHeader ( string contactEndPoint, string branch ) : NUnit.Framework
contactEndPoint string
branch string
Résultat NUnit.Framework

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

Host public_oe property

public string Host
Résultat string

Port public_oe property

public int Port
Résultat int

Transport public_oe property

public SIPProtocolsEnum Transport
Résultat SIPProtocolsEnum

Version public_oe property

public string Version
Résultat string

ViaParameters public_oe property

public SIPParameters,SIPSorcery.SIP ViaParameters
Résultat SIPParameters