Author Topic: IWS broadcast message  (Read 10291 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: IWS broadcast message
« Reply #15 on: January 21, 2016, 05:53:08 PM »
Sorry but no, Broadcast is a SIP message, therefore IXN has no hability to send those messages. See how important is to read documentation? Is it on paragraph one even or in architecture or many places where it explains its SIP origins.

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: IWS broadcast message
« Reply #16 on: January 25, 2016, 05:00:41 PM »
If you are creating a connection to IxNServer you would need to set the clientType

IxnProtocol.ClientType

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: IWS broadcast message
« Reply #17 on: January 25, 2016, 08:22:00 PM »
[quote author=PeteHoyle link=topic=9295.msg42071#msg42071 date=1453741241]
If you are creating a connection to IxNServer you would need to set the clientType

IxnProtocol.ClientType
[/quote]

What do you mean Pete? IXN can't do message broadcasting, that is a SIP Server feature only, at least up to today. Genesys is possible planning a feature on future IXN versions but not possible today

Offline Grum

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: IWS broadcast message
« Reply #18 on: July 12, 2017, 01:45:29 PM »
[quote author=Rajnish@49 link=topic=9295.msg42018#msg42018 date=1453322678]
Hello David,

Can we broadcast message using interaction server? We can create one Broadcast_DN as communication DN on multimedia switch and try to broadacst.


When i am trying to connect to interaction server using below code

InteractionServerProtocol IxnProtocol = new InteractionServerProtocol(new Endpoint("InteractionServer_802", "frd03gys02", 7070));
                IxnProtocol.Open();

It throws error "Unknown Client Type"
Am i missing some trick?

Thanks,
Rajnish
[/quote]

Hello Rajnish

If you want to send and recieve messages between agents using only Interaction Server (without SIP server and broadcast messaging) you should use RequestSuscribe and RequestPublish.
For example,

suscribe for messages:

[code]
KeyValueCollection topics = new KeyValueCollection();
topics.addString("101@agent", "1");
RequestSubscribe reqSubscribe = RequestSubscribe.create();
reqSubscribe.setPsTopicList(topics);
Message msg = interactionServerProtocol.request(reqSubscribe);
[/code]
msg will be EventAck if everything is ok

publish messages:

[code]
RequestPublish reqPublish = RequestPublish.create();
reqPublish.setPsTopic("101@agent");
reqPublish.setDistributeToOriginator(true);
Message msg1 = interactionServerProtocol.request(reqPublish);
[/code]

msg1 will be EventAck if everything is ok

If you suscribed correctly then you would recieve EventUserEvent with attributes send in RequestPublish.
-----
The main idea is that Interaction server can not perform RequestDistributeUserEvent (no ability in SDK) through some dn (like broadcast dn in sip server), so there is another mechanism in Interaction Server described above.

Disadvantage of this method is that you have to develop both of parts - "sending messages" and "recieving messsages". Instead of develop only sending messages part customization for WDE in case of using out-of-box broadcast messages functionality through SIP server.