[asterisk-users] How to send DTMF on Zaptel with 50ms tone duration and 50ms gap between the digits?

Zeeshan Zakaria zishanov at gmail.com
Fri Nov 20 17:09:27 CST 2009


I guess I should answer it myself, as I was able to do it successfully.

Here is how I did it:
It is basically very simple, just follow the steps in the Asterisk - Future
of Telephony book to download Asterisk, Zaptel and libpri souce code. Then
change the DTMF duration parameter in channels.c file, which is located in
the directory names 'main'.

Once done, stop asterisk and zaptel on the server. Then recompile zaptel,
libpri and asterisk using make clean; make; make install. Don't do make
samples or make config. Once this is done, restart zaptel and asterisk (I
don't remember if I rebooted once or not) and everything will work. In my
case doing the above didn't break anything, and DTMF digit duration was
changed to 100 ms.


-- 
Zeeshan A Zakaria

On Thu, Nov 12, 2009 at 12:30 PM, Zeeshan Zakaria <zishanov at gmail.com>wrote:

> Hi,
>
> After some testing I've found out that my client's hardware recognizes DTMF
> only if digits are sent 50ms apart with 50ms of tone duration. This was
> tested using a test device which generates DTMF.
>
> Now asterisk doesn't do it by default because digits going out from
> Asterisk are not being recognized.
>
> Using command sendDTMF, I can control inter-digit duration, and using
> toneduration I can control duration of tone per digit. But I can't find a
> way to do both at the same time
>
> Application sendDTMF simply ignores the value set in toneduration and sends
> DTMF at some default value, which I don't know what it is, but it is
> obviously not 50ms because the hardware can't reliably recognized the
> digits.
>
> Is there a way I can send digits with 50ms tone duration and 50ms gap
> between them?
>
> --
> Zeeshan A Zakaria
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091120/52075ca8/attachment.htm 


More information about the asterisk-users mailing list