Hi,
You need to form the login request providing the MediaForm with the specified media type(s). The login is performed on the media that are defined in the place and specified in the types of the MediaForm.
Example:
//create agent service
IAgentService myAgentService =
myServiceFactory.createService(typeof(IAgentService), null) as
IAgentService;
// Creating an instance of MediaForm
MediaForm myMediaForm = new MediaForm();
// Defining the types of concerned media
myMediaForm.mediaTypes = new string[]{ "email", "chat" };
// perform login with the defined login properties
MediaInfoError[] errors = myAgentService.login( "agent0",
"placeForAgent0", myLoginVoiceForm, myMediaForm);
For more info consider "Agent Login" chapter in a Agent Interaction SDK Services Developer Guide. Note list of available mediaTypes: MediaType
UNKNOWN
CHAT
EMAIL
OPEN (Open media type)
COBROWSE
VOICE
Roman Tereschenko