RelayCall

unhold

View as MarkdownOpen in Claude

Release the call from hold, resuming normal audio between the parties.

This method emits calling.call.hold events. See Call Events for payload details.

Parameters

None.

Returns

dict — Server response confirming the unhold operation.

Example

import asyncio
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):
await call.answer()
await call.play([{"type": "tts", "params": {"text": "Please hold while I look that up."}}])
# Put the call on hold
await call.hold()
# Do some processing...
await asyncio.sleep(5)
result = await call.unhold()
print(f"Call resumed from hold: {result}")
await call.play([{"type": "tts", "params": {"text": "Thanks for holding. I have your answer."}}])
client.run()