[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.