Frequently Asked Questions (FAQs):Configuring Asterisk for the IAX Outbound account

VoIP: Configuring Asterisk for the IAX Outbound account

Routing calls from your Asterisk server to us is now quite straightforward.
In the relevant part of your Asterisk "extensions.conf"
insert the following lines:

exten => _0.,1,SetCallerID(YOUR_NUMBER)
exten => _0.,2,Dial(IAX2/Username:Password@iax.freevirtualnumbers.co.uk/${EXTEN})

Replace YOUR_NUMBER with your external PSTN number,
to present a caller ID on your outgoing calls. Please note that
you must use either a number you have purchased from
us, or another number registered for use with CLI.

To register a non-freevirtualnumbers number for use with CLI, simply visit:
http://voip.freevirtualnumbers.co.uk/login/pstn_cli

You will need to fax us a cover sheet and a copy of a
recent bill as proof of ownership of the number you wish to use.

Example:

You purchase an IAX Outbound account with freevirtualnumbers.
You have given the Username: Test1 and the Password: freevirtualnumbers.
You have an Inbound IAX Forwarder account with telephone number 0870 100 100

In the relevant part of your Asterisk "extensions.conf"
insert the following lines:

exten => _0.,1,SetCallerID(0870100100)
exten => _0.,2,Dial(IAX2/Test1:freevirtualnumbers@iax.freevirtualnumbers.co.uk/${EXTEN})


In order to control your Asterisk server more granularly. i.e to control codec priorities, trunking etc you will need to configure Asterisk using both the extensions.conf and the iax.conf you will need to configure the following:

For a connection to freevirtualnumbers you will need to do the following:

[freevirtualnumbers-out]
type=peer
username=Username
secret=Password
host=iax-out.freevirtualnumbers.co.uk

The corresponding extensions.conf would be as above:

exten => _0.,1,SetCallerID(YOUR_NUMBER)
exten => _0.,2,Dial(IAX2/Username:Password@iax.freevirtualnumbers.co.uk/${EXTEN})

Replace YOUR_NUMBER with your external PSTN number.