The Amazon Chime SDK action CallAndBridge routes the incoming call to a user.
The CallAndBridge action is returned from the SMA Lambda.
Is there a way to send the action of type CallAndBridge not from the SMA Lambda function, either some REST API or something else?
I have different flow where I need to perform some action on the incoming call and once the action that I perform is successful based on some external events, I need to call the CallAndBridge action to the Amazon Chime SDK.
From the documentation I don't see any way of doing this.
https://docs.aws.amazon.com/chime-sdk/latest/dg/call-and-bridge.html
You can achieve this by using
UpdateSipMediaApplicationCall(see the doc)Basically, what you need to do is;
UpdateSipMediaApplicationCallwith your custom payload. (You can expose this code as a REST API if you want, and call it from SMA)CallUpdateRequested)CallAndBridgeyour-external-worker.js
your-sma.js
Hope that helps, let me know if you need further explanation