[global]
type=global
debug=yes
user_agent=we are hiring
default_from_user=anonymous

[generic_transport]
type=transport
protocol=udp
bind=217.10.77.25

[generic_aor]
type=aor
max_contacts=10

[generic_endpoint](!)
type=endpoint
context=error
100rel=no
direct_media=no
allow=!all,opus,g722,alaw,ulaw,g726aal2,gsm,ilbc
g726_non_standard=yes
rtp_timeout=120
rtp_timeout_hold=900
transport=generic_transport
t38_udptl=yes
t38_udptl_ec=redundancy
fax_detect=no
t38_udptl_nat=yes
aors=generic_aor
contact_user=sipgate
moh_passthrough=yes
dtmf_mode=auto
allow_transfer=no
tos_audio=ef
cos_audio=5
sdp_session=sipgate VoIP GW
timers=no
send_diversion=no

[sipgate_internal_auth]
type=auth
auth_type=userpass
username=foobar
password=foobar

[nagios_monitoring]
type=identify
endpoint=nagios_endpoint
match=217.10.75.6
match=217.10.75.4

[nagios_endpoint](generic_endpoint)

; sipgate proxies
[proxy_endpoint](generic_endpoint)
context=default
set_var=SIPGATESYSTEM=sipgate20

[proxy_metter.srv.sipgate.net]
type=identify
endpoint=proxy_endpoint
match=172.20.40.7

[proxy_mindel.srv.sipgate.net]
type=identify
endpoint=proxy_endpoint
match=172.20.40.8

[proxy_pleisse.srv.sipgate.net]
type=identify
endpoint=proxy_endpoint
match=172.20.40.5

[proxy_sprotte.srv.sipgate.net]
type=identify
endpoint=proxy_endpoint
match=172.20.40.6


; sipgate customer domains
[sipgate.de](generic_endpoint)
auth=sipgate_internal_auth
outbound_auth=sipgate_internal_auth
from_domain=sipgate.de
outbound_proxy=sip:sip.sipgate.net\;lr
aors=sipgate.de_aor

[sipgate.de_aor]
type=aor
contact=sip:sipgate.de
outbound_proxy=sip:sip.sipgate.net\;lr

[sipgate.co.uk](generic_endpoint)
auth=sipgate_internal_auth
outbound_auth=sipgate_internal_auth
from_domain=sipgate.co.uk
outbound_proxy=sip:sip.sipgate.net\;lr
aors=sipgate.co.uk_aor

[sipgate.co.uk_aor]
type=aor
contact=sip:sipgate.co.uk
outbound_proxy=sip:sip.sipgate.net\;lr

[sipconnect.sipgate.de](generic_endpoint)
auth=sipgate_internal_auth
outbound_auth=sipgate_internal_auth
from_domain=sipconnect.sipgate.de
outbound_proxy=sip:sip.sipgate.net\;lr
aors=sipconnect.sipgate.de_aor

[sipconnect.sipgate.de_aor]
type=aor
contact=sip:sipconnect.sipgate.de
outbound_proxy=sip:sip.sipgate.net\;lr

[sipconnect.sipgate.co.uk](generic_endpoint)
auth=sipgate_internal_auth
outbound_auth=sipgate_internal_auth
from_domain=sipconnect.sipgate.co.uk
outbound_proxy=sip:sip.sipgate.net\;lr
aors=sipconnect.sipgate.co.uk_aor

[sipconnect.sipgate.co.uk_aor]
type=aor
contact=sip:sipconnect.sipgate.co.uk
outbound_proxy=sip:sip.sipgate.net\;lr


; Carrier - templates
[carrier](!,generic_endpoint)
from_domain=sipgate.net
allow=!all,opus,g722,alaw,ulaw

[livecarrier](!,carrier)
outbound_proxy=sip:proxy.live.sipgate.de\;lr

[internalLbCarrier](!,carrier)
outbound_proxy=sip:sip.sipgate.net\;lr

[systemiccarrier](!,carrier)
outbound_proxy=sip:ic.sipgate.net\;lr

[liveiccarrier](!,carrier)
outbound_proxy=sip:ic.sipgate.net\;lr

[viasafran](!,systemiccarrier)
aors=safran_aor

; Carrier using templates
[verizon-sg-out](liveiccarrier)
aors=verizon-sg-out_aor

[verizon-sg-out_aor]
type=aor
contact=sip:whsnsemea.globalipcom.com


[unitymedia-out-safran](viasafran)


[bt-out-safran](viasafran)


[qsc-out-safran](viasafran)


[apelby](viasafran)


[tvi-out-telia](livecarrier)
aors=tvi-out-telia_aor

[tvi-out-telia_aor]
type=aor
contact=sip:77.72.170.132


[neon](systemiccarrier)
aors=neon_aor
outbound_auth=neon_auth

[neon_aor]
type=aor
contact=sip:sip.neonnetworks.de

[neon_auth]
type=auth
username=foobar
password=foobar


[colt-out](livecarrier)
aors=colt-out_aor

[colt-out_aor]
type=aor
contact=sip:217.110.34.76


[umbra](systemiccarrier)
aors=umbra_aor
outbound_auth=umbra_auth

[umbra_aor]
type=aor
contact=sip:mgc.service.cyannet.de

[umbra_auth]
type=auth
username=foobar
password=foobar


[sw-telefonica](systemiccarrier)
aors=sw-telefonica_aor
outbound_auth=sw-telefonica_auth

[sw-telefonica_aor]
type=aor
contact=sip:mgc-telefonica.service.sipgatewireless.de

[sw-telefonica_auth]
type=auth
username=foobar
password=foobar


[telefonica-out-safran](viasafran)


[safran](liveiccarrier)
aors=safran_aor

[safran_aor]
type=aor
contact=sip:sip.safrannetworks.de


[a1telekom](viasafran)


[ibasis-out](livecarrier)
aors=ibasis-out_aor

[ibasis-out_aor]
type=aor
contact=sip:62.93.147.149


[nordconnect](viasafran)


[a1telekom-out](liveiccarrier)
aors=a1telekom-out_aor

[a1telekom-out_aor]
type=aor
contact=sip:188.21.240.1


[sw-dtag](systemiccarrier)
aors=sw-dtag_aor
outbound_auth=sw-dtag_auth

[sw-dtag_aor]
type=aor
contact=sip:mgc-dtag.service.sipgatewireless.de

[sw-dtag_auth]
type=auth
username=foobar
password=foobar


[tvi-out-kpn](livecarrier)
aors=tvi-out-kpn_aor

[tvi-out-kpn_aor]
type=aor
contact=sip:77.72.170.132


[magrathea-out](systemiccarrier)
aors=magrathea-out_aor
outbound_auth=magrathea-out_auth

[magrathea-out_aor]
type=aor
contact=sip:sipipgw.magrathea.net

[magrathea-out_auth]
type=auth
username=foobar
password=foobar


