3 | | {{{ |
4 | | |
5 | | #define PJSIP_POOL_LEN_ENDPT 1000 |
6 | | #define PJSIP_POOL_INC_ENDPT 1000 |
7 | | |
8 | | #define PJSIP_POOL_RDATA_LEN 2000 |
9 | | #define PJSIP_POOL_RDATA_INC 2000 |
10 | | |
11 | | #define PJSIP_POOL_LEN_TDATA 2000 |
12 | | #define PJSIP_POOL_INC_TDATA 512 |
13 | | |
14 | | #define PJSIP_POOL_LEN_UA 2000 |
15 | | #define PJSIP_POOL_INC_UA 1000 |
16 | | |
17 | | /* Pool for transaction layer (dump shows 228 bytes). */ |
18 | | #define PJSIP_POOL_TSX_LAYER_LEN 256 |
19 | | #define PJSIP_POOL_TSX_LAYER_INC 256 |
20 | | |
21 | | /* Pool for transaction. The dump shows 468 bytes */ |
22 | | #define PJSIP_POOL_TSX_LEN 512 |
23 | | #define PJSIP_POOL_TSX_INC 128 |
24 | | }}} |
| 3 | The solution is to have the block size configurable during compile time. |