How to Monitor DTMF in Parallel with a Call in Asterisk?

Hello everyone,

I am looking to set up a solution in Asterisk where it is possible to monitor and capture DTMF inputs in parallel with an active call, without interrupting the ongoing conversation. The goal is to allow a user to enter DTMF digits during the call, and for those digits to be captured for further processing.

What I Need:

I want the DTMF digits to be captured while the call continues normally, without putting the conversation on hold or pausing it. I am open to any solutions, whether it involves native functions like Read, or other advanced methods (scripts, modules, etc.).

What I’ve Tried:

  • Using the Dial command to establish the call, but I’ve noticed that anything following the Dial command does not execute properly after the call is picked up.
  • Attempts with Read to capture DTMF, but it seems to require a pause or waiting state, which is not compatible with an active conversation.

My Questions:

  1. Is there a way to monitor DTMF in parallel with an active call?
  2. How can I configure Asterisk to continue executing the context after a Dial while capturing DTMF without interrupting the call?
  3. Are there any alternative solutions or additional modules that would allow this to be done effectively?

I am open to any suggestions or configuration examples that would help achieve this goal. Thank you in advance for your help and advice!

Use Asterisk Manager Interface (AMI).

(Note that Dial controls the calls right the way through until one party ends it, so anything after Dial wlll only be run when the call is over.)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.