🛠️ Asterisk Configuration for Kiwi VoIP
Configuring Kiwi VoIP with Asterisk: A Step-by-Step Guide
Setting up your Asterisk server with Kiwi VoIP? Here’s how to configure your SIP trunk and dial plan for reliable, high-quality calling.
📦 Required Information
Before you start, make sure you have:
-
Your Kiwi VoIP number (e.g.
099749000
) -
Your Kiwi VoIP password
-
SIP server:
sip.kiwivoip.co.nz
📝 Note: Use the STD format (e.g.099749000
) not E.164 (e.g.6499749000
) for your username.
🔧 Sample Configuration
📄 sip.conf
[general]
registerattempts=0
registertimeout=20
; Register line (place inside general section)
register => yournumber:yourpassword@sip.kiwivoip.co.nz/yournumber
[Kiwi VoIP]
type=friend
username=yournumber
fromuser=yournumber
secret=yourpassword
host=sip.kiwivoip.co.nz
context=default ; or your chosen context
dtmfmode=rfc2833
disallow=all
allow=ilbc
allow=gsm
allow=alaw
allow=ulaw
;allow=g729 ; only if licensed
nat=yes
canreinvite=no
insecure=very ; or use 'insecure=invite,port' in newer Asterisk versions
📄 extensions.conf
[default]
; Incoming calls to a connected phone
exten => s,1,Dial(SIP/yournumber)
; Outbound calls from your PBX
exten => _X.,1,Dial(SIP/${EXTEN}@Kiwi VoIP)
💡 Tips
-
Replace all instances of
yournumber
andyourpassword
with your actual Kiwi VoIP credentials. -
For best results, test internal calls first, then outbound.
-
Use
sip set debug on
in Asterisk CLI to troubleshoot.