;================================ TRANSPORTS ==
; Our primary transport definition for UDP communication behind NAT.
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0


; Registration for CallWithUs Services Account

[callwithus]
type = registration
outbound_auth = callwithus-auth
server_uri = sip:sip.callwithus.com
;client_uri = sip:888888888@sip.callwithus.com  ; ACCOUNT ID NUMBER
HERE, enable to register for receiving calls
contact_user = 888888888   ; YOUR ACCOUNT ID NUMBER HERE
retry_interval = 60
transport = transport-udp

[callwithus-auth]
type = auth
auth_type = userpass
username = 888888888   ; YOUR ACCOUNT ID NUMBER HERE
password = ThePassWord ; The SIP password for your account number

[callwithus]
type = aor
contact = sip:888888888@sip.callwithus.com ; YOUR ACCOUNT ID NUMBER
HERE
max_contacts = 1

[callwithus]
type = endpoint
context = incomming  ; THIS IS THE CONTEXT IN THE DIALPLAN FOR
RECEIVING CALLS
disallow=all
allow=g729
allow=ulaw
allow=alaw
from_user = 888888888   ; YOUR ACCOUNT ID NUMBER HERE
from_domain = sip.callwithus.com
outbound_auth = callwithus-auth
aors = callwithus

[callwithus]
type = identify
endpoint = callwithus
match = sip.callwithus.com

; Endpoint for CallWithUs account