Browse code

Move sems.h template to the core directory

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

Peter Lemenkov authored on 16/02/2012 14:10:59
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,77 +0,0 @@
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 _ans_machine_h_
29
-#define _ans_machine_h_
30
-
31
-#define SEMS_VERSION "${SEMS_VERSION}"
32
-#define OS "${CMAKE_SYSTEM_NAME}"
33
-#define ARCH "${CMAKE_SYSTEM_PROCESSOR}"
34
-
35
-#define CONFIG_FILE         "${SEMS_CFG_PREFIX}/etc/sems/sems.conf"
36
-#define MOD_CFG_PATH        "${SEMS_CFG_PREFIX}/etc/sems/etc/"
37
-#define ANNOUNCE_PATH       "${SEMS_AUDIO_PREFIX}/sems/audio"
38
-#define ANNOUNCE_FILE       "default.wav"
39
-#define PLUG_IN_PATH        "${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/plug-in"
40
-#define RTP_LOWPORT         1024
41
-#define RTP_HIGHPORT        0xffff
42
-#define MAX_FORWARDS        70
43
-
44
-#define DEFAULT_MAX_SHUTDOWN_TIME 10 // 10 seconds max for shutting down
45
-
46
-#ifndef DISABLE_DAEMON_MODE
47
-# define DEFAULT_DAEMON_MODE        true
48
-# define DEFAULT_DAEMON_PID_FILE    "/var/local/run/sems.pid"
49
-# define DEFAULT_DAEMON_UID         ""
50
-# define DEFAULT_DAEMON_GID         ""
51
-#endif
52
-
53
-#define DEFAULT_SIGNATURE "Sip Express Media Server " \
54
-		"(" SEMS_VERSION " (" ARCH "/" OS"))"
55
-
56
-// session considered dead after 5 minutes no RTP
57
-#define DEAD_RTP_TIME       5*60
58
-
59
-/* Session Timer default configuration: */
60
-#define DEFAULT_ENABLE_SESSION_TIMER 1
61
-#define SESSION_EXPIRES              60 // seconds
62
-#define MINIMUM_TIMER                5   //seconds
63
-
64
-// threads to start for signaling/application
65
-#define NUM_SESSION_PROCESSORS 10
66
-// threads to start for RTP processing
67
-#define NUM_MEDIA_PROCESSORS 1
68
-// number of RTP receiver threads
69
-#define NUM_RTP_RECEIVERS 1
70
-// number of SIP servers to start
71
-#define NUM_SIP_SERVERS 4
72
-
73
-#define MAX_NET_DEVICES     32
74
-
75
-extern const char* progname;
76
-
77
-#endif
Browse code

Sync cmake files

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

Peter Lemenkov authored on 16/02/2012 13:37:54
Showing 1 changed files
... ...
@@ -65,6 +65,8 @@
65 65
 #define NUM_SESSION_PROCESSORS 10
66 66
 // threads to start for RTP processing
67 67
 #define NUM_MEDIA_PROCESSORS 1
68
+// number of RTP receiver threads
69
+#define NUM_RTP_RECEIVERS 1
68 70
 // number of SIP servers to start
69 71
 #define NUM_SIP_SERVERS 4
70 72
 
Browse code

moved to voicemail vm-specific defaults

Stefan Sayer authored on 28/10/2010 23:04:40
Showing 1 changed files
... ...
@@ -37,9 +37,6 @@
37 37
 #define ANNOUNCE_PATH       "${SEMS_AUDIO_PREFIX}/sems/audio"
38 38
 #define ANNOUNCE_FILE       "default.wav"
39 39
 #define PLUG_IN_PATH        "${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/plug-in"
40
-#define DEFAULT_ANNOUNCE    "default.wav"
41
-#define DEFAULT_RECORD_TIME 30
42
-#define PREFIX_SEPARATOR    ""
43 40
 #define RTP_LOWPORT         1024
44 41
 #define RTP_HIGHPORT        0xffff
45 42
 #define MAX_FORWARDS        70
Browse code

More cmake templates

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

Peter Lemenkov authored on 27/09/2010 11:38:10
Showing 1 changed files
... ...
@@ -44,6 +44,8 @@
44 44
 #define RTP_HIGHPORT        0xffff
45 45
 #define MAX_FORWARDS        70
46 46
 
47
+#define DEFAULT_MAX_SHUTDOWN_TIME 10 // 10 seconds max for shutting down
48
+
47 49
 #ifndef DISABLE_DAEMON_MODE
48 50
 # define DEFAULT_DAEMON_MODE        true
49 51
 # define DEFAULT_DAEMON_PID_FILE    "/var/local/run/sems.pid"
Browse code

added OpenSSL linking exception to license

Stefan Sayer authored on 23/09/2010 14:41:49
Showing 1 changed files
... ...
@@ -1,21 +1,21 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2002-2003 Fhg Fokus
5 3
  *
6
- * This file is part of sems, a free SIP media server.
4
+ * This file is part of SEMS, a free SIP media server.
7 5
  *
8
- * sems is free software; you can redistribute it and/or modify
6
+ * SEMS is free software; you can redistribute it and/or modify
9 7
  * it under the terms of the GNU General Public License as published by
10 8
  * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
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 12
  *
13
- * For a license to use the ser software under conditions
13
+ * For a license to use the SEMS software under conditions
14 14
  * other than those described here, or to purchase support for this
15 15
  * software, please contact iptel.org by e-mail at the following addresses:
16 16
  *    info@iptel.org
17 17
  *
18
- * sems is distributed in the hope that it will be useful,
18
+ * SEMS is distributed in the hope that it will be useful,
19 19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 21
  * GNU General Public License for more details.
Browse code

Enable latest SEMS new features in cmake template files

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1905 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Peter Lemenkov authored on 18/05/2010 13:55:40
Showing 1 changed files
... ...
@@ -39,11 +39,17 @@
39 39
 #define PLUG_IN_PATH        "${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/plug-in"
40 40
 #define DEFAULT_ANNOUNCE    "default.wav"
41 41
 #define DEFAULT_RECORD_TIME 30
42
-#define DEFAULT_DAEMON_MODE 1
43 42
 #define PREFIX_SEPARATOR    ""
44 43
 #define RTP_LOWPORT         1024
45 44
 #define RTP_HIGHPORT        0xffff
46
-#define MAX_FORWARDS        "70"
45
+#define MAX_FORWARDS        70
46
+
47
+#ifndef DISABLE_DAEMON_MODE
48
+# define DEFAULT_DAEMON_MODE        true
49
+# define DEFAULT_DAEMON_PID_FILE    "/var/local/run/sems.pid"
50
+# define DEFAULT_DAEMON_UID         ""
51
+# define DEFAULT_DAEMON_GID         ""
52
+#endif
47 53
 
48 54
 #define DEFAULT_SIGNATURE "Sip Express Media Server " \
49 55
 		"(" SEMS_VERSION " (" ARCH "/" OS"))"
... ...
@@ -56,9 +62,12 @@
56 62
 #define SESSION_EXPIRES              60 // seconds
57 63
 #define MINIMUM_TIMER                5   //seconds
58 64
 
59
-#define NUM_MEDIA_PROCESSORS 1
60
-
65
+// threads to start for signaling/application
61 66
 #define NUM_SESSION_PROCESSORS 10
67
+// threads to start for RTP processing
68
+#define NUM_MEDIA_PROCESSORS 1
69
+// number of SIP servers to start
70
+#define NUM_SIP_SERVERS 4
62 71
 
63 72
 #define MAX_NET_DEVICES     32
64 73
 
Browse code

One typo and few trailing whitespace cleanups

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1904 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Peter Lemenkov authored on 18/05/2010 13:55:33
Showing 1 changed files
... ...
@@ -20,8 +20,8 @@
20 20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 21
  * GNU General Public License for more details.
22 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 
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 25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 26
  */
27 27
 /** @file sems.h */
... ...
@@ -49,7 +49,7 @@
49 49
 		"(" SEMS_VERSION " (" ARCH "/" OS"))"
50 50
 
51 51
 // session considered dead after 5 minutes no RTP
52
-#define DEAD_RTP_TIME       5*60  
52
+#define DEAD_RTP_TIME       5*60
53 53
 
54 54
 /* Session Timer default configuration: */
55 55
 #define DEFAULT_ENABLE_SESSION_TIMER 1
Browse code

NUM_SESSION_PROCESSORS for CMake

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1793 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Stefan Sayer authored on 15/04/2010 14:20:05
Showing 1 changed files
... ...
@@ -51,13 +51,15 @@
51 51
 // session considered dead after 5 minutes no RTP
52 52
 #define DEAD_RTP_TIME       5*60  
53 53
 
54
-/* Session Timer defaul configuration: */
54
+/* Session Timer default configuration: */
55 55
 #define DEFAULT_ENABLE_SESSION_TIMER 1
56 56
 #define SESSION_EXPIRES              60 // seconds
57 57
 #define MINIMUM_TIMER                5   //seconds
58 58
 
59 59
 #define NUM_MEDIA_PROCESSORS 1
60 60
 
61
+#define NUM_SESSION_PROCESSORS 10
62
+
61 63
 #define MAX_NET_DEVICES     32
62 64
 
63 65
 extern const char* progname;
Browse code

- FIFO-related defines were removed from sems.h template (nobody is using them).

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1525 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Peter Lemenkov authored on 12/10/2009 11:06:21
Showing 1 changed files
... ...
@@ -34,9 +34,6 @@
34 34
 
35 35
 #define CONFIG_FILE         "${SEMS_CFG_PREFIX}/etc/sems/sems.conf"
36 36
 #define MOD_CFG_PATH        "${SEMS_CFG_PREFIX}/etc/sems/etc/"
37
-#define SER_FIFO            "/tmp/ser_fifo"
38
-#define FIFO_NAME           "/tmp/am_fifo"
39
-#define SEND_METHOD         "unix"
40 37
 #define ANNOUNCE_PATH       "${SEMS_AUDIO_PREFIX}/sems/audio"
41 38
 #define ANNOUNCE_FILE       "default.wav"
42 39
 #define PLUG_IN_PATH        "${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/plug-in"
Browse code

prepare for install target (started adding necessary variables)

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1503 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Peter Lemenkov authored on 15/09/2009 15:13:47
Showing 1 changed files
... ...
@@ -32,14 +32,14 @@
32 32
 #define OS "${CMAKE_SYSTEM_NAME}"
33 33
 #define ARCH "${CMAKE_SYSTEM_PROCESSOR}"
34 34
 
35
-#define CONFIG_FILE         "/usr/local/etc/sems/sems.conf"
36
-#define MOD_CFG_PATH        "/usr/local/etc/sems/etc/"
35
+#define CONFIG_FILE         "${SEMS_CFG_PREFIX}/etc/sems/sems.conf"
36
+#define MOD_CFG_PATH        "${SEMS_CFG_PREFIX}/etc/sems/etc/"
37 37
 #define SER_FIFO            "/tmp/ser_fifo"
38 38
 #define FIFO_NAME           "/tmp/am_fifo"
39 39
 #define SEND_METHOD         "unix"
40
-#define ANNOUNCE_PATH       "/usr/local/lib/sems/audio"
40
+#define ANNOUNCE_PATH       "${SEMS_AUDIO_PREFIX}/sems/audio"
41 41
 #define ANNOUNCE_FILE       "default.wav"
42
-#define PLUG_IN_PATH        "/usr/local/lib/sems/plug-in"
42
+#define PLUG_IN_PATH        "${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/plug-in"
43 43
 #define DEFAULT_ANNOUNCE    "default.wav"
44 44
 #define DEFAULT_RECORD_TIME 30
45 45
 #define DEFAULT_DAEMON_MODE 1
Browse code

Properly set $ARCH in cmake template.

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1494 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Peter Lemenkov authored on 14/09/2009 15:01:36
Showing 1 changed files
... ...
@@ -30,7 +30,7 @@
30 30
 
31 31
 #define SEMS_VERSION "${SEMS_VERSION}"
32 32
 #define OS "${CMAKE_SYSTEM_NAME}"
33
-#define ARCH "${ARCH}"
33
+#define ARCH "${CMAKE_SYSTEM_PROCESSOR}"
34 34
 
35 35
 #define CONFIG_FILE         "/usr/local/etc/sems/sems.conf"
36 36
 #define MOD_CFG_PATH        "/usr/local/etc/sems/etc/"
Browse code

no need in config.h.cmake

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1372 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Peter Lemenkov authored on 08/05/2009 08:01:55
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,68 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Copyright (C) 2002-2003 Fhg Fokus
5
+ *
6
+ * This file is part of sems, a free SIP media server.
7
+ *
8
+ * sems is free software; you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation; either version 2 of the License, or
11
+ * (at your option) any later version
12
+ *
13
+ * For a license to use the ser 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 _ans_machine_h_
29
+#define _ans_machine_h_
30
+
31
+#define SEMS_VERSION "${SEMS_VERSION}"
32
+#define OS "${CMAKE_SYSTEM_NAME}"
33
+#define ARCH "${ARCH}"
34
+
35
+#define CONFIG_FILE         "/usr/local/etc/sems/sems.conf"
36
+#define MOD_CFG_PATH        "/usr/local/etc/sems/etc/"
37
+#define SER_FIFO            "/tmp/ser_fifo"
38
+#define FIFO_NAME           "/tmp/am_fifo"
39
+#define SEND_METHOD         "unix"
40
+#define ANNOUNCE_PATH       "/usr/local/lib/sems/audio"
41
+#define ANNOUNCE_FILE       "default.wav"
42
+#define PLUG_IN_PATH        "/usr/local/lib/sems/plug-in"
43
+#define DEFAULT_ANNOUNCE    "default.wav"
44
+#define DEFAULT_RECORD_TIME 30
45
+#define DEFAULT_DAEMON_MODE 1
46
+#define PREFIX_SEPARATOR    ""
47
+#define RTP_LOWPORT         1024
48
+#define RTP_HIGHPORT        0xffff
49
+#define MAX_FORWARDS        "70"
50
+
51
+#define DEFAULT_SIGNATURE "Sip Express Media Server " \
52
+		"(" SEMS_VERSION " (" ARCH "/" OS"))"
53
+
54
+// session considered dead after 5 minutes no RTP
55
+#define DEAD_RTP_TIME       5*60  
56
+
57
+/* Session Timer defaul configuration: */
58
+#define DEFAULT_ENABLE_SESSION_TIMER 1
59
+#define SESSION_EXPIRES              60 // seconds
60
+#define MINIMUM_TIMER                5   //seconds
61
+
62
+#define NUM_MEDIA_PROCESSORS 1
63
+
64
+#define MAX_NET_DEVICES     32
65
+
66
+extern const char* progname;
67
+
68
+#endif