CallMessageData Class
Represents protocol requests and responses relevant to the operation that completed.
Inheritance Hierarchy
System.Object
Microsoft.Rtc.Collaboration.CallMessageData
Namespace: Microsoft.Rtc.Collaboration
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Class CallMessageData
'Usage
Dim instance As CallMessageData
public class CallMessageData
Remarks
The SipMessageData property contains more detailed information about the SIP message.
The CallMessageData class does additional parsing of the SIP message for convenience of the application.
Examples
The following example shows how to use CallMessageData to get specific headers from the response to the INVITE request:
C# Using CallMessageData
CallMessageData messageData = call.EndEstablish(result);
// Call succeeded. We can pull out headers we are looking for.
foreach (SignalingHeader h in messageData.MessageData.SignalingHeaders)
{
if ((h.Name.Equals("Supported", StringComparison.OrdinalIgnoreCase) ||
h.Name.Equals("Required", StringComparison.OrdinalIgnoreCase)) &&
"x-customfeature".Equals(h.GetValue(), StringComparison.OrdinalIgnoreCase))
{
Console.WriteLine("Remote supports x-customfeature.");
break;
}
}
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.