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