Class SIPRoute
The SIPRoute class is used to represent both Route and Record-Route headers.
Inherited Members
Namespace: SipLib.Core
Assembly: SipLib.dll
Syntax
public class SIPRoute
Remarks
The Route and Record-Route headers only have parameters, no headers. Parameters of from ...;name=value;name2=value2. There are no specific parameters.
Constructors
| Edit this page View SourceSIPRoute(SIPURI)
Constructor
Declaration
public SIPRoute(SIPURI uri)
Parameters
Type | Name | Description |
---|---|---|
SIPURI | uri | SIPURI to build the Route header from |
SIPRoute(SIPURI, bool)
Constructor
Declaration
public SIPRoute(SIPURI uri, bool looseRouter)
Parameters
Type | Name | Description |
---|---|---|
SIPURI | uri | SIPURI to build the Route header from |
bool | looseRouter | Should always be true |
SIPRoute(string)
Constructor
Declaration
public SIPRoute(string host)
Parameters
Type | Name | Description |
---|---|---|
string | host | Name of th host |
SIPRoute(string, bool)
Constructor
Declaration
public SIPRoute(string host, bool looseRouter)
Parameters
Type | Name | Description |
---|---|---|
string | host | |
bool | looseRouter |
Properties
| Edit this page View SourceHost
Gets or set the host portion of the URI
Declaration
public string? Host { get; set; }
Property Value
Type | Description |
---|---|
string |
IsStrictRouter
Returns true if using strict routing or false if using loose routing.
Declaration
public bool IsStrictRouter { get; set; }
Property Value
Type | Description |
---|---|
bool |
URI
Gets the SIPURI from the Route header
Declaration
public SIPURI? URI { get; }
Property Value
Type | Description |
---|---|
SIPURI |
Methods
| Edit this page View SourceParseSIPRoute(string)
Parses a string into a SIPRoute header object.
Declaration
public static SIPRoute ParseSIPRoute(string route)
Parameters
Type | Name | Description |
---|---|---|
string | route | Input string to parse |
Returns
Type | Description |
---|---|
SIPRoute | Returns a new SIPRoute object |
ToSIPEndPoint()
Gets the SIPEndPoint of this object
Declaration
public SIPEndPoint ToSIPEndPoint()
Returns
Type | Description |
---|---|
SIPEndPoint |
ToString()
Converts this object into a Route header string value
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |