Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

config.h File Reference

#include "types.h"

Go to the source code of this file.

Defines

#define SIP_PORT   5060
#define SIPS_PORT   5061
#define CFG_FILE   CFG_DIR "ser.cfg"
#define TLS_PKEY_FILE   "cert.pem"
#define TLS_CERT_FILE   "cert.pem"
#define TLS_CA_FILE   0
#define MAX_LISTEN   16
#define CHILD_NO   8
#define RT_NO   2
#define FAILURE_RT_NO   RT_NO
#define ONREPLY_RT_NO   RT_NO
#define BRANCH_RT_NO   RT_NO
#define ONSEND_RT_NO   1
#define DEFAULT_RT   0
#define MAX_REC_LEV   100
#define ROUTE_MAX_REC_LEV   100
#define MAX_URI_SIZE   1024
#define MY_VIA   "Via: SIP/2.0/UDP "
#define MY_VIA_LEN   (sizeof(MY_VIA) - 1)
#define ROUTE_PREFIX   "Route: "
#define ROUTE_PREFIX_LEN   (sizeof(ROUTE_PREFIX) - 1)
#define ROUTE_SEPARATOR   ", "
#define ROUTE_SEPARATOR_LEN   (sizeof(ROUTE_SEPARATOR) - 1)
#define CONTENT_LENGTH   "Content-Length: "
#define CONTENT_LENGTH_LEN   (sizeof(CONTENT_LENGTH)-1)
#define USER_AGENT
#define USER_AGENT_LEN   (sizeof(USER_AGENT)-1)
#define SERVER_HDR
#define SERVER_HDR_LEN   (sizeof(SERVER_HDR)-1)
#define MAX_WARNING_LEN   256
#define MY_BRANCH   ";branch="
#define MY_BRANCH_LEN   (sizeof(MY_BRANCH) - 1)
#define MAX_PORT_LEN   7
#define CRLF   "\r\n"
#define CRLF_LEN   (sizeof(CRLF) - 1)
#define RECEIVED   ";received="
#define RECEIVED_LEN   (sizeof(RECEIVED) - 1)
#define TRANSPORT_PARAM   ";transport="
#define TRANSPORT_PARAM_LEN   (sizeof(TRANSPORT_PARAM) - 1)
#define COMP_PARAM   ";comp="
#define COMP_PARAM_LEN   (sizeof(COMP_PARAM)-1)
#define SIGCOMP_NAME   "sigcomp"
#define SIGCOMP_NAME_LEN   (sizeof(SIGCOMP_NAME)-1)
#define SERGZ_NAME   "sergz"
#define SERGZ_NAME_LEN   (sizeof(SERGZ_NAME)-1)
#define TOTAG_TOKEN   ";tag="
#define TOTAG_TOKEN_LEN   (sizeof(TOTAG_TOKEN)-1)
#define RPORT   ";rport="
#define RPORT_LEN   (sizeof(RPORT) - 1)
#define ID_PARAM   ";i="
#define ID_PARAM_LEN   (sizeof(ID_PARAM) - 1)
#define SRV_UDP_PREFIX   "_sip._udp."
#define SRV_UDP_PREFIX_LEN   (sizeof(SRV_UDP_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_SCTP_PREFIX   "_sip._sctp."
#define SRV_SCTP_PREFIX_LEN   (sizeof(SRV_SCTP_PREFIX) - 1)
#define SRV_MAX_PREFIX_LEN   SRV_TLS_PREFIX_LEN
#define PKG_MEM_POOL_SIZE   4*1024*1024
#define SHM_MEM_SIZE   32
#define MAX_FIXED_BLOCK   3072
#define BLOCK_STEP   512
#define MAX_BUCKET   15
#define BUF_SIZE   65535
#define MAX_VIA_LINE_SIZE   240
#define MAX_RECEIVED_SIZE   57
#define MAX_RPORT_SIZE   13
#define MAX_BRANCHES   12
#define MAX_PRINT_TEXT   256
#define MAX_REDIRECTION_LEN   512
#define CLEANUP_EOL   " \n"
#define MCOOKIE   "z9hG4bK"
#define MCOOKIE_LEN   (sizeof(MCOOKIE)-1)
#define MAX_BRANCH_PARAM_LEN
#define DEFAULT_SER_KILL_TIMEOUT   60
#define PATH_MAX_GUESS   1024
#define DEFAULT_DB_URL   "mysql://ser:heslo@localhost/ser"
#define DEFAULT_DB_URL_LEN   (sizeof(DEFAULT_DB_URL) - 1)
#define DEFAULT_RODB_URL   "mysql://serro:47serro11@localhost/ser"
#define DEFAULT_RODB_URL_LEN   (sizeof(DEFAULT_RODB_URL) - 1)
#define VERSION_TABLE   "version"
#define VERSION_COLUMN   "table_version"
#define TABLENAME_COLUMN   "table_name"
#define MIN_UDP_PACKET   32
#define MIN_SCTP_PACKET   MIN_UDP_PACKET
#define DEFAULT_RADIUS_CONFIG   "/usr/local/etc/radiusclient/radiusclient.conf"
#define DEFAULT_DID   "_default"


Define Documentation

#define BLOCK_STEP   512
 

Definition at line 153 of file config.h.

#define BRANCH_RT_NO   RT_NO
 

Definition at line 63 of file config.h.

Referenced by init_routes().

#define BUF_SIZE   65535
 

Definition at line 161 of file config.h.

Referenced by main(), print_ct_constants(), udp_rcv_loop(), and yyparse().

#define CFG_FILE   CFG_DIR "ser.cfg"
 

Definition at line 47 of file config.h.

#define CHILD_NO   8
 

Definition at line 58 of file config.h.

#define CLEANUP_EOL   " \n"
 

Definition at line 181 of file config.h.

#define COMP_PARAM   ";comp="
 

Definition at line 108 of file config.h.

Referenced by via_builder().

#define COMP_PARAM_LEN   (sizeof(COMP_PARAM)-1)
 

Definition at line 109 of file config.h.

Referenced by via_builder().

#define CONTENT_LENGTH   "Content-Length: "
 

Definition at line 82 of file config.h.

Referenced by build_dlg_ack(), build_local(), build_res_buf_from_sip_req(), build_uac_req(), and clen_builder().

#define CONTENT_LENGTH_LEN   (sizeof(CONTENT_LENGTH)-1)
 

Definition at line 83 of file config.h.

Referenced by build_dlg_ack(), build_local(), build_res_buf_from_sip_req(), build_uac_req(), and clen_builder().

#define CRLF   "\r\n"
 

Definition at line 99 of file config.h.

Referenced by add_contact(), add_diversion(), add_maxfwd_header(), alter_mediaip(), alter_mediaport(), build_authorization_hdr(), build_challenge_hf(), build_contact(), build_dlg_ack(), build_local(), build_local_reparse(), build_res_buf_from_sip_req(), build_rr(), build_uac_req(), check_proxy_require(), clen_builder(), compose_hdr(), fix_nated_sdp_f(), force_rtp_proxy(), get_body(), http_xmlrpc2sip(), m_build_headers(), opt_reply(), print_callid(), print_callid_mini(), print_dset(), print_from(), print_request_uri(), print_routeset(), print_rs(), print_to(), record_route_preset(), request_hf_helper(), run_redirect(), send_reply(), send_sip_msg_request(), send_sms_as_sip(), send_sms_as_sip_scan_no(), sip_ping_builder(), via_builder(), and xj_send_sip_msg().

#define CRLF_LEN   (sizeof(CRLF) - 1)
 

Definition at line 100 of file config.h.

Referenced by add_contact(), add_diversion(), add_maxfwd_header(), alter_mediaip(), alter_mediaport(), build_authorization_hdr(), build_challenge_hf(), build_contact(), build_dlg_ack(), build_local(), build_local_reparse(), build_res_buf_from_sip_req(), build_uac_req(), check_proxy_require(), clen_builder(), compose_hdr(), contact_length(), create_via(), fix_nated_sdp_f(), force_rtp_proxy(), get_body(), http_xmlrpc2sip(), m_build_headers(), opt_reply(), print_callid(), print_callid_mini(), print_dset(), print_from(), print_request_uri(), print_routeset(), print_rs(), print_to(), request_hf_helper(), run_redirect(), send_reply(), send_sip_msg_request(), send_sms_as_sip(), send_sms_as_sip_scan_no(), sip_ping_builder(), via_builder(), and xj_send_sip_msg().

#define DEFAULT_DB_URL   "mysql://ser:heslo@localhost/ser"
 

Definition at line 197 of file config.h.

#define DEFAULT_DB_URL_LEN   (sizeof(DEFAULT_DB_URL) - 1)
 

Definition at line 198 of file config.h.

#define DEFAULT_DID   "_default"
 

Definition at line 215 of file config.h.

Referenced by load_uri_attrs().

#define DEFAULT_RADIUS_CONFIG   "/usr/local/etc/radiusclient/radiusclient.conf"
 

Definition at line 213 of file config.h.

#define DEFAULT_RODB_URL   "mysql://serro:47serro11@localhost/ser"
 

Definition at line 200 of file config.h.

#define DEFAULT_RODB_URL_LEN   (sizeof(DEFAULT_RODB_URL) - 1)
 

Definition at line 201 of file config.h.

#define DEFAULT_RT   0
 

Definition at line 65 of file config.h.

Referenced by receive_msg(), run_onsend(), and yyparse().

#define DEFAULT_SER_KILL_TIMEOUT   60
 

Definition at line 192 of file config.h.

#define FAILURE_RT_NO   RT_NO
 

Definition at line 61 of file config.h.

Referenced by init_routes().

#define ID_PARAM   ";i="
 

Definition at line 123 of file config.h.

Referenced by id_builder().

#define ID_PARAM_LEN   (sizeof(ID_PARAM) - 1)
 

Definition at line 124 of file config.h.

Referenced by id_builder().

#define MAX_BRANCH_PARAM_LEN
 

Value:

(MCOOKIE_LEN+8 /*int2hex*/ + 1 /*sep*/ + \
                                                                MD5_LEN /* max(int2hex, MD5_LEN) */ \
                                                                + 1 /*sep*/ + 8 /*int2hex*/ + \
                                                                1 /*extra space, needed by t_calc_branch*/)

Definition at line 187 of file config.h.

Referenced by branch_builder().

#define MAX_BRANCHES   12
 

Definition at line 169 of file config.h.

Referenced by append_branch(), mod_init(), and t_reply_matching().

#define MAX_BUCKET   15
 

Definition at line 155 of file config.h.

#define MAX_FIXED_BLOCK   3072
 

Definition at line 151 of file config.h.

#define MAX_LISTEN   16
 

Definition at line 55 of file config.h.

Referenced by print_ct_constants().

#define MAX_PORT_LEN   7
 

Definition at line 98 of file config.h.

#define MAX_PRINT_TEXT   256
 

Definition at line 172 of file config.h.

#define MAX_REC_LEV   100
 

Definition at line 67 of file config.h.

#define MAX_RECEIVED_SIZE   57
 

Definition at line 165 of file config.h.

Referenced by received_builder().

#define MAX_REDIRECTION_LEN   512
 

Definition at line 175 of file config.h.

#define MAX_RPORT_SIZE   13
 

Definition at line 166 of file config.h.

#define MAX_URI_SIZE   1024
 

Definition at line 71 of file config.h.

Referenced by append_branch(), do_action(), encode_from(), enum_query(), exec_str(), match_hash_table(), match_res(), and print_ct_constants().

#define MAX_VIA_LINE_SIZE   240
 

Definition at line 164 of file config.h.

#define MAX_WARNING_LEN   256
 

Definition at line 93 of file config.h.

#define MCOOKIE   "z9hG4bK"
 

Definition at line 184 of file config.h.

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

#define MCOOKIE_LEN   (sizeof(MCOOKIE)-1)
 

Definition at line 185 of file config.h.

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

#define MIN_SCTP_PACKET   MIN_UDP_PACKET
 

Definition at line 211 of file config.h.

#define MIN_UDP_PACKET   32
 

Definition at line 209 of file config.h.

#define MY_BRANCH   ";branch="
 

Definition at line 95 of file config.h.

Referenced by via_builder().

#define MY_BRANCH_LEN   (sizeof(MY_BRANCH) - 1)
 

Definition at line 96 of file config.h.

Referenced by via_builder().

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

Definition at line 73 of file config.h.

Referenced by via_builder().

#define MY_VIA_LEN   (sizeof(MY_VIA) - 1)
 

Definition at line 74 of file config.h.

Referenced by via_builder().

#define ONREPLY_RT_NO   RT_NO
 

Definition at line 62 of file config.h.

Referenced by init_routes().

#define ONSEND_RT_NO   1
 

Definition at line 64 of file config.h.

Referenced by init_routes().

#define PATH_MAX_GUESS   1024
 

Definition at line 195 of file config.h.

Referenced by pathmax().

#define PKG_MEM_POOL_SIZE   4*1024*1024
 

Definition at line 141 of file config.h.

Referenced by init_pkg_mallocs(), and main().

#define RECEIVED   ";received="
 

Definition at line 102 of file config.h.

Referenced by add_received(), fix_nated_register_f(), and received_builder().

#define RECEIVED_LEN   (sizeof(RECEIVED) - 1)
 

Definition at line 103 of file config.h.

Referenced by add_received(), fix_nated_register_f(), and received_builder().

#define ROUTE_MAX_REC_LEV   100
 

Definition at line 68 of file config.h.

#define ROUTE_PREFIX   "Route: "
 

Definition at line 76 of file config.h.

Referenced by print_routeset(), and print_rs().

#define ROUTE_PREFIX_LEN   (sizeof(ROUTE_PREFIX) - 1)
 

Definition at line 77 of file config.h.

Referenced by calc_routeset_len(), print_routeset(), and print_rs().

#define ROUTE_SEPARATOR   ", "
 

Definition at line 79 of file config.h.

Referenced by print_routeset(), and print_rs().

#define ROUTE_SEPARATOR_LEN   (sizeof(ROUTE_SEPARATOR) - 1)
 

Definition at line 80 of file config.h.

Referenced by print_routeset(), and print_rs().

#define RPORT   ";rport="
 

Definition at line 120 of file config.h.

Referenced by rport_builder().

#define RPORT_LEN   (sizeof(RPORT) - 1)
 

Definition at line 121 of file config.h.

Referenced by rport_builder().

#define RT_NO   2
 

Definition at line 60 of file config.h.

Referenced by init_routes().

#define SERGZ_NAME   "sergz"
 

Definition at line 114 of file config.h.

#define SERGZ_NAME_LEN   (sizeof(SERGZ_NAME)-1)
 

Definition at line 115 of file config.h.

#define SERVER_HDR
 

Value:

"Server: Sip EXpress router "\
                "(" VERSION " (" ARCH "/" OS_QUOTED "))"

Definition at line 89 of file config.h.

Referenced by build_res_buf_from_sip_req(), and core_version().

#define SERVER_HDR_LEN   (sizeof(SERVER_HDR)-1)
 

Definition at line 91 of file config.h.

Referenced by build_res_buf_from_sip_req().

#define SHM_MEM_SIZE   32
 

Definition at line 144 of file config.h.

#define SIGCOMP_NAME   "sigcomp"
 

Definition at line 111 of file config.h.

#define SIGCOMP_NAME_LEN   (sizeof(SIGCOMP_NAME)-1)
 

Definition at line 112 of file config.h.

#define SIP_PORT   5060
 

Definition at line 44 of file config.h.

Referenced by assemble_msg(), eval_elem(), forward_reply(), get_direction(), is_myself(), log_request(), ospGetNextHop(), ospGetRouteParameters(), and radius_authorize_sterman().

#define SIPS_PORT   5061
 

Definition at line 45 of file config.h.

Referenced by get_uri_hash_keys(), and srv_sip_resolvehost().

#define SRV_MAX_PREFIX_LEN   SRV_TLS_PREFIX_LEN
 

Definition at line 138 of file config.h.

Referenced by srv_sip_resolvehost().

#define SRV_SCTP_PREFIX   "_sip._sctp."
 

Definition at line 135 of file config.h.

Referenced by srv_sip_resolvehost().

#define SRV_SCTP_PREFIX_LEN   (sizeof(SRV_SCTP_PREFIX) - 1)
 

Definition at line 136 of file config.h.

Referenced by srv_sip_resolvehost().

#define SRV_TCP_PREFIX   "_sip._tcp."
 

Definition at line 129 of file config.h.

Referenced by srv_sip_resolvehost().

#define SRV_TCP_PREFIX_LEN   (sizeof(SRV_TCP_PREFIX) - 1)
 

Definition at line 130 of file config.h.

Referenced by srv_sip_resolvehost().

#define SRV_TLS_PREFIX   "_sips._tcp."
 

Definition at line 132 of file config.h.

Referenced by srv_sip_resolvehost().

#define SRV_TLS_PREFIX_LEN   (sizeof(SRV_TLS_PREFIX) - 1)
 

Definition at line 133 of file config.h.

Referenced by srv_sip_resolvehost().

#define SRV_UDP_PREFIX   "_sip._udp."
 

Definition at line 126 of file config.h.

Referenced by srv_sip_resolvehost().

#define SRV_UDP_PREFIX_LEN   (sizeof(SRV_UDP_PREFIX) - 1)
 

Definition at line 127 of file config.h.

Referenced by srv_sip_resolvehost().

#define TABLENAME_COLUMN   "table_name"
 

Definition at line 206 of file config.h.

#define TLS_CA_FILE   0
 

Definition at line 51 of file config.h.

#define TLS_CERT_FILE   "cert.pem"
 

Definition at line 50 of file config.h.

#define TLS_PKEY_FILE   "cert.pem"
 

Definition at line 49 of file config.h.

#define TOTAG_TOKEN   ";tag="
 

Definition at line 117 of file config.h.

Referenced by build_res_buf_from_sip_req().

#define TOTAG_TOKEN_LEN   (sizeof(TOTAG_TOKEN)-1)
 

Definition at line 118 of file config.h.

Referenced by build_res_buf_from_sip_req().

#define TRANSPORT_PARAM   ";transport="
 

Definition at line 105 of file config.h.

Referenced by add_contact(), create_rcv_uri(), and decode_uri().

#define TRANSPORT_PARAM_LEN   (sizeof(TRANSPORT_PARAM) - 1)
 

Definition at line 106 of file config.h.

Referenced by add_contact(), contact_length(), create_rcv_uri(), and decode_uri().

#define USER_AGENT
 

Value:

"User-Agent: Sip EXpress router"\
                "(" VERSION " (" ARCH "/" OS_QUOTED "))"

Definition at line 85 of file config.h.

Referenced by build_dlg_ack(), build_local(), and build_uac_req().

#define USER_AGENT_LEN   (sizeof(USER_AGENT)-1)
 

Definition at line 87 of file config.h.

Referenced by build_dlg_ack(), build_local(), and build_uac_req().

#define VERSION_COLUMN   "table_version"
 

Definition at line 205 of file config.h.

#define VERSION_TABLE   "version"
 

Definition at line 204 of file config.h.


Generated on Thu Jul 29 04:15:53 2010 for SIPExpressRouter by  doxygen 1.3.9.1