|
HOME
SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port
FAQ
Documentation
Licensing
Download
Development (Trac)
Projects using pjsip
Mailing List
Open Source Links
About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono <bennylp pjsip.org>
|
|
Home --> Documentations --> PJNATH Reference
config.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __PJNATH_CONFIG_H__
00020 #define __PJNATH_CONFIG_H__
00021
00022
00028 #include <pj/types.h>
00029
00037
00038
00039
00040
00046 #ifndef PJNATH_ERROR_LEVEL
00047 # define PJNATH_ERROR_LEVEL 1
00048 #endif
00049
00050
00051
00052
00053
00054
00061 #ifndef PJ_STUN_MAX_ATTR
00062 # define PJ_STUN_MAX_ATTR 16
00063 #endif
00064
00073 #ifndef PJ_STUN_RTO_VALUE
00074 # define PJ_STUN_RTO_VALUE 100
00075 #endif
00076
00077
00085 #ifndef PJ_STUN_TIMEOUT_VALUE
00086 # define PJ_STUN_TIMEOUT_VALUE (16 * PJ_STUN_RTO_VALUE)
00087 #endif
00088
00089
00095 #ifndef PJ_STUN_MAX_TRANSMIT_COUNT
00096 # define PJ_STUN_MAX_TRANSMIT_COUNT 7
00097 #endif
00098
00099
00105 #ifndef PJ_STUN_RES_CACHE_DURATION
00106 # define PJ_STUN_RES_CACHE_DURATION 10000
00107 #endif
00108
00109
00113 #ifndef PJ_STUN_MAX_PKT_LEN
00114 # define PJ_STUN_MAX_PKT_LEN 800
00115 #endif
00116
00117
00121 #define PJ_STUN_PORT 3478
00122
00123
00129 #ifndef PJ_STUN_STRING_ATTR_PAD_CHR
00130 # define PJ_STUN_STRING_ATTR_PAD_CHR 0
00131 #endif
00132
00133
00139 #ifndef PJ_STUN_OLD_STYLE_MI_FINGERPRINT
00140 # define PJ_STUN_OLD_STYLE_MI_FINGERPRINT 0
00141 #endif
00142
00143
00144
00145
00146
00147
00151 #ifndef PJ_STUN_SOCK_PKT_LEN
00152 # define PJ_STUN_SOCK_PKT_LEN 2000
00153 #endif
00154
00155
00159 #ifndef PJ_STUN_KEEP_ALIVE_SEC
00160 # define PJ_STUN_KEEP_ALIVE_SEC 15
00161 #endif
00162
00163
00164
00165
00166
00167
00171 #ifndef PJ_TURN_MAX_DNS_SRV_CNT
00172 # define PJ_TURN_MAX_DNS_SRV_CNT 4
00173 #endif
00174
00175
00179 #ifndef PJ_TURN_MAX_PKT_LEN
00180 # define PJ_TURN_MAX_PKT_LEN 3000
00181 #endif
00182
00183
00188 #ifndef PJ_TURN_PERM_TIMEOUT
00189 # define PJ_TURN_PERM_TIMEOUT 300
00190 #endif
00191
00192
00197 #ifndef PJ_TURN_CHANNEL_TIMEOUT
00198 # define PJ_TURN_CHANNEL_TIMEOUT 600
00199 #endif
00200
00201
00207 #ifndef PJ_TURN_REFRESH_SEC_BEFORE
00208 # define PJ_TURN_REFRESH_SEC_BEFORE 60
00209 #endif
00210
00211
00217 #ifndef PJ_TURN_KEEP_ALIVE_SEC
00218 # define PJ_TURN_KEEP_ALIVE_SEC 15
00219 #endif
00220
00221
00222
00223
00224
00225
00231 #ifndef PJ_ICE_MAX_CAND
00232 # define PJ_ICE_MAX_CAND 16
00233 #endif
00234
00235
00241 #ifndef PJ_ICE_ST_MAX_CAND
00242 # define PJ_ICE_ST_MAX_CAND 8
00243 #endif
00244
00245
00250 #ifndef PJ_ICE_COMP_BITS
00251 # define PJ_ICE_COMP_BITS 3
00252 #endif
00253
00254
00258 #define PJ_ICE_MAX_COMP (2<<PJ_ICE_COMP_BITS)
00259
00260
00264 #ifndef PJ_ICE_CAND_TYPE_PREF_BITS
00265 # define PJ_ICE_CAND_TYPE_PREF_BITS 2
00266 #endif
00267
00268
00280 #ifndef PJ_ICE_LOCAL_PREF_BITS
00281 # define PJ_ICE_LOCAL_PREF_BITS 0
00282 #endif
00283
00284
00290 #ifndef PJ_ICE_MAX_CHECKS
00291 # define PJ_ICE_MAX_CHECKS 32
00292 #endif
00293
00294
00300 #ifndef PJ_ICE_TA_VAL
00301 # define PJ_ICE_TA_VAL 20
00302 #endif
00303
00304
00319 #ifndef PJ_ICE_CANCEL_ALL
00320 # define PJ_ICE_CANCEL_ALL 1
00321 #endif
00322
00323
00334 #ifndef PJ_ICE_ST_KEEP_ALIVE_MIN
00335 # define PJ_ICE_ST_KEEP_ALIVE_MIN 20
00336 #endif
00337
00338
00349 #ifndef PJ_ICE_ST_KEEP_ALIVE_MAX_RAND
00350 # define PJ_ICE_ST_KEEP_ALIVE_MAX_RAND 5
00351 #endif
00352
00353
00360 #ifndef PJ_ICE_UFRAG_LEN
00361 # define PJ_ICE_UFRAG_LEN 8
00362 #endif
00363
00364
00366 #ifndef PJNATH_POOL_LEN_ICE_SESS
00367 # define PJNATH_POOL_LEN_ICE_SESS 512
00368 #endif
00369
00371 #ifndef PJNATH_POOL_INC_ICE_SESS
00372 # define PJNATH_POOL_INC_ICE_SESS 512
00373 #endif
00374
00376 #ifndef PJNATH_POOL_LEN_ICE_STRANS
00377 # define PJNATH_POOL_LEN_ICE_STRANS 1000
00378 #endif
00379
00381 #ifndef PJNATH_POOL_INC_ICE_STRANS
00382 # define PJNATH_POOL_INC_ICE_STRANS 512
00383 #endif
00384
00386 #ifndef PJNATH_POOL_LEN_NATCK
00387 # define PJNATH_POOL_LEN_NATCK 512
00388 #endif
00389
00391 #ifndef PJNATH_POOL_INC_NATCK
00392 # define PJNATH_POOL_INC_NATCK 512
00393 #endif
00394
00396 #ifndef PJNATH_POOL_LEN_STUN_SESS
00397 # define PJNATH_POOL_LEN_STUN_SESS 1000
00398 #endif
00399
00401 #ifndef PJNATH_POOL_INC_STUN_SESS
00402 # define PJNATH_POOL_INC_STUN_SESS 1000
00403 #endif
00404
00406 #ifndef PJNATH_POOL_LEN_STUN_TDATA
00407 # define PJNATH_POOL_LEN_STUN_TDATA 1000
00408 #endif
00409
00411 #ifndef PJNATH_POOL_INC_STUN_TDATA
00412 # define PJNATH_POOL_INC_STUN_TDATA 1000
00413 #endif
00414
00415
00420 #endif
00421
PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
(C)2001-2008 Benny Prijono
|
|