bind_digit
bind_digit
Bind a DTMF digit sequence to automatically trigger a RELAY method when the caller presses those digits. This enables in-call DTMF shortcuts without requiring an active collect operation.
Use clear_digit_bindings() to remove bindings.
Parameters
digits
The DTMF digit sequence to bind (e.g., "*1", "##").
bind_method
The RELAY calling method to execute when the digit sequence is detected
(e.g., "calling.transfer", "calling.play").
bind_params
Parameters to pass to the bound method when triggered.
realm
A namespace for grouping digit bindings. Useful for selectively clearing bindings by realm.
max_triggers
Maximum number of times this binding can be triggered. After reaching the limit, the binding is automatically removed.
Returns
dict — Server response confirming the binding.