Not Logged in - No Account?
Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.
Callback
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.
Add Callback
- Callback Description: This is the name/description of the callback
- Callback Number: This is the number to be called
- Delay Before Callback: Optionally, you can enter an amount of time that the system should wait before placing the call
Known Issues
Some issues have been encountered with this plugin:
- Callbacks frequently fail, as it appears Asterisk disconnects
before the associated callback PHP script (located in
/var/lib/asterisk/bin) may complete the callback transaction. - If one uses the 'CLI' callback capability, then you may
encounter issues with being able to actually dial people back. The
reason for this is that the telco only provides a 10-digit CLI, and if
your provider requires you to add a '1' there is no way to do this
without hacking the plug-in. Further, if your own dialplan requires an
access code like '9' you also encounter this problem. - There is no way to provide a number of retries, retry time or
wait times for an answer. This app will try once, and if it fails, will
not try again.
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
- Printer-friendly version
- Login or register to post comments
It is not working properly
It is not working properly in my Asterisk free PBX. Can anyone guide me ???
Where is the attached script?
I am wondering where is the attached script?
"2. Download the attached script and copy to
/var/lib/asterisk/bin/callback and then do a"