RelayCall

leave_conference

View as MarkdownOpen in Claude

Leave an audio conference.

Parameters

conference_id
strRequired

The conference ID to leave.

Returns

dict — Server response confirming the leave.

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):
await call.answer()
# Join a conference
result = await call.join_conference("team-standup", beep="onEnter")
# Later, leave the conference
await call.leave_conference(result.get("conference_id"))
client.run()