Genesys CTI User Forum > Genesys-related Development

How to logout agents from chat/email channels remotely?

<< < (2/3) > >>

oceanblue:
[quote author=hsujdik link=topic=11848.msg53387#msg53387 date=1600888093]
[quote author=hsujdik link=topic=11848.msg53375#msg53375 date=1600636667]
Check if those links can help you:
https://docs.genesys.com/Documentation/IW/latest/Help/Team_Lead#scrollNav-7
https://docs.genesys.com/Documentation/IW/latest/Dep/EnableTeamLead#scrollNav-3
[/quote]

This feature of WDE uses Genesyslab.Platform.OpenMedia.Protocols.InteractionServer.Esp.EspRequest3rdServer to logout other agents. Perhaps you can try to replicate it.

'EspRequest3rdServer' ('500')
message attributes:
Request [bstr]  = KVList:
'AppType' [int] = 111
'Service' [str] = "ResourceManagement"
'Method' [str] = "ForceLogout"
'Parameters' [lst] = KVList:
'Tenant' [int] = 101 <--- Tenant DBID
'Agent' [str] = "Agent_To_Be_Logged_Out"
'Place' [str] = "Place_To_Be_Logged_Out_From"
[/quote]


Thanks so much @hsujdik for this wonderful idea. I never thought about it. Will definitely give it a try.

cheers,

oceanblue:
[quote author=marmota link=topic=11848.msg53404#msg53404 date=1601375393]
Hi! We use GMS API to log agent out remotely. But we use WWE hence not sure if it will work with WDE logged agents.
[/quote]

Hi @marmota, WWE/WDE shouldn't make a difference as the logins are controlled by the CTI/Multimedia app components. Were you able to logout agents off of the e-Services channels using the API? Do you mind sharing the API request that you use for this.

Thanks,

hsujdik:
[quote author=oceanblue link=topic=11848.msg53523#msg53523 date=1605105300]
[quote author=hsujdik link=topic=11848.msg53387#msg53387 date=1600888093]
[quote author=hsujdik link=topic=11848.msg53375#msg53375 date=1600636667]
Check if those links can help you:
https://docs.genesys.com/Documentation/IW/latest/Help/Team_Lead#scrollNav-7
https://docs.genesys.com/Documentation/IW/latest/Dep/EnableTeamLead#scrollNav-3
[/quote]

This feature of WDE uses Genesyslab.Platform.OpenMedia.Protocols.InteractionServer.Esp.EspRequest3rdServer to logout other agents. Perhaps you can try to replicate it.

'EspRequest3rdServer' ('500')
message attributes:
Request [bstr]  = KVList:
'AppType' [int] = 111
'Service' [str] = "ResourceManagement"
'Method' [str] = "ForceLogout"
'Parameters' [lst] = KVList:
'Tenant' [int] = 101 <--- Tenant DBID
'Agent' [str] = "Agent_To_Be_Logged_Out"
'Place' [str] = "Place_To_Be_Logged_Out_From"
[/quote]


Thanks so much @hsujdik for this wonderful idea. I never thought about it. Will definitely give it a try.

cheers,
[/quote]

Just out of curiosity, did you manage to replicate that?

marmota:
[quote author=oceanblue link=topic=11848.msg53524#msg53524 date=1605105767]
[quote author=marmota link=topic=11848.msg53404#msg53404 date=1601375393]
Hi! We use GMS API to log agent out remotely. But we use WWE hence not sure if it will work with WDE logged agents.
[/quote]

Hi @marmota, WWE/WDE shouldn't make a difference as the logins are controlled by the CTI/Multimedia app components. Were you able to logout agents off of the e-Services channels using the API? Do you mind sharing the API request that you use for this.

Thanks,
[/quote]

Hi!

It seems I was not quite correct saying we log agents out with API. What we do is logging in and chaning status to Ready/NotReady:

Log in:
GET http://SERVER_NAME/api/v2/me/
with Header Content-Type: application/json
and Basic Authorization

Change Status:
POST http://SERVER_NAME/api/v2/me/channels/voice
with same Headers and Body: {"operationName":"Ready"}

Documentation says we can log agent out the same way we log in but with POST instead of GET. But it doesn't work at my installation for some reason...

Here it comes:
https://docs.genesys.com/Documentation/CR/latest/API/Login

If anybody did it with loggin out I'd be happy to hear =)

marmota:
It seems to work =)

Need to add body to the POST-request:

{"operationName": "EndContactCenterSession"}

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version