aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-04-25 20:04:14 +0200
committerHarald Welte <laforge@gnumonks.org>2017-02-10 12:23:38 +0000
commitd5414cc30e1568ca18d8dd8bd25d3174567327ec (patch)
treed113aaa9a7002e9c32b3dca96cb3856bda6b2d35
parentae50f7dac2585fdf423ed452bd0c4f05396ac541 (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. Change-Id: Ife9f27c43157b4a1bf71aba41cd7b0f5f41ac99f
-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 2f6c0c6a..1d0bcea7 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1026,6 +1026,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);
@@ -1789,6 +1791,8 @@ static int rsl_rx_ipac_dlcx(struct msgb *msg)
inc_conn_id = 1;
rc = rsl_tx_ipac_dlcx_ack(lchan, inc_conn_id);
+ 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);