title: Custom dialler, how can I send "1" or "2" via the call. For when you call a customer service and they need input
body: <p>So I have this code, that takes my current call and plays the DTMF tone:</p>
  
  <pre><code>if (CallManager.currentCall != null) {
          when (pressed) {
              10 -&gt; CallManager.currentCall?.playDtmfTone("*".toCharArray()[0])
              11 -&gt; CallManager.currentCall?.playDtmfTone("#".toCharArray()[0])
              else -&gt; CallManager.currentCall?.playDtmfTone(pressed!!.toChar())
          }
  
      }
  </code></pre>
  
  <p>But I make a call, for example to a big firm. and the machine enters.
  "For sales press 1, for accounting press 2" and so on 
  I press on my view for the layout, and the code gets called, the current call exists, but even so, the call does not take my input. It doesn't respond to what I pressed.
  What am I doing wrong?</p>
  
  <p>I tried multiple default dialers and found that Drupe: <a href="https://play.google.com/store/apps/details?id=mobi.drupe.app&amp;gl=NL" rel="nofollow noreferrer">https://play.google.com/store/apps/details?id=mobi.drupe.app&amp;gl=NL</a>
  Can send the DTMF tones, so I assume this is possible.</p>