0

我使用Microsoft Graph API 的 Create Call来创建群组通话(音频)。连接创建成功,但每个成员都收不到其他成员发布的任何聊天消息。

(图)大家收不到别人消息的现象

要求如下:

POST https://graph.microsoft.com/beta/app/calls
Content-Type: application/json
Authorization: Bearer <Token>

{
  "@odata.type": "#microsoft.graph.call",
  "callbackUri": "https://myhostname.ngrok.io/callback/calling",
  "mediaConfig": {
    "@odata.type": "#microsoft.graph.serviceHostedMediaConfig"
  },
  "source": {
    "identity": {
      "application": {
        "id": "myCallingAppId"
      }
    }
  },
  "subject": "Test Call",
  "targets": [
    {
      "identity": {
        "user": {
          "id": "User_1-Id",
          "displayName": "User_1-DisplayName"
        }
      },
      "identity": {
        "user": {
          "id": "User_2-Id",
          "displayName": "User_2-Name"
        }
      }
    }
  ],
  "tenantId": "myCallingAppTenant"
}

回复:

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#communications/calls/$entity",
    "id": "481f0c00-ffff-41cd-bbc8-7e21fb5e8b1b",
    "state": "establishing",
    "transferState": null,
    "terminationReason": null,
    "direction": "outgoing",
    "ringingTimeoutInSeconds": null,
    "subject": "Test Call",
    "callbackUri": "https://myhostname.ngrok.io/callback/calling",
    "requestedModalities": [],
    "activeModalities": [],
    "routingPolicies": [],
    "tenantId": "myCallingAppTenant",
    "myParticipantId": "59e11e38-87d0-4ae5-b3ce-051ea26aa34d",
    "mediaState": null,
    "resultInfo": null,
    "answeredBy": null,
    "chatInfo": null,
    "meetingInfo": null,
    "meetingCapability": null,
    "toneInfo": null,
    "incomingContext": null,
    "callRoutes": [],
    "source": {
        "region": null,
        "languageId": null,
        "identity": {
            "user": null,
            "device": null,
            "phone": null,
            "application": {
                "id": "myCallingAppId",
                "displayName": null
            }
        }
    },
    "targets": [
        {
            "region": null,
            "languageId": null,
            "identity": {
                "application": null,
                "device": null,
                "phone": null,
                "user": {
                    "id": "User_1-Id",
                    "displayName": "User_1-DisplayName"
                }
            }
        },
        {
            "region": null,
            "languageId": null,
            "identity": {
                "application": null,
                "device": null,
                "phone": null,
                "user": {
                    "id": "User_2-Id",
                    "displayName": "User_2-DisplayName"
                }
            }
        }
    ],
    "mediaConfig": {
        "@odata.type": "#microsoft.graph.serviceHostedMediaConfig",
        "removeFromDefaultAudioGroup": null,
        "preFetchMedia": []
    }
}

是否遗漏了任何配置。如何创建具有正常消息通信的呼叫。谁能帮帮我,谢谢!

4

0 回答 0