;
; SIP Configuration example for Asterisk
;
; Syntax for specifying a SIP device in extensions.conf is
; SIP/devicename where devicename is defined in a section below.
;
; You may also use
; SIP/username@domain to call any SIP user on the Internet
; (Don¡¯t forget to enable DNS SRV records if you want to use this)
;
; If you define a SIP proxy as a peer below, you may call
; SIP/proxyhostname/user or SIP/user@proxyhostname
; where the proxyhostname is defined in a section below
;
; Useful CLI commands to check peers/users:
;   sip show peers              Show all SIP peers (including friends)
;   sip show users              Show all SIP users (including friends)
;   sip show registry           Show status of hosts we register with
;   sip debug                    Show all SIP messages
;
;   reload chan_sip.so          Reload configuration file
[general]
realm=my.public.ip.address
udpbindaddr=my.public.ip.address
srtpcapable=yes
context=default                 ; Default context for incoming calls
allowguest=no                  ; Allow or reject guest calls (default is yes)
allowoverlap=yes                ; Disable overlap dialing support. (Default is yes)
                                ; bindport is the local UDP port that Asterisk will listen on
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
registerattempts=5
videosupport=yes
;disallow=all                    ; First disallow all codecs
;allow=all
;allow=g722
allow=ulaw
allow=ilbc
allow=vp8
transport=udp,ws,wss
;tlsenable=yes
;tlsbindaddr=0.0.0.0
;tlscertfile=/etc/asterisk/keys/asterisk.pem
;tlscafile=/etc/asterisk/keys/ca.crt
;tlscipher=ALL
;tlsclientmethod=tlsv1

[sip](!)
;allow=g722
;allow=vp8
;allow=all
type=friend
host=dynamic
canreinvite=no
context=default

[57440](sip)
username=57440
secret=abc123
nat=force_rport,comedia
;nat=auto_force_rport

[57441](sip)
username=57441
secret=abc123
;nat=force_rport,comedia
;nat=auto_comedia
nat=no

[02668](sip)
username=02668
secret=abc123
nat=force_rport,comedia
;nat=no

[82001](sip)
username=82001
secret=abc123
nat=force_rport,comedia
;nat=no

[33333]
type=friend
username=33333
host=dynamic
secret=abc123
encryption=yes
avpf=yes
icesupport=yes
context=default
directmedia=no
transport=ws
force_avp=yes
dtlsenable=yes
dtlsverify=no
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlsprivatekey=/etc/asterisk/keys/asterisk.pem
dtlssetup=actpass
;nat=force_rport,comedia
nat=no

[44444]
type=friend
username=44444
host=dynamic
secret=abc123
encryption=yes
avpf=yes
icesupport=yes
context=default
directmedia=no
transport=udp,ws,wss
force_avp=yes
dtlsenable=yes
dtlsverify=no
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlsprivatekey=/etc/asterisk/keys/asterisk.pem
dtlssetup=actpass
;nat=force_rport,comedia
nat=no
