Skip to content

Instantly share code, notes, and snippets.

@NickBouwhuis
Created January 2, 2022 21:41
Show Gist options
  • Save NickBouwhuis/1f860ac6964c8b486e1f009b57ebdd1e to your computer and use it in GitHub Desktop.
Save NickBouwhuis/1f860ac6964c8b486e1f009b57ebdd1e to your computer and use it in GitHub Desktop.
extensions.conf for a Teams SBC
[default]
exten = s,1,Noop
same = n,Playback(tt-somethingwrong)
[teams]
exten = _+X.,1,Noop(PSTN)
same = n,Dial(PJSIP/${EXTEN}@speakup)
same = n,HangUp()
; to respond on incoming SIP Options Packates with an "200 OK"
exten = teams-out,1,HangUp()
; to allow Remote Attended Transfers
exten = external_replaces,1,NoOp()
exten = s,1,Dial(PJSIP/teams-in/${SIPREFERTOHDR})
[inbound]
exten = +12025551234,1,NoOp(Incoming call from PSTN. Routing to Teams)
same = n,Progress()
same = n,set(CALLERID(all)="${CALLERID(num)}" <${CALLERID(num)}>)
same = n,Dial(PJSIP/${EXTEN}@teams-out)
same = n,Hangup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment