[global]
type=global
user_agent=Asterisk
debug=no


[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
local_net=192.168.0.0/16
local_net=127.0.0.1/32
external_media_address=xxx.dyndns.org
external_signaling_address=xxx.dyndns.org


;======== TRUNK TELEKOM

[trunk-telekom]
type=registration
transport=transport-udp
outbound_auth=trunk-telekom
server_uri=sip:tel.t-online.de
client_uri=sip:xxxx@tel.t-online.de
contact_user=xxxx
expiration=300
forbidden_retry_interval=240


[trunk-telekom-fax]
type=registration
transport=transport-udp
outbound_auth=trunk-telekom
server_uri=sip:tel.t-online.de
client_uri=sip:xxxx@tel.t-online.de
contact_user=xxxx
expiration=300
forbidden_retry_interval=240


[trunk-telekom-3]
type=registration
transport=transport-udp
outbound_auth=trunk-telekom
server_uri=sip:tel.t-online.de
client_uri=sip:xxxx@tel.t-online.de
contact_user=xxxx
expiration=300
forbidden_retry_interval=240


[trunk-telekom]
type=auth
auth_type=userpass
username=xxx
password=xxx
realm=tel.t-online.de


[trunk-telekom]
type=aor
contact=sip:xxxx@tel.t-online.de


; outbound
[trunk-telekom]
type=endpoint
transport=transport-udp
force_rport=yes
inband_progress=yes
direct_media=no
from_domain=tel.t-online.de
disallow=all
allow=alaw
allow=g726
allow=g722
allow=ulaw
allow=gsm
aors=trunk-telekom


; inbound
[anonymous]
type=endpoint
transport=transport-udp
aors=trunk-telekom
disallow=all
allow=alaw
allow=g726
allow=g722
allow=ulaw
allow=gsm
context=from-trunk-telekom


;========= ENDPOINT TEMPLATES

[endpoint-phone](!)
type=endpoint
transport=transport-udp
inband_progress=yes
send_pai=true
disallow=all
allow=g722
allow=alaw
allow=g726
allow=ulaw
allow=gsm
context=from-internal

[auth-userpass](!)
type=auth
auth_type=userpass

[aor-single-reg](!)
type=aor
mailboxes=1040@default
qualify_frequency=60
max_contacts=1
remove_existing=yes


;========== EXTENSION 1001

[1001](endpoint-phone)
auth=auth1001
aors=1001
callerid=Counter <1001>
call_group=1
pickup_group=1

[auth1001](auth-userpass)
username=XXXXX
password=XXXXX

[1001](aor-single-reg)


;========== EXTENSION 1002

[1002](endpoint-phone)
auth=auth1002
aors=1002
callerid=Counter 2 <1002>
call_group=1
pickup_group=1

[auth1002](auth-userpass)
username=XXXXX
password=XXXXX

[1002](aor-single-reg)


;========== EXTENSION 1003

[1003](endpoint-phone)
auth=auth1003
aors=1003
callerid=Mobile <1003>
call_group=1
pickup_group=1

[auth1003](auth-userpass)
username=XXXXX
password=XXXXX

[1003](aor-single-reg)


;========== EXTENSION 1005

[1005](endpoint-phone)
auth=auth1005
aors=1005
callerid=Betty <1005>
call_group=1
pickup_group=1,2

[auth1005](auth-userpass)
username=XXXXX
password=XXXXX

[1005](aor-single-reg)


;========== EXTENSION 1006

[1006](endpoint-phone)
auth=auth1006
aors=1006
callerid=Mel O<1006>
call_group=1
pickup_group=1

[auth1006](auth-userpass)
username=XXXXX
password=XXXXX

[1006](aor-single-reg)


;========== EXTENSION 1010

[1010](endpoint-phone)
auth=auth1010
aors=1010
callerid=Marc <1010>
call_group=2
pickup_group=1,2

[auth1010](auth-userpass)
username=XXXXX
password=XXXXX

[1010](aor-single-reg)


;========== EXTENSION 1011

[1011](endpoint-phone)
auth=auth1011
aors=1011
callerid=Jane <1011>
call_group=2
pickup_group=1,2

[auth1011](auth-userpass)
username=XXXXX
password=XXXXX

[1011](aor-single-reg)


;========== EXTENSION 1020

[1020](endpoint-phone)
auth=auth1020
aors=1020
callerid=Kitty <1020>
call_group=1
pickup_group=1

[auth1020](auth-userpass)
username=XXXXX
password=XXXXX

[1020](aor-single-reg)


;========== EXTENSION 1021

[1021](endpoint-phone)
auth=auth1021
aors=1021
callerid=Meeting <1021>
call_group=1
pickup_group=1

[auth1021](auth-userpass)
username=XXXXX
password=XXXXX

[1021](aor-single-reg)


;========== EXTENSION 1030

[1030](endpoint-phone)
auth=auth1030
aors=1030
callerid=FAX <1030>
call_group=1
pickup_group=1

[auth1030](auth-userpass)
username=XXXXX
password=XXXXX

[1030](aor-single-reg)


;========== EXTENSION 1060

[1060](endpoint-phone)
auth=auth1060
aors=1060
callerid=Softphone <1060>
call_group=2
pickup_group=1,2

[auth1060](auth-userpass)
username=XXXXX
password=XXXXX

[1060](aor-single-reg)


;=========== MAILBOX 1040

[1040]
type=endpoint
aors=1040
context=default

[1040]
type=aor
mailboxes=1040@default
