Having problem to answer call from team member to my bot.
I was trying to follow this documentation https://learn.microsoft.com/en-us/graph/api/call-answer?view=graph-rest-1.0&tabs=http
Unfortunately the JSON respond completely different what I'm getting.
So when I try to call my bot this is a JSON I received.
{
'@odata.type': '#microsoft.graph.commsNotifications',
'value': [
{
'@odata.type': '#microsoft.graph.commsNotification',
'changeType': 'created',
'resource': '/app/calls/541f5b00-2585-4d55-ad61-fdad7cff677d',
'resourceUrl': '/communications/calls/541f5b00-2585-4d55-ad61-fdad7cff677d',
'resourceData': {
'@odata.type': '#microsoft.graph.call',
'state': 'incoming',
'direction': 'incoming',
'callbackUri': 'https://66c6ddc322b2.ngrok.io/communications/calls',
'source': {
'@odata.type': '#microsoft.graph.participantInfo',
'id': 'b3188a12-8ad7-4031-8d9e-836eb5247741',
'identity': {
'@odata.type': '#microsoft.graph.identitySet',
'encrypted': {
'@odata.type': '#microsoft.graph.identity',
'id': '1vt5xhpuezigcqho1cbxzophhekurkt71lex3lsziu_3qk4qtnzgsqxbtrqistfxgpw6gsbcilclv8ikh0ixtkps4wruxmprlt_ieqmrtuajjok_rof6pzz0gghgynzqa',
'tenantId': 'f28c76a9-a6fc-4371-bf61-e1172823c083',
'identityProvider': 'None'
}
},
'endpointType': 'default',
'region': 'uk',
'languageId': 'en-gb'
},
'targets': [
{
'@odata.type': '#microsoft.graph.invitationParticipantInfo',
'identity': {
'@odata.type': '#microsoft.graph.identitySet',
'application': {
'@odata.type': '#microsoft.graph.identity',
'id': 'd8649dc1-f4d5-4631-bb12-481cf6f1e84b',
'identityProvider': 'AAD'
}
},
'endpointType': 'default',
'id': 'd145de98-6cc7-4a23-a385-2ed86fa6fe4d',
'region': None,
'languageId': None
}
],
'tenantId': 'f28c76a9-a6fc-4371-bf61-e1172823c083',
'myParticipantId': 'd145de98-6cc7-4a23-a385-2ed86fa6fe4d',
'callChainId': '8f3fbeb2-eeb9-457e-8f19-3639fbebbf04',
'incomingContext': {
'@odata.type': '#microsoft.graph.incomingContext',
'sourceParticipantId': 'b3188a12-8ad7-4031-8d9e-836eb5247741'
},
'id': '541f5b00-2585-4d55-ad61-fdad7cff677d'
}
}
]
}
----After the first respond immediately my bot receives this JSON twice and drops a call---
{
'@odata.type': '#microsoft.graph.commsNotifications',
'value': [
{
'@odata.type': '#microsoft.graph.commsNotification',
'changeType': 'deleted',
'resource': '/app/calls/ec1f6100-b4f3-45f2-9fa2-93a31f48ef85',
'resourceUrl': '/communications/calls/ec1f6100-b4f3-45f2-9fa2-93a31f48ef85',
'resourceData': {
'@odata.type': '#microsoft.graph.call',
'state': 'terminated',
'resultInfo': {
'@odata.type': '#microsoft.graph.resultInfo',
'code': 408,
'subcode': 8544,
'message': 'Callee could not be reached.'
},
'terminationReason': 'Callee could not be reached.',
'direction': 'incoming',
'callbackUri': 'https://66c6ddc322b2.ngrok.io/communications/calls/hub',
'source': {
'@odata.type': '#microsoft.graph.participantInfo',
'id': '67d0f35b-ca0c-4f40-9ad6-d38fc5476d6a',
'identity': {
'@odata.type': '#microsoft.graph.identitySet',
'encrypted': {
'@odata.type': '#microsoft.graph.identity',
'id': '1vt5xhpuezigcqho1cbxzophhekurkt71lex3lsziu_3qk4qtnzgsqxbtrqistfxgpw6gsbcilclv8ikh0ixtkps4wruxmprlt_ieqmrtuajjok_rof6pzz0gghgynzqa',
'tenantId': 'f28c76a9-a6fc-4371-bf61-e1172823c083',
'identityProvider': 'None'
}
},
'endpointType': 'default',
'region': 'uk',
'languageId': 'en-gb'
},
'targets': [
{
'@odata.type': '#microsoft.graph.invitationParticipantInfo',
'identity': {
'@odata.type': '#microsoft.graph.identitySet',
'application': {
'@odata.type': '#microsoft.graph.identity',
'id': 'd8649dc1-f4d5-4631-bb12-481cf6f1e84b',
'identityProvider': 'AAD'
}
},
'endpointType': 'default',
'id': 'dec2fd90-6eac-4b9e-abd8-d469da8f4cb1',
'region': None,
'languageId': None
}
],