config.h File Reference

Main Configuration settings. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BLOCK_STEP   512
#define BRANCH_RT_NO   40
#define BUF_SIZE   65535
 receive buffer size
#define CFG_FILE   CFG_DIR "kamailio.cfg"
#define CHILD_NO   8
#define CONTENT_LENGTH   "Content-Length: "
#define CONTENT_LENGTH_LEN   (sizeof(CONTENT_LENGTH)-1)
#define CRLF   "\r\n"
#define CRLF_LEN   (sizeof(CRLF) - 1)
#define DEFAULT_DB_URL   "mysql://openser:openserrw@localhost/openser"
#define DEFAULT_DB_URL_LEN   (sizeof(DEFAULT_DB_URL) - 1)
#define DEFAULT_RODB_URL   "mysql://openserro:openserro@localhost/openser"
#define DEFAULT_RODB_URL_LEN   (sizeof(DEFAULT_RODB_URL) - 1)
#define DEFAULT_RT   0
#define FAILURE_RT_NO   40
#define ID_PARAM   ";i="
#define ID_PARAM_LEN   (sizeof(ID_PARAM) - 1)
#define MAX_BRANCH_PARAM_LEN
 Maximum length of values appended to Via-branch parameter.
#define MAX_BRANCHES   12
#define MAX_BUCKET   15
#define MAX_FIXED_BLOCK   3072
#define MAX_LISTEN   16
#define MAX_PATH_SIZE   255
#define MAX_PORT_LEN   7
#define MAX_REC_LEV   100
#define MAX_RECEIVED_SIZE   57
#define MAX_REDIRECTION_LEN   512
#define MAX_RPORT_SIZE   13
#define MAX_URI_SIZE   1024
#define MAX_VIA_LINE_SIZE   240
#define MAX_WARNING_LEN   256
#define MCOOKIE   "z9hG4bK"
#define MCOOKIE_LEN   (sizeof(MCOOKIE)-1)
#define MIN_UDP_PACKET   32
#define MY_BRANCH   ";branch="
#define MY_BRANCH_LEN   (sizeof(MY_BRANCH) - 1)
#define MY_VIA   "Via: SIP/2.0/UDP "
#define MY_VIA_LEN   (sizeof(MY_VIA) - 1)
#define ONREPLY_RT_NO   40
#define OPENSER_OID   1,3,6,1,4,1,27483
#define PATH_MAX_GUESS   1024
#define PKG_MEM_POOL_SIZE   4*1024*1024
#define RECEIVED   ";received="
#define RECEIVED_LEN   (sizeof(RECEIVED) - 1)
#define ROUTE_MAX_REC_LEV   100
#define RPORT   ";rport="
#define RPORT_LEN   (sizeof(RPORT) - 1)
#define RT_NO   80
#define SERVER_HDR   "Server: Kamailio (" VERSION " (" ARCH "/" OS"))"
#define SERVER_HDR_LEN   (sizeof(SERVER_HDR)-1)
#define SHM_MEM_SIZE   32
#define SIP_PORT   5060
#define SIPS_PORT   5061
#define SRV_MAX_PREFIX_LEN   SRV_TLS_PREFIX_LEN
#define SRV_SCTP_PREFIX   "_sip._sctp."
#define SRV_SCTP_PREFIX_LEN   (sizeof(SRV_SCTP_PREFIX) - 1)
#define SRV_TCP_PREFIX   "_sip._tcp."
#define SRV_TCP_PREFIX_LEN   (sizeof(SRV_TCP_PREFIX) - 1)
#define SRV_TLS_PREFIX   "_sips._tcp."
#define SRV_TLS_PREFIX_LEN   (sizeof(SRV_TLS_PREFIX) - 1)
#define SRV_UDP_PREFIX   "_sip._udp."
#define SRV_UDP_PREFIX_LEN   (sizeof(SRV_UDP_PREFIX) - 1)
#define TABLENAME_COLUMN   "table_name"
#define TIMER_TICK   1
#define TLS_CA_FILE   0
#define TLS_CERT_FILE   CFG_DIR "tls/cert.pem"
#define TLS_PKEY_FILE   CFG_DIR "tls/cert.pem"
#define TOTAG_TOKEN   ";tag="
#define TOTAG_TOKEN_LEN   (sizeof(TOTAG_TOKEN)-1)
#define TRANSPORT_PARAM   ";transport="
#define TRANSPORT_PARAM_LEN   (sizeof(TRANSPORT_PARAM) - 1)
#define USER_AGENT   "User-Agent: Kamailio (" VERSION " (" ARCH "/" OS"))"
#define USER_AGENT_LEN   (sizeof(USER_AGENT)-1)
#define UTIMER_TICK   100*1000
#define VERSION_COLUMN   "table_version"
#define VERSION_TABLE   "version"


Detailed Description

Main Configuration settings.

Definition in file config.h.


Define Documentation

#define BLOCK_STEP   512

distance of kilo-buckets

Definition at line 133 of file config.h.

#define BRANCH_RT_NO   40

T-branch routing tables number

Definition at line 58 of file config.h.

Referenced by check_rls(), fix_rls(), and print_rl().

#define BUF_SIZE   65535

receive buffer size

Note:
preferably set low to avoid terror of excessively huge messages; they are useless anyway forwarding -- Via buffer dimensioning

Definition at line 140 of file config.h.

Referenced by print_ct_constants(), t_retransmit_reply(), and udp_rcv_loop().

#define CFG_FILE   CFG_DIR "kamailio.cfg"

Definition at line 42 of file config.h.

Referenced by main().

#define CHILD_NO   8

default number of child processes started

Definition at line 51 of file config.h.

Referenced by main().

#define CONTENT_LENGTH   "Content-Length: "

#define CONTENT_LENGTH_LEN   (sizeof(CONTENT_LENGTH)-1)

#define CRLF   "\r\n"

#define CRLF_LEN   (sizeof(CRLF) - 1)

#define DEFAULT_DB_URL   "mysql://openser:openserrw@localhost/openser"

Definition at line 161 of file config.h.

#define DEFAULT_DB_URL_LEN   (sizeof(DEFAULT_DB_URL) - 1)

Definition at line 162 of file config.h.

#define DEFAULT_RODB_URL   "mysql://openserro:openserro@localhost/openser"

Definition at line 164 of file config.h.

#define DEFAULT_RODB_URL_LEN   (sizeof(DEFAULT_RODB_URL) - 1)

Definition at line 165 of file config.h.

#define DEFAULT_RT   0

default routing table

Definition at line 59 of file config.h.

Referenced by receive_msg().

#define FAILURE_RT_NO   40

on_failure routing tables number

Definition at line 56 of file config.h.

Referenced by check_rls(), fix_rls(), and print_rl().

#define ID_PARAM   ";i="

Definition at line 101 of file config.h.

Referenced by id_builder().

#define ID_PARAM_LEN   (sizeof(ID_PARAM) - 1)

Definition at line 102 of file config.h.

Referenced by id_builder().

#define MAX_BRANCH_PARAM_LEN

Value:

(MCOOKIE_LEN+8 /*!<int2hex*/ + 1 /*sep*/ + \
                        MD5_LEN + 1 /*!<sep*/ + 8 /*int2hex*/ + \
                        1 /*extra space, needed by t_calc_branch*/)
Maximum length of values appended to Via-branch parameter.

Definition at line 155 of file config.h.

Referenced by assemble_via(), branch_builder(), build_dlg_ack(), build_local(), build_uac_cancel(), and get_sl_branch().

#define MAX_BRANCHES   12

maximum number of branches per transaction

Definition at line 147 of file config.h.

Referenced by add_blind_uac(), add_uac(), append_branch(), init_branches(), mod_init(), and t_reply_matching().

#define MAX_BUCKET   15

maximum number of possible buckets

Definition at line 134 of file config.h.

#define MAX_FIXED_BLOCK   3072

Definition at line 131 of file config.h.

#define MAX_LISTEN   16

maximum number of addresses on which we will listen

Definition at line 49 of file config.h.

Referenced by print_ct_constants().

#define MAX_PATH_SIZE   255

maximum length of Path header

Definition at line 66 of file config.h.

Referenced by append_branch(), and build_path_vector().

#define MAX_PORT_LEN   7

':' + max 5 letters + \0

Definition at line 85 of file config.h.

Referenced by fix_socket_list().

#define MAX_REC_LEV   100

maximum number of recursive calls

Definition at line 61 of file config.h.

Referenced by eval_expr().

#define MAX_RECEIVED_SIZE   57

Definition at line 144 of file config.h.

Referenced by received_builder().

#define MAX_REDIRECTION_LEN   512

maximum length of Contact header field in redirection replies

Definition at line 149 of file config.h.

Referenced by print_dset().

#define MAX_RPORT_SIZE   13

Definition at line 145 of file config.h.

#define MAX_URI_SIZE   1024

#define MAX_VIA_LINE_SIZE   240

Definition at line 143 of file config.h.

#define MAX_WARNING_LEN   256

Definition at line 80 of file config.h.

Referenced by warning_builder().

#define MCOOKIE   "z9hG4bK"

magic cookie for transaction matching as defined in RFC3261

Definition at line 151 of file config.h.

Referenced by branch_builder(), get_sl_branch(), t_lookup_request(), t_lookupOriginalT(), and t_reply_matching().

#define MCOOKIE_LEN   (sizeof(MCOOKIE)-1)

#define MIN_UDP_PACKET   32

minimum packet size; smaller packets will be dropped silently

Definition at line 171 of file config.h.

Referenced by udp_rcv_loop().

#define MY_BRANCH   ";branch="

Definition at line 82 of file config.h.

Referenced by via_builder().

#define MY_BRANCH_LEN   (sizeof(MY_BRANCH) - 1)

Definition at line 83 of file config.h.

Referenced by via_builder().

#define MY_VIA   "Via: SIP/2.0/UDP "

Definition at line 68 of file config.h.

Referenced by via_builder().

#define MY_VIA_LEN   (sizeof(MY_VIA) - 1)

Definition at line 69 of file config.h.

Referenced by via_builder().

#define ONREPLY_RT_NO   40

on_reply routing tables number

Definition at line 57 of file config.h.

Referenced by check_rls(), fix_rls(), print_rl(), and pv_set_uac_req().

#define OPENSER_OID   1,3,6,1,4,1,27483

#define PATH_MAX_GUESS   1024

maximum path length

Definition at line 159 of file config.h.

Referenced by pathmax().

#define PKG_MEM_POOL_SIZE   4*1024*1024

Used only if PKG_MALLOC is defined

Definition at line 119 of file config.h.

Referenced by init_pkg_mallocs(), main(), and print_ct_constants().

#define RECEIVED   ";received="

Definition at line 89 of file config.h.

Referenced by add_rcv_param_f(), and received_builder().

#define RECEIVED_LEN   (sizeof(RECEIVED) - 1)

Definition at line 90 of file config.h.

Referenced by add_rcv_param_f(), and received_builder().

#define ROUTE_MAX_REC_LEV   100

maximum number of recursive calls for route()

Definition at line 62 of file config.h.

Referenced by run_actions().

#define RPORT   ";rport="

Definition at line 98 of file config.h.

Referenced by build_req_buf_from_sip_req(), and rport_builder().

#define RPORT_LEN   (sizeof(RPORT) - 1)

Definition at line 99 of file config.h.

Referenced by build_req_buf_from_sip_req(), and rport_builder().

#define RT_NO   80

routing tables number

Definition at line 54 of file config.h.

Referenced by check_actions(), dlg_ontimeout(), do_action(), fix_rls(), and print_rl().

#define SERVER_HDR   "Server: Kamailio (" VERSION " (" ARCH "/" OS"))"

Default Server: header

Definition at line 77 of file config.h.

Referenced by mi_version().

#define SERVER_HDR_LEN   (sizeof(SERVER_HDR)-1)

Definition at line 78 of file config.h.

Referenced by mi_version().

#define SHM_MEM_SIZE   32

Used if SH_MEM is defined

Definition at line 122 of file config.h.

#define SIP_PORT   5060

#define SIPS_PORT   5061

Definition at line 40 of file config.h.

Referenced by get_uri_hash_keys(), main(), and sip_resolvehost().

#define SRV_MAX_PREFIX_LEN   SRV_TLS_PREFIX_LEN

Definition at line 116 of file config.h.

Referenced by sip_resolvehost().

#define SRV_SCTP_PREFIX   "_sip._sctp."

Definition at line 110 of file config.h.

Referenced by sip_resolvehost().

#define SRV_SCTP_PREFIX_LEN   (sizeof(SRV_SCTP_PREFIX) - 1)

Definition at line 111 of file config.h.

Referenced by sip_resolvehost().

#define SRV_TCP_PREFIX   "_sip._tcp."

Definition at line 107 of file config.h.

Referenced by sip_resolvehost().

#define SRV_TCP_PREFIX_LEN   (sizeof(SRV_TCP_PREFIX) - 1)

Definition at line 108 of file config.h.

Referenced by sip_resolvehost().

#define SRV_TLS_PREFIX   "_sips._tcp."

Definition at line 113 of file config.h.

Referenced by sip_resolvehost().

#define SRV_TLS_PREFIX_LEN   (sizeof(SRV_TLS_PREFIX) - 1)

Definition at line 114 of file config.h.

Referenced by sip_resolvehost().

#define SRV_UDP_PREFIX   "_sip._udp."

Definition at line 104 of file config.h.

Referenced by sip_resolvehost().

#define SRV_UDP_PREFIX_LEN   (sizeof(SRV_UDP_PREFIX) - 1)

Definition at line 105 of file config.h.

Referenced by sip_resolvehost().

#define TABLENAME_COLUMN   "table_name"

Column name of the table name column in the version table

Definition at line 169 of file config.h.

Referenced by db_table_version().

#define TIMER_TICK   1

one second

Definition at line 124 of file config.h.

Referenced by init_timer(), run_timer_process(), and timer_ticker().

#define TLS_CA_FILE   0

no CA list file by default

Definition at line 46 of file config.h.

#define TLS_CERT_FILE   CFG_DIR "tls/cert.pem"

Definition at line 45 of file config.h.

#define TLS_PKEY_FILE   CFG_DIR "tls/cert.pem"

Definition at line 44 of file config.h.

#define TOTAG_TOKEN   ";tag="

Definition at line 95 of file config.h.

Referenced by build_res_buf_from_sip_req().

#define TOTAG_TOKEN_LEN   (sizeof(TOTAG_TOKEN)-1)

Definition at line 96 of file config.h.

Referenced by build_res_buf_from_sip_req().

#define TRANSPORT_PARAM   ";transport="

Definition at line 92 of file config.h.

Referenced by create_rcv_uri(), and print_local_uri().

#define TRANSPORT_PARAM_LEN   (sizeof(TRANSPORT_PARAM) - 1)

Definition at line 93 of file config.h.

Referenced by create_rcv_uri(), and print_local_uri().

#define USER_AGENT   "User-Agent: Kamailio (" VERSION " (" ARCH "/" OS"))"

Default User-Agent header

Definition at line 74 of file config.h.

Referenced by build_uac_cancel().

#define USER_AGENT_LEN   (sizeof(USER_AGENT)-1)

Definition at line 75 of file config.h.

Referenced by build_uac_cancel().

#define UTIMER_TICK   100*1000

100 miliseconds dimensioning buckets in q_malloc size of the size2bucket table; everything beyond that asks for a variable-size kilo-bucket

Definition at line 125 of file config.h.

Referenced by init_timer(), run_timer_process(), and utimer_ticker().

#define VERSION_COLUMN   "table_version"

Column name for the version value in version table

Definition at line 168 of file config.h.

Referenced by db_table_version().

#define VERSION_TABLE   "version"

Table holding versions of other openser tables

Definition at line 167 of file config.h.

Referenced by db_table_version().


Generated on Mon May 21 18:00:37 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6