[Asterisk-Users] DTMF Tone Lengths
Rob Tarte
rtarte at pacificcodeworks.com
Tue Aug 23 17:51:04 MST 2005
Asterisk generates DTMF tones in do_senddigit() in the file channel.c.
The tones are defined in a const char array called dtmf_tones[]. Each
DTMF tone is a string that looks something like:
"!941+1336/100,!0/100", /* 0 */
The part that reads !941+1336/100 is the part that you want. Change the
"100" to something bigger and recompile. You will have to do that for
every tone.
I hope that helps.
Rob
Rich Adamson wrote:
>Someone else on the list had a similar problem, and as I recall, they
>changed a parameter in asterisk to cause "it" to send longer dtmf
>tones. That posting happened within the last couple of months.
>
>Essentially the sip phone sends dtmf signaling via the rfc method
>within sip packets (not actual tones), asterisk interprets the
>digits, and generates the dtmf tones. I don't have a clue where to
>find the asterisk parameter to control that, but would have to guess
>it is in a header file within the asterisk source directory.
>
>------------------------
> From: Ronald Hartmann <RHartmann at nnamtraH.com>
> Subject: [Asterisk-Users] DTMF Tone Lengths
> Date: Sun, 5 Jun 2005 12:33:12 -0400
>
>Good day,
>
> I am hoping that someone can assist me with a work around.
>
> I have an IVR system that I am attempting to connect asterisk
>to, however the IVR was written
> Some time ago, and requires tones to be approximately 2 seconds
>in length. I am using SIP
> Phones, Is there any way to adjust the Length of the Tones that
>asterisk sends out the audio path?
>
> Are there any phones that would allow me to hold the "Buttons"
>in and generate the tone for the entire length that it was held?
>
>I have exhausted my friend "Google" and I think maybe I just am not
>searching correctly, certainly others have crossed this chasm.
>
>Thanks for your direction in this matter.
>
>
>
>---------------End of Original Message-----------------
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
--
Robert Tarte
Pacific CodeWorks
P.O. Box 29050
San Francisco, CA 94129
More information about the asterisk-users
mailing list