I’m working on a mobile simulator with a simple web interface that includes a dialpad. The flow is:
-
User presses digits on the web dialpad.
-
The digits are sent to a Stasis application in Asterisk.
-
I want two things to happen when a digit is entered:
-
The caller hears the DTMF tone corresponding to the digit.
-
The Stasis app receives an
OnChannelDtmfReceivedevent so I can run some logic in response.
-
I’m wondering: is there a way to send DTMF specifically from that channel so both of these things happen?
Right now, the digits are reaching the Stasis app, but I’m not sure how to make them audible to the caller while still triggering logic in the event handler.
Any guidance, examples, or suggestions would be really appreciated!
Thanks in advance.