RelayCall

answer

View as MarkdownOpen in Claude

Answer an inbound call. This must be called before performing any media operations on the call. For outbound calls created via client.dial(), the call is already answered when the Call object is returned.

Calling answer() on an already-answered call is safe and returns the server response without error.

Parameters

Returns

dict — Server response confirming the answer operation.

Example

from signalwire.relay import RelayClient
client = RelayClient(
project="your-project-id",
token="your-api-token",
contexts=["default"],
)
@client.on_call
async def handle_call(call):
result = await call.answer()
print(f"Answered call {call.call_id}: {result}")
client.run()