CallMessageData Class

Definition

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

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

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


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.

Properties

AcceptedContentIds

List of accepted contentIds parsed from ms-accepted-contentIds header.

DialogContext

Dialog context of the primary session of the established call.

MessageData

Actual SipMessageData instance which is wrapped by CallMessageData instance.

Applies to