aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-04-25 20:04:14 +0200
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-05-20 20:00:48 +0300
commitf3d02b85baf326e80221c5358bd5489b6ef389c8 (patch)
tree93fd6ed6f5192f96b773a682a8ce99a8a3737e20 /src
parentb78554342cb2344b13c17bfeaada0509cac5b51c (diff)
rsl: Output RTP stats before closing the socket.
It's useful to know RTP statistics (number of packets lost, jitter, etc) when looking at voice call quality issues. Right now this information is not avialable anywhere and this looks like the best place to start.
Diffstat (limited to 'src')
-rw-r--r--src/common/rsl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 26a809d5..4312b9b7 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -837,6 +837,8 @@ static int rsl_rx_rf_chan_rel(struct gsm_lchan *lchan, uint8_t chan_nr)
{
if (lchan->abis_ip.rtp_socket) {
rsl_tx_ipac_dlcx_ind(lchan, RSL_ERR_NORMAL_UNSPEC);
+ osmo_rtp_socket_log_stats(lchan->abis_ip.rtp_socket, DRSL, LOGL_INFO,
+ "Closing RTP socket on Channel Release ");
osmo_rtp_socket_free(lchan->abis_ip.rtp_socket);
lchan->abis_ip.rtp_socket = NULL;
msgb_queue_flush(&lchan->dl_tch_queue);
@@ -1502,6 +1504,8 @@ static int rsl_rx_ipac_dlcx(struct msgb *msg)
if (TLVP_PRESENT(&tp, RSL_IE_IPAC_CONN_ID))
inc_conn_id = 1;
+ osmo_rtp_socket_log_stats(lchan->abis_ip.rtp_socket, DRSL, LOGL_INFO,
+ "Closing RTP socket on DLCX ");
osmo_rtp_socket_free(lchan->abis_ip.rtp_socket);
lchan->abis_ip.rtp_socket = NULL;
msgb_queue_flush(&lchan->dl_tch_queue);