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.