Send dtmf from IVR

Provided you are calling from an extension that has dtmf signalling set to inband this can be done.

  • In the file /ext/asterisk/extensions_custom.conf add these lines at the bottom:

[custom-playdigits]
exten => s, 1, noop(entering user defined context [custom-playdigits] in extensions_custom.conf)
exten => s,n,answer()
exten => s,n,senddtmf(1234) ; substitute digits for whatever code you want to play.
; exten => s,n,senddtmf(1w2w3w4) ;uncomment to play digits with pauses between
exten => s,n,hangup

  • In Admin, Custom Destination, create a new custom destination that points to “custom-playdigits,s,1” (without quotes)
  • In your IVR, point one of the options to the destination created in #2.