TT#81700 run_tests.sh: copy rtpengine log if check fails

* bin/config_debug.pl: enable debug log for rtpengine

Change-Id: Ibaf4e0c2b856d82a3e82f3f2479cdef68a0a366c
changes/96/41696/1
Victor Seva 6 years ago
parent b902548b7d
commit 5091fc349b

@ -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} //= ();

@ -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

Loading…
Cancel
Save