Server SDKs
Build AI agents, control calls, send messages, and more
Release the call from hold, resuming normal audio between the parties.
This method emits calling.call.hold events. See Call Events for payload details.
calling.call.hold
None.
dict — Server response confirming the unhold operation.
dict
1import asyncio2from signalwire.relay import RelayClient34client = RelayClient(5 project="your-project-id",6 token="your-api-token",7 host="your-space.signalwire.com",8 contexts=["default"],9)1011@client.on_call12async def handle_call(call):13 await call.answer()14 await call.play([{"type": "tts", "text": "Please hold while I look that up."}])1516 # Put the call on hold17 await call.hold()1819 # Do some processing...20 await asyncio.sleep(5)2122 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."}])2526client.run()