Issue with Teams Bot: Incoming Call Event Not Reaching Bot (App-Hosted Media Sample)

Chandan 0 Reputation points
2025-12-02T09:52:07.71+00:00

I am developing a Microsoft Teams bot that should be able to join a call initiated from a Teams user. The goal is that when a user places a call to the bot inside Teams, the bot should join the call and handle the audio stream as described in Microsoft’s documentation for application-hosted media bots.

I am following the official Microsoft documentation: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/calls-and-meetings/requirements-considerations-application-hosted-media-bots

And I am using the associated Microsoft sample from this GitHub repository: https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/V1.0Samples/LocalMediaSamples

The code builds successfully, but at runtime the bot does not receive the expected incoming call event when a Teams user tries to call it. Therefore, the bot never joins the call.

There are no compilation errors. The issue only happens during execution.

I have verified the following:

The bot is registered correctly in Azure Active Directory.

The bot is added as an app inside Teams (via Developer Portal).

The messaging endpoint is reachable and validated in Azure Bot registration.

The Windows Server VM hosting the bot is reachable externally.

Required ports are open based on Microsoft documentation.

The sample configuration has not been modified except for the App ID and App Secret.

The Teams user placing the call is in the same tenant as the bot’s app registration.

Environment details:

Windows Server 2019 Datacenter (Azure VM)

.NET Framework 4.7.2 (used because sample requires it)

Visual Studio 2022

Public IPv4 assigned

All inbound rules configured as per documentation

Observed behavior:

The sample starts but shows runtime failures related to media initialization.

No incoming call event is received from Teams.

The bot never joins the call.

No error appears in Teams UI besides “not reachable.”

What I need help with:

Confirmation whether the application-hosted media sample is still expected to work with current Teams calling APIs.

Validation whether my configuration is correct based on the documentation.

Guidance on which network ports must be configured in 2024/2025 for media processing.

Clarification whether Windows Server 2019 is still a supported environment for this scenario.

Any known issues that may prevent the incoming call event from reaching the bot.

I will share any runtime logs or correlation IDs that support requests once the case is opened.

I am developing a Microsoft Teams bot that should be able to join a call initiated from a Teams user. The goal is that when a user places a call to the bot inside Teams, the bot should join the call and handle the audio stream as described in Microsoft’s documentation for application-hosted media bots.

I am following the official Microsoft documentation:
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/calls-and-meetings/requirements-considerations-application-hosted-media-bots

And I am using the associated Microsoft sample from this GitHub repository:
https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/V1.0Samples/LocalMediaSamples

The code builds successfully, but at runtime the bot does not receive the expected incoming call event when a Teams user tries to call it. Therefore, the bot never joins the call.

There are no compilation errors. The issue only happens during execution.

I have verified the following:

The bot is registered correctly in Azure Active Directory.

The bot is added as an app inside Teams (via Developer Portal).

The messaging endpoint is reachable and validated in Azure Bot registration.

The Windows Server VM hosting the bot is reachable externally.

Required ports are open based on Microsoft documentation.

The sample configuration has not been modified except for the App ID and App Secret.

The Teams user placing the call is in the same tenant as the bot’s app registration.

Environment details:

Windows Server 2019 Datacenter (Azure VM)

.NET Framework 4.7.2 (used because sample requires it)

Visual Studio 2022

Public IPv4 assigned

All inbound rules configured as per documentation

Observed behavior:

The sample starts but shows runtime failures related to media initialization.

No incoming call event is received from Teams.

The bot never joins the call.

No error appears in Teams UI besides “not reachable.”

What I need help with:

Confirmation whether the application-hosted media sample is still expected to work with current Teams calling APIs.

Validation whether my configuration is correct based on the documentation.

Guidance on which network ports must be configured in 2024/2025 for media processing.

Clarification whether Windows Server 2019 is still a supported environment for this scenario.

Any known issues that may prevent the incoming call event from reaching the bot.

I will share any runtime logs or correlation IDs that support requests once the case is opened.

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-02T09:52:33.79+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It seems you are encountering an issue with your Microsoft Teams bot not receiving incoming call events. Here are some points to consider based on the context provided:

    1. Application-Hosted Media Sample: The application-hosted media sample is designed to work with the current Teams calling APIs. Ensure that you are using the latest version of the sample and that it aligns with the current API specifications.
    2. Configuration Validation: Since you have verified that the bot is registered correctly, the messaging endpoint is reachable, and the necessary ports are open, you should double-check the following:
      • Ensure that the bot's App ID and App Secret are correctly configured in your application.
      • Confirm that the bot has the necessary permissions to receive incoming calls. For multiparty calls, additional permissions may be required.
    3. Network Ports for Media Processing: While the documentation may specify certain ports, it is best to consult the latest Microsoft documentation for any updates regarding network configurations for 2024/2025. Typically, ports for media processing include those for RTP and RTCP, but specific requirements can change.
    4. Supported Environment: Windows Server 2019 is still a supported environment for application-hosted media bots. However, ensure that all dependencies and configurations are compatible with the latest updates from Microsoft.
    5. Known Issues: There may be known issues that prevent the incoming call event from reaching your bot. Check the Microsoft documentation or community forums for any reported problems that match your symptoms. Additionally, consider logging any runtime errors that occur during media initialization, as they may provide insight into the issue.

    If you continue to face issues, sharing runtime logs or correlation IDs with Microsoft support can help diagnose the problem further.

    0 comments No comments

  2. Chandan 0 Reputation points
    2025-12-02T10:12:05.11+00:00

    i want help on executing the sample code.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.