<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
@font-face
        {font-family:"Script MT Bold";
        panose-1:3 4 6 2 4 6 7 8 9 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><a
href="http://svn.digium.com/view/asterisk/branches/1.2/rtp.c?rev=37546&view=markup">http://svn.digium.com/view/asterisk/branches/1.2/rtp.c?rev=37546&view=markup</a></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Anyone else find this bit of code a little odd? </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<pre><font size=2 color=black face="Courier New"><span lang=EN
style='font-size:10.0pt;color:black'> if (rtp->rxseqno) {</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> for (x=rtp->rxseqno + 1; x < seqno; x++) {</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> /* Queue empty frames */</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.mallocd = 0;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.datalen = 0;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.data = NULL;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.offset = 0;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.samples = 0;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.src = "RTPMissedFrame";</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> }</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> }</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->rxseqno = seqno;</span></font></pre>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Why would this not be simply:</span></font></p>
<pre><font size=2 color=black face="Courier New"><span lang=EN
style='font-size:10.0pt;color:black'> </span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> if (rtp->rxseqno) {</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> /* Queue empty frames */</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.mallocd = 0;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.datalen = 0;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.data = NULL;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.offset = 0;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.samples = 0;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->f.src = "RTPMissedFrame";</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> }</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> rtp->rxseqno = seqno;</span></font></pre><pre><font
size=2 color=black face="Courier New"><span lang=EN style='font-size:10.0pt;
color:black'> </span></font></pre>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The for loop seems to do nothing at all. </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Am I missing something?</span></font></p>
<p class=MsoNormal><i><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-style:italic'> </span></font></i></p>
<p class=MsoAutoSig><em><i><font size=5 color="#0057a6" face="Script MT Bold"><span
style='font-size:16.0pt;font-family:"Script MT Bold";color:#0057A6'> </span></font></i></em></p>
<p class=MsoAutoSig><em><i><font size=5 color="#0057a6" face="Script MT Bold"><span
style='font-size:16.0pt;font-family:"Script MT Bold";color:#0057A6'>Bill Hunt</span></font></i></em></p>
<p class=MsoAutoSig><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'> </span></font></p>
<p class=MsoAutoSig><font size=2 color="#0057a6" face="Century Gothic"><span
style='font-size:11.0pt;font-family:"Century Gothic";color:#0057A6'> <img
border=0 width=144 height=42 src="cid:image001.jpg@01C6CDD4.5BF2AFB0"></span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'> </span></font></p>
<p class=MsoNormal><b><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6;font-weight:
bold'>Dirigosoft Corporation</span></font></b></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'>443 Congress
St – Suite 400</span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'>Portland, ME
04101-3546</span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'> </span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'>207 221 6219
Direct </span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'>207 221 6200
Main Office</span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'>207 415 6170
Mobile</span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'>877 870 1234
Toll Free</span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'> </span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'><a
href="http://www.dirigosoft.com/">www.dirigosoft.com</a> </span></font></p>
<p class=MsoNormal><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6'> </span></font></p>
<p class=MsoNormal><i><font size=1 color="#0057a6" face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:#0057A6;font-style:
italic'>“<b><span style='font-weight:bold'>Intelligent Guidance for
Customer Contact!”</span></b></span></font></i><b><sub><font size=1
color="#0057a6" face="Century Gothic"><span style='font-size:5.0pt;font-family:
"Century Gothic";color:#0057A6;font-weight:bold'>TM</span></font></sub></b></p>
<p style='text-align:justify'><i><font size=1 color="#0057a6"
face="Century Gothic"><span style='font-size:7.0pt;font-family:"Century Gothic";
color:#0057A6;font-style:italic'>This e-mail is intended solely for the
person(s) or entity(ies) to which it is addressed and may contain confidential
or privileged material. Any duplication, dissemination, action taken in
reliance upon, or other use of this information by persons or entities other
than the intended recipient is prohibited and may violate applicable law. If
this e-mail has been received in error, please notify the sender and delete the
information from your system.</span></font></i></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
</div>
</body>
</html>