Ms Teams/Direct Routing integration issue.
I'm testing a new SIP trunk configured towards a direct routing from Ms Teams.
When a call is established, if the call is hung up from an external party (a called mobile as example), comes a Bye message from the network and this bye is send towards Ms Teams with a 500 error.
In the outgoing invite I've this contact header:
Contact: unsafe:sip:api-du-a-euwe.pstnhub.microsoft.com:443;x-i=3df74df3-cde0-4457-adfe-c44ecb4386d4;x-c=e567dcedcef25431940d3dbbf440218d/d/8/4fe406e5297744a69ee0aae8855d198e
But they buy towards Ms Teams is send to this Request uri: