AstCallBack Pro installation is similar to AstCallBack Lite. We will discuss it around two points : server side and client side.

Server configuration

The prerequisites are :

 

  • Asterisk Server installed and configured (check AstCallBack Lite installation)
  • AMI installed and configured (check AstCallBack Lite installation)
  • WebServer with Apache, SSL and PHP. For now the application accepts untrusted SSL certificates, but this may change in further versions of the AstCallBack application.
  • PEAR class HTTPRequest (check on http://pear.php.net/)

 

Once you’ve got all that working properly, you can download the PHP file here (free registration required) and put it on the SSL side of your webserver.

Please take care not to change the file name, otherwise the application won’t work !

Then open the file and fill in the variables depending on your Asterisk configuration :

 

  • $LOCAL_AST_ADDR the adress to reach your Asterisk server depending on your network topology.
  • $AST_PORT the port to reach AMI
  • $AST_PREFIX the préfix to reach AMI as specified in « http.conf »
  • $AST_CONTEXT the context to dial your correspondant number
  • $AST_CHANNEL_PREFIX how your server will call you in order to perform the callback – you may put SIP/outpeer/ if you follow the sample configuration in the AstCallBack Lite tutorial

 

Then you shall configure your Asterisk server properly. This part is similar to the AstCallBack Lite tutorial, except that you can put the context names as you wish (you will just have to report them in asteriskCommunicator.php).

Now that your server is properly configured, let’s deal with the Client configuration.

Client configuration

This part is similar to the AstCallBack Lite configuration, exception on two fields :

 

  • Prefix : this will now be the path to asteriskCommunicator.php file (without the first and last slashes)
  • Port : this will now be the SSL port (if you changed it)