使用自動化 Amazon Chime 聲 EventBridge - Amazon Chime

您必須是 Amazon Chime 系統管理員,才能完成本指南中的步驟。如果您需要有關 Amazon Chime 桌面用戶端、Web 應用程式或行動應用程式的協助,請參閱Amazon Chime 使用者指南中的取得支援

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

使用自動化 Amazon Chime 聲 EventBridge

Amazon EventBridge 可讓您自動化您的AWS服務,並自動回應系統事件,例如應用程式可用性問題或資源變更等。如需會議活動的詳細資訊,請參閱 Amazon Chime 開發人員指南中的會議活動

Amazon Chime 產生事件時,會傳至 EventBridge 事件,這意味著 Amazon Chime 會嘗試將所有事件傳送至 EventBridge,但在極少數情況下,事件可能無法傳送。如需詳細資訊,請參閱 Amazon EventBridge 使用者指南中的來自AWS服務的事件

注意

如果您需要加密資料,則必須使用 Amazon S3 受管金鑰。我們不支援使用儲存在金鑰管理服務中的客戶主金鑰進行AWS伺服器端加密。

使用自動化 Amazon Chime 語音連接器 EventBridge

可以對 Amazon Chime 語音連接器自動觸發的動作如下:

  • 呼叫 AWS Lambda 函數

  • 啟動 Amazon Elastic Container Service 任務

  • 將事件轉至 Amazon Kinesis Video Streams

  • 啟動 AWS Step Functions 狀態機器

  • 通知 Amazon SNS 主題或 Amazon SQS 佇列

EventBridge 搭配 Amazon Chime 語音連接器使用的一些範例包括:

  • 啟用 Lambda 函數以在通話結束後下載通話的音訊。

  • 啟動 Amazon ECS 任務以在呼叫開始後啟用即時轉錄。

如需詳細資訊,請參閱 Amazon SNS EventBridge 使用者指南

Amazon Chime 語音連接器串流事件

Amazon Chime 語音連接器支援在本節中討論的事件發生 EventBridge 時傳送事件。

Amazon Chime 語音連接器會在媒體串流至 Kinesis Video Streams 開始時傳送此事件。

範例 事件資料

以下是此事件的範例資料。

{ "version": "0", "id": "12345678-1234-1234-1234-111122223333", "detail-type": "Chime VoiceConnector Streaming Status", "source": "aws.chime", "account": "111122223333", "time": "yyyy-mm-ddThh:mm:ssZ", "region": "us-east-1", "resources": [], "detail": { "callId": "1112-2222-4333", "direction": "Outbound", "fromNumber": "+12065550100", "inviteHeaders": { "from": "\"John\" <sip:+12065550100@10.24.34.0>;tag=abcdefg", "to": "<sip:+13605550199@abcdef1ghij2klmno3pqr4.voiceconnector.chime.aws:5060>", "call-id": "1112-2222-4333", "cseq": "101 INVITE", "contact": "<sip:user@10.24.34.0:6090>;", "content-type": "application/sdp", "content-length": "246" }, "isCaller": false, "mediaType": "audio/L16", "sdp": { "mediaIndex": 0, "mediaLabel": "1" }, "siprecMetadata": "<&xml version=\"1.0\" encoding=\"UTF-8\"&>;\r\n<recording xmlns='urn:ietf:params:xml:ns:recording:1'>", "startFragmentNumber": "1234567899444", "startTime": "yyyy-mm-ddThh:mm:ssZ", "streamArn": "arn:aws:kinesisvideo:us-east-1:123456:stream/ChimeVoiceConnector-abcdef1ghij2klmno3pqr4-111aaa-22bb-33cc-44dd-111222/111122223333", "toNumber": "+13605550199", "transactionId": "12345678-1234-1234", "voiceConnectorId": "abcdef1ghij2klmno3pqr4", "streamingStatus": "STARTED", "version": "0" } }

Amazon Chime 語音連接器會在媒體串流至 Kinesis Video Streams 結束時傳送此事件。

範例 事件資料

以下是此事件的範例資料。

{ "version": "0", "id": "12345678-1234-1234-1234-111122223333", "detail-type": "Chime VoiceConnector Streaming Status", "source": "aws.chime", "account": "111122223333", "time": "yyyy-mm-ddThh:mm:ssZ", "region": "us-east-1", "resources": [], "detail": { "streamingStatus": "ENDED", "voiceConnectorId": "abcdef1ghij2klmno3pqr4", "transactionId": "12345678-1234-1234", "callId": "1112-2222-4333", "direction": "Inbound", "fromNumber": "+12065550100", "inviteHeaders": { "from": "\"John\" <sip:+12065550100@10.24.34.0>;tag=abcdefg", "to": "<sip:+13605550199@abcdef1ghij2klmno3pqr4.voiceconnector.chime.aws:5060>", "call-id": "1112-2222-4333", "cseq": "101 INVITE", "contact": "<sip:user@10.24.34.0:6090>", "content-type": "application/sdp", "content-length": "246" }, "isCaller": false, "mediaType": "audio/L16", "sdp": { "mediaIndex": 0, "mediaLabel": "1" }, "siprecMetadata": "<&xml version=\"1.0\" encoding=\"UTF-8\"&>\r\n<recording xmlns='urn:ietf:params:xml:ns:recording:1'>", "startFragmentNumber": "1234567899444", "startTime": "yyyy-mm-ddThh:mm:ssZ", "endTime": "yyyy-mm-ddThh:mm:ssZ", "streamArn": "arn:aws:kinesisvideo:us-east-1:123456:stream/ChimeVoiceConnector-abcdef1ghij2klmno3pqr4-111aaa-22bb-33cc-44dd-111222/111122223333", "toNumber": "+13605550199", "version": "0" } }

Amazon Chime 語音連接器會在媒體串流至 Kinesis Video Streams 更新時傳送此事件。

範例 事件資料

以下是此事件的範例資料。

{ "version": "0", "id": "12345678-1234-1234-1234-111122223333", "detail-type": "Chime VoiceConnector Streaming Status", "source": "aws.chime", "account": "111122223333", "time": "yyyy-mm-ddThh:mm:ssZ", "region": "us-east-1", "resources": [], "detail": { "callId": "1112-2222-4333", "updateHeaders": { "from": "\"John\" <sip:+12065550100@10.24.34.0>;;tag=abcdefg", "to": "<sip:+13605550199@abcdef1ghij2klmno3pqr4.voiceconnector.chime.aws:5060>", "call-id": "1112-2222-4333", "cseq": "101 INVITE", "contact": "<sip:user@10.24.34.0:6090>", "content-type": "application/sdp", "content-length": "246" }, "siprecMetadata": "<&xml version=\"1.0\" encoding=\"UTF-8\"&>\r\n<recording xmlns='urn:ietf:params:xml:ns:recording:1'>", "streamingStatus": "UPDATED", "transactionId": "12345678-1234-1234", "version": "0", "voiceConnectorId": "abcdef1ghij2klmno3pqr4" } }

Amazon Chime 語音連接器會在媒體串流至 Kinesis Video Streams 失敗時傳送此事件。

範例 事件資料

以下是此事件的範例資料。

{ "version": "0", "id": "12345678-1234-1234-1234-111122223333", "detail-type": "Chime VoiceConnector Streaming Status", "source": "aws.chime", "account": "111122223333", "time": "yyyy-mm-ddThh:mm:ssZ", "region": "us-east-1", "resources": [], "detail": { "streamingStatus":"FAILED", "voiceConnectorId":"abcdefghi", "transactionId":"12345678-1234-1234", "callId":"1112-2222-4333", "direction":"Inbound", "failTime":"yyyy-mm-ddThh:mm:ssZ", "failureReason": "Internal failure", "version":"0" } }