简体   繁体   English

使用asterisk-java获取星号环组

[英]Obtaining asterisk ring groups with asterisk-java

We are developing an asterisk PBX based application that consist of 3 parts: front end, backend, and asterisk server that handles calls, voicemails, ring groups etc. We managed to integrate asterisk-java library and now I wonder if it is possible to obtain the ring groups we defined in extensions.conf using this library. 我们正在开发一个基于星号PBX的应用程序,该应用程序由3个部分组成:前端,后端和处理呼叫,语音邮件,振铃组等的星号服务器。我们设法集成了asterisk-java库,现在我想知道是否有可能获得使用该库在extensions.conf定义的环组。 I went through the classes and I did not find anything related to this. 我上过课,但没有找到与此有关的任何内容。

There are no way do that in general way 根本无法做到这一点

Only "real" way is do asterisk "COMMAND dialplan show" via AMI and parse dialplan 仅通过AMI进行星号“ COMMAND拨号计划显示”并解析拨号计划是“真实”方式

But in most project it done via versa: dialplan holded in database where you can easy see ringgroups and extensions.conf generated when changed or do lookup in database. 但是在大多数项目中,它都是通过以下方式完成的:数据库中保存了Dialplan,您可以在其中轻松查看更改时生成的ringgroups和extensions.conf或在数据库中进行查找。

If you are starting off with a new project, you might consider using ARI instead and create ring-groups programmatically. 如果您从一个新项目开始,则可以考虑改用ARI,并以编程方式创建环组。 There is a good ARI interface for Java and it's not that hard to use. Java有一个很好的ARI接口,使用起来并不难。

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

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