
;========================== GLOBAL SECTION OPTIONS =========================
[global]
type=global
max_forwards=70
user_agent=Custom                 ; User-agent set in SIP packets
debug=no                                                ; Enable/Disable SIP debug logging.
keep_alive_interval=20                  ; Keep alive TCP/TLS connections
default_from_user=Anonymous             ;
;; match by ip, then auth username, then From username, then anon.
;; You also need to specify auth_username in identify_by below.
;endpoint_identifier_order = ip,auth_username,username,anonymous
;default_realm = Custom
;default_voicemail_extension=1571
;disable_multi_domain=yes

;========================== SYSTEM SECTION OPTIONS =========================
[system]
type=system
timer_t1=500                                    ; Set transaction timer T1 value milliseconds (default: "500")
timer_b=32000                                   ; Set transaction timer B value milliseconds (default: "32000")
compact_headers=no                      ; Use the short forms of common SIP header names (default: "no")
threadpool_initial_size=10      ; Initial number of threads in the res_pjsip
                                ; threadpool (default: "0")
threadpool_auto_increment=10    ; The amount by which the number of threads is
                                ; incremented when necessary (default: "5")
threadpool_idle_timeout=60      ; Number of seconds before an idle thread
                                ; should be disposed of (default: "60")
threadpool_max_size=50                  ; Maximum number of threads in the res_pjsip threadpool
                                        ; A value of 0 indicates no maximum (default: "0")

disable_tcp_switch=yes

[transport-udp]
type = transport
protocol = udp
bind=0.0.0.0
tos=cs3

[transport-tcp]
type = transport
protocol = tcp
bind=0.0.0.0
tos=cs3

[transport-tls]
type=transport
protocol=tls
bind=0.0.0.0:5061
tos=cs3
cert_file=/etc/asterisk/keys/asterisk.crt
priv_key_file=/etc/asterisk/keys/asterisk.key
method=tlsv1

[transport-ws]
type=transport
protocol=ws
bind=0.0.0.0

;---------------------------------------------------
; INBOUND 01
;---------------------------------------------------

[inbound01]
type=aor
contact=sip:<<IP ADDRESS>>:5060

[inbound01]
type=endpoint
transport=transport-udp
context=crossservers
disallow=all
allow=alaw
aors=inbound01
direct_media=no
t38_udptl=yes
t38_udptl_ec=fec
t38_udptl_maxdatagram=400
fax_detect=no
t38_udptl_nat=yes
t38_udptl_ipv6=no
tos_audio=ef
tos_video=af41
sdp_session=<<CUSTOM>>>

[inbound01]
type=identify
endpoint=inbound01
match=<<IP ADDRESS>>


