From 5091fc349bd956de95e74770fb6a589d81dac8e0 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 13 Jul 2020 13:13:23 +0200 Subject: [PATCH] TT#81700 run_tests.sh: copy rtpengine log if check fails * bin/config_debug.pl: enable debug log for rtpengine Change-Id: Ibaf4e0c2b856d82a3e82f3f2479cdef68a0a366c --- bin/config_debug.pl | 1 + run_tests.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/bin/config_debug.pl b/bin/config_debug.pl index 0a4ba2d6..f77c77cc 100755 --- a/bin/config_debug.pl +++ b/bin/config_debug.pl @@ -118,6 +118,7 @@ else $yaml->{security}->{ngcp_panel}->{scripts}->{restapi}->{sslverify} = 'no'; $yaml->{mediator}{interval} = '1'; # Necessary to speedup the creation of the CDRs $yaml->{rtpproxy}{delete_delay} = '5'; # Necessary to speedup the deletetion of the used ports in rtpengine + $yaml->{rtpproxy}{log_level} = '7'; $net_yaml = LoadFile($file_net_yaml); $net_yaml->{hosts_common}->{etc_hosts_global_extra_entries} //= (); diff --git a/run_tests.sh b/run_tests.sh index 9c445df2..f07938c0 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -11,6 +11,7 @@ KAM_LOG=${KAM_LOG:-"/var/log/ngcp/kamailio-proxy.log"} KAMLB_LOG=${KAMLB_LOG:-"/var/log/ngcp/kamailio-lb.log"} SEMS_LOG=${SEMS_LOG:-"/var/log/ngcp/sems.log"} SEMS_PBX_LOG=${SEMS_PBX_LOG:-"/var/log/ngcp/sems-pbx.log"} +RTP_LOG=${RTP_LOG:-"/var/log/ngcp/rtp.log"} TMP_LOG_DIR="/tmp" KAM_DIR="/tmp/cfgtest" COREDUMP_DIR="/ngcp-data/coredumps" @@ -414,6 +415,8 @@ if [ -n "${rtp_ports}" ]; then echo "$(date) - There are still some rtp ports open, please check the following output" rtpengine-ctl -ip "${rtpengine_ctl_ip}" list interfaces rtpengine-ctl -ip "${rtpengine_ctl_ip}" list sessions all + echo "$(date) - copy rtpengine log to ${LOG_DIR}" + cp -a "${RTP_LOG}" "${LOG_DIR}" echo "$(date) - =================================================================================" error_flag=1 fi