cuddly-cartoon-47334
07/31/2025, 6:06 PM@ctx.room.on("sip_dtmf_received")
def dtmf_received(dtmf: rtc.SipDTMF):
logging.info`(f"DTMF received from {dtmf.participant.identity}: {dtmf.code} / {dtmf.digit}")`
handle = ctx.proc.userdata["session"].generate_reply(
instructions=(f"(The Contact has just dialed the digit {dtmf.digit} (which is DTMF code {dtmf.code}) via their phone pad.Based on this, you would:)")
)
this is my code to receive dtmf tones . the Agent does receive dtmf tones but the generate_reply just makes the agent repeat itelf and not like say anything regarding those dtmf tones. is this right?cuddly-cartoon-47334
07/31/2025, 6:06 PM