# DTMF cannot find other channels

**URL:** <https://community.asterisk.org/t/dtmf-cannot-find-other-channels/84505>\
**Category:** Asterisk APIs\
**Created:** [June 10, 2020, 9:48am UTC](https://community.asterisk.org/t/dtmf-cannot-find-other-channels/84505 "2020-06-10T09:48:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![amin224](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/amin224/32/4523_2.png) [@amin224](https://community.asterisk.org/u/amin224)\
**Post date:** [June 10, 2020, 9:48am UTC](https://community.asterisk.org/t/dtmf-cannot-find-other-channels/84505/1 "2020-06-10T09:48:08Z")

</div>

Good day,

I am working on DTMF for my stasis application. I noticed that the DTMF event is catching the channel where the digits are pressed on the specific phone. My question is there a way to include the other channel ( other phone ) so i can send a response to it. Because apparently the other channel is not being read and I cannot write my logic to the other channel.

> channelDtmfReceivedEvent.getEventObject().getChannel();

 ![callchannel](https://global.discourse-cdn.com/asterisk/original/2X/d/d19c0f3154bcb5b0e2e762596058c1c187b790e6.png)

As you can see only one channel is visible, can I include the other channel and how please? 🙂

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [June 10, 2020, 10:01am UTC](https://community.asterisk.org/t/dtmf-cannot-find-other-channels/84505/2 "2020-06-10T10:01:54Z")

</div>

I don’t understand what you mean exactly. If you are referring to the event itself then no, it’s strictly an event saying that DTMF was received on that channel. It’s up to you to take that and map it to another channel if you wish, or in a bridge it will go through automatically unless disabled.

---

<div class="post-metadata">

**Author:** ![amin224](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/amin224/32/4523_2.png) [@amin224](https://community.asterisk.org/u/amin224)\
**Post date:** [June 10, 2020, 10:16am UTC](https://community.asterisk.org/t/dtmf-cannot-find-other-channels/84505/3 "2020-06-10T10:16:05Z")

</div>

Hey jcolp,

Yes I am trying to use the result of the DTMF for one channel, so I can manipulate the other channel as i wish.  
My goal:  
callee channel presses 2, then i playback a media to caller channel

I tried to simply execute my playback to the caller channel after the digit 2 enters my condition, but instead the callee is receiving the playback. I found this action event “channelsSendDTMFPostRequest” i am going to try

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [June 10, 2020, 10:17am UTC](https://community.asterisk.org/t/dtmf-cannot-find-other-channels/84505/4 "2020-06-10T10:17:28Z")

</div>

You have to know and get the other channel, and execute actions on it. If you use the channel from the event then you’ll execute actions on the callee.

---

<div class="post-metadata">

**Author:** ![amin224](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/amin224/32/4523_2.png) [@amin224](https://community.asterisk.org/u/amin224)\
**Post date:** [June 10, 2020, 11:20am UTC](https://community.asterisk.org/t/dtmf-cannot-find-other-channels/84505/5 "2020-06-10T11:20:19Z")

</div>

Okay there was a problem from my side on the StasisStart function, thank you jcolp it is working.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [July 10, 2020, 11:20am UTC](https://community.asterisk.org/t/dtmf-cannot-find-other-channels/84505/6 "2020-07-10T11:20:22Z")

</div>

Closed on July 10, 2020, 11:20am UTC

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