When a NEW_INCOMING_CALL
event occurs, the Audio Service creates a unique
TransactionID
and unique CallID
that persist until the
HANGUP
event occurs.
You can respond in several ways to a NEW_INCOMING_CALL
event. For
example:
-
Send
PlayAudio
orRecordAudio
actions and automatically answer the call. -
Send a
Pause
action. -
Send a
Hangup
action, in which case the call isn’t answered and the customer isn’t charged. -
Send a
CallAndBridge
action and add another user to the call. -
Do nothing, the call attempt times out after 30 seconds.
When a new inbound call is received, the SIP media application invokes an AWS Lambda function with this payload.
{
"SchemaVersion": "1.0",
"Sequence": 2
,
"InvocationEventType": "NEW_INBOUND_CALL"
"CallDetails": {
"TransactionId": "transaction-id
",
"AwsAccountId": "aws-account-id
",
"AwsRegion": "us-east-1
",
"SipRuleId": "sip-rule-id
",
"SipApplicationId": "sip-application-id
",
"Participants": [
{
"CallId": "call-id-1
",
"ParticipantTag": "LEG-A",
"To": "+12065551212
",
"From": "+15105550101
",
"Direction": "Inbound",
"StartTimeInMilliseconds": "159700958834234
",
"Status": "Connected"
}
]
}
}