Show / Hide Table of Contents

Class SIPViaSet

Inheritance
System.Object
SIPViaSet
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SIPSorcery.SIP
Assembly: SIPSorcery.dll
Syntax
public class SIPViaSet

Properties

| Improve this Doc View Source

BottomViaHeader

Declaration
public SIPViaHeader BottomViaHeader { get; }
Property Value
Type Description
SIPViaHeader
| Improve this Doc View Source

Length

Declaration
public int Length { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

TopViaHeader

Declaration
public SIPViaHeader TopViaHeader { get; }
Property Value
Type Description
SIPViaHeader
| Improve this Doc View Source

Via

Declaration
public List<SIPViaHeader> Via { get; set; }
Property Value
Type Description
System.Collections.Generic.List<SIPViaHeader>

Methods

| Improve this Doc View Source

AddBottomViaHeader(SIPViaHeader)

Declaration
public void AddBottomViaHeader(SIPViaHeader viaHeader)
Parameters
Type Name Description
SIPViaHeader viaHeader
| Improve this Doc View Source

PopTopViaHeader()

Pops top Via header off the array.

Declaration
public SIPViaHeader PopTopViaHeader()
Returns
Type Description
SIPViaHeader
| Improve this Doc View Source

PushViaHeader(SIPViaHeader)

Pushes a new Via header onto the top of the array.

Declaration
public void PushViaHeader(SIPViaHeader viaHeader)
Parameters
Type Name Description
SIPViaHeader viaHeader
| Improve this Doc View Source

ToString()

Declaration
public string ToString()
Returns
Type Description
System.String
| Improve this Doc View Source

UpateTopViaHeader(IPEndPoint)

Updates the topmost Via header by setting the received and rport parameters to the IP address and port the request came from.

Declaration
public void UpateTopViaHeader(IPEndPoint msgRcvdEndPoint)
Parameters
Type Name Description
System.Net.IPEndPoint msgRcvdEndPoint

The remote endpoint the request was received from.

Remarks

The setting of the received parameter is documented in RFC3261 section 18.2.1 and in RFC3581 section 4. RFC3581 states that the received parameter value must be set even if it's the same as the address in the sent from field. The setting of the rport parameter is documented in RFC3581 section 4. An attempt was made to comply with the RFC3581 standard and only set the rport parameter if it was included by the client user agent however in the wild there are too many user agents that are behind symmetric NATs not setting an empty rport and if it's not added then they will not be able to communicate.

Extension Methods

JSONWriter.ToJson(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX