<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ok, I'll do that tomorrow.. The problem is easily 
reproduced.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>Kind Regards<BR>&nbsp;<BR>Claus Futtrup<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>"The box said 'Requires Windows 95, NT, or better,' so I installed 
Linux."</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;<BR>This message is for the designated recipient only and may contain 
privileged<BR>or confidential information.&nbsp; If you have received it in 
error, please<BR>notify the sender immediately and delete the original.&nbsp; 
Any other use of the<BR>email by you is prohibited.</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=rob@networkip.net href="mailto:rob@networkip.net">Rob Gagnon</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=asterisk-dev@lists.digium.com 
  href="mailto:asterisk-dev@lists.digium.com">Asterisk Developers Mailing 
  List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, September 07, 2004 8:17 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Asterisk-Dev] RFC3389 
  problem a little more info..</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>If you can reproduce this easily, try debug 
  output of rtp-&gt;f.mallocd, and the value of the rtp-&gt;f.data 
  pointer.&nbsp; I would bet both are zero somehow when that function 
  runs.</FONT></DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=cf@internetit.dk 
    href="mailto:cf@internetit.dk">cf@internetit.dk</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A 
    title=asterisk-dev@lists.digium.com 
    href="mailto:asterisk-dev@lists.digium.com">asterisk-dev@lists.digium.com</A> 
    </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, September 07, 2004 11:28 
    AM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> [Asterisk-Dev] RFC3389 problem 
    a little more info..</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=Arial size=2>Hi Again,</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Added some more info in rtp.c, and this the 
    problem:</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>RFC3389: 5 bytes, level 0...<BR>RFC3389: 
    Copying 5 bytes.... <BR>Segmentation fault</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>static struct ast_frame *process_rfc3389(struct 
    ast_rtp *rtp, unsigned char *data, int 
    len)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; struct ast_frame *f 
    = NULL;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* Convert comfort 
    noise into audio with various codecs.&nbsp; Unfortunately this 
    doesn't<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    totally help us out becuase we don't have an engine to keep it going and we 
    are not<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    guaranteed to have it every 20ms or anything */<BR>#if 
    1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("RFC3389: %d bytes, 
    level %d...\n", len, rtp-&gt;lastrxformat);<BR>#endif&nbsp; 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!(rtp-&gt;flags &amp; 
    FLAG_3389_WARNING)) 
    {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    ast_log(LOG_NOTICE, "RFC3389 support incomplete.&nbsp; Turn off on client if 
    possible\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    rtp-&gt;flags |= 
    FLAG_3389_WARNING;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* Must have at least one 
    byte */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!len) 
    {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    printf("RFC3389: Lenghth is -1 or null bytes.... 
    \n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    return NULL;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (len &lt; 24) 
    {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    printf("RFC3389: Copying %d bytes.... \n", 
    len);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    rtp-&gt;f.datalen = len - 
    1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    memcpy(rtp-&gt;f.data, data + 1, len - 
    1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    printf("RFC3389: Copying finished %d bytes.... \n", 
    len);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else 
    {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    printf("RFC3389: Copying 0 bytes.... 
    \n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    rtp-&gt;f.datalen = 0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("RFC3389: Preparing 
    return.... \n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    rtp-&gt;f.frametype = 
    AST_FRAME_CNG;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    rtp-&gt;f.subclass = data[0] &amp; 
    0x7f;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rtp-&gt;f.datalen = len 
    - 1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rtp-&gt;f.samples = 
    0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rtp-&gt;f.delivery.tv_usec 
    = rtp-&gt;f.delivery.tv_sec = 
    0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f = 
    &amp;rtp-&gt;f;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    printf("RFC3389: Returning f.... 
    \n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 
    f;<BR>}</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Does this occur because the len is set but the 
    data isn't there??</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Kind regards</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Claus</FONT></DIV>
    <P>
    <HR>

    <P></P>_______________________________________________<BR>Asterisk-Dev 
    mailing 
    list<BR>Asterisk-Dev@lists.digium.com<BR>http://lists.digium.com/mailman/listinfo/asterisk-dev<BR>To 
    UNSUBSCRIBE or update options visit:<BR>&nbsp;&nbsp; 
    http://lists.digium.com/mailman/listinfo/asterisk-dev</BLOCKQUOTE>
  <P>
  <HR>

  <P></P>
  <DIV>_______________________________________________<BR>Asterisk-Dev mailing 
  list<BR>Asterisk-Dev@lists.digium.com<BR>http://lists.digium.com/mailman/listinfo/asterisk-dev<BR>To 
  UNSUBSCRIBE or update options visit:<BR>&nbsp;&nbsp; <A 
  href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</A></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><BR>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by AVG 
  anti-virus system (<A 
  href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.752 
  / Virus Database: 503 - Release Date: 
03-09-2004</DIV></BLOCKQUOTE></BODY></HTML>