Direct Routing, SIP, INVITE TO TEAMS (400 BAD REQUEST)

Brandon Armstead 26 Reputation points
2022-12-29T05:11:42.553+00:00

Outbound calls from my SBC into Teams (Polycom -> SBC -> Teams) always result in a 400 BAD REQUEST.

Example invite below:

https://pastebin.com/F1G1Ce59

I've taken care to make sure numbers are all E.164 format in From/To/Contact. I've also taken care to make sure that FQDN is used in Contact and Record-Route header.

I've tried many different variations and have followed the SIP information here:

https://learn.microsoft.com/en-us/microsoftteams/direct-routing-protocols-sip

I've also tried several different clients (Bria, Polycom CCX 600, Grandstream, etc) to see if maybe it was something in the SDP or otherwise causing an issue.

SIP Transport is TLS, RTP is SRTP

Any help is appreciated, thank you!

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,895 questions
{count} votes

Accepted answer
  1. SokiGuo-MSFT 31,221 Reputation points Microsoft External Staff
    2022-12-30T01:42:58.617+00:00

    Hi @Brandon Armstead

    Great to know that you've already thought of a solution and really appreciate it for your sharing!

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others. You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. And according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    Direct Routing, SIP, INVITE TO TEAMS (400 BAD REQUEST)

    Issue Symptom: Outbound calls from my SBC into Teams (Polycom -> SBC -> Teams) always result in a 400 BAD REQUEST. Also, it was ensured that the phone numbers were all formatted correctly, and several variants and clients were tried, but the problem persisted.

    The Solution: Issue was resolved, socket= param/attribute in top level Record-Route header was not liked by Teams SBC.

    Thank you for your understanding and patience!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Brandon Armstead 26 Reputation points
    2022-12-29T19:14:02.887+00:00

    Issue was resolved, socket= param/attribute in top level Record-Route header was not liked by Teams SBC.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.