1. Voice
  2. Softphones and Devices

Asterisk Config Guide

Need to connect your Asterisk PBX to 2talk?

Here is an example configuration where obviously you should replace the 'yournumber' with your actual 2talk number (e.g. 099749000) and 'yourpassword' with your 2talk line password. NOTE: 2talk use the STD code+number format for usernames e.g. 099749000 rather than the E164 version (6499749000) as some providers do. 

sip.conf

[general]

registerattempts=0

registertimeout=20

; Register line should be somewhere inside your general section

register => yournumber:yourpassword@sip.2talk.co.nz/yournumber

[2talk]

type=friend
username=yournumber
fromuser=yournumber
secret=yourpassword
host=sip.2talk.co.nz
context=default   ; or your own selected context if desired
dtmfmode=rfc2833
disallow=all
allow=ilbc
allow=gsm
allow=alaw
allow=ulaw
;allow=g729   ; only if you have licenses to use it
nat=yes
canreinvite=no
insecure=very  ; use insecure=invite,port in later versions of Asterisk such as v1.4


extensions.conf

[default]

;receive incoming calls to a connected phone

exten => s,1,Dial(SIP/yournumber)

; outbound calls (outside of your own PBX)