;!
;! Automatically generated configuration file
;! Filename: /etc/iss/asterisk/pjsip.conf
;! Generator: Manager
;! Creation Date: Wed Dec  7 10:57:49 2022
;!
#include "/etc/iss/asterisk/pjsip_custom.conf"

[global]
type = global
debug = yes
default_from_user = 220

[system]
type = system
disable_rport = no

[transport1]
type = transport
allow_reload = yes
bind = 0.0.0.0
protocol = udp

[transport3]
type = transport
allow_reload = yes
bind = 0.0.0.0
protocol = wss

[1002]
type = aor
remove_existing = yes
contact = sip:1002@192.168.10.235

[1005]
type = aor
remove_existing = yes

[20000]
type = aor
remove_existing = yes

[4200]
type = aor
remove_existing = yes
contact = sip:192.168.40.60
authenticate_qualify = yes
qualify_frequency = 30

[1003]
type = aor
remove_existing = yes
;contact=sip:192.168.10.235

[220]
type = aor
remove_existing = yes
contact = sip:192.168.10.235

[inbound.vitelity.net]
type = aor
remove_existing = yes

[outbound.vitelity.net]
type = aor
remove_existing = yes
contact = sip:outbound.vitelity.net

[4600]
type = aor
remove_existing = yes
contact = sip:192.168.8.165
authenticate_qualify = yes
qualify_frequency = 30

[1000]
type = aor
max_contacts = 24
contact = sip:1000@192.168.33.18
qualify_frequency = 60

[1004]
type = aor
max_contacts = 1
remove_existing = yes

[webrtc_client]
type = aor
max_contacts = 5
remove_existing = yes

[kevin_beale]
type = aor
max_contacts = 5
remove_existing = yes

[MC_331]
type = aor
remove_existing = yes
contact = sip:192.168.10.235

[Kamailio]
type = aor
authenticate_qualify = yes
contact = sip:192.168.10.235
;outbound_proxy=sip:192.168.12.10\;lr

[auth1]
type = auth
username = 444
password = 444

[auth2]
type = auth
username = 1005
password = 1005

[auth4]
type = auth
username = 20000
password = 20000

[auth5]
type = auth
username = 1234
password = 1234

[auth6]
type = auth
username = 220
password = MC.220!

[auth9]
type = auth
username = 1003
password = SuperSecretProbation

[auth10]
type = auth
username = 1004
password = SuperSecretProbation

[auth11]
type = auth
username = 1005
password = SuperSecretProbation

[auth12]
type = auth
username = Genesis3331
password = genesis

[auth13]
type = auth
username = webrtc_client
password = webrtc_client

[auth14]
type = auth
username = kevin_beale
password = kevin_beale

[auth15]
type = auth
username = genesis_a
password = AmT3Lc0!

[1000]
type = endpoint
context = IS
transport = transport1
aors = 1000
accountcode = 19
dtmf_mode = inband
device_state_busy_at = 48
moh_passthrough = no
disallow = all
allow = ulaw
acl = acl1
force_rport = no
identify_by = username

[1002]
type = endpoint
context = IS
transport = transport1
aors = 1002
accountcode = 6
dtmf_mode = inband
device_state_busy_at = 48
force_rport = no
moh_passthrough = no
identify_by = username,ip,header
from_user = 1002
disallow = all
allow = ulaw
acl = acl1

[1004]
type = endpoint
context = IS
transport = transport1
auth = auth10
aors = 1004
accountcode = 25
dtmf_mode = inband
device_state_busy_at = 2
force_rport = no
moh_passthrough = no
disallow = all
allow = ulaw
acl = acl1

[1005]
type = endpoint
context = IS
transport = transport1
aors = 1005
accountcode = 10
dtmf_mode = inband
device_state_busy_at = 48
force_rport = no
moh_passthrough = no
identify_by = username,ip,header
disallow = all
allow = ulaw
acl = acl1
identify_by = username

[101*2]
type = endpoint
context = IS
transport = transport1
aors = 1000
accountcode = 20
dtmf_mode = inband
device_state_busy_at = 48
moh_passthrough = no
disallow = all
allow = ulaw
acl = acl1
force_rport = no
identify_by = username

[114]
type = endpoint
context = IS
transport = transport1
aors = 220
accountcode = 23
dtmf_mode = inband
device_state_busy_at = 12
force_rport = no
moh_passthrough = no
identify_by = username,ip,header
disallow = all
allow = ulaw
acl = acl1

[20000]
type = endpoint
context = IS
transport = transport1
auth = auth4
aors = 20000
accountcode = 7
dtmf_mode = auto
device_state_busy_at = 48
moh_passthrough = no
disallow = all
allow = ulaw
acl = acl1

[220]
type = endpoint
context = IS
transport = transport1
aors = 220
accountcode = 12
dtmf_mode = inband
device_state_busy_at = 48
force_rport = no
moh_passthrough = no
disallow = all
allow = ulaw
asymmetric_rtp_codec = yes
acl = acl1
;from_user=220
;from_domain=192.168.10.235
;;;contact_user=220

[4600]
type = endpoint
context = IS
transport = transport1
aors = 4600
accountcode = 18
dtmf_mode = inband
device_state_busy_at = 48
moh_passthrough = no
identify_by = username,ip,header
disallow = all
allow = ulaw
acl = acl3

[HV-Inbound]
type = endpoint
context = IS
transport = transport1
aors = inbound.vitelity.net
accountcode = 14
dtmf_mode = auto
device_state_busy_at = 6
rtp_symmetric = yes
rewrite_contact = yes
moh_passthrough = no
identify_by = username,ip,header
disallow = all
allow = ulaw
acl = acl1
direct_media = no

[Kamailio]
type = endpoint
context = IS
transport = transport1
aors = Kamailio
accountcode = 29
dtmf_mode = inband
device_state_busy_at = 48
force_rport = no
moh_passthrough = no
identify_by = username,ip,header
disallow = all
allow = ulaw
asymmetric_rtp_codec = yes
acl = acl6
outbound_proxy = sip:192.168.12.10\;lr

[kevin_beale]
type = endpoint
context = IS
transport = transport3
auth = auth14
aors = kevin_beale
accountcode = 27
dtmf_mode = rfc4733
device_state_busy_at = 10
moh_passthrough = no
disallow = all
allow = opus,ulaw
webrtc = yes
acl = acl1

[outbound.vitelity.net]
type = endpoint
context = IS
transport = transport1
aors = outbound.vitelity.net
accountcode = 15
dtmf_mode = inband
device_state_busy_at = 6
rtp_symmetric = yes
rewrite_contact = yes
moh_passthrough = no
identify_by = username,ip,header
disallow = all
allow = ulaw
send_rpid = yes
trust_id_inbound = yes
direct_media = no

[webrtc_client]
type = endpoint
context = IS
transport = transport3
auth = auth13
aors = webrtc_client
accountcode = 26
dtmf_mode = rfc4733
device_state_busy_at = 2
moh_passthrough = no
disallow = all
allow = opus,ulaw
webrtc = yes
acl = acl1

[identify137]
type = identify
endpoint = 1002
match = 192.168.10.235

[identify138]
type = identify
endpoint = HV-Inbound
match = 64.2.142.90

[identify140]
type = identify
endpoint = 4600
match = 192.168.8.165

[identify142]
type = identify
endpoint = 1005
match = 192.168.9.144

[identify144]
type = identify
endpoint = outbound.vitelity.net
match = 64.2.142.193,outbound.vitelity.net

[identify166]
type = identify
endpoint = 114
match = 192.168.10.213

[identify169]
type = identify
endpoint = Kamailio
match = 192.168.12.10

[registration1]
type = registration
transport = transport1
client_uri = sip:220@192.168.10.235
server_uri = sip:192.168.10.235
contact_user = 220
auth_rejection_permanent = no
max_retries = 999
outbound_auth = auth6

[registration2]
type = registration
transport = transport1
client_uri = sip:genesis_a@192.168.12.10
server_uri = sip:192.168.12.10
contact_user = genesis_a
expiration = 120
forbidden_retry_interval = 500
fatal_retry_interval = 500
outbound_auth = auth15
