-
-
Save NickBouwhuis/970f895e264f69f54d5fd7d6a62cbf2f to your computer and use it in GitHub Desktop.
pjsip.conf for a Teams SBC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;===============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 | |
external_media_address=x.x.x.x | |
external_signaling_address=x.x.x.x | |
;===============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