Issues with Bot-to-Bot Calls and Call Status Retrieval in Microsoft Teams – Issue 2
I am currently developing a bot-to-bot VOIP call feature using Microsoft Teams and have encountered critical issues that I need assistance with: Please suggest
We have registered 2 bots in the same tenant with separate APP Registrations, As per the documentation sending a body to initiate VOIP calls between the bots however it is not working and getting the below error.
When trying to make bot-to-bot calls, I consistently receive a “Request authorization tenant mismatch” error, despite both bots being registered under the same tenant.
Steps to Reproduce:
Register two bots in the same Azure tenant.Use the Microsoft Graph API to initiate a call from one bot to the other.Observe the error response.
https://graph.microsoft.com/v1.0/communications/calls?Content-Type=application/json
Error Message:
I am currently developing a bot-to-bot VOIP call feature using Microsoft Teams and have encountered critical issues that I need assistance with: Please suggestWe have registered 2 bots in the same tenant with separate APP Registrations, As per the documentation sending a body to initiate VOIP calls between the bots however it is not working and getting the below error. When trying to make bot-to-bot calls, I consistently receive a “Request authorization tenant mismatch” error, despite both bots being registered under the same tenant.Steps to Reproduce:Register two bots in the same Azure tenant.Use the Microsoft Graph API to initiate a call from one bot to the other.Observe the error response. https://graph.microsoft.com/v1.0/communications/calls?Content-Type=application/json { “@odata.type”: “#microsoft.graph.call”, “callbackUri”: “https://7084-&&&&&-234.ngrok-free.app/callback”, “source”: { “@odata.type”: “#microsoft.graph.participantInfo”, “identity”: { “@odata.type”: “#microsoft.graph.identitySet”, “application”: { “@odata.type”: “#microsoft.graph.identity”, “displayName”: “VOIP Call Bot”, “id”: “BOT 1 APP ID” } }, “region”: null, “languageId”: null }, “targets”: [ { “@odata.type”: “#microsoft.graph.invitationParticipantInfo”, “identity”: { “@odata.type”: “#microsoft.graph.identitySet”, “application”: { “@odata.type”: “#microsoft.graph.identity”, “displayName”: “Calling_Teams_Bot”, “id”: “APP ID”, “tenantId”: “BOT 1 APP Tenant ID” } } } ], “requestedModalities”: [ “audio” ], “tenantId”: “BOT 1 APP Tenant ID”, “mediaConfig”: { “@odata.type”: “#microsoft.graph.serviceHostedMediaConfig” }} Error Message: { “error”: { “code”: “7505”, “message”: “Request authorization tenant mismatch.”, “innerError”: { “date”: “2024-10-23T18:28:10”, “request-id”: “66dd5026-763a-46bc-9a94-79cf0630ed33”, “client-request-id”: “66dd5026-763a-46bc-9a94-79cf0630ed33” } }} Read More