Hello everybody! Is possible initiate a call between two users?
For example:
Using this Graph API endpoint: POST https://graph.microsoft.com/v1.0/communications/calls
and in the request body put as a source an user.
{
"@odata.type": "#microsoft.graph.call",
"callbackUri": "link",
"source": {
"@odata.type": "#microsoft.graph.participantInfo",
"identity": {
"@odata.type": "#microsoft.graph.identitySet",
"user": {
"@odata.type": "#microsoft.graph.identity",
"displayName": "User1",
"id": "asd-asd-asd-asd
}
}
},
"targets": [
{
"identity": {
"user": {
"displayName": "User2",
"id": "123-123-123-123"
}
}
}
],
"requestedModalities": [
"audio"
],
"mediaConfig": {
"@odata.type": "#microsoft.graph.serviceHostedMediaConfig"
},
"tenantId": "asd"
}
I am trying this but, I get an error:
{
"error": {
"code": "7507",
"message": "Call source identity invalid.",
"innerError": {
"date": "2022-07-18T16:59:56",
"request-id": "asd",
"client-request-id": "asd"
}
}
}