简体   繁体   English

如何使用REST ARI和PHP在FreePBX + Asterisk上创建/删除用户

[英]How to create/remove users on FreePBX+Asterisk using REST ARI & PHP

I have FreePBX distro installed (containing FreePBX 14 • Linux 7.4 • Asterisk 13) on one machine IP: 192.168.1.129. 我在一台机器IP:192.168.1.129上安装了FreePBX发行版(包含FreePBX 14•Linux 7.4•Asterisk 13)。

I have another machine with XAMPP web server (MyWebApp) IP: 192.168.1.22. 我有一台具有XAMPP Web服务器(MyWebApp)IP:192.168.1.22的计算机。

I want to create and remove users in FreePBX from MyWebApp interface. 我想从MyWebApp界面在FreePBX中创建和删除用户。 FreePBX wiki says RESTful interaction is possible, however I'm stuck and more confused after going through FreePBX wiki links and Asterisk ARI documents. FreePBX Wiki表示可以进行RESTful交互,但是经过FreePBX Wiki链接和Asterisk ARI文档后,我陷入了困惑,更加困惑。

Appreciate if anyone can clarify any of the following: 赞赏是否有人可以澄清以下任何内容:

  • is it possible in the first place what I'm trying to achieve? 首先要实现的目标有可能吗?
  • What needs to be enabled on FreePBX? 在FreePBX上需要启用什么?
  • What additional needs to be installed on MyWebApp to interact with FreePBX? 要与FreePBX进行交互,还需要在MyWebApp上安装什么附加软件?

Thanks in advance. 提前致谢。

There is no native REST API for FreePBX, but there is a third-party module. 没有用于FreePBX的本机REST API,但是有一个第三方模块。

However, there is no available documentation on that topic; 但是,没有关于该主题的可用文档。 refer to this thread: https://community.freepbx.org/t/rest-api-clarity/35740 请参阅此线程: https : //community.freepbx.org/t/rest-api-clarity/35740

You also can always read the source code of the module or ask someone to write a syncing module for your need. 您也可以随时阅读该模块的源代码,或要求某人编写您需要的同步模块。 Source code of FreePBX project is open-source. FreePBX项目的源代码是开源的。

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

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