config.h
e60a9728
 /*
4bd1673d
  *  $Id$
e60a9728
  */
 
 
 
 #ifndef config_h
 #define config_h
 
4bd1673d
 #include "types.h"
 
e60a9728
 /* default sip port if none specified */
 #define SIP_PORT 5060
 
f20a56a2
 #define CFG_FILE "./ser.cfg"
e60a9728
 
 
1b1b19d8
 /* maximum number of addresses on which we will listen */
 #define MAX_LISTEN 16
 
 /* default number of child processes started */
 #define CHILD_NO    8
 
a15c363f
 #define RT_NO 10 /* routing tables number */
3e429f5c
 #define DEFAULT_RT 0 /* default routing table */
a15c363f
 
 #define MAX_REC_LEV 100 /* maximum number of recursive calls */
3e429f5c
 #define ROUTE_MAX_REC_LEV 10 /* maximum number of recursive calls
 							   for route()*/
a15c363f
 
7268726e
 #define MAX_URI_SIZE 1024	/* used when rewriting URIs */
 
b2e71d5b
 #define MY_VIA "Via: SIP/2.0/UDP "
 #define MY_VIA_LEN 17
 
af64f4fb
 #define CONTENT_LEN "Content-Length: 0"
 #define CONTENT_LEN_LEN 17
 
5655ca6f
 #define USER_AGENT "User-Agent: Sip EXpress router"\
                                      "(" VERSION " (" ARCH "/" OS"))"
  #define USER_AGENT_LEN (sizeof(USER_AGENT)-1)
 
676eb608
 #define MY_BRANCH ";branch=0"
 #define MY_BRANCH_LEN 9
 
b2e71d5b
 
 #define MAX_PORT_LEN 7 /* ':' + max 5 letters + \0 */
 #define CRLF "\r\n"
 #define CRLF_LEN 2
 
 #define RECEIVED ";received="
 #define RECEIVED_LEN 10
 
22d4aa5d
 /*used only if PKG_MALLOC is defined*/
 #define PKG_MEM_POOL_SIZE 1024*1024
 
dda9dab1
 /*used if SH_MEM is defined*/
676924fb
 #define SHM_MEM_SIZE 128*1024*1024
628e3a5a
 
cd57180a
 #define TIMER_TICK 1
 #define LONG_SLEEP	3600
 
dda9dab1
 /* dimensioning buckets in q_malloc */
 /* size of the size2bucket table; everything beyond that asks for
    a variable-size kilo-bucket
  */
 #define MAX_FIXED_BLOCK         3072
 /* distance of kilo-buckets */
 #define BLOCK_STEP                      512
 /* maximum number of possible buckets */
 #define MAX_BUCKET		15
 
 /* receive buffer size -- preferably set low to
4bd1673d
    avoid terror of excessively huge messages; they are
    useless anyway
dda9dab1
 */
 #define BUF_SIZE (MAX_FIXED_BLOCK-32)
 
4bd1673d
 /* forwarding  -- Via buffer dimensioning */
dda9dab1
 #define MAX_VIA_LINE_SIZE	240
 #define MAX_RECEIVED_SIZE	57
b2e71d5b
 
4bd1673d
 /* maximum number of processes is constrained by capacity of
    process bitmaps */
 #define MAX_PROCESSES (sizeof( process_bm_t) * 8 )
 
e60a9728
 #endif