Server Configuration
You will need to have an Asterisk 1.4 server and Asterisk Manager Interface (AMI) installed on your server in the way to use AstCallBack Lite. To install Asterisk 1.4 please check the Asterisk documentation. You'll find a tutorial for Asterisk's installation there : Asterisk's Installation (French) and you can have a tutorial on how to activate AMI here : Neotiq's Blog (French). You will then need to have a SIP peer named 'outpeer' in your sip.conf file and a context named 'callback_with_number' in your extensions.conf file. It works as follow: When your launch a call from AstCallback IPhone application, it will send an Originate command throught AMI interface to your Asterisk server. The Originate command will ask your Asterisk to make a call to your IPhone by using the 'outpeer' peer. When succeed (when you answer the call), your Asterisk should run the priority 1 in the context 'callback_with_number'. This context should correctly be programmed to make call to the requested extension (the destination number). Here is how you should configure them:
- Configure the SIP account. This SIP account is used to call your IPhone. So make sure you have a SIP account that can make call to mobile phones:
In sip.conf file (or in database if you use realtime), create a SIP account with the name [outpeer] as follow:
[outpeer] type=peer qualify=yes fromdomain=voip.itsp.com fromuser=<your SIP Account's username> username=<your SIP Account's username> secret=<your SIP Account's password> host=<your SIP Account's proxy server> realm=<your SIP Account's realm> insecure=very nat=yes canreinvite=no
- Configure the context for calling the destination number.
In your extensions.conf file, add a context named 'callback_with_number':
[callback_with_number]
exten => _.,1, Dial(ZAP/g3/${EXTEN}) ; You should adapt this Dial command to your config.
exten => _.,2,Hangup
BE AWARE that making your Asterisk AMI accessible from your IPhone means that anyone can send an AMI command to your Asterisk. It is YOUR RESPONSABILITY to secure your configuration so that your Asterisk installation cannot be used by un authorized people to make calls. The AstCallback Pro (available soon on App Store) will take care of all the security issues for you.
Client Configuration
Before using AstCallBack Lite application, you'll have to configure it.
Open the "Settings" application on your iPhone, and then select AstCallBack Lite category. There you can enter the number you want asterisk to call you back, your AMI identifier and password, the server address and his connection port. The prefix is asterisk by default, but it can be null. It must not be preceded or followed by a /.
You can now use the AstCallBack Lite application.

