Interaction Server Login Request Sequence

I am trying to built chat app and following is my Request sequence to login to Interaction Server. I am able to login successfully but I am not getting EventInvite event on application when Customer is ready to chat. Any Idea what I missed?

First I am logging into Interaction server following below sequence

[ol]- InteractionServerProtocol.Open

  • RequestAgentLogin
  • RequestAddMedia[/ol]

Then I log in chat server with below sequence. Still no EventInvite

[ol]- BasicChatProtocol.Open

  • RequestRegister[/ol]

If I log into IWS then I am getting that Customer chat request and those two are able to exchange messages. So problem is in Interaction or BasicChat side. Any request is missing?

From my point of view, the right order is:

[ol]- Open Connection

  • Register client
  • Login agent
  • Add media
  • Switch media status to the ready
  • Request join[/ol]

I tried to follow your sequence but I am getting below error when I am doing RegisterClient


'EventError' ('126')
message attributes:
attr_ref_id [int] = 2
attr_error_code [int] = 4
attr_error_desc [str] = "Unsupported protocol element"

Log says


18:26:06.781 Trc 26015 Received message 'RequestRegisterClient' ('100') from client 'BasicChatApp' - Agent application:16:2628, message attributes:
	attr_client_name [str] = "Place_SV_MCR"
	attr_client_type [int] = 2 [AGENT APPLICATION]
	attr_ref_id [int] = 2

18:26:06.781 Std 26006 Unsupported protocol message (100) received from client agent:16:2628
18:26:06.781 Trc 26016 Sending message 'EventError' ('126') to client 'BasicChatApp' - Agent application:16:2628, message attributes:
	attr_ref_id [int] = 2
	attr_error_code [int] = 4
	attr_error_desc [str] = "Unsupported protocol element"

You have posted you was successful → http://www.sggu.com/smf/index.php/topic,8797.0.html

If I skip Register Client request then I am able to login. But EventInvite is not firing. Is Register Client is required to get EventInvite?

I do for 8.2

RequestAgentLogin
RequestAddMedia

Then RequestCancelNotReadyForMedia
and finally RequestChangeMediaStateReason:

            requestChangeMediaStateReason.setMediaTypeName(mediaType);
	ReasonInfo reasonInfo = ReasonInfo.create("","",0);
	requestChangeMediaStateReason.setReason(reasonInfo);

I register to BasicChat after receiving the EventInvite

Hi gstkein,

I followed your code sequence, there was no error from Interaction Server but there was no EventInvite also. Any further help is appreciated.

Use standard application (like IWS, GAD or something like that) and check the event-model and follow it within your code.

Are the capacity rules ok? Is the agent assigned to the proper groups or has the needed skills?

Does it work with GAD or IWS?

Yes Its working with IWS, totally confused here :o

As I wrote, check the event-model order and use it within your code/app.

Are we allowed to post old genesys code samples in here?

Don’t see any reason why not. If G complains about CR we will remove the code then.

Here´s an old geneys email client example:

https://mega.co.nz/#!ZwhwBbqL!ZP9qC9bV5TmcwuXiQ148b0qiKSXA3gz10B01vqSNtiA

Please erase this post if it is not appropiate.

thanks gstkein, I will check your code and revert.

I hope it works, let me know if you figure out what was happening

The requirements for getting an EventInvite should be the same for all media.

Here I´ve found the CHAT client example

https://mega.co.nz/#!c8ZQ1SrY!EiXrOYRIAE6U4oHxXjg_t3IQpUdQ5OGogtE8LNeA48s

Chat sample is working fine, thanks a lot. ;D