I have subscribed the event topics using NotificationHandler(dotnet/C#) which is not working, but other notification topics working fine like agent activity, queue observations
see the below code for event subscriptions & receive response :
var handler = new NotificationHandler();
Console.WriteLine("Challnel Id : " + handler.Channel.Id);
var IdList = new List<string>();
// Agent ID
IdList.Add("fdsafdsafdsafdsafdsafdsafdsafdsafdasfdsafd");
IdList.Add("fdsafdsafdsafdsafdsafdsafdsafdsafdasfdsafd");
AddRemoveTopics.SubscribeAgentActivityTopics(handler, IdList);
// Queue subscription
IdList = new List<string>();
IdList.Add("dsafdsafdsafdsafdsafdsafdsafdsafdasfdsafd");
IdList.Add("dsafdsafdsafdsafdsafdsafdsafdsafdasfdsafd");
IdList.Add("dsafdsafdsafdsafdsafdsafdsafdsafdasfdsafd");
AddRemoveTopics.SubscribeQueueConversationsCallTopics(handler, IdList); //Conversation call topics subscription eg: handler.AddSubscription($"v2.routing.queues.{queueid}.conversations.calls", typeof(QueueConversationCallEventTopicCallConversation));
AddRemoveTopics.SubscribeQueueObservation(handler, IdList); // Queue observations subscription eg handler.AddSubscription($"v2.analytics.queues.{queueid}.observations", typeof(StatEventQueueTopicStatsNotification));
// Handling the response
handler.NotificationReceived+= (data) =>
{
if (data.GetType() == typeof(NotificationData<AgentActivityChangedTopicAgentActivity>)
{
// working fine
}
else if (data.GetType() == typeof(NotificationData<QueueConversationCallEventTopicCallConversation>))
{
var conversation = (NotificationData<QueueConversationCallEventTopicCallConversation>)data;
// Realtime notification topics subscriptions using conversation id
if (convID != ConversationId)
{
convID = ConversationId;
handler.AddSubscription($"v2.detail.events.conversation.{ConversationId}.acw", typeof(AcwDetailEventTopicAfterCallWorkEvent));
handler.AddSubscription($"v2.detail.events.conversation.{ConversationId}.acd.start", typeof(AcdStartDetailEventTopicAcdStartEvent));
handler.AddSubscription($"v2.detail.events.conversation.{ConversationId}.acd.end", typeof(AcdEndDetailEventTopicAcdEndEvent));
handler.AddSubscription($"v2.detail.events.conversation.{ConversationId}.user.end", typeof(UserEndDetailEventTopicUserEndEvent));
handler.AddSubscription($"v2.detail.events.conversation.{ConversationId}.user.start", typeof(UserStartDetailEventTopicUserStartEvent));
handler.AddSubscription($"v2.detail.events.conversation.{ConversationId}.customer.end", typeof(CustomerEndDetailEventTopicCustomerEndEvent));
handler.AddSubscription($"v2.detail.events.conversation.{ConversationId}.customer.start", typeof(CustomerStartDetailEventTopicCustomerStartEvent));
handler.AddSubscription($"v2.detail.events.conversation.{ConversationId}.wrapup", typeof(WrapupDetailEventTopicWrapupEvent));
}
Console.WriteLine($"Conversation ConversationCallEventTopicCallConversation call: {conversation.EventBody}");
// No issue with the real time subscription & queue conversation call topic also working fine
}
else if (data.GetType() == typeof(NotificationData<AcwDetailEventTopicAfterCallWorkEvent>))
{
// Not working
}
else if (data.GetType() == typeof(NotificationData<AcdStartDetailEventTopicAcdStartEvent>))
{
// not working
}
else if (data.GetType() == typeof(NotificationData<AcdEndDetailEventTopicAcdEndEvent>))
{
// not working
}
else if (data.GetType() == typeof(NotificationData<UserEndDetailEventTopicUserEndEvent>))
{
//not working
}
else if (data.GetType() == typeof(NotificationData<UserStartDetailEventTopicUserStartEvent>))
{
// Not working
}
else if (data.GetType() == typeof(NotificationData<CustomerEndDetailEventTopicCustomerEndEvent>))
{
// Not working
}
else if (data.GetType() == typeof(NotificationData<CustomerStartDetailEventTopicCustomerStartEvent>))
{
// Not working
}
else if (data.GetType() == typeof(NotificationData<WrapupDetailEventTopicWrapupEvent>))
{
// Not working
}
};
Apricate you help:
#PlatformAPI
#PlatformSDK
------------------------------
Rajeev Gupta
------------------------------