- Newest
- Most votes
- Most comments
Unfortunately, the answer to both your questions is "no."
Here's my assumption about your configuration: You have a SIP server that is configured to send calls to a Voice Connector where you've configured a SIP rule to have that call handled by a SIP Media Application (SMA). It's not clear to me in your question where/how the PSTN might be involved but that does really matter.
With the SIP media application, you can terminate the call coming in from your SIP server but you cannot send a 302 in response. You can have your SMA end the call with a 480 or 486. One workaround would be to use some external database to hold state. The SMA could write something to the db (like "send this call to 'here') and they return a 486. When your SIP server receives the 486, your code could look in the state db to find out what it should do next. (Not very pretty, I know.)
- Documentation for the valid return codes is here: https://docs.aws.amazon.com/chime-sdk/latest/dg/hangup.html
Using another media endpoint is also not possible. The SDP is not under your control. But you could use the CallAndBridge action to send this call on to a Voice Connector and the SIP server destination for that VC. We can't separate the signaling and media so this means your media server must also be able to handle the SIP call.
These workarounds might be worthwhile if you are getting other value by using the SIP Media Application. I don't know enough about your scenario to say if that's true or if you should just consider doing all of the call handling on your SIP server alone.
answered 2 years ago
I apologize, but based on the information available in the provided sources, I cannot provide a direct answer to your specific questions about sending a 302 redirect message or terminating media to another server using Amazon Chime SDK Voice Connector.
The Amazon Chime SDK Voice Connector is primarily designed to provide SIP trunking services for existing phone systems, allowing for inbound and outbound calling. It integrates with SIP media applications and AWS Lambda functions to handle call routing and perform actions like playing audio or joining meetings.
While the Voice Connector can be configured for various call routing scenarios, the sources do not mention specific capabilities for sending 302 redirect messages or terminating media to external servers while only using Chime for SIP signaling.
The SIP media applications associated with Voice Connectors are designed to invoke Lambda functions that can perform predefined actions, but these actions appear to be limited to the built-in capabilities of the Chime SDK.
If you need advanced SIP routing or media handling capabilities beyond what's described in the standard Voice Connector documentation, you may need to explore alternative solutions or contact AWS support for more specific guidance on your use case. It's possible that these advanced scenarios require custom configurations or are not currently supported features of the Amazon Chime SDK Voice Connector.
Sources
Managing Amazon Chime SDK Voice Connectors - Amazon Chime SDK
Understanding SIP applications and rules - Amazon Chime SDK
Understanding phone numbers, SIP rules, SIP media applications, and AWS Lambda functions for Amazon Chime SDK PSTN audio - Amazon Chime SDK
answered 2 years ago
Relevant content
asked 2 years ago
asked 2 years ago
