FreeCalypso > hg > themwi-system-sw
annotate mgw/dtmf_defs.h @ 152:7176dc850d7a
sip-in hold/retr error handling: simply send BYE
Because we know that the SIP state is CONNECTED at the time of any
such error event, we can call initiate_bye() instead of disconnect_sip(),
and thereby get rid of struct gsm_mncc_cause which will never be used
in this scenario anyway.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 11 Oct 2022 16:11:21 -0800 |
parents | 815e4c59162e |
children | 4b35a5a400f1 |
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 |
815e4c59162e
mgw DTMF: tone definitions and sample array generation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 #define DTMF_MIN_FRAMES 10 /* 200 ms */ |
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 }; |