[Asterisk-Users] Passing DTMF

Marian Durkovic md at bts.sk
Tue Apr 6 23:43:53 MST 2004


> ...or the problem is, as hinted, that Asterisk sends a short dtmf.

This is a bug in 7.2 release. 
It's setting the duration of RFC2833 digits to as low as 30 msec which is
definitely not enough.

To fix, change the following in rtp.c, function ast_rtp_senddigit()

                        /* Make duration 240 */
                        rtpheader[3] |= htonl((240));

The duration is based on 8000 Hz clock so 240 equals to 30 msec. Use at
least 1200 for 150 msec tones or even more as needed.


	With kind regards,

		M.

--------------------------------------------------------------------------
----                                                                  ----
----   Marian Durkovic                       network  manager         ----
----                                                                  ----
----   Slovak Technical University           Tel: +421 2 524 51 301   ----
----   Computer Centre, Nam. Slobody 17      Fax: +421 2 524 94 351   ----
----   812 43 Bratislava, Slovak Republic    E-mail/sip: md at bts.sk    ----
----                                                                  ----
--------------------------------------------------------------------------



More information about the asterisk-users mailing list