;===============GLOBAL
[global]
type = global
debug = true
keep_alive_interval = 90


;===============TRANSPORT

[transport-udp]
type = transport
protocol = udp
bind = 192.168.128.7:5060
external_media_address = <my public IP>
external_signaling_address = <my public IP>
local_net = 192.168.128.0/255.255.255.128
local_net = 192.168.128.128/255.255.255.128
local_net = 192.168.3.0/255.255.255.0

[transport-tcp]
type = transport
protocol = tcp
bind = 192.168.128.7:5060
external_media_address = <my public IP>
external_signaling_address = <my public IP>
local_net = 192.168.128.0/255.255.255.128
local_net = 192.168.128.128/255.255.255.128
local_net = 192.168.3.0/255.255.255.0

[transport-tls]
type = transport
protocol = tls
bind = 192.168.128.7:5061

;===============Anonymous
[anonymous]
type=endpoint
context=unauthenticated
allow=!all,g722,ulaw,h264,h261
webrtc=yes
direct_media=no

;===============TRUNKS

[cucm]
type = aor
contact = sip:dznet-ucm.mydomain.com:5060

[cucm]
type = identify
endpoint = cucm
match = dznet-ucm.mydomain.com

[cucm]
type = endpoint
context = home
dtmf_mode = rfc4733
allow = !all,g722,ulaw,h264,h261
send_rpid = yes
from_domain = mydomain.com
language = en
aors = cucm
direct_media=yes

[sipbroker-out]
type = aor
contact = sip:sipbroker.com:5060

[sipbroker-out]
type = identify
endpoint = sipbroker-out
match = sipbroker.com

[sipbroker-out]
type = endpoint
context = unauthenticated
dtmf_mode = rfc4733
allow = !all,ulaw,h264
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
direct_media = no
send_rpid = yes
from_user = driz
from_domain = mydomain.com
language = en
aors = sipbroker-out

[gvsip-aor](!)
type=aor
contact=sip:obihai.sip.google.com

[gvsip-reg](!)
type=registration
server_uri=sip:obihai.sip.google.com
outbound_proxy=sip:obihai.telephony.goog:5061\;transport=tls\;lr\;hide
retry_interval=60
support_path=yes
support_outbound=yes
line=yes
transport=transport-tls
transport_reuse=no

[gvsip-auth](!)
type=auth
auth_type=oauth
realm=obihai.sip.google.com

[gvsip-endpoint](!)
type=endpoint
allow=!all,ulaw
outbound_proxy=sip:obihai.telephony.goog:5061\;transport=tls\;lr\;hide
direct_media=no
ice_support=yes
rtcp_mux=yes
media_use_received_transport=yes

[MY GOOGLEVOICE NUMBER](gvsip-reg)
contact_user=MY GOOGLEVOICE NUMBER
outbound_auth=MY GOOGLEVOICE NUMBER
client_uri=sip:REMOVED@obihai.sip.google.com
endpoint=MY GOOGLEVOICE NUMBER
contact_additional_params=obn=My Name

[MY GOOGLEVOICE NUMBER](gvsip-auth)
refresh_token=REMOVED
oauth_clientid=REMOVED
oauth_secret=REMOVED
username=REMOVED

[MY GOOGLEVOICE NUMBER](gvsip-aor)

[MY GOOGLEVOICE NUMBER](gvsip-endpoint)
outbound_auth=MY GOOGLEVOICE NUMBER
context=incoming-driz
aors=MY GOOGLEVOICE NUMBER
outbound_registration=MY GOOGLEVOICE NUMBER