[1001]
type=endpoint
context=Outbound-1001
disallow=all
allow=ulaw
auth=auth1001
aors=1001

[auth1001]
type=auth
auth_type=userpass
password=****
username=****

[1001]
type=aor
max_contacts=3

[gvsip1]
type=transport
protocol=flow

[gvsip1]
type=registration
outbound_auth=gvsip1
server_uri=sip:obihai.sip.google.com
outbound_proxy=sip:obihai.telephony.goog:5061\;transport=tls\;lr\;hide
client_uri=****
retry_interval=60
support_path=yes
support_outbound=yes
line=yes
endpoint=gvsip1
contact_header_params=obn=****
endpoint=gvsip1
transport=gvsip1

[gvsip1]
type=auth
auth_type=google_oauth
refresh_token=****
oauth_secret=****
username=****
realm=obihai.sip.google.com

[gvsip1]
type=aor
contact=sip:obihai.sip.google.com

[gvsip1]
type=endpoint
context=Inbound-1001
disallow=all
allow=ulaw
allow=opus
outbound_auth=gvsip1
outbound_proxy=sip:obihai.telephony.goog:5061\;transport=tls\;lr\;hide
aors=gvsip1
direct_media=no
ice_support=yes
rtcp_mux=yes
media_use_received_transport=yes
transport=gvsip1

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

[incoming-registrations]
type=transport
protocol=udp
bind=0.0.0.0:5085

[transport_tls]
type=transport
protocol=tls
method=tlsv1_2                     ;1_0 before June 27, 2019
bind=0.0.0.0:5061
cert_file=/etc/asterisk/client.crt
priv_key_file=/etc/asterisk/client.key
