; Asterisk instance [A]

[global]
type=global
debug=yes

[aor-template](!)
type=aor
default_expiration=240
max_contacts=5
minimum_expiration=240
maximum_expiration=3600
qualify_frequency=900

[endpoint-template](!)
type=endpoint
transport=trans
disallow=all
allow=ulaw
allow_subscribe=yes
allow_transfer=yes
callerid=uut_callerid_name <uut_callerid_num>
callerid_privacy=allowed
connected_line_method=invite
context=local
device_state_busy_at=0
direct_media=no
fax_detect=no
force_rport=yes
from_domain=
from_user=
rewrite_contact=no
t38_udptl=no
t38_udptl_ec=none
t38_udptl_ipv6=no
t38_udptl_maxdatagram=0
t38_udptl_nat=no
trust_id_inbound=no
trust_id_outbound=no

[regauth]
type=auth
auth_type=userpass
realm=asterisk
username=this_doesnt
password=matter_anyway

[outreg-template](!)
type=registration
auth_rejection_permanent=no
expiration=3600
forbidden_retry_interval=0
max_retries=10
outbound_proxy=
retry_interval=60

[trans]
type=transport
protocol=udp
bind=127.0.0.1:5061

;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[siptrunk](aor-template)
contact=sip:siptrunk@127.0.0.2:5062
mailboxes=4000@default

[siptrunk](endpoint-template)
aors=siptrunk
auth=regauth
from_user=siptrunk
outbound_auth=regauth

[siptrunk](outreg-template)
client_uri=sip:siptrunk@127.0.0.1:5061
server_uri=sip:siptrunk@127.0.0.2:5062
contact_user=siptrunk
outbound_auth=regauth
transport=trans

;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; duplicate entry
;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[siptrunk](aor-template)
contact=sip:siptrunk@127.0.0.2:5062
mailboxes=4000@default

[siptrunk](endpoint-template)
aors=siptrunk
auth=regauth
from_user=siptrunk
outbound_auth=regauth

[siptrunk](outreg-template)
client_uri=sip:siptrunk@127.0.0.1:5061
server_uri=sip:siptrunk@127.0.0.2:5062
contact_user=siptrunk
outbound_auth=regauth
transport=trans
