On Wednesday, July 4, 2012 at 12:45 AM, Peter Olsson wrote:
I've added FS-4382, please check there for further info./Peter-----Ursprungligt meddelande-----Från: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] För Peter OlssonSkickat: den 3 juli 2012 18:07Ämne: Re: [Freeswitch-dev] Question about RTP markerThank you for your replies, both Tony and Kristian - it made things a little bit clearer for me :)I will submit a proposed patch to Jira later on (probably tomorrow), and you can review my changes there, it's a small change./Peter-----Ursprungligt meddelande-----Från: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] För Kristian KielhofnerSkickat: den 3 juli 2012 17:33Ämne: Re: [Freeswitch-dev] Question about RTP marker+1The use of the RTP marker has been broken and misunderstood by many implementations...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...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:Call -> IVR (FS starts generating RTP)IVR -> bridge to external SIP device (device starts generating RTP)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.Unfortunately this can cause all kinds of confusion with broken implementations.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.On Tue, Jul 3, 2012 at 11:18 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:The line is really blurry between what is right and what works better.I think the only real rule about the marker bit is that you aresupposed to set it any time the timestamp is not the next expectedtimestamp.This is supposed to help you to understand that you are purposelysending a packet that has a different timestamp base or that you areresuming after intentionally not sending packets for a period of time.This tells the remote end to flush its jitter buffer which probablyexplains the drop in audio.If changing the SSRC is an acceptable workaround for when the rtpstreams change that do not result in audio gaps, I'm more than happyto accept it as a default and we can always make it a config option ifit presents any problems.On Tue, Jul 3, 2012 at 9:39 AM, Peter Olsson<peter.olsson@visionutveckling.se> wrote:When I've been debugging RTP streams in Wireshark, I've noticed thatWhireshark will get "everything wrong" when the timestamp changes (isreset). For instance, if I call a conference, by the time I get intothe conference, the RTP timestamps will start over, and FS will sendthe marker bit By that time Wireshark will report strange figures for jitter etc.After some Googling I've found that the meaning of the RTP marker isto indicate "the beginning of a talkspurt". Which is not very clearto me... :)So my question is - is RTP marker really enough when starting a "newRTP stream" (not really new, but since the timestamps are reset wecan think of it like that) - according to what I've been able tofind, maybe the SSRC should also be changed?I have created a patch that will change the SSRC when a reset likethis occurs, and after that Wireshark detects my audio streamswithout problems (though, it will detect more streams), but no strange jitter figures etc.are reported.The reason I started digging into this was because a PBX I wasconnecting to lost about the first second of audio after connectingto the conference, after also changing the SSRC the problem seems resolved.I could make a RTP_BUG setting for this, but I'm not really sure if Ishould really care - that's why I'm asking here, if anyone has moreknowledge about this?/Peter_________________________________________________________________________ Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-dev mailing listv--Anthony Minessale IIFreeSWITCH http://www.freeswitch.org/ClueCon http://www.cluecon.com/Twitter: http://twitter.com/FreeSWITCH_wireAIM: anthmGTALK/JABBER/PAYPAL:anthony.minessale@gmail.comIRC: irc.freenode.net #freeswitchFreeSWITCH Developer Conferencegoogletalk:conf+888@conference.freeswitch.orgpstn:+19193869900_________________________________________________________________________ Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-dev mailing list--Kristian Kielhofner_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.comOfficial FreeSWITCH SitesJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-dev mailing list_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.comOfficial FreeSWITCH SitesJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-dev mailing list!DSPAM:4ff3184a32761575917611!_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-dev mailing list