Class MsrpUri
Class for managing a MSRP URI. See Section 9 of RFC 4975.
Inherited Members
Namespace: SipLib.Msrp
Assembly: SipLib.dll
Syntax
public class MsrpUri
Constructors
| Edit this page View SourceMsrpUri()
Constructor
Declaration
public MsrpUri()
MsrpUri(SIPSchemesEnum, string, IPAddress, int)
Constructor
Declaration
public MsrpUri(SIPSchemesEnum msrpScheme, string user, IPAddress address, int port)
Parameters
Type | Name | Description |
---|---|---|
SIPSchemesEnum | msrpScheme | Must be either SIPSchemesEnum.msrp or SIPSchemesEnum.msrps |
string | user | User part of the URI. Optional. May be null. |
IPAddress | address | IP address. May be either an IPv4 or an IPv6 IP address |
int | port | Port number |
Properties
| Edit this page View SourceSessionID
Session ID portion of the MSRP URI. Required.
Declaration
public string SessionID { get; set; }
Property Value
Type | Description |
---|---|
string |
Transport
Specifies the MSRP transport protocol. Required. Must be one of: tcp, tls.
Declaration
public string Transport { get; set; }
Property Value
Type | Description |
---|---|
string |
uri
Gets or sets the authority URI portion of the MsrpUri
Declaration
public SIPURI uri { get; set; }
Property Value
Type | Description |
---|---|
SIPURI |
Methods
| Edit this page View SourceParseMsrpUri(string)
Parses a string into a MsrpUri object
Declaration
public static MsrpUri? ParseMsrpUri(string uriString)
Parameters
Type | Name | Description |
---|---|---|
string | uriString | Input string |
Returns
Type | Description |
---|---|
MsrpUri | Returns a new MsrpUri object if successful or null if the input string does not represent a valid MSRP URI |
ToString()
Converts this MSRP URI to a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |