IRTCSession2::AnswerWithSessionDescription (Windows CE 5.0)

Send Feedback

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(BSTRbstrContentType,BSTRbstrSessionDescription);

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.
  • 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.

The following table shows additional information about specific return values.

Value Meaning
RTC_E_MEDIA_ENABLED The media is not enabled.
RTC_E_INVALID_SESSION_STATE The session is not in the incoming state.

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.