IRTCSession2::AnswerWithSessionDescription

This method accepts an incoming request for a session and provides the session description with the reply. The application can call the method on any incoming session, including a session REINVITE request.

HRESULT AnswerWithSessionDescription(
  BSTR bstrContentType,
  BSTR bstrSessionDescription
);

Parameters

  • bstrContentType
    [in] The content type for the session description of the reply message. This can be the content type received from the incoming session or an entirely new content type. See the Remarks section.
  • bstrSessionDescription
    [in] The session description included in the reply. This can be the description received from the incoming session or an entirely new description.

Return Values

This method can return an RTC_E_ constant.

Remarks

This method allows applications to handle negotiations for a session. The application can choose to handle session negotiations for several reasons, for example, when it wants to include media stacks not supported by the RTC Client API.

Note   The content type specified in bstrContentType is application-specific. The application should ensure that the called party is able to decipher the content type of the session description. The request for an incoming session might fail if the application cannot decipher the content of the session description.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Uuid.lib.

See Also

IRTCSession2

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.