<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Dragos/All,<br></div><div><br></div><div>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.<br></div><div><br></div><div>What about the codec used? Is there any place where we can check that information?<br></div><div><br></div><div>Thank you</div><div><br></div><div id="sig38188977"><div>-- unai<br></div></div><div><br></div><div><br></div><div>On Tue, May 19, 2020, at 3:24 PM, Dragos Oancea wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div> They seem self-explanatory from the code:<br></div><div><br></div><div><div>        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]",<br></div><div>                        rtp_stream->rtp_l_sockaddr->hostname,<br></div><div>                        rtp_stream->rtp_l_sockaddr->port,<br></div><div>                        rtp_stream->rtp_r_sockaddr->hostname,<br></div><div>                        rtp_stream->rtp_r_sockaddr->port,<br></div><div>                        receiver->stat.received_packets,<br></div><div>                        receiver->stat.lost_packets,<br></div><div>                        receiver->rr_stat.jitter,<br></div><div>                        mpf_jitter_buffer_playout_delay_get(receiver->jb),<br></div><div>                        receiver->stat.discarded_packets,<br></div><div>                        receiver->stat.ignored_packets);<br></div></div><div><br></div><div>The baseline depends on the codec used too.<br></div></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Mon, May 18, 2020 at 10:33 PM Unai Rodriguez <<a href="mailto:unairodcas@gmail.com">unairodcas@gmail.com</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div>Dear List,<br></div><div><br></div><div>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)<br></div><div><br></div><div>- r = received<br></div><div>- l = lost<br></div><div>- j = jitter<br></div><div>- p = playout_delay<br></div><div>- d = discarded_packets<br></div><div>- i = ignored_packets<br></div><div><br></div><div>The following log lines seemed to correspond with choppy/distorted audio:<br></div><div><br></div><div>========================================================<br></div><div>...<br></div><div>2020-05-15 10:18:05.202714 [INFO] mpf_rtp_stream.c:541 () Close RTP Receiver <a href="http://10.252.148.75:18800" target="_blank">10.252.148.75:18800</a> <- <a href="http://10.252.148.73:17592" target="_blank">10.252.148.73:17592</a> [r:403 l:0 j:651 p:0 d:87 i:0]<br></div><div>...<br></div><div>2020-05-15 10:25:53.622708 [INFO] mpf_rtp_stream.c:541 () Close RTP Receiver <a href="http://10.252.148.75:22660" target="_blank">10.252.148.75:22660</a> <- <a href="http://10.252.148.56:18572" target="_blank">10.252.148.56:18572</a> [r:402 l:0 j:143 p:0 d:84 i:0]<br></div><div>...<br></div><div>2020-05-15 10:43:42.642722 [INFO] mpf_rtp_stream.c:541 () Close RTP Receiver <a href="http://10.252.148.75:18940" target="_blank">10.252.148.75:18940</a> <- <a href="http://10.252.148.72:20800" target="_blank">10.252.148.72:20800</a> [r:356 l:0 j:838 p:0 d:79 i:0]<br></div><div>...<br></div><div>2020-05-15 11:00:52.102707 [INFO] mpf_rtp_stream.c:541 () Close RTP Receiver <a href="http://10.252.148.75:20952" target="_blank">10.252.148.75:20952</a> <- <a href="http://10.252.148.61:16540" target="_blank">10.252.148.61:16540</a> [r:582 l:0 j:806 p:0 d:66 i:0]<br></div><div>...<br></div><div>========================================================<br></div><div><br></div><div>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.<br></div><div><br></div><div>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.<br></div><div><br></div><div>Thank you so much<br></div><div>Unai Rodriguez<br></div></div><div>_________________________________________________________________________<br></div><div> <br></div><div> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br></div><div> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br></div><div> Build your next product on our scalable cloud platform.<br></div><div> <br></div><div> Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br></div><div> <br></div><div> Professional FreeSWITCH Services<br></div><div> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br></div><div> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br></div><div> <br></div><div> Official FreeSWITCH Sites<br></div><div> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br></div><div> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br></div><div> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br></div><div> <br></div><div> FreeSWITCH-users mailing list<br></div><div> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br></div><div> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br></div><div> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br></div><div> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br></div></blockquote></div><div>_________________________________________________________________________<br></div><div><br></div><div>The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com">https://signalwire.com</a><br></div><div>Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br></div><div>Build your next product on our scalable cloud platform.<br></div><div><br></div><div>Join our online community to chat in real time <a href="https://signalwire.community">https://signalwire.community</a><br></div><div><br></div><div>Professional FreeSWITCH Services<br></div><div><a href="mailto:sales@freeswitch.com">sales@freeswitch.com</a><br></div><div><a href="https://freeswitch.com">https://freeswitch.com</a><br></div><div><br></div><div>Official FreeSWITCH Sites<br></div><div><a href="https://freeswitch.com/oss">https://freeswitch.com/oss</a><br></div><div><a href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a><br></div><div><a href="https://cluecon.com">https://cluecon.com</a><br></div><div><br></div><div>FreeSWITCH-users mailing list<br></div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br></div><div><a href="https://freeswitch.com">https://freeswitch.com</a><br></div></blockquote><div><br></div></body></html>