Skip to content

Instantly share code, notes, and snippets.

@nickbouwhuis
Created Jan 2, 2022
Embed
What would you like to do?
pjsip.conf for a Teams SBC
;===============TRANSPORTS
[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0
[transport-tls]
type=transport
protocol=tls
bind=0.0.0.0:5061
cert_file=/etc/asterisk/ssl/cert.crt
ca_list_file=/etc/asterisk/ssl/ca.crt
priv_key_file=/etc/asterisk/ssl/privkey.crt
cipher=ECDHE-RSA-CHACHA20-POLY1305,ECDHE-RSA-AES256-GCM-SHA384,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-RSA-AES256-SHA384,ECDHE-RSA-AES128-SHA256,AES256-GCM-SHA384,AES128-GCM-SHA256
method=tlsv1_2
local_net=10.0.0.0/8,192.168.0.0/16
;===============ENDPOINT TEMPLATES
[endpoint-basic](!)
type=endpoint
context=internal
allow=!all,g722,alaw,ulaw
[auth-userpass](!)
type=auth
auth_type=userpass
[aor-single-reg](!)
type=aor
max_contacts=50
;--------------------
;TEAMS-OUT
;--------------------
[teams-out]
type=endpoint
transport=transport-tls
context=teams
allow=!all,g722,alaw,ulaw
media_encryption=sdes
from_domain=my.teams.sbc.hostname
refer_blind_progress=no
aors=teams-out
[teams-out]
type=aor
qualify_frequency=60
contact=sip:sip.pstnhub.microsoft.com
;--------------------
;TEAMS-IN
;--------------------
[teams-in]
type=endpoint
transport=transport-tls
context=teams
allow=!all,g722,alaw,ulaw
media_encryption=sdes
refer_blind_progress=no
[teams-in]
type=identify
endpoint=teams-in
match=sip-all.pstnhub.microsoft.com
;--------------------
;Speakup
;--------------------
[speakup]
type=aor
contact=sip:switch.sip.speakup.nl
[speakup]
type=endpoint
context=inbound
allow=!all,g722,alaw,ulaw
aors=speakup
[speakup]
type=identify
endpoint=speakup
match=switch.sip.speakup.nl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment