CallMessageData Class

Represents protocol requests and responses relevant to the operation that completed.

System.Object
  Microsoft.Rtc.Collaboration.CallMessageData

Namespace:  Microsoft.Rtc.Collaboration
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

public class CallMessageData

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.

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;
    }
}



Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: