User Profile
JohanJdm
Copper Contributor
Joined Feb 18, 2020
User Widgets
Recent Discussions
Re: Teams bot SDK - getting participants and events
Hello Jose_Parada Thanks for your answer! It was indeed as you suggested that in the body of Answer command, the wrong URL was sent. We're using ngrok for generating a callback URI which at the time changed every time you start it. And I wasn't aware that I should update it on 2 locations (bot config in azure and application config). However, in the SDK, it seems that setting the notification callback URI is mandatory. It will throw an exception when you try to build an ICommunicationsClient without setting the URI in the CommunicationsClientBuilder. Another thing is that I have trouble to see who is calling. This information should be available in the "source" property of the call, but this doesn't seem to supply a name or address/phone number: ... "source": { "@odata.type": "#microsoft.graph.participantInfo", "identity": { "@odata.type": "#microsoft.graph.identitySet", "user": { "@odata.type": "#microsoft.graph.identity", "id": "GUID", "tenantId": "GUID" } }, "region": "emea", "languageId": "en-US", "id": "GUID", "endpointType": "(Generic: qZhQWg/4)" } I noticed that the source.identity.user.id property can be used to retrieve the identity from the user graph using the GraphServiceClient. But I'm not sure this is the way to go. It requires an extra query outside the comms SDK, and there is no calling device info (e.g. no calling address). Also the Identity.DisplayName property is available in the model, but it is not set. Do I need to turn on some permissions or other settings to be able to get extra caller info? Or is this how it is supposed to work? Also about the issue of not being able to get the call participants, it turns out that I'm not the only one with this problem https://github.com/microsoftgraph/microsoft-graph-comms-samples/issues/102#issuecomment-514261814. Luckily we only need to know the caller, and that is already in the source property. I hope you can help me with the question about the caller info. Greetings Johan3.1KViews0likes1CommentTeams bot SDK - getting participants and events
Hi all, I'm working on a Teams bot using the https://www.nuget.org/packages/Microsoft.Graph.Communications.Calls. So far what I managed to do is receiving incoming call events on the configured callback URL of the bot. But it seems those are the only events I get. When I hangup the call, I don't see any incoming events. Also, I'm not able to get participant information. In the ICall object of the API there are several participant lists: ICall.Participants ICall.Resource.Participants However, all of these containers are empty. Also when I examine the incoming call event XML data, I can't find a list of participants which explains why the lists are empty. There is also a method to get a single participant. I tried to use that to get my participant like this: await call.Participants.GetAsync(call.Resource.MyParticipantId); But in the logging I see that it results in a 404 not found error... request: GET https://graph.microsoft.com/v1.0/communications/calls/<callId>/participants/<participantId> response: 404 NotFound I can however answer the call. For this it sends: https://graph.microsoft.com/v1.0/communications/calls/<callId>/microsoft.graph.answer In teams I see that the call is answered. Am I doing something wrong? Do I need to initialize something to get follow-up events of a call? The examples in the https://github.com/microsoftgraph/microsoft-graph-comms-samples only leads up to answering the call, but not much further... I hope someone can help me, I'm kinda stuck here... Greetings Johan3.5KViews0likes3Comments
Recent Blog Articles
No content to show