summaryrefslogtreecommitdiff
path: root/net/pjsip/files/config_site.h
blob: a712075f513f440de380a00c0be6a6f1d0a24726 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Custom options imported from asterisk provided customizations.
 */

#include <sys/select.h>

#define PJ_MAX_HOSTNAME			(256)
#define PJSIP_MAX_URL_SIZE		(512)
#define PJ_IOQUEUE_MAX_HANDLES		(FD_SETSIZE)

#define PJ_SCANNER_USE_BITWISE		0

#define PJ_LOG_MAX_LEVEL		6

#define PJSIP_MAX_TSX_COUNT		((64*1024)-1)
#define PJSIP_MAX_DIALOG_COUNT		((64*1024)-1)
#define PJSIP_UDP_SO_SNDBUF_SIZE	(512*1024)
#define PJSIP_UDP_SO_RCVBUF_SIZE	(512*1024)

#define PJSIP_MAX_PKT_LEN		32000

/* Defaults too low for WebRTC */
#define PJ_ICE_MAX_CAND			32
#define PJ_ICE_MAX_CHECKS		(PJ_ICE_MAX_CAND * PJ_ICE_MAX_CAND)

/* Increase limits to allow more formats */
#define PJMEDIA_MAX_SDP_FMT		64
#define PJMEDIA_MAX_SDP_BANDW		4
#define PJMEDIA_MAX_SDP_ATTR		(PJMEDIA_MAX_SDP_FMT*2 + 4)
#define PJMEDIA_MAX_SDP_MEDIA		16

/*
 * Turn off the periodic sending of CRLNCRLN.  Default is on (90 seconds),
 * which conflicts with the global section's keep_alive_interval option in
 * pjsip.conf in asterisk.
 */
#define PJSIP_TCP_KEEP_ALIVE_INTERVAL	0
#define PJSIP_TLS_KEEP_ALIVE_INTERVAL	0