处理 ACTION_SUCCESSFUL 事件
以下示例显示了成功的 PlayAudio 如何将已存储的 TransactionAttributes
作为 CallDetails
的一部分发送。
{ "SchemaVersion": "1.0", "Sequence": 2, "InvocationEventType": "ACTION_SUCCESSFUL", "ActionData": { "Type": "PlayAudio", "Parameters": { "AudioSource": { "Type": "S3", "BucketName": "
mtg1-sipmedia-app-iad
", "Key": "Welcome3.wav
" }, "Repeat":1
, "ParticipantTag": "LEG-A" } }, "CallDetails": { "TransactionId": "mtg1-tx-id
", "TransactionAttributes": { "key1
": "value1
", "key2
": "value2
" }, "AwsAccountId": "166971021612
", "AwsRegion": "us-east-1", "SipRuleId": "aafbd402-b7a2-4992-92f8-496b4563c492
", "SipMediaApplicationId": "e88f4e49-dd21-4a3f-b538-bc84eae11505
", "Participants": [ { "CallId": "bbff30c5-866a-41b5-8d0a-5d23d5e19f3e
", "ParticipantTag": "LEG-A
", "To": "+14345550101
", "From": "+14255550199
", "Direction": "Inbound", "StartTimeInMilliseconds": "1644539405907
", "Status": "Connected" } ] } }