; PJSIP Configuration
;
;==========================GLOBAL SECTION OPTIONS=========================
[global]
;  SYNOPSIS: Options that apply globally to all SIP communications
;type=						; Must be of type global (default: "")
user_agent=telsys				; Allows you to change the user agent string
keep_alive_interval=20

; MODULE PROVIDING BELOW SECTION(S): res_pjsip
;==========================ENDPOINT SECTION OPTIONS=========================
[default_endpoint](!)
;  SYNOPSIS: Endpoint
type=endpoint  			; Must be of type endpoint (default: "")
dtmf_mode=auto			; DTMF mode (default: "rfc4733")
disallow=all			; Media Codec s to disallow (default: "")
send_history_info=yes		; Send the History-Info header, conveying the diversion information to the called and calling user agents. (default: "no")
send_pai=yes			; Send the P Asserted Identity header (default: "no")
timers=no			; Session timers for SIP packets (default: "yes")
language=ee			; Set the default language to use for channels created for this endpoint (default: "")
sdp_session=telsys		; String used for the SDP session s line (default: "Asterisk")
tos_audio=ef			; DSCP TOS bits for audio streams (default: "0")
tos_video=af41			; DSCP TOS bits for video streams (default: "0")

;==========================AUTH SECTION OPTIONS=========================
[default_auth](!)
;  SYNOPSIS: Authentication type
;
;  Note: Using the same auth section for inbound and outbound
;  authentication is not recommended.  There is a difference in
;  meaning for an empty realm setting between inbound and outbound
;  authentication uses.  Look to the CLI config help
;  "config show help res_pjsip auth realm" or on the wiki for the
;  difference.
;
type=auth			; Must be auth (default: "")

;==========================AOR SECTION OPTIONS=========================
[default_aor](!)
;  SYNOPSIS: The configuration for a location of an endpoint
type=aor			; Must be of type aor (default: "")
max_contacts=1			; Maximum number of contacts that can bind to an AoR (default: "0")
remove_existing=yes		; Determines whether new contacts replace existing ones. (default: "no")
qualify_frequency=15		; Interval at which to qualify an AoR via OPTIONS requests. (default: "0")

; MODULE PROVIDING BELOW SECTION(S): res_pjsip_endpoint_identifier_ip
;==========================IDENTIFY SECTION OPTIONS=========================
[default_identify](!)
;  SYNOPSIS: Identifies endpoints via some criteria.
;
; NOTE: If multiple matching criteria are provided then an inbound request will
; be matched to the endpoint if it matches ANY of the criteria.
type=identify			; Must be of type identify (default: "")



[trunk_name](default_aor)

[trunk_name](default_auth)
username = trunk_name
password = strong_password

[trunk_name](default_identify)
endpoint=trunk_name
match=dns_name

[trunk_name](default_endpoint)
context = some_context
allow = alaw
auth = trunk_name
;outbound_auth = trunk_name
aors = trunk_name

