You will need to register the calling bot (https://dev.botframework.com/bots/new).
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/create-a-bot-for-teams#register-your-web-service-with-the-bot-framework
Error - Create peer-to-peer VoIP call with application hosted media
I'm making Graph API call to Create peer-to-peer VoIP call with application hosted media,
and I get below error.
Request: { "@odata.type": "#microsoft.graph.call", "callbackUri": "http://2631306c61e9.ngrok.io/xxxx/xxxxx/notification", "source": { "@odata.type": "#microsoft.graph.participantInfo", "identity": { "@odata.type": "#microsoft.graph.identitySet", "application": { "@odata.type": "#microsoft.graph.identity", "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx", "displayName": "<Full Name>" } } }, "targets": [ { "@odata.type": "#microsoft.graph.invitationParticipantInfo", "identity": { "@odata.type": "#microsoft.graph.identitySet", "user": { "@odata.type": "#microsoft.graph.identity", "displayName": "<Full Name>", "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx" } } } ], "requestedModalities": ["Audio"], "mediaConfig": { "@odata.type": "#microsoft.graph.serviceHostedMediaConfig" }, "tenantId": "xxxxxxx-xxxxx-????" }
Referred: https://learn.microsoft.com/en-us/graph/api/application-post-calls?view=graph-rest-1.0&tabs=http
Even for empty JSON body as below, I do get this error without raising any BadRequest error.
POST /v1.0/communications/calls
Content-Type: application/json
Authorization: Bearer eyJ0eX????????
{}
{
"error": {
"code": "UnknownError",
"message": "{\"errorCode\":\"7503\",\"message\":\"Application is not registered in our store.\",\"instanceAnnotations\":[]}",
"innerError": {
"date": "2020-09-21T07:47:35",
"request-id": "db5022ae-94aa-48df-91fb-69171e38451c",
"client-request-id": "db5022ae-94aa-48df-91fb-69171e38451c"
}
}
}
2 answers
Sort by: Most helpful
-
PKC 11 Reputation points
2020-09-24T03:50:18.107+00:00 -
JamesTran-MSFT 36,631 Reputation points Microsoft Employee
2020-09-24T18:59:46.2+00:00 @Bharatha De Silva
I'm glad you were able to resolve your initial issue!Looking into your question, Example 2 states - "a peer-to-peer call between the bot and the specified user". Additionally, at the top of the documentation it says - "Create call enables your bot to create a new outgoing peer-to-peer or group call..."
I've reached out to our engineering team for this and since this issue is a Teams related issue, I've added the correct tags. However, you might be able to get a faster response from our "Teams" team, by posting to their forum.
Thank you for your time!