From 838433d769fb5f7f691f2c24f7357e26c0d21b19 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 10 Jan 2022 08:39:54 -0500 Subject: [PATCH] TT#157801 add working default config A working stock config makes it possible to install this package and have a working setup right away. Previously installing this package fresh results in an error from systemd because the daemon refuses to start due to lack of working config. Change-Id: I470b4ec29a9aeea147a8d001b8e126611921c39e --- debian/ngcp-rtpengine-daemon.install | 2 +- debian/ngcp-rtpengine-recording-daemon.install | 2 +- ...recording.sample.conf => rtpengine-recording.conf} | 0 etc/{rtpengine.sample.conf => rtpengine.conf} | 11 ++++++++--- 4 files changed, 10 insertions(+), 5 deletions(-) rename etc/{rtpengine-recording.sample.conf => rtpengine-recording.conf} (100%) rename etc/{rtpengine.sample.conf => rtpengine.conf} (90%) diff --git a/debian/ngcp-rtpengine-daemon.install b/debian/ngcp-rtpengine-daemon.install index 6d133cf0f..999175533 100644 --- a/debian/ngcp-rtpengine-daemon.install +++ b/debian/ngcp-rtpengine-daemon.install @@ -1,3 +1,3 @@ daemon/rtpengine /usr/sbin/ debian/ngcp-rtpengine-iptables-setup /usr/sbin -etc/rtpengine.sample.conf /etc/rtpengine/ +etc/rtpengine.conf /etc/rtpengine/ diff --git a/debian/ngcp-rtpengine-recording-daemon.install b/debian/ngcp-rtpengine-recording-daemon.install index 3965caf0e..40e0aa1be 100644 --- a/debian/ngcp-rtpengine-recording-daemon.install +++ b/debian/ngcp-rtpengine-recording-daemon.install @@ -1,3 +1,3 @@ debian/ngcp-rtpengine-recording-nfs-setup /usr/sbin/ -etc/rtpengine-recording.sample.conf /etc/rtpengine/ +etc/rtpengine-recording.conf /etc/rtpengine/ recording-daemon/rtpengine-recording /usr/sbin/ diff --git a/etc/rtpengine-recording.sample.conf b/etc/rtpengine-recording.conf similarity index 100% rename from etc/rtpengine-recording.sample.conf rename to etc/rtpengine-recording.conf diff --git a/etc/rtpengine.sample.conf b/etc/rtpengine.conf similarity index 90% rename from etc/rtpengine.sample.conf rename to etc/rtpengine.conf index e96464fd6..472f8efb3 100644 --- a/etc/rtpengine.sample.conf +++ b/etc/rtpengine.conf @@ -12,14 +12,19 @@ table = 0 ### for different advertised address: # interface = 12.23.34.45!23.34.45.56 +interface = any -listen-ng = 127.0.0.1:2223 + +listen-ng = localhost:2223 # listen-tcp = 25060 # listen-udp = 12222 ### interface for HTTP, WS and Prometheus # listen-http = 9101 +listen-http = localhost:2225 + +listen-cli = localhost:2224 timeout = 60 silent-timeout = 3600 @@ -36,8 +41,8 @@ port-min = 30000 port-max = 40000 # max-sessions = 5000 -# recording-dir = /var/spool/rtpengine -# recording-method = proc +recording-dir = /var/spool/rtpengine +recording-method = proc # recording-format = raw # redis = 127.0.0.1:6379/5