diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-14 23:47:31 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-14 23:47:31 +0000 |
commit | e82cf68ec969ba027f671b27261442b54b5f8737 (patch) | |
tree | 4a8a03d12bd400e69f53b7fce7f3075a41a407c2 /digits.h | |
parent | ef2eddaeb8ac4e25b283081911a36a642ce5f157 (diff) |
(merging dtmf-twister branch plus a few fixes)
move DTMF/MF generation into tonezone.c (libtonezone) so that it can happen at runtime instead of compile time; this allows for DTMF/MF to be different on a zone-by-zone basis without requiring a recompile of Zaptel
set DTMF 'twist' for Brazil (zone 'br') to 2dB
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3490 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'digits.h')
-rw-r--r-- | digits.h | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -1,5 +1,5 @@ /* - * Zapata Telephony Telephony + * Zapata Telephony * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,25 +17,27 @@ * * Use DTMF/MFv1 tables */ + #ifndef _DIGITS_H #define _DIGITS_H -#define DEFAULT_DTMF_LENGTH 100 * 8 -#define DEFAULT_MFV1_LENGTH 60 * 8 -#define PAUSE_LENGTH 500 * 8 +#define DEFAULT_DTMF_LENGTH 100 * ZT_CHUNKSIZE +#define DEFAULT_MFV1_LENGTH 60 * ZT_CHUNKSIZE +#define PAUSE_LENGTH 500 * ZT_CHUNKSIZE /* At the end of silence, the tone stops */ -static struct zt_tone dtmf_silence = - { 0, 0, 0, 0, 0, 0, DEFAULT_DTMF_LENGTH, NULL }; +static struct zt_tone dtmf_silence = { + .tonesamples = DEFAULT_DTMF_LENGTH, +}; /* At the end of silence, the tone stops */ -static struct zt_tone mfv1_silence = - { 0, 0, 0, 0, 0, 0, DEFAULT_MFV1_LENGTH, NULL }; +static struct zt_tone mfv1_silence = { + .tonesamples = DEFAULT_MFV1_LENGTH, +}; /* A pause in the dialing */ -static struct zt_tone tone_pause = - { 0, 0, 0, 0, 0, 0, PAUSE_LENGTH, NULL }; - -#include "tones.h" +static struct zt_tone tone_pause = { + .tonesamples = PAUSE_LENGTH, +}; #endif |