<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
We have built two test servers side by side on the same hardware with the same configuration, as follows.
<div>Server 1: Debian 8 with FreeSWITCH 1.6.20</div>
<div>Server 2: Debian 9 with FreeSWITCH 1.8.2</div>
<div><br>
</div>
<div>We can replicate the 1-2 second delay on Server 2 only, whereas Server 1 provides near instant RTP in both directions upon answer. Interestingly, if we move FreeSWITCH 1.8.2 from Server 2 to Server 1 there are still no issues with delay on Server 1, the
problem is only observable on the Server 2 running Debian 9 so the problem is not specifically related to FreeSWITCH 1.8.2.</div>
<div><br>
</div>
<div>At this stage it seems likely the issue lies with Debian 9 or the change in packages on Debian 9.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Shaun</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Shaun Stokes <shaun.stokes@itec-support.co.uk><br>
<b>Sent:</b> 11 December 2018 15:28:33<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> [Freeswitch-users] FreeSWITCH 1.8.2 - 1-2 second dropped Audio\RTP at the start of a call</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0; margin-bottom:0">Hi All,</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Since we've been using FreeSWITCH 1.8.2 we've noticed that the first 1-2 seconds of Audio\RTP at the start of the call when the call is answered is now dropped\missing but this doesn't occur on 1.6.20. When comparing
the examples we've noticed the call flow is slightly different, as follows.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">FreeSWITCH 1.8.2</p>
<p style="margin-top:0; margin-bottom:0"><span></span></p>
<div>Leg A: switch_channel.c:2249 (sofia/internal/SRC_EXT@DOMAIN:PORT) Callstate Change DOWN -> RINGING </div>
<div>Leg B: sofia.c:7291 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [calling][0] </div>
<div>Leg B: sofia.c:7291 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [proceeding][180] </div>
<div>Leg B: sofia.c:7401 Ring-Ready sofia/internal/DST_EXT@LAN_IP:PORT! </div>
<div>Leg B: switch_channel.c:3354 (sofia/internal/DST_EXT@LAN_IP:PORT) Callstate Change DOWN -> RINGING </div>
<div>Leg A: switch_ivr_originate.c:1246 Sending early media </div>
<div>Leg A: switch_channel.c:3482 (sofia/internal/SRC_EXT@DOMAIN:PORT) Callstate Change RINGING -> EARLY </div>
<div>Leg A: sofia.c:7291 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [early][183] </div>
<div>Leg B: sofia.c:7291 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [completing][200] </div>
<div>Leg B: switch_channel.c:3482 (sofia/internal/DST_EXT@LAN_IP:PORT) Callstate Change RINGING -> EARLY </div>
<div>Leg B: sofia.c:7291 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [ready][200] </div>
<div>Leg B: sofia.c:8429 Channel [sofia/internal/DST_EXT@LAN_IP:PORT] has been answered </div>
<div>Leg B: switch_channel.c:3781 (sofia/internal/DST_EXT@LAN_IP:PORT) Callstate Change EARLY -> ACTIVE </div>
<div>Leg A: switch_ivr_bridge.c:766 Channel [sofia/internal/SRC_EXT@DOMAIN:PORT] has been answered </div>
<div>Leg A: sofia.c:7291 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [completed][200] </div>
<div>Leg A: switch_channel.c:3781 (sofia/internal/SRC_EXT@DOMAIN:PORT) Callstate Change EARLY -> ACTIVE </div>
<div>Leg A: sofia.c:7291 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [ready][200] </div>
<div>Leg A: switch_ivr_async.c:1500 No silence detection configured; assuming start of speech </div>
<div>Leg B: sofia.c:7291 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [calling][0] </div>
<div>Leg A: sofia.c:7291 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [calling][0] </div>
<div>Leg A: sofia.c:7291 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [ready][200] </div>
<div>Leg A: sofia.c:8272 Processing updated SDP </div>
<div>Leg B: sofia.c:7291 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [ready][200] </div>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span></span></span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt">FreeSWITCH 1.6.20</span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span></span></span></p>
<div>Leg A: switch_channel.c:2249 (sofia/internal/SRC_EXT@DOMAIN:PORT) Callstate Change DOWN -> RINGING </div>
<div>Leg B: sofia.c:7084 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [calling][0] </div>
<div>Leg B: sofia.c:7084 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [proceeding][180] </div>
<div>Leg B: sofia.c:7192 Ring-Ready sofia/internal/DST_EXT@LAN_IP:PORT! </div>
<div>Leg B: switch_channel.c:3346 (sofia/internal/DST_EXT@LAN_IP:PORT) Callstate Change DOWN -> RINGING </div>
<div>Leg A: switch_ivr_originate.c:1215 Sending early media </div>
<div>Leg A: switch_channel.c:3474 (sofia/internal/SRC_EXT@DOMAIN:PORT) Callstate Change RINGING -> EARLY </div>
<div>Leg A: sofia.c:7084 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [early][183] </div>
<div>Leg B: sofia.c:7084 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [completing][200] </div>
<div>Leg B: sofia.c:7084 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [ready][200] </div>
<div>Leg A: switch_channel.c:3773 (sofia/internal/SRC_EXT@DOMAIN:PORT) Callstate Change EARLY -> ACTIVE </div>
<div>Leg A: sofia.c:7084 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [completed][200] </div>
<div>Leg A: switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/internal/DST_EXT@LAN_IP:PORT] </div>
<div>Leg B: switch_channel.c:3773 (sofia/internal/DST_EXT@LAN_IP:PORT) Callstate Change RINGING -> ACTIVE </div>
<div>Leg A: sofia.c:7084 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [ready][200] </div>
<div>Leg B: Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [ready][200] </div>
<div>Leg A: switch_ivr_async.c:1500 No silence detection configured; assuming start of speech </div>
<div>Leg B: sofia.c:7084 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [calling][0] </div>
<div>Leg A: sofia.c:7084 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [calling][0] </div>
<div>Leg A: sofia.c:7084 Channel sofia/internal/SRC_EXT@DOMAIN:PORT entering state [ready][200] </div>
<div>Leg A: sofia.c:8061 Processing updated SDP </div>
<div>Leg B: sofia.c:7084 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [completing][200] </div>
<div>Leg B: sofia.c:7084 Channel sofia/internal/DST_EXT@LAN_IP:PORT entering state [ready][200] </div>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span><span><span><span><span><span><span></span></span></span></span></span></span></span></span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span><span><span><span><span><span><br>
</span></span></span></span></span></span></span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span><span><span><span><span><span>On 1.6.20 Leg B changes straight from RINGING to ACTIVE, but on 1.8.2 Leg B first changes from RINGING to EARLY then EARLY to ACTIVE, not sure if this
could be related.</span></span></span></span></span></span></span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span><span><span><span><span><span><br>
</span></span></span></span></span></span></span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span><span><span><span><span><span></span></span></span></span></span></span></span></p>
<div>We've experimented with the following to no avail.</div>
<div>rtp-rewrite-timestamps</div>
<div>send_silence_when_idle</div>
<div>fsctl sync_clock </div>
<div>suppress_cng</div>
<div>ignore_early_media</div>
<div><br>
</div>
<div>As per:</div>
<div>https://freeswitch.org/confluence/display/FREESWITCH/RTP+Issues</div>
<div>https://freeswitch.org/confluence/display/FREESWITCH/VAD+and+CNG</div>
<div>https://freeswitch.org/confluence/display/FREESWITCH/send_silence_when_idle</div>
<div>https://freeswitch.org/confluence/display/FREESWITCH/Early+Media</div>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span><span><span><span><span><span><br>
</span></span></span></span></span></span></span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span><span><span><span><span><span>The calls are local between two extensions\endpoints on the same FreeSWITCH instance and the same SIP profile, the SIP profiles on both servers (1.6.20
and 1.8.2) are identical.</span></span></span></span></span></span></span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size:12pt"><span><span><span><span><span><span><br>
</span></span></span></span></span></span></span></p>
<p style="margin-top:0; margin-bottom:0">Does anyone have any ideas?</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Thanks,</p>
<p style="margin-top:0; margin-bottom:0">Shaun</p>
</div>
</div>
</body>
</html>