By Seymen Pek
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!
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 with sudo ufw allow 8088.Dive into FreePBX and ARI Configurations:
http.conf file in Asterisk’s configuration. Here, you’re looking for enabled=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 (replace api_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
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:
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.
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).
curl. For example:curl -v -u username:password http://your_server_ip:8088/ari/endpoints
Replace `username`, `password`, and `your_server_ip` with your actual ARI credentials and server IP.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.