00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __PJNATH_CONFIG_H__
00021 #define __PJNATH_CONFIG_H__
00022
00023
00029 #include <pj/types.h>
00030
00039
00040
00041
00042
00048 #ifndef PJNATH_ERROR_LEVEL
00049 # define PJNATH_ERROR_LEVEL 1
00050 #endif
00051
00052
00053
00054
00055
00056
00063 #ifndef PJ_STUN_MAX_ATTR
00064 # define PJ_STUN_MAX_ATTR 16
00065 #endif
00066
00075 #ifndef PJ_STUN_RTO_VALUE
00076 # define PJ_STUN_RTO_VALUE 100
00077 #endif
00078
00079
00087 #ifndef PJ_STUN_TIMEOUT_VALUE
00088 # define PJ_STUN_TIMEOUT_VALUE (16 * PJ_STUN_RTO_VALUE)
00089 #endif
00090
00091
00097 #ifndef PJ_STUN_MAX_TRANSMIT_COUNT
00098 # define PJ_STUN_MAX_TRANSMIT_COUNT 7
00099 #endif
00100
00101
00107 #ifndef PJ_STUN_RES_CACHE_DURATION
00108 # define PJ_STUN_RES_CACHE_DURATION 10000
00109 #endif
00110
00111
00115 #ifndef PJ_STUN_MAX_PKT_LEN
00116 # define PJ_STUN_MAX_PKT_LEN 800
00117 #endif
00118
00119
00123 #define PJ_STUN_PORT 3478
00124
00125
00131 #ifndef PJ_STUN_STRING_ATTR_PAD_CHR
00132 # define PJ_STUN_STRING_ATTR_PAD_CHR 0
00133 #endif
00134
00135
00141 #ifndef PJ_STUN_OLD_STYLE_MI_FINGERPRINT
00142 # define PJ_STUN_OLD_STYLE_MI_FINGERPRINT 0
00143 #endif
00144
00145
00146
00147
00148
00149
00153 #ifndef PJ_STUN_SOCK_PKT_LEN
00154 # define PJ_STUN_SOCK_PKT_LEN 2000
00155 #endif
00156
00157
00161 #ifndef PJ_STUN_KEEP_ALIVE_SEC
00162 # define PJ_STUN_KEEP_ALIVE_SEC 15
00163 #endif
00164
00165
00166
00167
00168
00169
00173 #ifndef PJ_TURN_MAX_DNS_SRV_CNT
00174 # define PJ_TURN_MAX_DNS_SRV_CNT 4
00175 #endif
00176
00177
00181 #ifndef PJ_TURN_MAX_PKT_LEN
00182 # define PJ_TURN_MAX_PKT_LEN 3000
00183 #endif
00184
00185
00190 #ifndef PJ_TURN_PERM_TIMEOUT
00191 # define PJ_TURN_PERM_TIMEOUT 300
00192 #endif
00193
00194
00199 #ifndef PJ_TURN_CHANNEL_TIMEOUT
00200 # define PJ_TURN_CHANNEL_TIMEOUT 600
00201 #endif
00202
00203
00209 #ifndef PJ_TURN_REFRESH_SEC_BEFORE
00210 # define PJ_TURN_REFRESH_SEC_BEFORE 60
00211 #endif
00212
00213
00219 #ifndef PJ_TURN_KEEP_ALIVE_SEC
00220 # define PJ_TURN_KEEP_ALIVE_SEC 15
00221 #endif
00222
00223
00224
00225
00226
00227
00233 #ifndef PJ_ICE_MAX_CAND
00234 # define PJ_ICE_MAX_CAND 16
00235 #endif
00236
00237
00243 #ifndef PJ_ICE_ST_MAX_CAND
00244 # define PJ_ICE_ST_MAX_CAND 8
00245 #endif
00246
00247
00252 #ifndef PJ_ICE_COMP_BITS
00253 # define PJ_ICE_COMP_BITS 1
00254 #endif
00255
00256
00260 #define PJ_ICE_MAX_COMP (2<<PJ_ICE_COMP_BITS)
00261
00265 #ifndef PJNATH_ICE_PRIO_STD
00266 # define PJNATH_ICE_PRIO_STD 1
00267 #endif
00268
00269
00273 #ifndef PJ_ICE_CAND_TYPE_PREF_BITS
00274 # if PJNATH_ICE_PRIO_STD
00275 # define PJ_ICE_CAND_TYPE_PREF_BITS 8
00276 # else
00277 # define PJ_ICE_CAND_TYPE_PREF_BITS 2
00278 # endif
00279 #endif
00280
00281
00293 #ifndef PJ_ICE_LOCAL_PREF_BITS
00294 # define PJ_ICE_LOCAL_PREF_BITS 0
00295 #endif
00296
00297
00303 #ifndef PJ_ICE_MAX_CHECKS
00304 # define PJ_ICE_MAX_CHECKS 32
00305 #endif
00306
00307
00313 #ifndef PJ_ICE_TA_VAL
00314 # define PJ_ICE_TA_VAL 20
00315 #endif
00316
00317
00332 #ifndef PJ_ICE_CANCEL_ALL
00333 # define PJ_ICE_CANCEL_ALL 1
00334 #endif
00335
00336
00353 #ifndef ICE_CONTROLLED_AGENT_WAIT_NOMINATION_TIMEOUT
00354 # define ICE_CONTROLLED_AGENT_WAIT_NOMINATION_TIMEOUT 10000
00355 #endif
00356
00357
00365 #ifndef PJ_ICE_NOMINATED_CHECK_DELAY
00366 # define PJ_ICE_NOMINATED_CHECK_DELAY (4*PJ_STUN_RTO_VALUE)
00367 #endif
00368
00369
00380 #ifndef PJ_ICE_SESS_KEEP_ALIVE_MIN
00381 # define PJ_ICE_SESS_KEEP_ALIVE_MIN 20
00382 #endif
00383
00384
00385 #ifdef PJ_ICE_ST_KEEP_ALIVE_MIN
00386 # error PJ_ICE_ST_KEEP_ALIVE_MIN is deprecated
00387 #endif
00388
00399 #ifndef PJ_ICE_SESS_KEEP_ALIVE_MAX_RAND
00400 # define PJ_ICE_SESS_KEEP_ALIVE_MAX_RAND 5
00401 #endif
00402
00403
00404 #ifdef PJ_ICE_ST_KEEP_ALIVE_MAX_RAND
00405 # error PJ_ICE_ST_KEEP_ALIVE_MAX_RAND is deprecated
00406 #endif
00407
00408
00415 #ifndef PJ_ICE_UFRAG_LEN
00416 # define PJ_ICE_UFRAG_LEN 8
00417 #endif
00418
00419
00421 #ifndef PJNATH_POOL_LEN_ICE_SESS
00422 # define PJNATH_POOL_LEN_ICE_SESS 512
00423 #endif
00424
00426 #ifndef PJNATH_POOL_INC_ICE_SESS
00427 # define PJNATH_POOL_INC_ICE_SESS 512
00428 #endif
00429
00431 #ifndef PJNATH_POOL_LEN_ICE_STRANS
00432 # define PJNATH_POOL_LEN_ICE_STRANS 1000
00433 #endif
00434
00436 #ifndef PJNATH_POOL_INC_ICE_STRANS
00437 # define PJNATH_POOL_INC_ICE_STRANS 512
00438 #endif
00439
00441 #ifndef PJNATH_POOL_LEN_NATCK
00442 # define PJNATH_POOL_LEN_NATCK 512
00443 #endif
00444
00446 #ifndef PJNATH_POOL_INC_NATCK
00447 # define PJNATH_POOL_INC_NATCK 512
00448 #endif
00449
00451 #ifndef PJNATH_POOL_LEN_STUN_SESS
00452 # define PJNATH_POOL_LEN_STUN_SESS 1000
00453 #endif
00454
00456 #ifndef PJNATH_POOL_INC_STUN_SESS
00457 # define PJNATH_POOL_INC_STUN_SESS 1000
00458 #endif
00459
00461 #ifndef PJNATH_POOL_LEN_STUN_TDATA
00462 # define PJNATH_POOL_LEN_STUN_TDATA 1000
00463 #endif
00464
00466 #ifndef PJNATH_POOL_INC_STUN_TDATA
00467 # define PJNATH_POOL_INC_STUN_TDATA 1000
00468 #endif
00469
00471 #ifndef PJNATH_POOL_LEN_TURN_SESS
00472 # define PJNATH_POOL_LEN_TURN_SESS 1000
00473 #endif
00474
00476 #ifndef PJNATH_POOL_INC_TURN_SESS
00477 # define PJNATH_POOL_INC_TURN_SESS 1000
00478 #endif
00479
00481 #ifndef PJNATH_POOL_LEN_TURN_SOCK
00482 # define PJNATH_POOL_LEN_TURN_SOCK 1000
00483 #endif
00484
00486 #ifndef PJNATH_POOL_INC_TURN_SOCK
00487 # define PJNATH_POOL_INC_TURN_SOCK 1000
00488 #endif
00489
00494 #endif
00495