[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


;======== TRUNKS

[trunk-telekom]
type=registration
transport=transport-udp
server_uri=sip:tel.t-online.de
client_uri=sip:xxx@tel.t-online.de
outbound_auth=trunk-telekom
contact_user=xxx
expiration=3600
forbidden_retry_interval=480
auth_rejection_permanent=no
max_retries=60

[trunk-telekom-fax]
type=registration
transport=transport-udp
server_uri=sip:tel.t-online.de
client_uri=sip:xxx@tel.t-online.de
outbound_auth=trunk-telekom
contact_user=xxx
expiration=3600
forbidden_retry_interval=480
auth_rejection_permanent=no
max_retries=60

[trunk-telekom-p]
type=registration
transport=transport-udp
server_uri=sip:tel.t-online.de
client_uri=sip:xxx@tel.t-online.de
outbound_auth=trunk-telekom
contact_user=xxx
expiration=3600
forbidden_retry_interval=480
auth_rejection_permanent=no
max_retries=60


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


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


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


; inbound
[anonymous]
type=endpoint
transport=transport-udp
direct_media=no
t38_udptl=yes
t38_udptl_ec=redundancy
disallow=all
allow=g722
allow=alaw
allow=g729
allow=g726
allow=ulaw
allow=gsm
context=from-trunk-telekom
aors=trunk-telekom



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

[endpoint-phone](!)
type=endpoint
transport=transport-udp
inband_progress=yes
send_pai=true
device_state_busy_at=1
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
; qualify_frequency=60
max_contacts=1
remove_existing=yes


;========== EXTENSION 11

[11](endpoint-phone)
auth=auth11
aors=11
callerid=W <11>

[auth11](auth-userpass)
username=11
password=xxx

[11](aor-single-reg)


;========== EXTENSION 30

[30](endpoint-phone)
auth=auth30
aors=30
callerid=FAX <30>
t38_udptl=yes
t38_udptl_ec=redundancy
disallow=all
allow=alaw

[auth30](auth-userpass)
username=30
password=xxx

[30](aor-single-reg)


;========== EXTENSION 50

[50](endpoint-phone)
auth=auth50
aors=50
callerid=Marco <50>

[auth50](auth-userpass)
username=50
password=xxx

[50](aor-single-reg)
