can i on the agents side take in dtmf? without tou...
# ask-ai
r
can i on the agents side take in dtmf? without touching hte server side?
t
Thanks for reaching out, Rhythm. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! Agents in LiveKit can easily handle DTMF (Dual-Tone Multi-Frequency) input without any need for server-side changes. LiveKit’s telephony stack is designed to support DTMF tones smoothly, so agents can both send and receive them right within a room. Agents can listen for incoming DTMF tones through the
sip_dtmf_received
event, which fires whenever a SIP participant presses a key on their phone keypad. This makes it simple for agents to process the received digit and respond accordingly, whether that’s navigating an IVR menu or transferring a call. On top of that, agents can also send DTMF tones to telephony users by using the
publishDtmf
method on the local participant. This method works well across different SIP implementations, ensuring smooth compatibility. If you’d like, I’m here to provide more details or examples—just let me know! Sources: ivr-nagivator/agent.py | Docs::Recipes | livekit-android-sdk/src/main/java/io/livekit/android/room/participant/Local... | Docs::Recipes | complex-agents/ivr-agent/agent.py