FreeCalypso > hg > themwi-system-sw
comparison include/out_routes.h @ 130:44dc809ffec0
themwi-update-out-routes utility written, compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 06 Oct 2022 20:56:14 -0800 |
parents | |
children | beb6aaecfe63 |
comparison
equal
deleted
inserted
replaced
129:b7cd66acb123 | 130:44dc809ffec0 |
---|---|
1 /* | |
2 * In this header file we define all of our binary data structures | |
3 * written into /var/gsm/out-routes.bin, which is the compiled binary form | |
4 * of the call routing database for themwi-sip-out. | |
5 * | |
6 * Some related size limits are also defined here. | |
7 */ | |
8 | |
9 #define MAX_SIP_DEST_DOMAIN 31 | |
10 #define MAX_SIP_USER_PART 16 | |
11 #define MAX_E164_NUMBER 15 | |
12 #define MAX_INN_PREFIX 12 | |
13 #define MAX_SPECIAL_NUM 6 | |
14 | |
15 struct out_routes_header { | |
16 uint32_t num_dest; | |
17 uint32_t num_inn; | |
18 uint32_t num_special; | |
19 }; | |
20 | |
21 struct sip_out_dest { | |
22 struct sockaddr_in sin; | |
23 char domain[MAX_SIP_DEST_DOMAIN+1]; | |
24 }; | |
25 | |
26 struct inn_route { | |
27 char prefix[MAX_INN_PREFIX+1]; | |
28 uint8_t sip_dest_id; | |
29 }; | |
30 | |
31 struct special_num_route { | |
32 char special_num[MAX_SPECIAL_NUM+1]; | |
33 uint8_t sip_dest_id; | |
34 char sip_user[MAX_SIP_USER_PART+1]; | |
35 uint8_t flags; | |
36 }; |