openbsd-ports/telephony/siproxd/patches/patch-doc_siproxd_conf_example
sthen ff6038f1e2 Adjust sample siproxd config, from maintainer Lawrence Teo
- Use sample interface names that might exist on OpenBSD rather than eth0/1
- Make it clear that "if_outbound" is the external interface and "if_inbound"
is the lan.
2012-05-04 21:42:18 +00:00

84 lines
3.0 KiB
Plaintext

$OpenBSD: patch-doc_siproxd_conf_example,v 1.4 2012/05/04 21:42:18 sthen Exp $
--- doc/siproxd.conf.example.orig Mon Jun 20 16:25:27 2011
+++ doc/siproxd.conf.example Thu May 3 22:57:55 2012
@@ -9,6 +9,9 @@
######################################################################
# The interface names of INBOUND and OUTBOUND interface.
#
+# if_inbound: the name of the internal interface
+# if_outbound: the name of the external interface
+#
# If siproxd is not running on the host doing the masquerading
# but on a host within the private network segment, "in front" of
# the masquerading router: define if_inbound and if_outbound to
@@ -17,8 +20,8 @@
# or a hostname that resolves to that address (use a dyndns address for
# example).
#
-if_inbound = eth0
-if_outbound = ppp0
+if_inbound = em0
+if_outbound = pppoe0
# uncomment the following line ONLY IF YOU KNOW WHAT YOU ARE DOING!
# READ THE FAQ FIRST!
#host_outbound = 1.2.3.4
@@ -78,8 +81,8 @@ silence_log = 1
# Secure Enviroment settings:
# user: uid/gid to switch to after startup
# chrootjail: path to chroot to (chroot jail)
-user = nobody
-#chrootjail = /var/lib/siproxd/
+user = _siproxd
+chrootjail = /var/siproxd/
######################################################################
# Memory settings
@@ -100,7 +103,7 @@ user = nobody
# the specified directory path does exist!
# Note: If running in chroot jail, this path starts relative
# to the jail.
-registration_file = /var/lib/siproxd/siproxd_registrations
+registration_file = siproxd_registrations
######################################################################
# Automatically save current registrations every 'n' seconds
@@ -113,7 +116,7 @@ autosave_registrations = 300
# This file holds the PID of the main thread of siproxd.
# Note: If running in chroot jail, this path starts relative
# to the jail.
-pid_file = /var/run/siproxd/siproxd.pid
+pid_file = siproxd.pid
######################################################################
# global switch to control the RTP proxy behaviour
@@ -322,18 +325,18 @@ debug_port = 0
# The plugins are loaded in the order they appear here. Also
# the processing order is given by the load order.
#
-# plugin_dir: MUST be terminated with '/'
-plugindir=/usr/lib/siproxd/
+# plugindir: MUST be terminated with '/'
+plugindir=${PREFIX}/lib/siproxd/
#
-# List of plugins to load. MUST use the .la file extension!
-#load_plugin=plugin_demo.la
-#load_plugin=plugin_shortdial.la
-load_plugin=plugin_logcall.la
-#load_plugin=plugin_defaulttarget.la
-#load_plugin=plugin_fix_bogus_via.la
-#load_plugin=plugin_stun.la
-#load_plugin=plugin_prefix.la
-#load_plugin=plugin_regex.la
+# List of plugins to load.
+#load_plugin=plugin_demo.so
+#load_plugin=plugin_shortdial.so
+load_plugin=plugin_logcall.so
+#load_plugin=plugin_defaulttarget.so
+#load_plugin=plugin_fix_bogus_via.so
+#load_plugin=plugin_stun.so
+#load_plugin=plugin_prefix.so
+#load_plugin=plugin_regex.so
######################################################################