If it helps, here is my sip.conf and my sip_additional.conf:
sip.conf:
[code]; Note: If your SIP devices are behind a NAT and your Asterisk
; server isn’t, try adding “nat=1” to each peer definition to
; solve translation problems.
[general]
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
#allow=alaw
allow=g729
allow=g711
allow=g711u
externip = x.x.x.x
externhost = x.x.x.x
localnet=192.168.1.200/255.255.255.0
nat=yes
; If you need to answer unauthenticated calls, you should change this
; next line to ‘from-trunk’, rather than ‘from-sip-external’.
; You’ll know this is happening if when you call in you get a message
; saying "The number you have dialed is not in service. Please check the
; number and try again."
context = from-sip-external ; Send unknown SIP callers to this context
callerid = Unknown
tos=0x68
; #, in this configuration file, is NOT A COMMENT. This is exactly
; how it should be.
#include sip_nat.conf
#include sip_custom.conf
#include sip_additional.conf[/code]
sip_additional.conf:
[code]register=xxxx@gw4.telasip.com
[199]
username=199
type=friend
secret=xxxx
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=never
mailbox=199@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=PSTN <199>
[200]
username=200
type=friend
secret=xxxx
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=never
mailbox=200@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=Kevin - Desk <200>
[500]
username=500
type=friend
secret=xxxx
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=never
mailbox=500@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=Cordless - Home <500>
[8800]
username=8800
type=friend
secret=xxxx
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=yes
mailbox=8800@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=Kevin - Remote <8800>
[99]
username=99
type=friend
secret=xxxx
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=never
mailbox=99@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=PSTN Incoming <99>
[SipuraPSTN]
type=peer
secret=xxxx
port=5061
nat=no
host=dynamic
context=from-pstn
canreinvite=no
[telasip-gw]
username=me
type=peer
secret=xxxx
insecure=very
host=gw4.telasip.com
dtmfmode=rfc2833
disallow=all
context=from-pstn
allow=g729
[/code]