Author Topic: Interaction Server Login Request Sequence  (Read 10569 times)

Offline rajkishor09

  • Newbie
  • *
  • Posts: 40
  • Karma: 0
Interaction Server Login Request Sequence
« on: April 15, 2015, 01:43:37 PM »
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 [b]EventInvite[/b] event on application when Customer is ready to chat. Any Idea what I missed?

First I am logging into Interaction server following below sequence
[list type=decimal]
[li]InteractionServerProtocol.Open[/li]
[li]RequestAgentLogin[/li]
[li]RequestAddMedia[/li]
[/list]
Then I log in chat server with below sequence. Still no [b]EventInvite[/b]
[list type=decimal]
[li]BasicChatProtocol.Open[/li]
[li]RequestRegister[/li]
[/list]
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?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Interaction Server Login Request Sequence
« Reply #1 on: April 16, 2015, 10:31:22 AM »
From my point of view, the right order is:

[list type=decimal]
[li]Open Connection[/li]
[li]Register client[/li]
[li]Login agent[/li]
[li]Add media[/li]
[li]Switch media status to the ready[/li]
[li]Request join[/li]
[/list]
« Last Edit: April 16, 2015, 12:33:42 PM by Kubig »

Offline rajkishor09

  • Newbie
  • *
  • Posts: 40
  • Karma: 0
Re: Interaction Server Login Request Sequence
« Reply #2 on: April 17, 2015, 01:03:06 PM »
I tried to follow your sequence but I am getting below error when I am doing RegisterClient

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

Log says

[code]
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"
[/code]

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Interaction Server Login Request Sequence
« Reply #3 on: April 17, 2015, 02:52:34 PM »
You have posted you was successful -> http://www.sggu.com/smf/index.php/topic,8797.0.html

Offline rajkishor09

  • Newbie
  • *
  • Posts: 40
  • Karma: 0
Re: Interaction Server Login Request Sequence
« Reply #4 on: April 17, 2015, 02:59:27 PM »
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?

Offline gstkein

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 4
Re: Interaction Server Login Request Sequence
« Reply #5 on: April 17, 2015, 06:08:17 PM »
I do for 8.2

RequestAgentLogin
RequestAddMedia

Then RequestCancelNotReadyForMedia
and finally RequestChangeMediaStateReason: 

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

Offline gstkein

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 4
Re: Interaction Server Login Request Sequence
« Reply #6 on: April 17, 2015, 06:22:48 PM »
I register to BasicChat after receiving the EventInvite

Offline rajkishor09

  • Newbie
  • *
  • Posts: 40
  • Karma: 0
Re: Interaction Server Login Request Sequence
« Reply #7 on: April 20, 2015, 07:15:16 AM »
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.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Interaction Server Login Request Sequence
« Reply #8 on: April 20, 2015, 07:48:00 AM »
Use standard application (like IWS, GAD or something like that) and check the event-model and follow it within your code.

Offline gstkein

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 4
Re: Interaction Server Login Request Sequence
« Reply #9 on: April 20, 2015, 06:44:01 PM »
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?

Offline rajkishor09

  • Newbie
  • *
  • Posts: 40
  • Karma: 0
Re: Interaction Server Login Request Sequence
« Reply #10 on: April 21, 2015, 09:12:01 AM »
Yes Its working with IWS, totally confused here  :o

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Interaction Server Login Request Sequence
« Reply #11 on: April 21, 2015, 09:15:18 AM »
As I wrote, check the event-model order and use it within your code/app.

Offline gstkein

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 4
Re: Interaction Server Login Request Sequence
« Reply #12 on: April 23, 2015, 03:42:05 PM »
Are we allowed to post old genesys code samples in here?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Interaction Server Login Request Sequence
« Reply #13 on: April 23, 2015, 04:14:46 PM »
Don't see any reason why not. If G complains about CR we will remove the code then.

Offline gstkein

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 4
Re: Interaction Server Login Request Sequence
« Reply #14 on: April 27, 2015, 04:48:05 PM »
Here´s an old geneys email client example:

[url=https://mega.co.nz/#!ZwhwBbqL!ZP9qC9bV5TmcwuXiQ148b0qiKSXA3gz10B01vqSNtiA]https://mega.co.nz/#!ZwhwBbqL!ZP9qC9bV5TmcwuXiQ148b0qiKSXA3gz10B01vqSNtiA[/url]

Please erase this post if it is not appropiate.