" /> RequestDistributeUserEvent - Genesys CTI User Forum

Author Topic: RequestDistributeUserEvent  (Read 2284 times)

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 »
  • Best Answer
  • 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 »
  • Best Answer
  • 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.

    Offline Leon

    • Newbie
    • *
    • Posts: 8
    • Karma: 0
    Re: RequestDistributeUserEvent
    « Reply #3 on: March 13, 2019, 02:00:38 PM »
  • 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 »
  • Best Answer
  • It works!
    Thank you very much!