Forum Discussion
NasarKhan
Jan 14, 2026Copper Contributor
How to add a Teams Media Bot in an online meeting.
I am currently developing a Teams Media Bot designed to join Microsoft Teams meetings, record sessions, and perform subsequent analysis. The bot is intended to participate as a visible attendee in me...
Nivedipa-MSFT
Microsoft
Jan 15, 2026@NasarKhan - Thanks for bringing this issue to our attention.
Root Causes of the issues
Issue #1 (Bot Not Visible When Joining Active Meeting):
- The bot does not properly negotiate media with current participants.
- The call establishment handshake is incomplete before the bot tries to record.
- Firewall or port restrictions on the Azure VM may be blocking media streams.
Issue #2 (External Users Redirected to New Meeting):
- The bot joins using an application identity without the necessary tenant context.
- Without a resource account, the bot cannot interact with lobby or admission policies.
- External users cannot be admitted because the bot lacks the required identity and permissions.
Solutions
1: Delayed Join
- Separate the calling webhook from the messaging endpoint in Azure Bot Service.
- Configure the media platform with the correct VM public IP and FQDN.
- Ensure required ports are open on the Azure VM:
- TCP 443, 8445
- UDP 12332-12432 for media streams
- Wait for the "call established" state before starting the recording process.
- Verify the SSL certificate on the VM FQDN for secure signaling
.
2: External User Access
- Create a resource account using PowerShell:
- Run New-CsOnlineApplicationInstance
- Link it to your bot’s App ID
- Assign an application access policy globally or to specific users.
- Update the bot to join meetings with the resource account identity instead of app-only authentication.
- Assign appropriate Teams meeting policies to the resource account for recording and lobby permissions.
Please let us know if you have any other query here.