<div>Sorry hijacking this topic but my question is kind of related to this.</div><div><br></div><div>I created a bare rtp streaming server in FS which accept a rtp stream and plays to a phone, the problem was that when the first time a rtp stream comes, it plays fine, but if the rtp stops and a new rtp stream comes, it cannot play anymore. I haven't got time to check this deep but would like to ask is it sort of related to the SSRC change or timestamp change? Is FS accept a different stream absolutely or should have some param set? </div><div><br></div><div>Thanks,</div><div>Seven.</div><div><div><br></div></div>
<p style="color: #A0A0A8;">On Wednesday, July 4, 2012 at 12:45 AM, Peter Olsson wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>I've added FS-4382, please check there for further info.</div><div><br></div><div>/Peter</div><div><br></div><div><br></div><div>-----Ursprungligt meddelande-----</div><div>Från: freeswitch-dev-bounces@lists.freeswitch.org [<a href="mailto:freeswitch-dev-bounces@lists.freeswitch.org">mailto:freeswitch-dev-bounces@lists.freeswitch.org</a>] För Peter Olsson</div><div>Skickat: den 3 juli 2012 18:07</div><div>Till: <a href="mailto:freeswitch-dev@lists.freeswitch.org">freeswitch-dev@lists.freeswitch.org</a></div><div>Ämne: Re: [Freeswitch-dev] Question about RTP marker</div><div><br></div><div>Thank you for your replies, both Tony and Kristian - it made things a little bit clearer for me :)</div><div><br></div><div>I will submit a proposed patch to Jira later on (probably tomorrow), and you can review my changes there, it's a small change.</div><div><br></div><div>/Peter</div><div><br></div><div>-----Ursprungligt meddelande-----</div><div>Från: freeswitch-dev-bounces@lists.freeswitch.org [<a href="mailto:freeswitch-dev-bounces@lists.freeswitch.org">mailto:freeswitch-dev-bounces@lists.freeswitch.org</a>] För Kristian Kielhofner</div><div>Skickat: den 3 juli 2012 17:33</div><div>Till: <a href="mailto:freeswitch-dev@lists.freeswitch.org">freeswitch-dev@lists.freeswitch.org</a></div><div>Ämne: Re: [Freeswitch-dev] Question about RTP marker</div><div><br></div><div>+1</div><div><br></div><div>The use of the RTP marker has been broken and misunderstood by many implementations...</div><div><br></div><div>The references the OP found about "talkspurts" are probably referring to the use of markers with VAD (voice activity detection). When VAD detects speech the first RTP packet is supposed to have the marker set, almost as a way of saying "Hey! I'm talking again". Of course with VAD a new talkspurt will also have a different timestamp...</div><div><br></div><div>FreeSWITCH (out of respect for jitter buffers, as Anthony said) tries to pass original (read: meaningful) timestamps and use markers wherever possible. Consider the following scenario:</div><div><br></div><div>Call -> IVR (FS starts generating RTP)</div><div>IVR -> bridge to external SIP device (device starts generating RTP)</div><div><br></div><div>In this scenario FS will generate the initial RTP stream with it's own timestamps. When the call is bridged to the remote device FS will set the marker and pass the timestamps from the B leg to the A leg. This allows the far end jitterbuffers (not FS) to buffer jitter based on the actual end to end RTP stream.</div><div><br></div><div>Unfortunately this can cause all kinds of confusion with broken implementations.</div><div><br></div><div>While changing the SSRC is (of course) a hack if it improves compatibility while maintaining the usefulness and integrity of timestamps (and jitter buffers) I'm for it.</div><div><br></div><div>On Tue, Jul 3, 2012 at 11:18 AM, Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:</div><blockquote type="cite"><div><div>The line is really blurry between what is right and what works better.</div><div>I think the only real rule about the marker bit is that you are </div><div>supposed to set it any time the timestamp is not the next expected </div><div>timestamp.</div><div><br></div><div>This is supposed to help you to understand that you are purposely </div><div>sending a packet that has a different timestamp base or that you are </div><div>resuming after intentionally not sending packets for a period of time.</div><div> This tells the remote end to flush its jitter buffer which probably </div><div>explains the drop in audio.</div><div><br></div><div>If changing the SSRC is an acceptable workaround for when the rtp </div><div>streams change that do not result in audio gaps, I'm more than happy </div><div>to accept it as a default and we can always make it a config option if </div><div>it presents any problems.</div><div><br></div><div><br></div><div><br></div><div>On Tue, Jul 3, 2012 at 9:39 AM, Peter Olsson </div><div><<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>> wrote:</div><blockquote type="cite"><div><div>When I've been debugging RTP streams in Wireshark, I've noticed that </div><div>Whireshark will get "everything wrong" when the timestamp changes (is </div><div>reset). For instance, if I call a conference, by the time I get into </div><div>the conference, the RTP timestamps will start over, and FS will send </div><div>the marker bit By that time Wireshark will report strange figures for jitter etc.</div><div><br></div><div><br></div><div><br></div><div>After some Googling I've found that the meaning of the RTP marker is </div><div>to indicate "the beginning of a talkspurt". Which is not very clear </div><div>to me... :)</div><div><br></div><div><br></div><div><br></div><div>So my question is - is RTP marker really enough when starting a "new </div><div>RTP stream" (not really new, but since the timestamps are reset we </div><div>can think of it like that) - according to what I've been able to </div><div>find, maybe the SSRC should also be changed?</div><div><br></div><div><br></div><div><br></div><div>I have created a patch that will change the SSRC when a reset like </div><div>this occurs, and after that Wireshark detects my audio streams </div><div>without problems (though, it will detect more streams), but no strange jitter figures etc.</div><div>are reported.</div><div><br></div><div><br></div><div><br></div><div>The reason I started digging into this was because a PBX I was </div><div>connecting to lost about the first second of audio after connecting </div><div>to the conference, after also changing the SSRC the problem seems resolved.</div><div><br></div><div><br></div><div><br></div><div>I could make a RTP_BUG setting for this, but I'm not really sure if I </div><div>should really care - that's why I'm asking here, if anyone has more </div><div>knowledge about this?</div><div><br></div><div><br></div><div><br></div><div>/Peter</div><div><br></div><div><br></div><div><br></div><div><br></div><div>_____________________________________________________________________</div><div>____ Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server </div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>Join Us At ClueCon - Aug 7-9, 2012</div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-de">http://lists.freeswitch.org/mailman/options/freeswitch-de</a></div><div>v</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></blockquote><div><br></div><div><br></div><div><br></div><div>--</div><div>Anthony Minessale II</div><div><br></div><div>FreeSWITCH <a href="http://www.freeswitch.org">http://www.freeswitch.org</a>/</div><div>ClueCon <a href="http://www.cluecon.com">http://www.cluecon.com</a>/</div><div>Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a></div><div><br></div><div>AIM: anthm</div><div>MSN:<a href="mailto:anthony_minessale@hotmail.com">anthony_minessale@hotmail.com</a></div><div>GTALK/JABBER/PAYPAL:<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a></div><div>IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch</div><div><br></div><div>FreeSWITCH Developer Conference</div><div>sip:<a href="mailto:888@conference.freeswitch.org">888@conference.freeswitch.org</a></div><div>googletalk:<a href="mailto:conf+888@conference.freeswitch.org">conf+888@conference.freeswitch.org</a></div><div>pstn:+19193869900</div><div><br></div><div>______________________________________________________________________</div><div>___ Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server </div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>Join Us At ClueCon - Aug 7-9, 2012</div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></blockquote><div><br></div><div><br></div><div><br></div><div>--</div><div>Kristian Kielhofner</div><div><br></div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server <a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>Join Us At ClueCon - Aug 7-9, 2012</div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><br></div><div><br></div><div><br></div><div><br></div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server <a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>Join Us At ClueCon - Aug 7-9, 2012</div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><br></div><div>!DSPAM:4ff3184a32761575917611!</div><div><br></div><div><br></div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>Join Us At ClueCon - Aug 7-9, 2012</div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>