<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
With a little hack I can make mod_portaudio to send rtp packets with
~24ms, ~16ms delay alternately on linux. This result in a constant 4ms
jitter but its better than the original. (diff attached)<br>
However on windows the delta between rtp packets is 15-32 ms randomly,
with occasionally high 70-100ms delta.<br>
I also tried to tweak the windows timer without success.<br>
Does anybody has any idea how to make windows xp more accurate?<br>
<br>
Sluschny, Thomas wrote:
<blockquote
cite="mid:B98B6921358D0C49BD21CD023F1F52C3E91AA2@hbghs04a.ww300.siemens.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.3314" name="GENERATOR">
<div dir="ltr" align="left"><span class="607062109-28042008"><font
color="#0000ff" face="Arial" size="2">as you can see here:</font></span></div>
<div dir="ltr" align="left"><span class="607062109-28042008"><font
size="2">
</font>
<p><a moz-do-not-send="true"
href="http://jira.freeswitch.org/browse/MODENDP-40"><u><font
color="#0000ff" size="2">http://jira.freeswitch.org/browse/MODENDP-40</font></u></a></p>
<p><span class="607062109-28042008"><font color="#0000ff" face="Arial"
size="2">i have this problem all the time (the error mentioned in this
issue was only related with this).</font></span></p>
<p><span class="607062109-28042008"><font color="#0000ff" face="Arial"
size="2">It has to do with windows handle sleep() method, you has say
sleep(1) for 1ms but on my</font></span></p>
<p><span class="607062109-28042008"><font color="#0000ff" face="Arial"
size="2">machine it waits 15ms (it depends on your hardware, other PCs
behave different!). So i tested around with high performance counters.</font></span></p>
<p><span class="607062109-28042008"><font color="#0000ff" face="Arial"
size="2">For now i ignore that problem an set jitterbuffers on other
device big enough.</font></span></p>
<p><span class="607062109-28042008"><font color="#0000ff" face="Arial"
size="2">Thomas</font></span></p>
</span></div>
<br>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="de">
<hr tabindex="-1"><font face="Tahoma" size="2"><b>Von:</b>
<a class="moz-txt-link-abbreviated" href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
[<a class="moz-txt-link-freetext" href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <b>Im Auftrag
von </b>Zelei Csaba<br>
<b>Gesendet:</b> Donnerstag, 24. April 2008 19:05<br>
<b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
<b>Betreff:</b> [Freeswitch-users] mod_portaudio send 3 rtp
packet/60ms instead of1 packet/20ms<br>
</font><br>
</div>
Dear all,<br>
<br>
I tried to use FS in client mode, starting calls with mod_portaudio to
our providers gateway ( a Cirpack softswitch )<br>
I experienced that there is 2-3 sec delay in the call, its choppy and
robot like.<br>
I tested it with a softphone, and an ip phone and everything was fine.
I traced back the problem to mod_portaudio sending 3 rtp packet in 60ms
instead of 1 packet/20ms.<br>
<br>
Here is an rtp statistic from a call: (see <a moz-do-not-send="true"
href="http://pastebin.freeswitch.org/4307">http://pastebin.freeswitch.org/4307</a>
for the complete list and sip trace)<br>
<br>
Packet Sequence Delta (ms) <br>
42 26138 0.00 <br>
43 26139 0.02 <br>
46 26140 45.69<br>
47 26141 0.02 <br>
48 26142 2.96 <br>
52 26143 56.31<br>
53 26144 5.75 <br>
54 26145 0.02 <br>
58 26146 51.99<br>
59 26147 0.03 <br>
60 26148 2.96 <br>
63 26149 42.95<br>
65 26150 17.06<br>
66 26151 0.02 <br>
67 26152 2.90 <br>
71 26153 56.99<br>
72 26154 0.03 <br>
73 26155 0.02 <br>
<br>
Did anyone else experience similar problems?<br>
Is this the desired behaviour, because portaudio get data in 60ms
interval or can I set it to 20ms somehow?<br>
<br>
Thanks,<br>
<br>
Csaba Zelei<br>
<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>