RELAYCall

pass_

View as MarkdownOpen in Claude

Decline control of an inbound call, returning it to the SignalWire routing engine. The call is not ended — it continues to ring and may be delivered to another RELAY client or routing rule.

The method is named pass_() with a trailing underscore because pass is a reserved keyword in Python.

Parameters

None.

Returns

dict — Server response confirming the pass operation.

Example

1from signalwire.relay import RelayClient
2
3client = RelayClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7 contexts=["default"],
8)
9
10@client.on_call
11async def handle_call(call):
12 # Only handle calls from a specific context
13 if call.context != "sales":
14 await call.pass_()
15 print("Call passed back to routing")
16 return
17
18 await call.answer()
19
20client.run()