In this post, we will explain how to install and run FreePBX (GPL), a Web-based GUI to control and manage Asterisk PBX, and control incoming phone calls using Java and the Asterisk FastAGI with a custom IVR. We will explain how to configure the system to run with its basic features. For further management, read FreePBX user manuals. First, let’s install FreePBX.
Congratulations! You have now Asterisk PBX up and running.
In order to receive incoming calls you should configure your SIP trunk into Asterisk:
Test your Asterisk calling from your phone to your SIP number. You should listen to a machine asking for a phonebook number.
To control the incoming call using custom programming, you should use the Asterisk FastAGI. In our case, we will create an AGI script using Java and Asterisk-Java library:
Save and apply changes.