Hi Dragos/All,

Yes I was able to get that from the source code however where can I find what the units of measurement are? This is mainly because we are finding discrepancies between what FS logs and what tcpdump/wireshark show.

What about the codec used? Is there any place where we can check that information?

Thank you

-- unai


On Tue, May 19, 2020, at 3:24 PM, Dragos Oancea wrote:
 They seem self-explanatory from the code:

        apt_log(APT_LOG_MARK,APT_PRIO_INFO,"Close RTP Receiver %s:%hu <- %s:%hu [r:%u l:%u j:%u p:%u d:%u i:%u]",
                        rtp_stream->rtp_l_sockaddr->hostname,
                        rtp_stream->rtp_l_sockaddr->port,
                        rtp_stream->rtp_r_sockaddr->hostname,
                        rtp_stream->rtp_r_sockaddr->port,
                        receiver->stat.received_packets,
                        receiver->stat.lost_packets,
                        receiver->rr_stat.jitter,
                        mpf_jitter_buffer_playout_delay_get(receiver->jb),
                        receiver->stat.discarded_packets,
                        receiver->stat.ignored_packets);

The baseline depends on the codec used too.

On Mon, May 18, 2020 at 10:33 PM Unai Rodriguez <unairodcas@gmail.com> wrote:
Dear List,

We're experiencing choppy/distorted audio streams at times and have been looking into understanding the definition and units of measure of these values reported on the main FS log (i.e. /var/log/freeswitch/freeswitch.log)

- r = received
- l = lost
- j = jitter
- p = playout_delay
- d = discarded_packets
- i = ignored_packets

The following log lines seemed to correspond with choppy/distorted audio:

========================================================
...
2020-05-15 10:18:05.202714 [INFO] mpf_rtp_stream.c:541 () Close RTP Receiver 10.252.148.75:18800 <- 10.252.148.73:17592 [r:403 l:0 j:651 p:0 d:87 i:0]
...
2020-05-15 10:25:53.622708 [INFO] mpf_rtp_stream.c:541 () Close RTP Receiver 10.252.148.75:22660 <- 10.252.148.56:18572 [r:402 l:0 j:143 p:0 d:84 i:0]
...
2020-05-15 10:43:42.642722 [INFO] mpf_rtp_stream.c:541 () Close RTP Receiver 10.252.148.75:18940 <- 10.252.148.72:20800 [r:356 l:0 j:838 p:0 d:79 i:0]
...
2020-05-15 11:00:52.102707 [INFO] mpf_rtp_stream.c:541 () Close RTP Receiver 10.252.148.75:20952 <- 10.252.148.61:16540 [r:582 l:0 j:806 p:0 d:66 i:0]
...
========================================================

At this point we believe that having a (d)iscarded value of more than 60 correlates with choppy calls and most of the time those come with (j)itter value of several hundreds.

Would it be possible for someone to point out where we could find the definition and unit of measure of those values (i.e.: r, l, j, p, d, i)? Is there any baseline that could be references to determine which calls are being choppy/distorted based on these numbers? We've been trying to understand FS source code and find documentation to no avail.

Thank you so much
Unai Rodriguez
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com