The Callback module allows you to setup a destination that calls a user back and provides them access to an application. An example of this would be a caller that dials your system, disconnects, and is called back and then provided a DISA
dial-tone to make a phone call.
Some issues have been encountered with this plugin:
Alternative Solution
A replacement script, written in Ruby, has been created to replace
the /var/lib/asterisk/bin/callback PHP script provided with the
callback plugin. The Ruby script takes a different approach to
providing the callback capability, while still supported the HTML form
provided with the plug-in with FreePBX. The enhancements are:
- Provides the ability to set the access code to prepend to the recognized CLI number for a callback
- Uses call files instead of the Manager API
- Allows one to set the number of retries, the retry wait time and the wait time for a caller to pickup an attempt
To use the script below do the following:
(Note: This script requires that Ruby 1.8.x be installed on your Asterisk/FreePBX system)
1. Move /var/lib/asterisk/bin/callback to /var/lib/asterisk/bin/callback.original (to back it up)
2. Download the attached script and copy to
/var/lib/asterisk/bin/callback and then do a
chmod +x /var/lib/asterisk/bin/callback
3. Add these options to the end of your configuration file at /etc/amportal.conf:
CALLBACK_PREFIX=91 CALLBACK_CLI=Callback CALLBACK_RETRY=1 CALLBACK_INTERVAL=10 CALLBACK_WAIT=30