[transport-udp-int]
type=transport
protocol=udp
bind=10.1.2.3

[transport-udp-ext]
type=transport
protocol=udp
bind=a.b.c.d

[transport-tcp]
type=transport
protocol=tcp
bind=0.0.0.0

[transport-tls]
type=transport
protocol=tls
bind=0.0.0.0
ca_list_file=/etc/ipa/ca.crt
cert_file=/etc/pki/asterisk/crt.pem
priv_key_file=/etc/pki/asterisk/private/key.pem
method=tlsv1



[endpoint-udp-ext-t](!)
type=endpoint
transport=transport-udp-ext
context=default
allow_subscribe=no
direct_media=no
disallow=all
allow=ilbc
allow=gsm
allow=g722
allow=ulaw


; ipKall
[ipkall](endpoint-udp-ext-t)
aors=ipkall

[ipkall]
type=aor
contact=sip:NXXNXXXXXX@66.54.140.46:5060
contact=sip:NXXNXXXXXX@66.54.140.47:5060

[ipkall]
type=identify
endpoint=ipkall
match=66.54.140.46
match=66.54.140.47


; CallWithUs
[callwithus]
type=registration
transport=transport-udp-ext
outbound_auth=callwithus
client_uri=sip:12345@sip.callwithus.com
server_uri=sip:sip.callwithus.com

[callwithus](endpoint-udp-ext-t)
aors=callwithus
outbound_auth=callwithus

[callwithus]
type=auth
auth_type=userpass
password=<password>
username=12345

[callwithus]
type=aor
contact=sip:204.74.213.5:5060

[callwithus]
type=identify
endpoint=callwithus
match=204.74.213.5


; Diamondcard
[diamondcard](endpoint-udp-ext-t)
aors=diamondcard
from_user=12345
outbound_auth=diamondcard
send_rpid=yes

[diamondcard]
type=auth
auth_type=userpass
password=<password>
username=12345

[diamondcard]
type=aor
contact=sip:46.19.58.41:5060

[diamondcard]
type=identify
endpoint=diamondcard
match=46.19.58.41


; Gafachi 1a
[gafachi1a]
type=registration
transport=transport-udp-ext
outbound_auth=gafachi
client_uri=sip:12345@67.216.35.162
server_uri=sip:67.216.35.162

[gafachi1a](endpoint-udp-ext-t)
aors=gafachi1a
from_user=12345
outbound_auth=gafachi
send_pai=yes
t38_udptl=yes
disallow=all
allow=ulaw

[gafachi]
type=auth
password=<password>
username=12345

[gafachi1a]
type=aor
contact=sip:67.216.35.162:5060

[gafachi1a]
type=identify
match=67.216.35.162


; Gafachi 1b
[gafachi1b]
type=registration
transport=transport-udp-ext
outbound_auth=gafachi
client_uri=sip:12345@67.216.45.45
server_uri=sip:67.216.45.45

[gafachi1b](endpoint-udp-ext-t)
aors=gafachi1b
from_user=12345
outbound_auth=gafachi
send_pai=yes
t38_udptl=yes
disallow=all
allow=ulaw

[gafachi1b]
type=aor
contact=sip:67.216.45.45:5060

[gafachi1b]
type=identify
match=67.216.45.45



; UDP endpoint template
[endpoint-udp-int-t](!)
type=endpoint
transport=transport-udp-int
context=mss
call_group=1
pickup_group=1
disallow=all
allow=ilbc
allow=gsm
allow=g722
allow=ulaw

; TLS endpoint template
[endpoint-tls-t](!)
type=endpoint
transport=transport-tls
context=mss
call_group=1
callerid_privacy=allowed_not_screened
direct_media=no
media_encryption=sdes
pickup_group=1
;rewrite_contact=yes
rtp_symmetric=yes
send_pai=yes
trust_id_inbound=yes
trust_id_outbound=yes
disallow=all
allow=ilbc
allow=gsm
allow=g722
allow=ulaw

[auth-md5-t](!)
type=auth
auth_type=md5

[aor-single-t](!)
type=aor
max_contacts=1
remove_existing=yes

[aor-multi-t](!)
type=aor
max_contacts=3



; Internal phone
[abcdefg](endpoint-udp-int-t)
auth=abcdefg
aors=abcdefg
callerid="Test Phone" <2999>
mailboxes=2999@default
disallow=all
allow=gsm
allow=ulaw

[abcdefg](auth-md5-t)
username=abcdefg
md5_cred=<cred>

[abcdefg](aor-single-t)
mailboxes=2999@default

; System
[system]
type=system
compact_headers=yes