

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 잘못된 입력
<a name="attribute-trans-invalid"></a>

다음 예제에서는 잘못된 입력을 보여줍니다. 이 경우 JSON 객체가 SIP 미디어 애플리케이션에 너무 많은 항목을 전달합니다.

```
{ 
    "SchemaVersion": "1.0", 
    "Actions": [ 
        { 
            "Type": "PlayAudio", 
            "Parameters": { 
                "ParticipantTag": "{{LEG-A}}", 
                "AudioSource": { 
                    "Type": "S3", 
                    "BucketName": "{{mtg1-sipmedia-app-iad}}", 
                    "Key": "{{Welcome3.wav}}" 
                } 
            } 
        } 
    ], 
    "TransactionAttributes": { 
        "{{key1}}": "{{value1}}", 
        "{{key2}}": "{{value2}}", 
        "{{key3}}": "{{value3}}", 
        "{{key4}}": "{{value4}}", 
        "{{key5}}": "{{value5}}", 
        "{{key6}}": "{{value6}}", 
        "{{key7}}": "{{value7}}", 
        "{{key8}}": "{{value8}}", 
        "{{key9}}": "{{value9}}", 
        "{{key10}}": "{{value10}}", 
        "{{key11}}": "{{value11}}" 
    } 
}
```

다음 예제에서는 이전에 주어진 입력에 대한 응답을 보여줍니다. 이 출력은 SIP 미디어 애플리케이션에서 애플리케이션을 호출한 AWS Lambda 함수로 다시 전달됩니다.

```
{ 
    "SchemaVersion": "1.0", 
    "Sequence": {{2}}, 
    "InvocationEventType": "INVALID_LAMBDA_RESPONSE", 
    "CallDetails": { 
        "TransactionId": "{{mtg1-tx-id}}", 
        "AwsAccountId": "{{166971021612}}", 
        "AwsRegion": "{{us-east-1}}", 
        "SipRuleId": "{{aafbd402-b7a2-4992-92f8-496b4563c492}}", 
        "SipMediaApplicationId": "{{e88f4e49-dd21-4a3f-b538-bc84eae11505}}", 
        "Participants": [ 
            { 
                "CallId": "{{72cbec69-f098-45d8-9ad6-e26cb9af663a}}", 
                "ParticipantTag": "{{LEG-A}}", 
                "To": "{{+14345550101}}", 
                "From": "{{+14255550199}}", 
                "Direction": "Inbound", 
                "StartTimeInMilliseconds": "{{1644540839987}}" 
            } 
        ] 
    }, 
    "ErrorType": "TransactionAttributesInvalidMapSize", 
    "ErrorMessage": "Transaction Attributes has too many mappings. Maximum number of mappings is 10" 
}
```