Skip to content

Chime SDK Voice connector - sending SIP response back

0

Hello,

I have been reviewing the Chime Developer Guide and API Reference Guide but haven't found the answer I'm looking for. I have a Chime Voice Connector configured with a SIP media application and can use actions like "speak." However, I need to send a response back to my SIP server with a 302 message, redirecting the call to a new destination, but I haven't found a way to do this.

Additionally, I want to answer the call with Chime but terminate the media (RTP) to another server, essentially using Chime for SIP signalling only. Chime should send the response back with SDP containing the media server address of my choice.

Here are my specific questions:

Sending a 302 Redirect Message: Is there a way to configure Chime to send a 302 redirect message back to my SIP server with a new destination for the call? If so, could someone please provide an example or point me to the relevant documentation?

Terminating Media to Another Server: How can I configure Chime to answer the call but terminate the media to another server? I want Chime to handle the SIP signalling and send the SDP response with the media server address I specify. Any guidance or examples would be greatly appreciated.

Thank you in advance for your assistance!

asked 2 years ago985 views

2 Answers
0

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.)

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.

AWS

answered 2 years ago

-1

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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.