The entered account ID will be stored in DynamoDB.If the Caller ID has no associated account ID, the caller will be asked to enter their account ID using their keypad.If the Caller ID has an associated account, it plays a prompt and requests the caller to key in ‘1’ for sales or ‘2’ for support.Uses the From: parameter (Caller ID) in the NEW_INBOUND_CALL payload to fetch the associated account ID from a DynamoDB table.Answers the call and plays a welcome prompt.When the PSTN caller hangs up, the PSTN Audio service invokes the Lambda function with a HANGUP event, and the Lambda function deletes the attendee. Once the AWS SDK returns a MeetingId and AttendeeId, the Lambda function returns an action to join the call to the Amazon Chime SDK Meeting (LEG-B).Ī Real-time Transport Protocol (RTP) session is established between the caller from the public switched telephone network (PSTN) and the Amazon Chime Media service. The Lambda function uses the AWS SDK to create an Amazon Chime SDK meeting and a meeting attendee. The PSTN Audio service invokes the Lambda function with the DTMF digits input. The PSTN Audio service answers the call, plays an audio prompt, and collects DTMF digits input by the caller. The Lambda function returns a list of actions, including PlayAudioAndGetDigits, which instructs the PSTN Audio service to answer the call, play an audio file to the caller, and collect the DTMF digits entered by the caller. ![]() ![]() The PSTN audio service fetches the associated SIP media application and invokes the associated Lambda function with a NEW_INBOUND_CALL event (LEG-A). The Amazon Chime SDK PSTN audio service receives a call to a phone number that is provisioned in a SIP rule.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |