sems.h.cmake
65af2923
 /*
  * $Id$
  *
  * Copyright (C) 2002-2003 Fhg Fokus
  *
  * This file is part of sems, a free SIP media server.
  *
  * sems is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  *
  * For a license to use the ser software under conditions
  * other than those described here, or to purchase support for this
  * software, please contact iptel.org by e-mail at the following addresses:
  *    info@iptel.org
  *
  * sems is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
a36ec93c
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
65af2923
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 /** @file sems.h */
 #ifndef _ans_machine_h_
 #define _ans_machine_h_
 
 #define SEMS_VERSION "${SEMS_VERSION}"
 #define OS "${CMAKE_SYSTEM_NAME}"
ade30942
 #define ARCH "${CMAKE_SYSTEM_PROCESSOR}"
65af2923
 
95f6267f
 #define CONFIG_FILE         "${SEMS_CFG_PREFIX}/etc/sems/sems.conf"
 #define MOD_CFG_PATH        "${SEMS_CFG_PREFIX}/etc/sems/etc/"
 #define ANNOUNCE_PATH       "${SEMS_AUDIO_PREFIX}/sems/audio"
65af2923
 #define ANNOUNCE_FILE       "default.wav"
95f6267f
 #define PLUG_IN_PATH        "${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/plug-in"
65af2923
 #define DEFAULT_ANNOUNCE    "default.wav"
 #define DEFAULT_RECORD_TIME 30
 #define PREFIX_SEPARATOR    ""
 #define RTP_LOWPORT         1024
 #define RTP_HIGHPORT        0xffff
9e482286
 #define MAX_FORWARDS        70
 
 #ifndef DISABLE_DAEMON_MODE
 # define DEFAULT_DAEMON_MODE        true
 # define DEFAULT_DAEMON_PID_FILE    "/var/local/run/sems.pid"
 # define DEFAULT_DAEMON_UID         ""
 # define DEFAULT_DAEMON_GID         ""
 #endif
65af2923
 
 #define DEFAULT_SIGNATURE "Sip Express Media Server " \
 		"(" SEMS_VERSION " (" ARCH "/" OS"))"
 
 // session considered dead after 5 minutes no RTP
a36ec93c
 #define DEAD_RTP_TIME       5*60
65af2923
 
49f6c8ea
 /* Session Timer default configuration: */
65af2923
 #define DEFAULT_ENABLE_SESSION_TIMER 1
 #define SESSION_EXPIRES              60 // seconds
 #define MINIMUM_TIMER                5   //seconds
 
9e482286
 // threads to start for signaling/application
49f6c8ea
 #define NUM_SESSION_PROCESSORS 10
9e482286
 // threads to start for RTP processing
 #define NUM_MEDIA_PROCESSORS 1
 // number of SIP servers to start
 #define NUM_SIP_SERVERS 4
49f6c8ea
 
65af2923
 #define MAX_NET_DEVICES     32
 
 extern const char* progname;
 
 #endif