After a conversation is created, you can add instant messaging (IM) to the conversation by establishing an IM call.

The remote participant for the call is inferred from the conversation type. For a two-party conversation, the remote participant is the remote client. For a conference conversation, the remote participant is an IM Multipoint Control Unit (IM MCU).

The associated conversation will monitor and manage the call, including relaying state information (a conversation is the agglomeration of the associated call states) and providing a handle to terminate the associated calls.

The following code demonstrates how to add an IM call to a conversation.

Copy Code
InstantMessagingCall imCall = new