David Swinton
posted this on March 05, 2011 01:33 pm
To configure asterisk 1.2, 1.4 or 1.6 to connect to Neural's termination services, please use the following sample configuration:
1. Open /etc/asterisk/sip.conf
2. Under the [general] header add the following line:
register => 09XXXX:PASSWORD@cr0.sip.neural.net.au
Replacing 09XXXX with your username and PASSWORD with your password.
3. Add the following section to the bottom of the config file:
[09XXXX]
type=peer
disallow=all
;allow=g729
allow=alaw
context=incoming
host=cr0.sip.neural.net.au
username=09XXXX
secret=PASSWORD
Replacing 09XXXX with your username and PASSWORD with your password.
Remove the ; at the beginning of either allow=g729 or allow=alaw as preferred.
Account type note:
It's important to ensure that the account your Asterisk box is using is configured as a trunk. Check the KB for more information on how to do this.
Choosing codecs:
Alaw has better sound quality and jitter tolerance, however it uses more bandwidth than some alternatives (although still very little).
g729 has better compression and allows more concurrent calls, however a license for the G729 codec may be required.
Ulaw may also be used if preferred.
Server Address:
Please note that cr0.sip.neural.net.au used in examples may differ from account to account. Please refer to your initial setup e-mail, or check the "server addresses" section in voip manager to confirm which address you should use.