附加备注:
呼叫详细信息:特别是我想为给定的呼叫获取AgentId
和
来自Sip服务器:我不确定Sip服务器是否是获取呼叫详细信息的最佳候选人。因此愿意接受其他建议/备选方案
发布于 2016-07-24 18:28:36
您可以构建一个监视DN操作的类。此外,根据您必须做的事情,可以查看特定的DN或所有DN。如果是关于电话的话,这是最好的方法。
首先,您必须定义一个TServerProtocol,然后必须通过主机、端口和客户端信息进行连接。
var endpoint = new Endpoint(host, port, config);
//Endpoint backupEndpoint = new Endpoint("", 0, config);
protocol = new TServerProtocol(endpoint)
{
ClientName = clientName
};
//Sync. way;
protocol.Open();
//Async way;
protocol.BeginOpen();
我总是使用异步方式来完成这个任务。我的理由是You :)您可以检测到使用SDK提供的事件打开连接的时间。
protocol.Opened += new EventHandler(OnProtocolOpened);
protocol.Closed += new EventHandler(OnProtocolClosed);
protocol.Received += new EventHandler(OnMessageReceived);
protocol.Error += new EventHandler(OnProtocolError);
这里有OnMessageReceived事件。这个魔术发生的事件。您可以跟踪所有调用事件和DN操作。如果你去genesys的支持站点。你会找到SDK参考手册的。在那本手册上,安静,容易理解,有很多关于引用和使用的信息。所以在你的情况下,你需要一个代理的电话。所以你需要EventEstablished来做这件事。你可以在你的接收事件中使用这一点;
var message = ((MessageEventArgs)e).Message;
// your event-handling code goes here
switch (message.Id)
{
case EventEstablished.MessageId:
var eventEstablished = message as EventEstablished;
var AgentID = eventEstablished.AgentID;
break;
}
通过这种用法,你可以得到很多这样的东西。就像拨号,保持呼叫入站或出站,甚至可以检测到内部呼叫,并报告genesys平台没有。
我希望这是足够清楚的。
发布于 2016-07-19 10:18:16
如果您可以访问路由策略,并且可以对其进行编辑。您可以向策略中添加一些代码,以便将所需的详细信息发送到某个web服务器(例如)或DB。在我们的策略中,我们会做这样的事情。成功的路由块作为后路由策略发送RTargetPlaceSelected和RTargetAgentSelected的值。
发布于 2019-04-15 13:02:58
试试这个:
Genesyslab.Platform.Contacts.Protocols.ContactServer.Requests.JirayuGetInteractionContent JirayuGetInteractionContent = Genesyslab.Platform.Contacts.Protocols.ContactServer.Requests.JirayuGetInteractionContent.Create(); Genesyslab.Platform.Commons.Protocols.IMessage respondingEventY = contactserverProtocol.Request(JirayuGetInteractionContent);Genesyslab.Platform.Commons.Collections.KeyValueCollection keyValueCollection = ((Genesyslab.Platform.Contacts.Protocols.ContactServer.Events.EventGetInteractionContent)respondingEventY).InteractionAttributes.AllAttributes;
https://stackoverflow.com/questions/29848589
复制相似问题