![]() wav file is stored in an S3 bucket that will be accessed by the emulatorSMA Lambda function. The DynamoDB update then triggers the createWav Lambda function to create a wav file of the account ID using the Amazon Polly text to speech service.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.Once configured, when a caller places a call to the inboundPhoneNumber, inboundSMA Lambda performs the following steps: To make the association between phone numbers and the Lambda function, the solution setup process provisions SIP rules and SIP media application instances. Since the exact phone number is not be known until after purchase, these are represented as inboundPhoneNumber, salesPhoneNumber, and supportPhoneNumber accordingly in the description. The third AWS Lambda function, emulatorSMA, simulates an on-premises phone system that answers the transferred call and plays a confirmation message.ĭuring solution setup, three new phone numbers will be automatically purchased from Amazon Chime and associated with the Lambda functions as follows: wav files and store them in an Amazon S3 bucket. The second Lambda function, createWav uses Amazon Polly to create. The first Lambda function, inboundSMA, will handle incoming phone calls. This solution uses three AWS Lambda functions to implement the voice menus and emulate the on-premises phone systems to which phone calls will be routed. ![]() Ability to create an Amazon Chime SDK SIP media applications and add Phone Numbers (ensure your Service Quota for Phone Numbers has not been reached).Latest version of AWS Cloud Development Kit (AWS CDK) installed.AWS Command Line Interface (AWS CLI) installed.This solution will help you build a voice menu system using Amazon Chime SDK SIP media applications, Amazon DynamoDB, AWS Lambda, and Amazon Simple Storage Service (S3), and Amazon Polly. Note: Deploying this demo and receiving traffic from the demo created in this post can incur AWS charges. The Lambda functions in this solution are written in Javascript and Python. In this blog, we will teach you how to implement a simple voice menu system using SMA, the CallAndBridge feature, and a serverless AWS Lambda function. That means you can now use SMA to implement additional telephony use cases like interactive voice response (IVR) systems, remote call forwarding, sequential ringing, and outbound voice notifications. Today, we launched a new capability in SMA, called CallAndBridge that enables you to transfer incoming calls to the public switched telephone network (PSTN) or to an on-premises phone system without the need to create an Amazon Chime SDK meeting. With SMA, builders can add phone numbers and customized voice menus to Amazon Chime SDK meetings using a simple AWS Lambda function. ![]() In November 2020, we launched the SIP media applications (SMA) feature in the US and certain other countries to make it easier for builders to enable Amazon Chime SDK meeting attendees to join via a landline or mobile phone.
0 Comments
Leave a Reply. |