<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It looks like we only have implementations set in multiples of 10ms. You would have to modify code in switch_pcm.c in the loop where we add the implementations (around line 280). <div><br></div><div>Mike</div><div><br><div><div>On Jun 6, 2013, at 10:52 AM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Maybe. But the ptime will have a minimum value and possibly need to be multiples of a value. The allowable ptimes are codec-dependant. 5ms may well be too low to be allowable.<div><br></div><div>You can specify it using a @5i suffix in your codec preferences to override the default.</div>
<div><br></div><div>But I would NOT recommend 5ms.... It refers to how long a sample to put in a single RTP frame (packet). Lower values mean you lose less audio data if you drop a packet but also mean you're sending more packets. Every packet has IP + UDP + RTP headers, so has a certain amount of overhead. There's a sweet spot between efficient bandwidth use and not losing too much data if packets are lost. With a 5ms ptime you're going to have a massive amount of overhead which isn't justified - the packets might well contain more header data than audio data. If you're on a slow connection you might even find you start getting packet loss you don't otherwise get because of the extra bandwidth being consumed by the headers.</div>
<div><br></div><div>I would recommend changing the setting on the client instead to use 20ms.</div><div><br></div><div>-Steve</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On 6 June 2013 12:57, Khue Nguyen Minh <span dir="ltr"><<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div dir="ltr">Can I config ptime of FS to 5?</div><div><div class="gmail_extra"><br><br>
<div class="gmail_quote">2013/6/6 Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">Tell your SIP client to use a ptime of 20ms<div><div><br></div><div><br><br><div class="gmail_quote">
On 6 June 2013 12:04, Khue Nguyen Minh <span dir="ltr"><<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div dir="ltr">Hi Antonio,<div><br></div><div>How I can fix it?</div><span><font color="#888888"><div><br>
</div><div>Khue.</div></font></span></div><div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/6 Antonio Teixeira <span dir="ltr"><<a href="mailto:eagle.antonio@gmail.com" target="_blank">eagle.antonio@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hello.<br>
<br>
There is a mismtach on the ptime<br>
<a href="http://wiki.freeswitch.org/wiki/Codecs" target="_blank">http://wiki.freeswitch.org/wiki/Codecs</a><div><br>
<br>
<br>
PCMU:0:8000:<big><b>5</b></big>:64000<br>
<br></div><div>
PCMU:0:8000:<big><b>20</b></big>:64000<br>
<br></div>
Antonio<div><br></div></div></div></blockquote></div></div></div></blockquote></div></div></div></blockquote></div></div></div></blockquote></div></div></blockquote></div><br></div></body></html>