microsoft-graph-comms-samples icon indicating copy to clipboard operation
microsoft-graph-comms-samples copied to clipboard

Policy Recording Bot not joining the call

Open aahmad-btit opened this issue 11 months ago • 0 comments

Hi,

I have used below repository code to setup Compliance Recording Bot and running locally. Its endpoints are exposed publicly and are accessible over the internet. https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/V1.0Samples/LocalMediaSamples/PolicyRecordingBot

Endpoints: https://{domain}/logs https://{domain}/api/calling/ https://{domain}/api/calling/notification

I have done below steps already:

  • I did an app registration with following permissions with admin consent: CallRecords.Read.All Calls.AccessMedia.All Calls.Initiate.All Calls.InitiateGroupCall.All Calls.JoinGroupCall.All Calls.JoinGroupCallAsGuest.All OnlineMeetings.ReadWrite.All User.Read
  • I did register a bot in the Azure Bot Service with following Webhook (for calling) https://{domain}/api/calling/
  • Created an Application Instance using below commands Import-Module MicrosoftTeams Connect-MicrosoftTeams New-CsOnlineApplicationInstance -UserPrincipalName [email protected] -DisplayName <displayName> -ApplicationId <your_botappId> Sync-CsOnlineApplicationInstance -ObjectId <objectId>
  • Created a Recording Policy using below commands New-CsTeamsComplianceRecordingPolicy -Enabled $true -Description "Test policy created by <yourName>" <policyIdentity> Set-CsTeamsComplianceRecordingPolicy -Identity <policyIdentity> -ComplianceRecordingApplications ` @(New-CsTeamsComplianceRecordingApplication -Parent <policyIdentity> -Id <objectId>) Get-CsTeamsComplianceRecordingPolicy <policyIdentity>
  • Assigned the Recording Policy to a user Grant-CsTeamsComplianceRecordingPolicy -Identity [email protected] -PolicyName <policyIdentity> Get-CsOnlineUser [email protected] | ft sipaddress, tenantid, TeamsComplianceRecordingPolicy

Testing Scenario:

  • Sign in to Teams client with a non-recorded test tenant user.
  • Use another Teams client to sign in with the recorded user. You could use an private browser window and open up https://teams.microsoft.com.
  • Place a call from the Teams client with the non-recorded user to the recorded user.
  • Your recording bot should receive the incoming call and join the call immediately.

Problem/Issue: My bot is not receiving any notification request and not joining the call.

aahmad-btit avatar Feb 04 '25 17:02 aahmad-btit