RELAYCall

send_digits

View as MarkdownOpen in Claude

Send DTMF tones on the call. Use this to navigate IVR menus on outbound calls or to send tone signals.

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

Parameters

digits
strRequired

The DTMF digit string to send. Valid characters: 0-9, *, #, A-D, W (0.5s pause), w (1s pause).

control_id
Optional[str]

Custom control ID. Auto-generated if not provided.

Returns

dict — Server response confirming the send_digits 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 await call.answer()
13
14 result = await call.send_digits("1w2")
15 print(f"Digits sent: {result}")
16
17client.run()