540400: Teams rejected the SIP message
540400 is a Microsoft response code for SIP 400 in Teams Direct Routing. The session border controller (SBC) sent a SIP message that Teams could not read or accept.
What to check
- Find the rejected request in the SBC trace and check its syntax and headers. Compare the message with the Direct Routing SIP requirements before changing the SBC configuration.