Blob Blame History Raw
From 67543e5578c9ef136444afa32acf625a744ad1fb Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Mon, 27 Sep 2010 15:38:10 +0400
Subject: [PATCH 6/8] More cmake templates

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
 apps/auth_b2b/etc/auth_b2b.conf.cmake             |    7 +++
 apps/call_timer/etc/call_timer.conf.cmake         |   13 +++++
 apps/conference/etc/conference.conf.cmake         |   34 ++++++++++++
 apps/dsm/etc/dsm.conf.cmake                       |   61 +++++++++++++++++++++
 apps/gateway/etc/gateway.conf.cmake               |    9 +++
 apps/ivr/etc/ivr.conf.cmake                       |   37 +++++++++++++
 apps/jsonrpc/etc/jsonrpc.conf.cmake               |   13 +++++
 apps/monitoring/etc/monitoring.conf.cmake         |   14 +++++
 apps/msg_storage/etc/msg_storage.conf.cmake       |    8 +++
 apps/reg_agent/etc/reg_agent.conf.cmake           |   34 ++++++++++++
 apps/sst_b2b/etc/sst_b2b.conf.cmake               |   39 +++++++++++++
 apps/sw_prepaid_sip/etc/sw_prepaid_sip.conf.cmake |    2 +
 apps/webconference/etc/webconference.conf.cmake   |   40 ++++++++++++++
 apps/xmlrpc2di/etc/xmlrpc2di.conf.cmake           |   38 +++++++++++++
 core/plug-in/CMakeLists.txt                       |    1 +
 core/plug-in/echo/etc/echo.conf.cmake             |   35 ++++++++++++
 core/plug-in/g729/CMakeLists.txt                  |    9 +++
 core/plug-in/stats/etc/stats.conf.cmake           |    2 +
 sems.h.cmake                                      |    2 +
 19 files changed, 398 insertions(+), 0 deletions(-)
 create mode 100644 apps/auth_b2b/etc/auth_b2b.conf.cmake
 create mode 100644 apps/call_timer/etc/call_timer.conf.cmake
 create mode 100644 apps/conf_auth/etc/conf_auth.conf.cmake
 create mode 100644 apps/gateway/etc/gateway.conf.cmake
 create mode 100644 apps/jsonrpc/etc/jsonrpc.conf.cmake
 create mode 100644 apps/monitoring/etc/monitoring.conf.cmake
 create mode 100644 apps/msg_storage/etc/msg_storage.conf.cmake
 create mode 100644 apps/reg_agent/etc/reg_agent.conf.cmake
 create mode 100644 apps/sst_b2b/etc/sst_b2b.conf.cmake
 create mode 100644 apps/sw_prepaid_sip/etc/sw_prepaid_sip.conf.cmake
 create mode 100644 apps/xmlrpc2di/etc/xmlrpc2di.conf.cmake
 create mode 100644 core/plug-in/echo/etc/echo.conf.cmake
 create mode 100644 core/plug-in/g729/CMakeLists.txt
 create mode 100644 core/plug-in/stats/etc/stats.conf.cmake

diff --git a/apps/auth_b2b/etc/auth_b2b.conf.cmake b/apps/auth_b2b/etc/auth_b2b.conf.cmake
new file mode 100644
index 0000000..e9803e1
--- /dev/null
+++ b/apps/auth_b2b/etc/auth_b2b.conf.cmake
@@ -0,0 +1,7 @@
+
+# Account to use on the outgoing call leg. If this is not set,
+# the account is taken from P-App-Param header (see Readme.auth_b2b)
+#
+# user=someuser
+# domain=somedomain.net
+# pwd=sompwd
diff --git a/apps/call_timer/etc/call_timer.conf.cmake b/apps/call_timer/etc/call_timer.conf.cmake
new file mode 100644
index 0000000..ff4da06
--- /dev/null
+++ b/apps/call_timer/etc/call_timer.conf.cmake
@@ -0,0 +1,13 @@
+
+#
+# use_app_param=[yes|no]
+#
+# sets whether App-Param header is used for call time value
+# (or default_call_time below)
+#
+use_app_param=yes
+
+#
+# call timer value used if not in P-App-Param. in seconds
+#
+default_call_time=1200
\ No newline at end of file
diff --git a/apps/conf_auth/etc/conf_auth.conf.cmake b/apps/conf_auth/etc/conf_auth.conf.cmake
new file mode 100644
index 0000000..e69de29
diff --git a/apps/conference/etc/conference.conf.cmake b/apps/conference/etc/conference.conf.cmake
index d1cb13d..0f02fe3 100644
--- a/apps/conference/etc/conference.conf.cmake
+++ b/apps/conference/etc/conference.conf.cmake
@@ -33,3 +33,37 @@ playout_type=adaptive_playout
 #default:
 # use_rfc4240_rooms=no
 #
+
+###############################################################
+# RFC4028 Session Timer
+#
+
+# - enables the session timer ([yes,no]; default: no)
+# 
+# enable_session_timer=yes
+
+# - set the "Session-Expires" parameter for the session timer.
+#
+# session_expires=240
+
+# - set the "Min-SE" parameter for the session timer.
+#
+# minimum_timer=90
+
+# session refresh (Session Timer, RFC4028) method
+#
+# INVITE                 - use re-INVITE
+# UPDATE                 - use UPDATE
+# UPDATE_FALLBACK_INVITE - use UPDATE if indicated in Allow, re-INVITE otherwise
+#
+# Default: UPDATE_FALLBACK_INVITE
+#
+# Note: Session Timers are only supported in some applications
+#
+#session_refresh_method=UPDATE
+
+# accept_501_reply - accept 501 reply as successful refresh? [yes|no]
+#
+# Default: yes
+#
+#accept_501_reply=no
diff --git a/apps/dsm/etc/dsm.conf.cmake b/apps/dsm/etc/dsm.conf.cmake
index d56acae..caad8bc 100644
--- a/apps/dsm/etc/dsm.conf.cmake
+++ b/apps/dsm/etc/dsm.conf.cmake
@@ -16,6 +16,10 @@ mod_path=${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/dsm/
 # print raw DSM text while loading to debug log?
 # debug_raw_dsm=yes
 
+# do rough consistency checking after loading DSM?
+#  (default: yes)
+#dsm_consistency_check=no
+
 # DSM to start for in/outbound call if application to execute=dsm
 # (from application=xyz in sems.conf, either application=dsm or
 #  application=$(apphdr)/$(ruriparam) etc)
@@ -51,6 +55,10 @@ load_prompts=${SEMS_CFG_PREFIX}/etc/sems/etc/dsm_in_prompts.conf,${SEMS_CFG_PREF
 #
 #set_param_variables=yes
 
+# run these system DSMs on startup (system DSMs are DSMs executed without a call)
+#
+#run_system_dsms=system_dsm1,system_dsm2
+
 # monitoring_full_stategraph=[yes|no]
 #
 # Controls whether to log the full call graph (all states visited)
@@ -95,6 +103,21 @@ load_prompts=${SEMS_CFG_PREFIX}/etc/sems/etc/dsm_in_prompts.conf,${SEMS_CFG_PREF
 #
 #monitor_select_use_callee=no
 
+# monitor_select_filters=<comma-separated list of filter variables>
+#
+# for mon_select, records are also filtered by these variables,
+# the values taked of P-App-Params. 
+#
+# e.g. if 
+#    P-App-Param: product_id=2;appdomain=iptel.org
+# and
+#    monitor_select_filters=product_id,appdomain
+#  the record in monitoring must have also those avps set:
+#   appdomain=iptel.org
+#   product_id=2
+#
+# monitor_select_filters=product_id,appdomain
+
 # monitor_select_fallback=app
 #
 # fallback application for $(mon_select) application selection
@@ -113,6 +136,44 @@ load_prompts=${SEMS_CFG_PREFIX}/etc/sems/etc/dsm_in_prompts.conf,${SEMS_CFG_PREF
 #   mod_path=
 #   preload_mods=
 #   run_invite_event=
+#   set_param_variables=
+#   run_system_dsms=
+  
+#   and additional configuration variables (as script variables)
+#
+# conf_dir=${SEMS_CFG_PREFIX}/etc/sems/etc/dsm/
+
+
+###############################################################
+# RFC4028 Session Timer
+#
+
+# - enables the session timer ([yes,no]; default: no)
+#
+# enable_session_timer=yes
+
+# - set the "Session-Expires" parameter for the session timer.
 #
+# session_expires=240
+
+# - set the "Min-SE" parameter for the session timer.
+#
+# minimum_timer=90
+
+# session refresh (Session Timer, RFC4028) method
+#
+# INVITE                 - use re-INVITE
+# UPDATE                 - use UPDATE
+# UPDATE_FALLBACK_INVITE - use UPDATE if indicated in Allow, re-INVITE otherwise
+#
+# Default: UPDATE_FALLBACK_INVITE
+#
+# Note: Session Timers are only supported in some applications
+#
+#session_refresh_method=UPDATE
+
+# accept_501_reply - accept 501 reply as successful refresh? [yes|no]
 #
+# Default: yes
 #
+#accept_501_reply=no
diff --git a/apps/gateway/etc/gateway.conf.cmake b/apps/gateway/etc/gateway.conf.cmake
new file mode 100644
index 0000000..4aa03d8
--- /dev/null
+++ b/apps/gateway/etc/gateway.conf.cmake
@@ -0,0 +1,9 @@
+callerdomain=192.168.0.15
+calleddomain=netitel.pl
+msn=6240495,6240496,6240497,6233270
+outprefixes=0*,1*,2*,3*,4*,5*,6*,7*,8*,9*,*
+defaultmsn=6240495
+auth_enable=yes
+auth_realm=netitel.pl
+auth_user=semsgw
+auth_pwd=***
\ No newline at end of file
diff --git a/apps/ivr/etc/ivr.conf.cmake b/apps/ivr/etc/ivr.conf.cmake
index b80cdab..65bf919 100644
--- a/apps/ivr/etc/ivr.conf.cmake
+++ b/apps/ivr/etc/ivr.conf.cmake
@@ -1 +1,38 @@
+# script_path - *.py from this path is loaded as applications
 script_path=${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/ivr/
+
+
+###############################################################
+# RFC4028 Session Timer
+#
+
+# - enables the session timer ([yes,no]; default: no)
+# 
+# enable_session_timer=yes
+
+# - set the "Session-Expires" parameter for the session timer.
+#
+# session_expires=240
+
+# - set the "Min-SE" parameter for the session timer.
+#
+# minimum_timer=90
+
+# session refresh (Session Timer, RFC4028) method
+#
+# INVITE                 - use re-INVITE
+# UPDATE                 - use UPDATE
+# UPDATE_FALLBACK_INVITE - use UPDATE if indicated in Allow, re-INVITE otherwise
+#
+# Default: UPDATE_FALLBACK_INVITE
+#
+# Note: Session Timers are only supported in some applications
+#
+#session_refresh_method=UPDATE
+
+# accept_501_reply - accept 501 reply as successful refresh? [yes|no]
+#
+# Default: yes
+#
+#accept_501_reply=no
+
diff --git a/apps/jsonrpc/etc/jsonrpc.conf.cmake b/apps/jsonrpc/etc/jsonrpc.conf.cmake
new file mode 100644
index 0000000..490ef7c
--- /dev/null
+++ b/apps/jsonrpc/etc/jsonrpc.conf.cmake
@@ -0,0 +1,13 @@
+# jsonrpc_port  - json-rpc server port to listen on
+#
+# optional; default: 7080
+#
+# jsonrpc_port=7080
+
+
+# server_threads  - json-rpc server threads to start
+#
+# optional; default: 5
+#
+# server_threads=5
+
diff --git a/apps/monitoring/etc/monitoring.conf.cmake b/apps/monitoring/etc/monitoring.conf.cmake
new file mode 100644
index 0000000..0267785
--- /dev/null
+++ b/apps/monitoring/etc/monitoring.conf.cmake
@@ -0,0 +1,14 @@
+
+#run_garbage_collector=[yes | no]
+#
+# run garbage collection on expired session info? 
+# Default: no
+#
+#run_garbage_collector = yes
+
+#garbage_collector_interval=10
+#
+# run garbage collection every n seconds
+# Default: 10
+#
+#garbage_collector_interval = 20
\ No newline at end of file
diff --git a/apps/msg_storage/etc/msg_storage.conf.cmake b/apps/msg_storage/etc/msg_storage.conf.cmake
new file mode 100644
index 0000000..b1ee125
--- /dev/null
+++ b/apps/msg_storage/etc/msg_storage.conf.cmake
@@ -0,0 +1,8 @@
+
+#
+# storage_dir is where messages are saved on disk. this 
+# folder must be writable. 
+#
+# default: /var/spool/voicebox/
+#
+#storage_dir=/var/spool/voicebox/
\ No newline at end of file
diff --git a/apps/reg_agent/etc/reg_agent.conf.cmake b/apps/reg_agent/etc/reg_agent.conf.cmake
new file mode 100644
index 0000000..87ce9d7
--- /dev/null
+++ b/apps/reg_agent/etc/reg_agent.conf.cmake
@@ -0,0 +1,34 @@
+#
+#
+# Registrations at SIP registrar,
+# refreshed if necessary.
+#
+#
+
+#domain=mydomain.net
+#user=myuser
+#display_name=myuser
+#auth_user=myuser
+#pwd=verysecret
+# optional:
+#proxy=sip.mydomain.net:5060
+
+#
+# For multiple registrations add more entries
+#
+#domain1=iptel.org
+#user1=xyz
+#display_name1=xyz
+#auth_user1=xyz
+#pwd1=ppp
+# optional:
+#proxy1=sip.iptel.org:5060
+
+#domain2=iptel.org
+#user2=xyz
+#display_name2=xyz
+#auth_user2=xyz
+#pwd2=ppp
+# optional:
+#proxy2=sip.iptel.org:5060
+
diff --git a/apps/sst_b2b/etc/sst_b2b.conf.cmake b/apps/sst_b2b/etc/sst_b2b.conf.cmake
new file mode 100644
index 0000000..a939a15
--- /dev/null
+++ b/apps/sst_b2b/etc/sst_b2b.conf.cmake
@@ -0,0 +1,39 @@
+# RFC4028 Session Timer
+#
+
+# - enables the session timer ([yes,no]; default: no)
+#
+enable_session_timer=yes
+
+# - set the "Session-Expires" parameter for the session timer.
+#
+# session_expires=240
+
+# - set the "Min-SE" parameter for the session timer.
+#
+# minimum_timer=90
+
+# session refresh (Session Timer, RFC4028) method
+#
+# INVITE                 - use re-INVITE
+# UPDATE                 - use UPDATE
+# UPDATE_FALLBACK_INVITE - use UPDATE if indicated in Allow, re-INVITE otherwise
+#
+# Default: UPDATE_FALLBACK_INVITE
+#
+# Note: Session Timers are only supported in some applications
+#
+#session_refresh_method=UPDATE
+
+# accept_501_reply - accept 501 reply as successful refresh? [yes|no]
+#
+# Default: yes
+#
+#accept_501_reply=no
+
+######################################################
+#authentication (questionable whether that works)
+# user=someuser
+# domain=somedomain.net
+# pwd=sompwd
+
diff --git a/apps/sw_prepaid_sip/etc/sw_prepaid_sip.conf.cmake b/apps/sw_prepaid_sip/etc/sw_prepaid_sip.conf.cmake
new file mode 100644
index 0000000..2bd1ab1
--- /dev/null
+++ b/apps/sw_prepaid_sip/etc/sw_prepaid_sip.conf.cmake
@@ -0,0 +1,2 @@
+# the plugin to be used as accounting backend:
+acc_plugin = cc_acc
diff --git a/apps/webconference/etc/webconference.conf.cmake b/apps/webconference/etc/webconference.conf.cmake
index cf04813..4c818dc 100644
--- a/apps/webconference/etc/webconference.conf.cmake
+++ b/apps/webconference/etc/webconference.conf.cmake
@@ -106,3 +106,43 @@ stats_dir=/var/log/sems-webconference/
 # or dialout is called
 #
 # room_sweep_interval=10
+
+# predefined_rooms
+#
+# list of rooms that are openend at server startup
+#
+# predefined_rooms=discussion:some_pwd;support:other_pwd;
+
+###############################################################
+# RFC4028 Session Timer
+#
+
+# - enables the session timer ([yes,no]; default: no)
+# 
+# enable_session_timer=yes
+
+# - set the "Session-Expires" parameter for the session timer.
+#
+# session_expires=240
+
+# - set the "Min-SE" parameter for the session timer.
+#
+# minimum_timer=90
+
+# session refresh (Session Timer, RFC4028) method
+#
+# INVITE                 - use re-INVITE
+# UPDATE                 - use UPDATE
+# UPDATE_FALLBACK_INVITE - use UPDATE if indicated in Allow, re-INVITE otherwise
+#
+# Default: UPDATE_FALLBACK_INVITE
+#
+# Note: Session Timers are only supported in some applications
+#
+#session_refresh_method=UPDATE
+
+# accept_501_reply - accept 501 reply as successful refresh? [yes|no]
+#
+# Default: yes
+#
+#accept_501_reply=no
diff --git a/apps/xmlrpc2di/etc/xmlrpc2di.conf.cmake b/apps/xmlrpc2di/etc/xmlrpc2di.conf.cmake
new file mode 100644
index 0000000..5a49aba
--- /dev/null
+++ b/apps/xmlrpc2di/etc/xmlrpc2di.conf.cmake
@@ -0,0 +1,38 @@
+# port to bind XMLRPC server to 
+xmlrpc_port=8090
+
+
+# run multi-threaded server? 
+# Default: yes
+# 
+# multithreaded = yes
+
+# threads to run - this many requests can be processed in parallel
+# Default: 5
+#
+# threads=5
+
+# export all DI functions with the function call 'di'?
+# defaults to: yes
+# export_di=yes
+
+#
+# these DI interfaces are searched for functions to 
+# export under their proper function names
+# defaults to: none
+# direct_export=di_dial;registrar_client
+
+# run the XMLRPC server at all (default: yes)
+#
+# run_server=yes 
+
+# timeout for client requests, in milliseconds (0 to disable)
+#
+# server_timeout=500
+
+# print parameters of XMLRPC server calls into debug log [yes|no]
+#  debug_server_params=yes
+#
+# print result of XMLRPC server calls into debug log [yes|no]
+#  debug_server_result=yes
+#
\ No newline at end of file
diff --git a/core/plug-in/CMakeLists.txt b/core/plug-in/CMakeLists.txt
index 7dc8230..aff103c 100644
--- a/core/plug-in/CMakeLists.txt
+++ b/core/plug-in/CMakeLists.txt
@@ -3,6 +3,7 @@ ADD_SUBDIRECTORY (echo)
 IF(SEMS_USE_SPANDSP)
 	ADD_SUBDIRECTORY (g722)
 ENDIF(SEMS_USE_SPANDSP)
+#ADD_SUBDIRECTORY (g729)
 IF(GSM_FOUND)
 	ADD_SUBDIRECTORY (gsm)
 ENDIF(GSM_FOUND)
diff --git a/core/plug-in/echo/etc/echo.conf.cmake b/core/plug-in/echo/etc/echo.conf.cmake
new file mode 100644
index 0000000..718aebc
--- /dev/null
+++ b/core/plug-in/echo/etc/echo.conf.cmake
@@ -0,0 +1,35 @@
+# Echo plug-in configuration file
+#
+
+# RFC4028 Session Timer
+#
+
+# - enables the session timer ([yes,no]; default: no)
+# 
+# enable_session_timer=yes
+
+# - set the "Session-Expires" parameter for the session timer.
+#
+# session_expires=240
+
+# - set the "Min-SE" parameter for the session timer.
+#
+# minimum_timer=90
+
+# session refresh (Session Timer, RFC4028) method
+#
+# INVITE                 - use re-INVITE
+# UPDATE                 - use UPDATE
+# UPDATE_FALLBACK_INVITE - use UPDATE if indicated in Allow, re-INVITE otherwise
+#
+# Default: UPDATE_FALLBACK_INVITE
+#
+# Note: Session Timers are only supported in some applications
+#
+#session_refresh_method=UPDATE
+
+# accept_501_reply - accept 501 reply as successful refresh? [yes|no]
+#
+# Default: yes
+#
+#accept_501_reply=no
diff --git a/core/plug-in/g729/CMakeLists.txt b/core/plug-in/g729/CMakeLists.txt
new file mode 100644
index 0000000..76a552e
--- /dev/null
+++ b/core/plug-in/g729/CMakeLists.txt
@@ -0,0 +1,9 @@
+set (g729_SRCS
+g729.c
+)
+
+SET(sems_module_name g729)
+SET(sems_module_libs speech core)
+SET(doc_files Readme.g729codec)
+INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
+INCLUDE(${CMAKE_SOURCE_DIR}/cmake/doc.rules.txt)
diff --git a/core/plug-in/stats/etc/stats.conf.cmake b/core/plug-in/stats/etc/stats.conf.cmake
new file mode 100644
index 0000000..88f8d89
--- /dev/null
+++ b/core/plug-in/stats/etc/stats.conf.cmake
@@ -0,0 +1,2 @@
+monit_udp_ip=127.0.0.1
+monit_udp_port=5040
diff --git a/sems.h.cmake b/sems.h.cmake
index 3be8875..a570bc5 100644
--- a/sems.h.cmake
+++ b/sems.h.cmake
@@ -44,6 +44,8 @@
 #define RTP_HIGHPORT        0xffff
 #define MAX_FORWARDS        70
 
+#define DEFAULT_MAX_SHUTDOWN_TIME 10 // 10 seconds max for shutting down
+
 #ifndef DISABLE_DAEMON_MODE
 # define DEFAULT_DAEMON_MODE        true
 # define DEFAULT_DAEMON_PID_FILE    "/var/local/run/sems.pid"
-- 
1.7.2.3