Genesys CTI User Forum > Genesys-related Development

IWS broadcast message

(1/4) > >>

Rajnish@49:
Hello All,

We planning to have a out of the box application to broadcast a message to group of agent. I tried going  through WDE development guide to create custom commands. But fail to get an sample example of using broadcast message command or how to use broadcast message protocol. So if somebody can help me with small sample code to broadcast message to communication DN subscribed by multiple agents. WDE APIs just provide class and objects details but no samples as it was provided in .NET SDK API. Request your help...

Thanks In Advance!!

David Alvarez:
Hi, i make this option, using C# and the Plattform SDK.

CommonProperties CP = CommonProperties.Create();
CP.ThisDN = BroadCastDN;
CP.UserData = info;

RequestDistributeUserEvent Event = RequestDistributeUserEvent.Create(BroadCastDN, CP);

Where info is an KeyValueCollection.

With this code, the feature runs correctly.
Regards.

Rajnish@49:
Hello David,


Thanks a lot for your advice!!

Based on your sample my code goes as below:-

TServerProtocol tserverProtocol = new TServerProtocol(new Endpoint("D_TServer_DLG_CM", "frdwgeap01d.dev.invitrogen.net", 3000));
            tserverProtocol.Open();
            MessageBox.Show("Connection Established");
            CommonProperties CP = CommonProperties.Create();
            CP.ThisDN = "Broadcast_DN";
            KeyValueCollection filterkey = new KeyValueCollection();
            filterkey.Add("UserData",textBox1.Text);
            CP.UserData = filterkey;


            RequestDistributeUserEvent Event = RequestDistributeUserEvent.Create("BroadCastDN", CP);
            MessageBox.Show("Message Sent");


Hope my above code is correct for bradcasting message to all agents who has subscribed DN:-Broadcast_DN. but its not working for me. anyway i am checking configuration on DN subscribe thing. Mean time request you to share if i am missing some steps.

Thanks in advance.

cavagnaro:
Check sip server logs and documentation
The kvp keyname is fixed

Rajnish@49:
Hello All,

I can see "RequestDistributeUserEvent receved from IWS_dev_User.Name" in the logs, but in IWS i can see message "Search in standard responses library is not available:-Appropriate indexes are disabled in universal contact server". instead of "Test Message". Request you to please help.

Thanks in advance!!

Rajnish

Navigation

[0] Message Index

[#] Next page

Go to full version