On DTMF
Fired when DTMF digits are received from a call leg.
Event Registration
fun setOnDTMFListener(
fn: (callId: String, legId: String, digits: String) -> Unit
): Subscription
Usage Example
client.setOnDTMFListener {call, legId, digits ->
println("Received DTMF digits: $digits for leg:$legId with Call $call")
}
Event Data
| Parameter | Type | Description |
|---|---|---|
callId | string | Identifier of the call |
legId | string | Identifier of the leg that sent digits |
digits | string | DTMF digits sent by that leg |
Notes
- Useful for call automation, IVR telemetry, or diagnostics
- Event name is
dtmfon Web; native callbacks/delegates exposeonDTMFUpdate-equivalent listeners
Related Actions
sendDTMF- Send DTMF digits to an active call