FreeCalypso > hg > themwi-system-sw
annotate mgw/int_defs.h @ 169:648a64b2e16b
mgw: accept Themyscira-extension RTP BFI packets
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 19 Nov 2022 23:08:49 -0800 |
parents | f280328e7e2e |
children | cf1ba5d65188 |
rev | line source |
---|---|
95
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This header file holds miscellaneous internal definitions for themwi-mgw. |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 */ |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 #define RTP_PACKET_SIZE_PSTN 172 |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 #define RTP_PACKET_SIZE_GSM_FR 45 |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 #define RTP_PACKET_SIZE_GSM_EFR 43 |
169
648a64b2e16b
mgw: accept Themyscira-extension RTP BFI packets
Mychaela Falconia <falcon@freecalypso.org>
parents:
95
diff
changeset
|
8 #define RTP_PACKET_SIZE_BFI 14 |
95
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 #define RTP_MAX_PAYLOAD 160 |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 struct rtp_packet { |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 uint8_t v_p_x_cc; |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 uint8_t m_pt; |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 uint16_t seq; |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 uint32_t tstamp; |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 uint32_t ssrc; |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 uint8_t payload[RTP_MAX_PAYLOAD]; |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 }; |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 #define SAMPLES_PER_FRAME 160 |