Asterisk without a GUI can be configured in many different ways. The following are our standard settings for connecting your Asterisk server to the TelTel network.

1. SSH into the server using a tool like putty (if you are in windows) or from the console if you are using Macintosh.

2. Once you have logged in, the standard asterisk installation will add your configuration files to /etc/asterisk/ , we will need to edit the PJSIP.CONF file to connect to TelTel.

3. Type: nano -w /etc/asterisk/pjsip.conf

4. You should now be in the text editor editing the PJSIP.CONF file.

5. Add the following to the bottom of your PJSIP.CONF file:

; Replace the following values with your own.
; RegisterUsername = your own 0123456789 username
; Password = your SIP trunk password

; Dialplan should be set to send calls out through PJSIP/${EXTEN}@endpoint

[trunk]
type = registration
outbound_auth = trunk-auth
server_uri = sip:Voice.teltel.com.au
client_uri = sip:[email protected]
retry_interval = 60
expiration = 120

[trunk-auth]
type = auth
auth_type = userpass
username = RegisterUsername
password = Password
realm = voice.teltel.com.au

[endpoint]
type=endpoint
context = Trunk-Incoming
allow = !all,ulaw,alaw,g729
outbound_auth = endpoint-auth
aors = endpoint-aor
direct_media = no
from_domain = voice.teltel.com.au
from_user = RegisterUsername

[endpoint-auth]
type = auth
auth_type = userpass
username = RegisterUsername
password = Password
realm = voice.teltel.com.au

[endpoint-aor]
type = aor
contact = sip:voice.teltel.com.au

[endpoint-identify]
type=identify
endpoint = endpoint
match = 117.20.6.0/28

6. Save the file by pressing CTRL+X and answering YES to save the file.

7. Finally you will need to login to Asterisk and reload the configuration file by typing: asterisk -r and press enter

8. You should now be at the Asterisk CLI prompt. Now type: core reload  and press enter

9. type: exit to leave the asterisk CLI.

Your Asterisk server should now be connected to the TelTel network. If you want to use the trunk you will need to tell your extensions to send the calls through the TelTel trunk, which will mean their dial command will look like DIAL(PJSIP/${EXTEN}@endpoint).

As asterisk can be configured in so many different ways, if you require more assistance configuring core (no GUI) asterisk please contact technical support and we can organize to have a technician login to your server from remote to see what configuration changes are required.

NOTE: If you are using Amazon Cloud or Google Cloud please make sure to set your external IP settings and add “rtp_symmetric=yes” to your PJSIP extensions. Asterisk does work in the cloud, however if you get stuck feel free to contact support.