Class SIPReplacesParameter
Class for the Replaces parameter of a Replaces header field. See RFC 3891. This class represents the value parameter of the header.
Inherited Members
Namespace: SipLib.Core
Assembly: SipLib.dll
Syntax
public class SIPReplacesParameter
Constructors
| Edit this page View SourceSIPReplacesParameter()
Default constructor
Declaration
public SIPReplacesParameter()
SIPReplacesParameter(string, string, string)
Constructor.
Declaration
public SIPReplacesParameter(string callID, string toTag, string fromTag)
Parameters
| Type | Name | Description |
|---|---|---|
| string | callID | SIP Call-ID of the call dialog being replaced |
| string | toTag | Tag from the From header of the call being replaced |
| string | fromTag | Tag from the From header of the call being replaced |
Fields
| Edit this page View SourceCallID
SIP Call-ID of the call dialog being replaced
Declaration
public string CallID
Field Value
| Type | Description |
|---|---|
| string |
EarlyOnly
If true, then the early-only flag is present. If true for a UAS then the UAS must reject the INVITE request that contains a Replaces header with a 486 Busy Here response if the INVITE dialog is already established. A UAC can set this flag to true if it only wants to replace an early dialog. The default is false.
Declaration
public bool EarlyOnly
Field Value
| Type | Description |
|---|---|
| bool |
FromTag
Tag from the From header of the call being replaced
Declaration
public string FromTag
Field Value
| Type | Description |
|---|---|
| string |
ToTag
Tag from the To header of the call dialog being replaced
Declaration
public string ToTag
Field Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceParse(string)
Parses a string into a SIPReplacesParameter
Declaration
public static SIPReplacesParameter? Parse(string replaces)
Parameters
| Type | Name | Description |
|---|---|---|
| string | replaces | Input string |
Returns
| Type | Description |
|---|---|
| SIPReplacesParameter | Returns a new SIPReplacesParameter or null if an error occurred |
ToString()
Converts this object to a string to use as the value of a Replaces SIP header.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | Returns a formatted string for the Replaces header value. |