closes #252 Change-Id: I92dd61c100319469c6ff4764c90bba5c3ab367a2changes/03/9903/10
| @ -1 +1,2 @@ | |||
| usr/sbin | |||
| etc/rtpengine | |||
| @ -1,47 +1,4 @@ | |||
| RUN_RTPENGINE=no | |||
| LISTEN_TCP=25060 | |||
| LISTEN_UDP=12222 | |||
| LISTEN_NG=22222 | |||
| LISTEN_CLI=9900 | |||
| # INTERFACES="123.234.345.456" | |||
| # INTERFACES="internal/12.23.34.45 external/23.34.45.54" | |||
| # INTERFACES="12.23.34.45!23.34.45.56" | |||
| TIMEOUT=60 | |||
| SILENT_TIMEOUT=3600 | |||
| # FINAL_TIMEOUT=10800 | |||
| CONFIG_FILE=/etc/rtpengine/rtpengine.conf | |||
| # CONFIG_SECTION=rtpengine | |||
| PIDFILE=/var/run/ngcp-rtpengine-daemon.pid | |||
| FORK=yes | |||
| # TOS=184 | |||
| TABLE=0 | |||
| # NO_FALLBACK=yes | |||
| # PORT_MIN=30000 | |||
| # PORT_MAX=50000 | |||
| # REDIS=127.0.0.1:6379 | |||
| # REDIS_DB=1 | |||
| # REDIS_AUTH_PW=foobar | |||
| # REDIS_WRITE=127.0.0.1:6379 | |||
| # REDIS_WRITE_DB=1 | |||
| # REDIS_WRITE_AUTH_PW=foobar | |||
| # REDIS_NUM_THREADS=8 | |||
| # REDIS_EXPIRE=86400 | |||
| # NO_REDIS_REQUIRED=yes | |||
| # B2B_URL=http://127.0.0.1:8090/ | |||
| # LOG_LEVEL=6 | |||
| # LOG_FACILITY=daemon | |||
| # LOG_FACILITY_CDR=daemon | |||
| # LOG_FACILITY_RTCP=daemon | |||
| # NUM_THREADS=5 | |||
| # DELETE_DELAY=30 | |||
| # GRAPHITE=9006 | |||
| # GRAPHITE_INTERVAL=60 | |||
| # GRAPHITE_PREFIX=myownprefix. | |||
| # MAX_SESSIONS=5000 | |||
| # CREATE_IPTABLES_CHAIN=no | |||
| # HOMER=123.234.345.456:65432 | |||
| # HOMER_PROTOCOL=udp | |||
| # HOMER_ID=2001 | |||
| # RECORDING_DIR=/var/spool/rtpengine/ | |||
| # RECORDING_METHOD=proc | |||
| # RECORDING_FORMAT=eth | |||
| # LOG_STDERR="no" | |||
| # DTLS_PASSIVE="no" | |||
| @ -1,2 +1,3 @@ | |||
| daemon/rtpengine /usr/sbin/ | |||
| recording-daemon/rtpengine-recording /usr/sbin/ | |||
| etc/rtpengine.sample.conf /etc/rtpengine/ | |||
| @ -0,0 +1,71 @@ | |||
| [rtpengine] | |||
| table = 0 | |||
| # no-fallback = false | |||
| ### for userspace forwarding only: | |||
| # table = -1 | |||
| ### a single interface: | |||
| # interface = 123.234.345.456 | |||
| ### separate multiple interfaces with semicolons: | |||
| # interface = internal/12.23.34.45;external/23.34.45.54 | |||
| ### for different advertised address: | |||
| # interface = 12.23.34.45!23.34.45.56 | |||
| listen-ng = 127.0.0.1:2223 | |||
| # listen-tcp = 25060 | |||
| # listen-udp = 12222 | |||
| timeout = 60 | |||
| silent-timeout = 3600 | |||
| tos = 184 | |||
| # delete-delay = 30 | |||
| # final-timeout = 10800 | |||
| # foreground = false | |||
| # pidfile = /var/run/ngcp-rtpengine-daemon.pid | |||
| # num-threads = 16 | |||
| port-min = 30000 | |||
| port-max = 50000 | |||
| # max-sessions = 5000 | |||
| # recording-dir = /var/spool/rtpengine | |||
| # recording-method = proc | |||
| # recording-format = raw | |||
| # redis = 127.0.0.1:6379/5 | |||
| # redis-write = password@12.23.34.45:6379/42 | |||
| # redis-num-threads = 8 | |||
| # no-redis-required = false | |||
| # redis-expires = 86400 | |||
| # b2b-url = http://127.0.0.1:8090/ | |||
| # xmlrpc-format = 0 | |||
| # log-level = 6 | |||
| # log-stderr = false | |||
| # log-facility = daemon | |||
| # log-facility-cdr = local0 | |||
| # log-facility-rtcp = local1 | |||
| # graphite = 127.0.0.1:9006 | |||
| # graphite-interval = 60 | |||
| # graphite-prefix = foobar. | |||
| # homer = 123.234.345.456:65432 | |||
| # homer-protocol = udp | |||
| # homer-id = 2001 | |||
| # sip-source = false | |||
| # dtls-passive = false | |||
| [rtpengine-testing] | |||
| table = -1 | |||
| interface = 10.15.20.121 | |||
| listen-ng = 2223 | |||
| foreground = true | |||
| log-stderr = true | |||
| log-level = 7 | |||
| @ -1,9 +1,12 @@ | |||
| #ifndef _AUXLIB_H_ | |||
| #define _AUXLIB_H_ | |||
| #include <glib.h> | |||
| void daemonize(void); | |||
| void wpidfile(const char *pidfile); | |||
| const char *config_load(int *argc, char ***argv, GOptionEntry *entries, const char *description, | |||
| char **filename_ptr, const char *default_config, char **section_ptr); | |||
| #endif | |||