Forum Discussion

allabashashaik's avatar
allabashashaik
Copper Contributor
Oct 23, 2024

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:

  1. Register two bots in the same Azure tenant.
  2. Use the Microsoft Graph API to initiate a call from one bot to the other.
  3. Observe the error response.

 

https://graph.microsoft.com/v1.0/communications/calls?Content-Type=application/json

 

{
  "@odata.type": "#microsoft.graph.call",
  "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"
        }
    }
}
    • allabashashaik's avatar
      allabashashaik
      Copper Contributor
      Sure. Kindly check and help us with your suggestions as we are unable to move forward with the development.
      • Nivedipa-MSFT's avatar
        Nivedipa-MSFT
        Icon for Microsoft rankMicrosoft

        allabashashaik - Could you please verify that the tenantId parameter is correctly set for both the source and target bots. This parameter should match the tenant ID of the registered bots?


        The error message "Request authorization tenant mismatch" typically indicates that the tenant ID provided in the API call does not match the tenant ID of the registered bots. Double-check the API request body to ensure all IDs are correctly specified.

         

Resources