Asterisk

系统教程 行业动态 更新时间:2024-06-14 16:59:47
Asterisk-java发起了call的billsec和其他数据(Asterisk-java originated call's billsec and other data)

我可以从响应事件中获取billsec或始发呼叫的持续时间吗? 我需要始发呼叫最终数据。

OriginateAction originateAction = new OriginateAction(); originateAction.setChannel("SIP/xxxxxx"); originateAction.setContext("xxxxx"); originateAction.setExten("xxxxx"); originateAction.setCallerId("xxxxx"); originateAction.setAsync(Boolean.TRUE); originateAction.setPriority(1); managerConnection.sendAction(new StatusAction()); ManagerResponse mr = managerConnection.sendAction(originateAction); //ResponseEvents mr = managerConnection.sendEventGeneratingAction(originateAction); System.out.println(mr.getResponse()); int billsec = ???

Can I take billsec or duration of originated call from response event? I need originated calls final data.

OriginateAction originateAction = new OriginateAction(); originateAction.setChannel("SIP/xxxxxx"); originateAction.setContext("xxxxx"); originateAction.setExten("xxxxx"); originateAction.setCallerId("xxxxx"); originateAction.setAsync(Boolean.TRUE); originateAction.setPriority(1); managerConnection.sendAction(new StatusAction()); ManagerResponse mr = managerConnection.sendAction(originateAction); //ResponseEvents mr = managerConnection.sendEventGeneratingAction(originateAction); System.out.println(mr.getResponse()); int billsec = ???

最满意答案

您需要在拨号方案中标记CDR(用户字段)或CDR(帐户代码)

之后,您可以根据请求在mysql或其他数据库中收集cdr。

You need mark CDR(userfield) or CDR(accountcode) in dialplan

After that you can collect cdr in mysql or other database on your request.

更多推荐

本文发布于:2023-04-17 08:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/1bb9bc4f4e5ec161bd868c2e3ee3640f.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Asterisk

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!