<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] set the Mark bit in the live audio RTP stream</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Hey Moishe,<BR>
<BR>
This is a perfect one for Jira ( <a href="https://jira.freeswitch.org">https://jira.freeswitch.org</a> ) so that the devs can track and fix it<BR>
<BR>
K<BR>
<BR>
<BR>
On 3/27/14 6:02 PM, "Moishe Grunstein" <<a href="max@nysolutions.com">max@nysolutions.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT COLOR="#1F497D"><FONT FACE="Calibri, Verdana, Helvetica, Arial">Hi All,<BR>
How can tell Freeswitch to set the mark bit when going from early media to media? I am having a one way audio issue for the 1st 20 seconds with calls originating from a Cyberdata door box. FS Version 1.2.21<BR>
<BR>
Below is my response from Cyberdata Support.<BR>
<BR>
Hello Moishe,<BR>
<BR>
I really appreciate your time working with me today attempting to get the intercom registered! I know I said I would just touch bases with you tomorrow, but I think I have resolved the issue on my end after talking to our engineers and also figured out what is happening with the intercoms experiencing delayed audio at the intercom’s speaker during calls. <BR>
<BR>
Recently, we resolved a similar issue with a FreeSWITCH provider who reported the same symptoms with their intercoms. Their FreeSWITCH server also transitions from early media (where the ringback tone plays to the calling device) to live audio just like your FreeSWITCH implementation.<BR>
<BR>
We learned that our device wasn’t properly identifying the Mark bit in the RTP stream and synchronizing the audio stream. A fix was implemented and the audio delay was resolved with v9.1.1b01. <BR>
<BR>
In your FreeSWITCH implementation, we are seeing the same symptoms but in your case FreeSWITCH does not set the Mark bit in the live audio RTP stream. It does not change the SSRC either. Instead, the timestamp jumps which causes the intercom to start recording missed timestamps until it hits a threshold after about 20 seconds, and after this point it resynchronizes the audio stream and the intercom starts playing it out of the speaker. <BR>
<BR>
In the attached trace you provided to us, frame 198 shows the transition from early media to live audio. The marker bit is not set. I also included a .jpg highlighting frame 184 and 198 for your reference. You will see the timestamp jumps but the SSRC/sequence numbers don’t change and the mark bit is not set to indicate a new stream.<BR>
<BR>
Based on this information, we are recommending you consult with your FreeSWITCH engineers and advise setting the Mark bit in the RTP stream when transitioning from early media to live audio since the SSRC and sequence numbers of the audio stream do not change. Any calls with the Mark bit set in the new audio stream when switching from early media to live audio should play immediately without delay. However, for calls with new audio streams without a Mark bit set, audio will be delayed until this is resolved in FreeSWITCH. <BR>
<BR>
I hope this information is helpful, Moishe! Could you please keep us posted?<BR>
<BR>
We would be happy to get on a conference call with you if it will help. We know of another FreeSWITCH reseller in your area who had a similar issue so you are not alone. </FONT><FONT FACE="Wingdings">J<BR>
</FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
<BR>
Many thanks,<BR>
Christina<BR>
</FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
<BR>
<FONT COLOR="#1F497D"> <BR>
</FONT></FONT></SPAN><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7pt'>Thanks,<BR>
<BR>
Moishe Grunstein<BR>
Tornado Computer Systems, Inc.<BR>
212.400.7650 888.IPPBX.US<BR>
<B>Service Request Email: <FONT COLOR="#0000FF"><a href="support@nysolutions.com">support@nysolutions.com</a></FONT> <<a href="mailto:support@nysolutions.com">mailto:support@nysolutions.com</a>> <BR>
</B>Polycom Certified VAR<BR>
Microsoft Small Business Specialist, Cisco SMB Select Certified<BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><FONT SIZE="2"><SPAN STYLE='font-size:10pt'><IMG src="cid:3478793487_125186265" ></SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <<a href="http://www.nysolutions.com/">http://www.nysolutions.com/</a>> <BR>
</SPAN><FONT COLOR="#C0504D"><FONT SIZE="1"><SPAN STYLE='font-size:8pt'>Computer Networking * Managed Services * IP Video Surveillance * Network Assessments * Web Solutions * Voice over IP * Disaster Recovery * Network Security * Site Surveys * CMS<BR>
</SPAN></FONT></FONT><SPAN STYLE='font-size:11pt'> <BR>
</SPAN></FONT><SPAN STYLE='font-size:11pt'><FONT FACE="Monaco, Courier New"><BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></FONT></SPAN><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
Twitter: @FreeSWITCH<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>