1 /*
2  * Copyright (C) 2002-2003 Fhg Fokus
3  *
4  * This file is part of SEMS, a free SIP media server.
5  *
6  * SEMS is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version. This program is released under
10  * the GPL with the additional exemption that compiling, linking,
11  * and/or using OpenSSL is allowed.
12  *
13  * For a license to use the SEMS software under conditions
14  * other than those described here, or to purchase support for this
15  * software, please contact iptel.org by e-mail at the following addresses:
16  *    info@iptel.org
17  *
18  * SEMS is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26  */
27 /** @file sems.h */
28 #ifndef _sems_h_
29 #define _sems_h_
30 
31 #define CONFIG_FILE         "/usr/local/etc/sems/sems.conf"
32 #define MOD_CFG_PATH        "/usr/local/etc/sems/etc/"
33 #define ANNOUNCE_PATH       "/usr/local/lib/sems/audio"
34 #define ANNOUNCE_FILE       "default.wav"
35 #define PLUG_IN_PATH        "/usr/local/lib/sems/plug-in"
36 #define RTP_LOWPORT         1024
37 #define RTP_HIGHPORT        0xffff
38 #define MAX_FORWARDS        70
39 
40 #define DEFAULT_MAX_SHUTDOWN_TIME 10 // 10 seconds max for shutting down
41 
42 #ifndef DISABLE_DAEMON_MODE
43 # define DEFAULT_DAEMON_MODE        true
44 # define DEFAULT_DAEMON_PID_FILE    "/var/local/run/sems.pid"
45 # define DEFAULT_DAEMON_UID         ""
46 # define DEFAULT_DAEMON_GID         ""
47 #endif
48 
49 #define DEFAULT_SIGNATURE "Sip Express Media Server " \
50 		"(" SEMS_VERSION " (" ARCH "/" OS"))"
51 
52 // session considered dead after 5 minutes no RTP
53 #define DEAD_RTP_TIME       5*60
54 
55 /* Session Timer default configuration: */
56 #define DEFAULT_ENABLE_SESSION_TIMER 1
57 #define SESSION_EXPIRES              60 // seconds
58 #define MINIMUM_TIMER                5   //seconds
59 
60 // threads to start for signaling/application
61 #define NUM_SESSION_PROCESSORS 10
62 // threads to start for RTP processing
63 #define NUM_MEDIA_PROCESSORS 1
64 // number of RTP receiver threads
65 #define NUM_RTP_RECEIVERS 1
66 // number of SIP servers to start
67 #define NUM_SIP_SERVERS 4
68 
69 #define MAX_NET_DEVICES     32
70 
71 // defaults for RTP MUX
72 #define DEFAULT_MUX_MTU_THRESHOLD 1200
73 #define DEFAULT_MUX_MAX_FRAME_AGE_MS 60
74 
75 extern const char* progname;
76 
77 #endif
78