简体   繁体   English

星号。 我正在使用ARI收集事件,如何从头到尾将事件分组为单个客户交互?

[英]Asterisk. I'm using ARI to collect events, how do I group events into single customer interactions from start to finish?

I'm subscribed to events listed here under Event using ARI https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+REST+Data+Models#Asterisk13RESTDataModels-Event 我订阅了使用ARI https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+REST+Data+Models#Asterisk13RESTDataModels-Event在“事件”下列出的事件

I have multiple calls at the same time and because of this getting a lot of different events, how do I group these events into interactions - one interaction per one customer? 我同时有多个呼叫,并且由于此事件很多,因此如何将这些事件归类为互动-每个客户一个互动? Like a customer called one extension, then was transferred to another extension, talked there and hung up this is one interaction and at the same time another customer was calling and talked without transferring - this is a second interaction etc, so I need to generate as many interactions as there was user calls. 就像一个叫一个分机的客户,然后被转移到另一个分机,在那儿讲话并挂断,这是一个交互,同时另一个客户在不转移的情况下打电话和交谈-这是第二次交互,所以我需要生成有许多互动,因为有用户致电。

Where can I read some documentation about the order of events being generated per call or anything at all on the matter? 在哪里可以阅读有关每个调用生成的事件顺序或与此相关的所有内容的文档? I don't have access to a production asterisk, so I can't just see what events are generated and go from there. 我无权访问生产星号,所以我不能仅查看生成了什么事件并从那里去。 Right now I don't even have any idea about what events are generated when a customer calls and talks. 现在,我什至不知道客户打电话交谈时会生成什么事件。

You can parse channel's Uniqueid. 您可以解析频道的Uniqueid。 For transfer you have parse link/unlink and bridge/unbridge events, change uniqueid to new one. 要进行传输,您需要解析链接/取消链接和桥接/取消桥接事件,请将uniqueid更改为新的。

No other way. 别无退路。

Asterisk events DEPEND of asterisk version. 星号版本的星号事件DEPEND。 So best way is just dump all events and see. 因此最好的方法就是转储所有事件并查看。

You also can check CEL system. 您也可以检查CEL系统。

If grouping is the biggest pain, you can use Bridges . 如果分组是最大的麻烦,则可以使用Bridges When one customer calls, you can create a bridge and add that channel into it and link the bridgeid with the customer and all interacations/events there after could be identified using bridgeid. 当一个客户打来电话时,您可以创建一个网桥并将其添加到该通道中,然后将Bridgeid与该客户链接,然后可以使用bridgeid识别出那里的所有交互事件。 But for deleting a channel, you should also have to log the channelid as well. 但是,对于删除频道,您还应该也必须记录频道ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM