annotate mgw/dtmf_defs.h @ 164:baaa6c1a3d3b

sip-out shutdown handling: always do check_dead_call()
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Oct 2022 16:31:15 -0800
parents 4b35a5a400f1
children a6eb2de277f6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
126
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * This header file holds various internal definitions for DTMF generation,
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 * including key tunable settings of min and max DTMF duration.
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
160
4b35a5a400f1 mgw/dtmf_defs.h: reduce DTMF_MIN_FRAMES to 5 (100 ms)
Mychaela Falconia <falcon@freecalypso.org>
parents: 126
diff changeset
6 #define DTMF_MIN_FRAMES 5 /* 100 ms */
126
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 #define DTMF_MAX_FRAMES 60 /* 1200 ms */
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 struct dtmf_desc {
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 int digit;
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 float freq_low;
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 float freq_high;
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 int16_t *samples;
815e4c59162e mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 };