From e82cf68ec969ba027f671b27261442b54b5f8737 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Fri, 14 Dec 2007 23:47:31 +0000 Subject: (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 --- tonezone.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tonezone.h') diff --git a/tonezone.h b/tonezone.h index 7ee4dd5..fba3e91 100644 --- a/tonezone.h +++ b/tonezone.h @@ -41,11 +41,16 @@ struct tone_zone_sound { }; struct tone_zone { - int zone; /* Zone number */ + int zone; /* Zone number */ char country[10]; /* Country code */ - char description[40]; /* Description */ + char description[40]; /* Description */ int ringcadence[ZT_MAX_CADENCE]; /* Ring cadence */ struct tone_zone_sound tones[ZT_TONE_MAX]; + int dtmf_high_level; /* Power level of high frequency component + of DTMF, expressed in dBm0. */ + int dtmf_low_level; /* Power level of low frequency component + of DTMF, expressed in dBm0. */ + int mf_level; /* Power level of MF, expressed in dBm0. */ }; extern struct tone_zone builtin_zones[]; -- cgit v1.2.3