;
; SIP Configuration for Asterisk
;
[general]
context=incoming ; Default context for incoming calls
;recordhistory=yes ; Record SIP history by default
; (see sip history / sip no history)
;realm=mydomain.tld ; Realm for digest authentication
; defaults to "asterisk"
; Realms MUST be globally unique according to RFC 3261
; Set this to your host name or domain name
port=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
dtmfmode=inband ; Note: Asterisk only uses the first host
; in SRV records
; Disabling DNS SRV lookups disables the
; ability to place SIP calls based on domain
; names to some other SIP users on the Internet
allow=all
nat=yes ; NAT settings
; yes = Always ignore info and assume NAT
; no = Use NAT mode only according to RFC3581
; never = Never attempt NAT mode or RFC3581 support
; route = Assume NAT, don't send rport (work around more UNIDEN bugs)
;start my phones
;sipura spa3000 from pstn
[spa3000pstn]
type=friend
host=dynamic
defaultip=192.168.2.100
username=spa3000pstn
;password=secret
dtmfmode=inband
context=sip-intranet
canreinvite=yes
;sipura spa300 from voip
[spa3000]
type=friend
host=dynamic
defaultip=192.168.2.100
username=spa3000
;password=secret
dtmfmode=inband
context=sip-intranet
canreinvite=yes
;allow=g723
;allow=ulaw
;allow=gsm
;snom 190
[snom190]
type=friend
host=dynamic
defaultip=192.168.2.103
dtmfmode=outband
context=sip-intranet
callerid=Snom190
canreinvite=yes
allow=g723
allow=ulaw
allow=gsm
mailbox=1984@home,1337@home,6845@home
;white computer upstairs
[phone1]
type=friend
host=dynamic
;defaultip=192.168.2.100
;username=blah
;password=secret
dtmfmode=inband
mailbox=1234
context=sip-intranet
callerid=whitecomputer
canreinvite=yes