microsoftgraph / microsoft-graph-comms-samples

Microsoft Graph Communications Samples
MIT License
207 stars 225 forks source link

Bot deployed in AKS bot doesn't join the meeting with the MediaControllerConversationAddParticipantFailed error #380

Open yohelmes opened 3 years ago

yohelmes commented 3 years ago

Describe the issue Hi all, We try to deploy our bot to AKS by guide https://github.com/microsoftgraph/microsoft-graph-comms-samples/blob/master/Samples/V1.0Samples/AksSamples/teams-recording-bot/docs/deploy/aks.md#create-bot-channels-registration

We had configured it, the bot is accessible by HTTP and can receive incoming events. When we try to send a join request on /joincall endpoint, we get a response 200 - OK. But then the Bot doesn't join the meeting. We get a MediaControllerConversationAddParticipantFailed error. But locally the Bot in a container works via ngrok.

Logs of the call attached below

Expected behavior Bot joins to the meeting.

Graph SDK (please complete the following information): Microsoft.Graph.Communications.Calls.Media v1.2.0.850 Microsoft.Skype.Bots.Media v1.17.0.39-alpha

Call ID 421f6800-891f-4653-b699-68c00f271beb 2020-12-01T13:23:22.0377961Z

Logs $>2020-12-01T13:23:22.0377961Z Info: CommunicationsClientExtensions.cs:151 LogAndCreateResponse ScenarioId: 7525100c-c9a6-46d5-95ea-60e6f3184edd AppId: 6f1c9bf8-7c2f-4948-8cf9-0a36a0f0a5a5 AppName: InterprefyBot.Api TransactionDirection: Incoming TraceType: HttpRequest request: POST https://teams-recording-bot-0.teams-recording-bot.teams-recording-bot.svc.cluster.local:9441/0/api/calling headers: X-Microsoft-Skype-Chain-ID: 63eb8077-af10-458a-be8d-6b8346609d1b Scenario-Id: 7525100c-c9a6-46d5-95ea-60e6f3184edd X-Microsoft-Skype-Message-ID: b7a2f3e8-dcd1-407e-aebf-5e65434b779c Connection: close Accept: application/json Authorization: (redacted) Host: teams-recording-bot-0.teams-recording-bot.teams-recording-bot.svc.cluster.local:9441 User-Agent: Microsoft-Skype/3.0,(Calling/1.0) Content-Length: 977 Content-Type: application/json { "@odata.type": "#microsoft.graph.commsNotifications", "value": [ { "@odata.type": "#microsoft.graph.commsNotification", "changeType": "deleted", "resourceUrl": "/communications/calls/421f6800-891f-4653-b699-68c00f271beb", "resource": "/app/calls/421f6800-891f-4653-b699-68c00f271beb", "resourceData": { "@odata.type": "#microsoft.graph.call", "state": "terminated", "resultInfo": { "@odata.type": "#microsoft.graph.resultInfo", "code": 500, "subcode": 7112, "message": "MediaControllerConversationAddParticipantFailed" }, "chatInfo": { "@odata.type": "#microsoft.graph.chatInfo", "threadId": "19:meeting_NDI0ZDNjNWUtYmRiMy00YjI0LTkyY2EtODBkYTI2ZWZkNzBm@thread.v2", "messageId": "0" }, "meetingInfo": { "@odata.type": "#microsoft.graph.organizerMeetingInfo", "organizer": { "@odata.type": "#microsoft.graph.identitySet", "user": { "@odata.type": "#microsoft.graph.identity", "id": "c70c131e-a6fa-4055-b31a-6becebda54c9", "tenantId": "1a33b323-4724-41a6-aef3-9645e3e92b3d" } } }, "callChainId": "63eb8077-af10-458a-be8d-6b8346609d1b", "id": "421f6800-891f-4653-b699-68c00f271beb" } } ] } $>2020-12-01T13:23:22.0248526Z Warning: NotificationDispatcher.cs:171 ProcessNotification ScenarioId: 7525100c-c9a6-46d5-95ea-60e6f3184edd AppId: 6f1c9bf8-7c2f-4948-8cf9-0a36a0f0a5a5 AppName: InterprefyBot.Api No queue or registered callbacks for Deleted: /communications/calls/421f6800-891f-4653-b699-68c00f271beb $>2020-12-01T13:23:15.6816860Z Info: CommunicationsClientExtensions.cs:151 LogAndCreateResponse ScenarioId: 7525100c-c9a6-46d5-95ea-60e6f3184edd AppId: 6f1c9bf8-7c2f-4948-8cf9-0a36a0f0a5a5 AppName: InterprefyBot.Api TransactionDirection: Incoming TraceType: HttpRequest request: POST https://teams-recording-bot-0.teams-recording-bot.teams-recording-bot.svc.cluster.local:9441/0/api/calling headers: X-Microsoft-Skype-Chain-ID: 63eb8077-af10-458a-be8d-6b8346609d1b Scenario-Id: 7525100c-c9a6-46d5-95ea-60e6f3184edd X-Microsoft-Skype-Message-ID: bbd4d985-40bf-48b0-b6de-5aebbfe892d5 Connection: close Accept: application/json Authorization: (redacted) Host: teams-recording-bot-0.teams-recording-bot.teams-recording-bot.svc.cluster.local:9441 User-Agent: Microsoft-Skype/3.0,(Calling/1.0) Content-Length: 834 Content-Type: application/json { "@odata.type": "#microsoft.graph.commsNotifications", "value": [ { "@odata.type": "#microsoft.graph.commsNotification", "changeType": "updated", "resourceUrl": "/communications/calls/421f6800-891f-4653-b699-68c00f271beb", "resource": "/app/calls/421f6800-891f-4653-b699-68c00f271beb", "resourceData": { "@odata.type": "#microsoft.graph.call", "state": "establishing", "chatInfo": { "@odata.type": "#microsoft.graph.chatInfo", "threadId": "19:meeting_NDI0ZDNjNWUtYmRiMy00YjI0LTkyY2EtODBkYTI2ZWZkNzBm@thread.v2", "messageId": "0" }, "meetingInfo": { "@odata.type": "#microsoft.graph.organizerMeetingInfo", "organizer": { "@odata.type": "#microsoft.graph.identitySet", "user": { "@odata.type": "#microsoft.graph.identity", "id": "c70c131e-a6fa-4055-b31a-6becebda54c9", "tenantId": "1a33b323-4724-41a6-aef3-9645e3e92b3d" } } }, "callChainId": "63eb8077-af10-458a-be8d-6b8346609d1b", "id": "421f6800-891f-4653-b699-68c00f271beb" } } ] } $>2020-12-01T13:23:15.5679426Z Warning: NotificationDispatcher.cs:171 ProcessNotification ScenarioId: 7525100c-c9a6-46d5-95ea-60e6f3184edd AppId: 6f1c9bf8-7c2f-4948-8cf9-0a36a0f0a5a5 AppName: InterprefyBot.Api No queue or registered callbacks for Updated: /communications/calls/421f6800-891f-4653-b699-68c00f271beb

Please help to resolve that issue. That is stopping us from going to prod. Thank you.

JasonTheDeveloper commented 3 years ago

Hey @yohelmes,

How are you inviting the bot to join calls? Are you using the compliance route and having Teams invite the bot to join calls or are you trying to manually invite the bot to join calls?

florinc commented 3 years ago

Hi @JasonTheDeveloper, I am having the same problem: the bot does not join the call. I have tried both by calling the https://__.ngrok.io/joinCall from Postman, and also by inviting the bot from Teams, directly in the meeting.

florinc commented 3 years ago

I've got it running on my environment. The problem was with my setup, and it was because we're using Cloudflare for DNS and by default the CNAME entries are proxied by Cloudlfare. I didn't notice this at first and the Media Platform couldn't connect on the TCP port. Changed it to DNS Only and it worked