Genesys CTI User Forum > Genesys-related Development
IWS broadcast message
cavagnaro:
So...enable indexes in UCS? How? Read docs
David Alvarez:
Hi Rajnish@49
You have send the event to TServerProtocol.
IMessage response = tserverProtocol.Request(Event);
Also, to configure parameters to send the message is in the KeyValueCollection, for a specific agent, all or agent group, you must send the attach data what you configure in the Bussiness Attribute.
You can read this post to view the correctly configuration.
https://genesyspartner.force.com/customercare/community#!/feedtype=SINGLE_ARTICLE_SEARCH_RESULT&id=kA0U00000004TXL
Rajnish@49:
Hello David,
Thanks a ton for your extended interest in helping me.
i have modified my code as suggested by you. Please find below the code.
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("IWS_Subject", "Test");
filterkey.Add("IWS_Priority", "Low");
filterkey.Add("IWS_Message", textBox1.Text);
filterkey.Add("IWS_Date", "Dec-7");
filterkey.Add("IWS_Topic", "Agent Shrikant");
filterkey.Add("IWS_Sender", "Mr X");
filterkey.Add("IWS_MessageType", "Notification");
CP.UserData = filterkey;
RequestDistributeUserEvent Event = RequestDistributeUserEvent.Create("Broadcast_DN", CP);
IMessage response = tserverProtocol.Request(Event);
if (response == null)
{
MessageBox.Show("Message not sent");
}
else
{
MessageBox.Show("Message Sent");
}
I can see the message "Message Sent", means there response is not null. but still i do not get any message on IWS. I tried going through the logs. I can see the event:-RequestDistributeUserEvent with the messages i have configured. and same is communicated to the other applications also. but its not reaching IWS agent. please find below the log snippet:-
01:02:04.262 Trc 04541 RequestDistributeUserEvent received from [520] (000000ab anonymousTServerClient 10.96.96.212:55763)
message RequestDistributeUserEvent
AttributeReferenceID 1
AttributeUserData [160] 00 07 00 00..
'IWS_Subject' 'Test'
'IWS_Priority' 'Low'
'IWS_Message' 'Hello'
'IWS_Date' 'Dec-7'
'IWS_Topic' 'Agent Shrikant'
'IWS_Sender' 'Mr X'
'IWS_MessageType' 'Notification'
AttributeThisDN 'Broadcast_DN'
AttributeCommunicationDN 'Broadcast_DN'
01:02:04.262 Int 04543 Interaction message "RequestDistributeUserEvent" received from 520 ("anonymousTServerClient")
@01:02:04.2620 [ISCC] Client location anonymousTServerClient:000000ab@ added
@01:02:04.2620 [0] 8.1.000.21 send_to_client: message EventACK
AttributeEventSequenceNumber 0000000000001547
AttributeTimeinuSecs 262000
AttributeTimeinSecs 1452232924 (01:02:04)
AttributeReferenceID 1
AttributeThisDN 'Broadcast_DN'
AttributeUserEvent RequestDistributeUserEvent
01:02:04.262 Trc 04542 EventACK sent to [520] (000000ab anonymousTServerClient 10.96.96.212:55763)
@01:02:04.2620 [0] 8.1.000.21 distribute_user_event: message EventUserEvent
AttributeEventSequenceNumber 0000000000001548
AttributeTimeinuSecs 262000
AttributeTimeinSecs 1452232924 (01:02:04)
[glow=red,2,300][glow=red,2,300] AttributeUserEvent EventUserEvent
AttributeThisDN 'Broadcast_DN'
AttributeUserData [160] 00 07 00 00..
'IWS_Subject' 'Test'
'IWS_Priority' 'Low'
'IWS_Message' 'Hello'
'IWS_Date' 'Dec-7'
'IWS_Topic' 'Agent Shrikant'
'IWS_Sender' 'Mr X'
'IWS_MessageType' 'Notification'[/glow][/glow]
AttributeReferenceID 1
01:02:04.262 Trc 04542 EventUserEvent sent to [508] (000000a7 IWS_Dev_shrikant.shevade 10.96.96.212:55725)
01:02:04.262 Trc 04542 EventUserEvent sent to [516] (00000035 StatServer_800 10.9.104.21:3833)
01:02:04.262 Trc 04542 EventUserEvent sent to [500] (00000009 WFM_SS 10.9.116.60:63723)
01:02:04.262 Trc 04542 EventUserEvent sent to [492] (00000007 D_RoutingStatServer 10.9.111.80:53231)
01:02:04.262 Trc 04542 EventUserEvent sent to [488] (00000006 CCON 10.9.116.52:63059)
01:02:04.262 Trc 04542 EventUserEvent sent to [484] (00000005 D_RoutingStatServer_Backup 10.9.111.81:56020)
01:02:04.262 Trc 04542 EventUserEvent sent to [480] (00000004 D_Reporting_StatServer 10.9.116.52:63057)
Request your suggestion.
Thanks,
Rajnish
Rajnish@49:
Hello David,
Does this business attribute is same as the IWS_Topic? As per my understanding 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("IWS_Subject", "Test");
filterkey.Add("IWS_Priority", "Low");
filterkey.Add("IWS_Message", textBox1.Text);
filterkey.Add("IWS_Date", "Dec-7");
[glow=red,2,300]filterkey.Add("IWS_Topic", "BroadcastMessage");[/glow]
filterkey.Add("IWS_Sender", "Mr X");
filterkey.Add("IWS_MessageType", "Notification");
CP.UserData = filterkey;
RequestDistributeUserEvent Event = RequestDistributeUserEvent.Create("Broadcast_DN", CP);
IMessage response = tserverProtocol.Request(Event);
I have also set broadcast.value-business-attribute=BroadcastMessage in iWS options and broadcast.subscribed.topics=All,$Agent$,$AgentGroup$,$Roles$. I can see in the T-server logs that message is sent to IWS_Dev_UserName, but no luck on IWS message window. Could you please help me with trick or some steps what i am missing in this application.
Thanks,
Rajnish
David Alvarez:
Hello Rajnish,
In the BA IWS_Topic, you may configure person's group to send the message (All, TestAgentGroup, TestAgent, etc).
Also, in the IWS_Date, you must send the date in special format:
filterkey.Add("IWS_Date", DateTime.Now.ToUniversalTime().ToString());
Or at least, so worked to me.
Regards.
David
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version