FreeCalypso > hg > themwi-system-sw
annotate include/tmgw_const.h @ 267:81958b35f74d
NANP validation: allow made-up area codes of N9X form
| author | Mychaela Falconia <falcon@freecalypso.org> | 
|---|---|
| date | Mon, 13 Nov 2023 15:28:09 -0800 | 
| parents | f4ed6042e16c | 
| children | 
| rev | line source | 
|---|---|
| 
30
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
1 /* | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
2 * This header file defines some constants for themwi-mgw, | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
3 * used in the implementation, in the control interface and | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
4 * throughout the architecture. | 
| 
182
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
5 * | 
| 
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
6 * Some of these constants (specifically those dealing with | 
| 
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
7 * RTP endpoint types) are now also used in themwi-rtp-mgr | 
| 
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
8 * and other RTP-touching tools beyond the original themwi-mgw | 
| 
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
9 * design. | 
| 
30
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
10 */ | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
11 | 
| 
182
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
12 #define TMGW_EP_TYPE_GSM_ONLY 1 | 
| 
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
13 #define TMGW_EP_TYPE_PSTN_ONLY 2 | 
| 
30
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
14 #define TMGW_EP_TYPE_GATEWAY 3 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
15 | 
| 
182
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
16 /* backward compatibility, from themwi-mgw perspective */ | 
| 
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
17 #define TMGW_EP_TYPE_DUMMY_GSM TMGW_EP_TYPE_GSM_ONLY | 
| 
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
18 #define TMGW_EP_TYPE_DUMMY_PSTN TMGW_EP_TYPE_PSTN_ONLY | 
| 
 
f4ed6042e16c
include/tmgw_const.h: expanded architectural point of view
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
95 
diff
changeset
 | 
19 | 
| 
30
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
20 #define TMGW_EP_HAS_GSM_SOCK 1 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
21 #define TMGW_EP_HAS_PSTN_SOCK 2 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
22 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
23 #define TMGW_FWD_MODE_INACTIVE 0 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
24 #define TMGW_FWD_MODE_RECVONLY 1 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
25 #define TMGW_FWD_MODE_SENDONLY 2 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
26 #define TMGW_FWD_MODE_SENDRECV 3 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
27 | 
| 
95
 
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
30 
diff
changeset
 | 
28 #define TMGW_FWD_ENABLE_PSTN2GSM 1 | 
| 
 
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
30 
diff
changeset
 | 
29 #define TMGW_FWD_ENABLE_GSM2PSTN 2 | 
| 
 
f280328e7e2e
themwi-mgw: initial implementation of PSTN to GSM forwarding
 
Mychaela Falconia <falcon@freecalypso.org> 
parents: 
30 
diff
changeset
 | 
30 | 
| 
30
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
31 #define GSM_TCHF_FRAME 0x0300 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
32 #define GSM_TCHF_FRAME_EFR 0x0301 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
33 #define GSM_TCHH_FRAME 0x0302 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
34 #define GSM_TCH_FRAME_AMR 0x0303 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
35 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
36 #define PSTN_CODEC_PCMU 0 | 
| 
 
496f359226ab
include: constant and interface headers for themwi-mgw
 
Mychaela Falconia <falcon@freecalypso.org> 
parents:  
diff
changeset
 | 
37 #define PSTN_CODEC_PCMA 8 | 
