DiagnosticHeader Class

Definition

Represents the diagnostic information received as ms-diagnostic header in the response.

public ref class DiagnosticHeader
public class DiagnosticHeader
type DiagnosticHeader = class
Public Class DiagnosticHeader
Inheritance
DiagnosticHeader

Constructors

DiagnosticHeader(SignalingHeader)

Initialize a new instance of DiagnosticHeader from a given signalingHeader.

Properties

Attributes

Gets the collection for name-value pairs of the header excluding the required attributes "source" and "reason".

ErrorCode

Gets the integer representing the "ErrorId" part of the ms-diagnostic header.

HeaderName

Name of the header, it will be either "ms-diagnostics" or "ms-diagnostics-public".

Reason

Gets the string representing the value of the reason attribute specified in ms-diagnostic header.

Source

Gets the string representing the value of the source attribute specified in ms-diagnostic header.

SubErrorWarning

Gets the sub-error warning code as a string. For example, if the warning code is NNNN.XXXX.YYYY, then the value XXXX.YYYY is returned.

Methods

GetValue()

Returns the string representation of value of diagnostic header.

ParseDiagnosticHeader(IEnumerable<SignalingHeader>)

Gets the parsed diagnostic header from a list of signaling headers.

ParseDiagnosticHeader(SipMessageData)

Gets the parsed diagnostic header from a response.

ToString()

Returns the string representation of dignostic header contains only error code, source and reason.

Applies to