Author Topic: E-mail -Media Type in genesys  (Read 5632 times)

Gitanjali

  • Guest
E-mail -Media Type in genesys
« on: May 30, 2008, 07:27:48 AM »
Hi all,

we are trying to develop an email client in Genesys Demosrv. first we are establishing connection with Ixn Server(Interaction server) .when we add the media type email as a key value collection -for second parameter it is expecting an object in the following statement  "medialist.addObject("email",0)"  can u plz suggest and provide a solution for adding the media type.

code snippet

public boolean requestLogin(String strAgentId, String strPlaceid,
IxnSrvConnect ixnSrvConnect){
try{
KeyValueCollection medialist = new KeyValueCollection();
  [color=red] medialist.addObject("email",0);[/color]    
    InteractionServerProtocol inxProtocol = ixnSrvConnect.getinxProtocol();
RequestAgentLogin requestLogin =
            RequestAgentLogin.create(101, strPlaceid, ReasonInfo.create());
requestLogin.setAgentId(strAgentId);
    requestLogin.setMediaList(medialist);
Message message = inxProtocol.request(requestLogin);

if(message.messageId()== EventError.ID)
return false;

}catch(Exception e){
e.printStackTrace();
}


Thanks in advance


Offline mhsrinivasan

  • Newbie
  • *
  • Posts: 21
  • Karma: 1
Re: E-mail -Media Type in genesys
« Reply #1 on: April 17, 2009, 10:59:54 AM »
  • Best Answer
  • Probably, you need to check the Configuration Server

    + Resources
      + Business Attributes
          + Media Type
            + Attribute Values

    Check whether email is there?
    You can add the media list from there.

    Offline YevgeniyP

    • Jr. Member
    • **
    • Posts: 70
    • Karma: 0
    Re: E-mail -Media Type in genesys
    « Reply #2 on: April 19, 2009, 07:10:29 AM »
  • Best Answer
  • see code sample from DevZone