Need to send DTMF tones after extension picks up

Discussion in 'General' started by thorpe5278, Jan 10, 2010.

  1. thorpe5278

    Joined:
    Jan 10, 2010
    Messages:
    50
    Likes Received:
    0
    I need to set up an extension when it picks up it will wait about 3 seconds then send a 4 digit DTMF code then hang up. So I will route a call to this extension it will pick up wiat 2 secondt then send a 4 digit DTMF tone. Anyone know an easy way to do this.
     
  2. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Welcome to Elastix.

    add this context to /etc/asterisk/extensions_custom.conf

    [play-stuff]
    exten => tone1,1,Answer()
    exten => tone1,n,wait(2)
    exten => tone1,n,senddtmf("1234567" )
    exten => tone1,n,hangup()


    add a custom destination to

    play-stuff,tone1,1

    and describe it anyway you want,

    It will then be available as a destination
     
  3. thorpe5278

    Joined:
    Jan 10, 2010
    Messages:
    50
    Likes Received:
    0
    This worked great thanks
     
  4. Disha

    Joined:
    Aug 6, 2010
    Messages:
    1
    Likes Received:
    0
    Hi Dicko
    Can you let me know where can i put play-stuff,tone1,1
     
  5. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    In a "custom destination" that you will create?
     

Share This Page