" /> RequestDistributeUserEvent - Genesys CTI User Forum

Author Topic: RequestDistributeUserEvent  (Read 2291 times)

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

mzak2

  • Guest
RequestDistributeUserEvent
« on: March 12, 2019, 04:55:23 PM »
Advertisement
Hello. Does anybody know how to send messages from Workspace Desktop Environment API to TServer (like RequestDistributeUserEvent), without using Platform sdk API?
I mean, to use already opened in WDE connections: WDE <-> TServer?
Thank you.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: RequestDistributeUserEvent
« Reply #1 on: March 13, 2019, 11:45:11 AM »
You can get the responsible "module" via Unity (IoC, DI) and use this existing code instead of writing own implementation. from your topic is not clear what is your goal and what you want to exactly achieve - may be there is another "oob" way how to achieve that.

mzak2

  • Guest
Re: RequestDistributeUserEvent
« Reply #2 on: March 13, 2019, 01:07:22 PM »
The goal is to develop a custom WDE module that sends RequestDistributeUserEvent in HA environment. No problem with single TServer.
Trying to use a new WarmStandbyService(tServerProtocol) in the module according to the 'Connecting to a Server' chapter from PSDK docs does not work.
An idea was to reuse an already existing in WDE WarmStandbyService without creating a new one. Thanks.

Marked as best answer by on May 03, 2025, 01:07:44 AM

Offline Leon

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: RequestDistributeUserEvent
« Reply #3 on: March 13, 2019, 02:00:38 PM »
  • Undo Best Answer
  • You could use the IAgent using DI, IAgent contain the voice channel in the propertie FirstMediaVoice :

    [code]

    public SomeClass(IAgent agent)
    {
    if (agent.FirstMediaVoice != null)
    {
    CommonProperties userEvent = CommonProperties.Create();
    RequestDistributeUserEvent distributeUserEvent = RequestDistributeUserEvent.Create("SomeValue", userEvent);
    agent.FirstMediaVoice.Channel.Protocol.Request(distributeUserEvent);
    }
    }[/code]

    mzak2

    • Guest
    Re: RequestDistributeUserEvent
    « Reply #4 on: March 13, 2019, 03:37:59 PM »
    It works!
    Thank you very much!