Skip to content

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 ​

ParameterTypeDescription
callIdstringIdentifier of the call
legIdstringIdentifier of the leg that sent digits
digitsstringDTMF digits sent by that leg

Notes ​

  • Useful for call automation, IVR telemetry, or diagnostics
  • Event name is dtmf on Web; native callbacks/delegates expose onDTMFUpdate-equivalent listeners
  • sendDTMF - Send DTMF digits to an active call

Built with VitePress.