bind_digit
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.
The DTMF digit sequence to bind (e.g., "*1", "##").
The RELAY calling method to execute when the digit sequence is detected
(e.g., "calling.transfer", "calling.play").
Parameters to pass to the bound method when triggered.
A namespace for grouping digit bindings. Useful for selectively clearing bindings by realm.
Maximum number of times this binding can be triggered. After reaching the limit, the binding is automatically removed.
dict — Server response confirming the binding.