I want to build my own VOIP system using FreePBX business app provided by DO. So I have installed FreePBX business app in my droplet server and could access to Web admin panel. But I could not connect to FreePBX (Asterisk) server using Asterisk rest Interface. (Asterisk user and application were already created via web admin panel.) If anyone have experience, please help. And if you need more information, kindly let me know.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya,
You can check your logs for more information on the received errors when connection is tried. Without that info, here are some general tips on how to troubleshoot the issue you are experiencing:
Ensure Proper Installation and Configuration
Verify FreePBX Installation: Make sure that FreePBX is properly installed on your DO droplet and that you can access the web admin panel without issues.
Check Asterisk Installation: FreePBX is a front-end administration interface for Asterisk. Ensure that Asterisk is installed and running on your server.
Enable ARI Module: In FreePBX, ensure the Asterisk REST Interface module is installed and enabled. This can usually be done through the Module Admin section of the web interface.
Create Asterisk User and Application: As you mentioned, ensure that the user and application for ARI are properly created in FreePBX. Double-check the credentials and permissions.
Configure Network and Firewall Settings
Open Necessary Ports: Ensure that your server’s firewall allows traffic on the ports used by ARI. By default, ARI uses port 8088 for HTTP and optionally 8089 for HTTPS.
Configure NAT Settings: If your server is behind a NAT, ensure that NAT settings are correctly configured in FreePBX (Settings -> Asterisk SIP Settings).
Validate ARI Access and Credentials
curl
. For example:Hi there,
It looks like you’ve made great progress by setting up FreePBX on your Droplet. Now, let’s dive into troubleshooting your connection issue with the Asterisk REST Interface:
Check Your Network and Firewall Settings:
sudo ufw status
will reveal your current setup, and if necessary, you can open the required port withsudo ufw allow 8088
.Dive into FreePBX and ARI Configurations:
http.conf
file in Asterisk’s configuration. Here, you’re looking forenabled=yes
in the[general]
section, confirming that ARI is ready to go.Verify the Asterisk Service:
sudo systemctl status asterisk
on your server to check its status.Local Testing of ARI Connection:
curl
, you can test this out. For example:curl -v http://localhost:8088/ari/api_call
(replaceapi_call
with your specific API endpoint and include the necessary authentication).Analyzing Logs for Clues:
/var/log/asterisk/
and look for any error messages that might hint at what’s going wrong.Credential Check:
Ensure Correct API Endpoint Access:
http://[your-server-ip]:8088/ari/endpoint
.HTTPS and Security:
Best,
Bobby