[transport-udp]
type = transport
protocol = udp
bind = XXX.XXX.XXX.11
;TOS of SIP signaling packets
tos = 0x68
cos = 3


[PRI_2_OUT]
type = aor
contact = sip:XXX.XXX.XXX.40:5060


[PRI_2_OUT]
type = identify
endpoint = PRI_2_OUT


[PRI_2_OUT]
type = auth
username = PBXTrunk
password = mypassword

[PRI_2_OUT]
transport=transport-udp
type = endpoint
context = TO_PRI_2
dtmf_mode = info
disallow = all
allow = ulaw
ice_support = no
direct_media = no
tos_audio = 0xB8
cos_audio = 6
auth = PRI_2_OUT
outbound_auth = PRI_2_OUT
aors = PRI_2_OUT
100rel = yes
fax_detect = yes
t38_udptl = yes
t38_udptl_maxdatagram = 400
disable_direct_media_on_nat = yes
callerid_privacy = allowed_not_screened
language = fr
tone_zone = us


[PRITrunk]
type = aor
contact = sip:XXX.XXX.XXX.40:5061



[PRITrunk]
type = identify
endpoint = PRITrunk
match = XXX.XXX.XXX.40

[PRITrunk]
type = auth
username = PBXTrunk2
password = mypassword

[PRITrunk]
transport=transport-udp
type = endpoint
context = FROM_PRI
dtmf_mode = info
disallow = all
allow = ulaw
ice_support = no
direct_media = no
tos_audio = 0xB8
cos_audio = 6
auth = PRITrunk
fax_detect = yes
t38_udptl = yes
t38_udptl_maxdatagram = 400
outbound_auth = PRITrunk
aors = PRITrunk
language = fr
tone_zone = us

[Thinktel-SIP]
type = aor
contact = sip:8597896965@XXX.XXX.XXX.100:5060

[Thinktel-SIP]
type = identify
endpoint = Thinktel-SIP
match = XXX.XXX.XXX.100


[Thinktel-SIP]
type = auth
username = 8597896965
password = mypassword
realm = tor.trk.tprm.ca

[Thinktel-SIP]
type = endpoint
transport=transport-udp
aors = Thinktel-SIP
auth = Thinktel-SIP
outbound_auth = Thinktel-SIP
context = SIP-EXTERNE
dtmf_mode = rfc4733
disallow = all
allow = ulaw
direct_media = no
from_domain = tor.trk.tprm.ca
from_user = 7894568998
tos_audio = 0xB8
cos_audio = 6
callerid = "Cegep Garneau <7894568998>"


;Incoming calls
[7894568998]
type = identify
endpoint = 7894568998
match = XXX.XXX.XXX.100

[7894568998]
type = endpoint
transport=transport-udp
context = SIP-EXTERNE
outbound_auth = Thinktel-SIP
direct_media = no
tos_audio = 0xB8
cos_audio = 6
dtmf_mode = rfc4733
disallow = all
allow = ulaw
direct_media = no
from_domain = tor.trk.tprm.ca


[Garneau_acl_list]
type = acl
deny=0.0.0.0/0.0.0.0
permit=XXX.XXX.XXX.100/255.255.255.224