Home --> Documentations --> PJNATH Reference
Go to the documentation of this file.
19#ifndef __PJNATH_CONFIG_H__
20#define __PJNATH_CONFIG_H__
47#ifndef PJNATH_ERROR_LEVEL
48# define PJNATH_ERROR_LEVEL 1
62#ifndef PJ_STUN_MAX_ATTR
63# define PJ_STUN_MAX_ATTR 16
74#ifndef PJ_STUN_RTO_VALUE
75# define PJ_STUN_RTO_VALUE 100
86#ifndef PJ_STUN_TIMEOUT_VALUE
87# define PJ_STUN_TIMEOUT_VALUE (16 * PJ_STUN_RTO_VALUE)
96#ifndef PJ_STUN_MAX_TRANSMIT_COUNT
97# define PJ_STUN_MAX_TRANSMIT_COUNT 7
106#ifndef PJ_STUN_RES_CACHE_DURATION
107# define PJ_STUN_RES_CACHE_DURATION 10000
114#ifndef PJ_STUN_MAX_PKT_LEN
115# define PJ_STUN_MAX_PKT_LEN 800
122#define PJ_STUN_PORT 3478
130#ifndef PJ_STUN_STRING_ATTR_PAD_CHR
131# define PJ_STUN_STRING_ATTR_PAD_CHR 0
140#ifndef PJ_STUN_OLD_STYLE_MI_FINGERPRINT
141# define PJ_STUN_OLD_STYLE_MI_FINGERPRINT 0
152#ifndef PJ_STUN_SOCK_PKT_LEN
153# define PJ_STUN_SOCK_PKT_LEN 2000
160#ifndef PJ_STUN_KEEP_ALIVE_SEC
161# define PJ_STUN_KEEP_ALIVE_SEC 15
172#ifndef PJ_TURN_MAX_DNS_SRV_CNT
173# define PJ_TURN_MAX_DNS_SRV_CNT 4
180#ifndef PJ_TURN_MAX_PKT_LEN
181# define PJ_TURN_MAX_PKT_LEN 3000
189#ifndef PJ_TURN_PERM_TIMEOUT
190# define PJ_TURN_PERM_TIMEOUT 300
198#ifndef PJ_TURN_CHANNEL_TIMEOUT
199# define PJ_TURN_CHANNEL_TIMEOUT 600
208#ifndef PJ_TURN_REFRESH_SEC_BEFORE
209# define PJ_TURN_REFRESH_SEC_BEFORE 60
218#ifndef PJ_TURN_KEEP_ALIVE_SEC
219# define PJ_TURN_KEEP_ALIVE_SEC 15
226#ifndef PJ_TURN_MAX_TCP_CONN_CNT
227# define PJ_TURN_MAX_TCP_CONN_CNT 8
239#ifndef PJ_ICE_MAX_CAND
240# define PJ_ICE_MAX_CAND 16
249#ifndef PJ_ICE_ST_MAX_CAND
250# define PJ_ICE_ST_MAX_CAND 8
260#ifndef PJ_ICE_MAX_STUN
261# define PJ_ICE_MAX_STUN 2
271#ifndef PJ_ICE_MAX_TURN
272# define PJ_ICE_MAX_TURN 3
280#ifndef PJ_ICE_COMP_BITS
281# define PJ_ICE_COMP_BITS 1
288#define PJ_ICE_MAX_COMP (1<<PJ_ICE_COMP_BITS)
293#ifndef PJNATH_ICE_PRIO_STD
294# define PJNATH_ICE_PRIO_STD 1
301#ifndef PJ_ICE_CAND_TYPE_PREF_BITS
302# if PJNATH_ICE_PRIO_STD
303# define PJ_ICE_CAND_TYPE_PREF_BITS 8
305# define PJ_ICE_CAND_TYPE_PREF_BITS 2
321#ifndef PJ_ICE_LOCAL_PREF_BITS
322# define PJ_ICE_LOCAL_PREF_BITS 0
331#ifndef PJ_ICE_MAX_CHECKS
332# define PJ_ICE_MAX_CHECKS 32
342# define PJ_ICE_TA_VAL 20
360#ifndef PJ_ICE_CANCEL_ALL
361# define PJ_ICE_CANCEL_ALL 1
381#ifndef ICE_CONTROLLED_AGENT_WAIT_NOMINATION_TIMEOUT
382# define ICE_CONTROLLED_AGENT_WAIT_NOMINATION_TIMEOUT 10000
393#ifndef PJ_ICE_NOMINATED_CHECK_DELAY
394# define PJ_ICE_NOMINATED_CHECK_DELAY (4*PJ_STUN_RTO_VALUE)
408#ifndef PJ_ICE_SESS_KEEP_ALIVE_MIN
409# define PJ_ICE_SESS_KEEP_ALIVE_MIN 20
413#ifdef PJ_ICE_ST_KEEP_ALIVE_MIN
414# error PJ_ICE_ST_KEEP_ALIVE_MIN is deprecated
427#ifndef PJ_ICE_SESS_KEEP_ALIVE_MAX_RAND
428# define PJ_ICE_SESS_KEEP_ALIVE_MAX_RAND 5
432#ifdef PJ_ICE_ST_KEEP_ALIVE_MAX_RAND
433# error PJ_ICE_ST_KEEP_ALIVE_MAX_RAND is deprecated
443#ifndef PJ_ICE_UFRAG_LEN
444# define PJ_ICE_UFRAG_LEN 8
454#ifndef PJ_ICE_PWD_LEN
455# define PJ_ICE_PWD_LEN 24
465#ifndef PJ_ICE_ST_USE_TURN_PERMANENT_PERM
466# define PJ_ICE_ST_USE_TURN_PERMANENT_PERM PJ_FALSE
489#ifndef PJ_TRICKLE_ICE_END_OF_CAND_TIMEOUT
490# define PJ_TRICKLE_ICE_END_OF_CAND_TIMEOUT 40
495#ifndef PJNATH_POOL_LEN_ICE_SESS
496# define PJNATH_POOL_LEN_ICE_SESS 512
500#ifndef PJNATH_POOL_INC_ICE_SESS
501# define PJNATH_POOL_INC_ICE_SESS 512
505#ifndef PJNATH_POOL_LEN_ICE_STRANS
506# define PJNATH_POOL_LEN_ICE_STRANS 1000
510#ifndef PJNATH_POOL_INC_ICE_STRANS
511# define PJNATH_POOL_INC_ICE_STRANS 512
515#ifndef PJNATH_POOL_LEN_NATCK
516# define PJNATH_POOL_LEN_NATCK 512
520#ifndef PJNATH_POOL_INC_NATCK
521# define PJNATH_POOL_INC_NATCK 512
525#ifndef PJNATH_POOL_LEN_STUN_SESS
526# define PJNATH_POOL_LEN_STUN_SESS 1000
530#ifndef PJNATH_POOL_INC_STUN_SESS
531# define PJNATH_POOL_INC_STUN_SESS 1000
535#ifndef PJNATH_POOL_LEN_STUN_TDATA
536# define PJNATH_POOL_LEN_STUN_TDATA 1000
540#ifndef PJNATH_POOL_INC_STUN_TDATA
541# define PJNATH_POOL_INC_STUN_TDATA 1000
545#ifndef PJNATH_POOL_LEN_TURN_SESS
546# define PJNATH_POOL_LEN_TURN_SESS 1000
550#ifndef PJNATH_POOL_INC_TURN_SESS
551# define PJNATH_POOL_INC_TURN_SESS 1000
555#ifndef PJNATH_POOL_LEN_TURN_SOCK
556# define PJNATH_POOL_LEN_TURN_SOCK 1000
560#ifndef PJNATH_POOL_INC_TURN_SOCK
561# define PJNATH_POOL_INC_TURN_SOCK 1000
565#ifndef PJNATH_STUN_SOFTWARE_NAME
567# define PJNATH_MAKE_SW_NAME(a,b,c,d) "pjnath-" #a "." #b "." #c d
569# define PJNATH_MAKE_SW_NAME2(a,b,c,d) PJNATH_MAKE_SW_NAME(a,b,c,d)
571# define PJNATH_STUN_SOFTWARE_NAME PJNATH_MAKE_SW_NAME2( \
572 PJ_VERSION_NUM_MAJOR, \
573 PJ_VERSION_NUM_MINOR, \
574 PJ_VERSION_NUM_REV, \
575 PJ_VERSION_NUM_EXTRA)
586#ifndef PJ_UPNP_DEFAULT_SEARCH_TIME
587# define PJ_UPNP_DEFAULT_SEARCH_TIME 5
|
PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
Copyright (C) 2006-2009 Teluu Inc.
|