FreeCalypso > hg > sipout-test-utils
comparison include/tmgw_const.h @ 0:35c0d9f03c0a
beginning with sipout-test-voice,
a copy of sip-manual-out from themwi-system-sw
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 03 Mar 2024 23:20:19 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:35c0d9f03c0a |
---|---|
1 /* | |
2 * This header file defines some constants for themwi-mgw, | |
3 * used in the implementation, in the control interface and | |
4 * throughout the architecture. | |
5 * | |
6 * Some of these constants (specifically those dealing with | |
7 * RTP endpoint types) are now also used in themwi-rtp-mgr | |
8 * and other RTP-touching tools beyond the original themwi-mgw | |
9 * design. | |
10 */ | |
11 | |
12 #define TMGW_EP_TYPE_GSM_ONLY 1 | |
13 #define TMGW_EP_TYPE_PSTN_ONLY 2 | |
14 #define TMGW_EP_TYPE_GATEWAY 3 | |
15 | |
16 /* backward compatibility, from themwi-mgw perspective */ | |
17 #define TMGW_EP_TYPE_DUMMY_GSM TMGW_EP_TYPE_GSM_ONLY | |
18 #define TMGW_EP_TYPE_DUMMY_PSTN TMGW_EP_TYPE_PSTN_ONLY | |
19 | |
20 #define TMGW_EP_HAS_GSM_SOCK 1 | |
21 #define TMGW_EP_HAS_PSTN_SOCK 2 | |
22 | |
23 #define TMGW_FWD_MODE_INACTIVE 0 | |
24 #define TMGW_FWD_MODE_RECVONLY 1 | |
25 #define TMGW_FWD_MODE_SENDONLY 2 | |
26 #define TMGW_FWD_MODE_SENDRECV 3 | |
27 | |
28 #define TMGW_FWD_ENABLE_PSTN2GSM 1 | |
29 #define TMGW_FWD_ENABLE_GSM2PSTN 2 | |
30 | |
31 #define GSM_TCHF_FRAME 0x0300 | |
32 #define GSM_TCHF_FRAME_EFR 0x0301 | |
33 #define GSM_TCHH_FRAME 0x0302 | |
34 #define GSM_TCH_FRAME_AMR 0x0303 | |
35 | |
36 #define PSTN_CODEC_PCMU 0 | |
37 #define PSTN_CODEC_PCMA 8 |