summaryrefslogtreecommitdiff
path: root/include/dahdi/dahdi_config.h
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-01-05 15:52:03 +0000
committerShaun Ruffell <sruffell@digium.com>2011-01-05 15:52:03 +0000
commit8daf097eb584c934e742eb69bcf6fd199cc3f2b9 (patch)
treedad5ca10fa3702f79a2579c3768bb3106d95d70f /include/dahdi/dahdi_config.h
parent7c9c1faac5932dd42aa0c270289be0ae36fbdf57 (diff)
dahdi: Move the default tone lengths into include/dahdi/dahdi_config.h
The default tone lengths are compile time options and they were in digits.h to make it easy for users to patch. Most of these settings are potentially overridden from user space via the DAHDI_SET_DIALPARAMS ioctl currently regardless of these settings. In r9597 I moved digits.h directly into dahdi-base.c since I thought it was broken out for sharing between compilation units as opposed to ease patching. I also changed the units of the default options to ms instead of in samples. This way if the sampling frequency changes the user will not need to update the defaults. Signed-off-by: Shaun Ruffell <sruffell@digium.com> asterisk-dev-reference: 4D236FD7.30707@digium.com git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9616 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include/dahdi/dahdi_config.h')
-rw-r--r--include/dahdi/dahdi_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dahdi/dahdi_config.h b/include/dahdi/dahdi_config.h
index 59896af..56902e1 100644
--- a/include/dahdi/dahdi_config.h
+++ b/include/dahdi/dahdi_config.h
@@ -28,6 +28,12 @@
/* DAHDI compile time options */
+/* These default tone lengths are in units of milliseconds. */
+#define DAHDI_CONFIG_DEFAULT_DTMF_LENGTH 100
+#define DAHDI_CONFIG_DEFAULT_MFR1_LENGTH 68
+#define DAHDI_CONFIG_DEFAULT_MFR2_LENGTH 100
+#define DAHDI_CONFIG_PAUSE_LENGTH 500
+
/*
* Uncomment if you have a European phone, or any other phone with a
* short flash time.