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

1import asyncio
2from signalwire.relay import RelayClient
3
4client = RelayClient(
5 project="your-project-id",
6 token="your-api-token",
7 host="your-space.signalwire.com",
8 contexts=["default"],
9)
10
11@client.on_call
12async def handle_call(call):
13 await call.answer()
14 await call.play([{"type": "tts", "text": "Please hold while I look that up."}])
15
16 # Put the call on hold
17 await call.hold()
18
19 # Do some processing...
20 await asyncio.sleep(5)
21
22 result = await call.unhold()
23 print(f"Call resumed from hold: {result}")
24 await call.play([{"type": "tts", "text": "Thanks for holding. I have your answer."}])
25
26client.run()