<!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.2737.800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Again,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Added some more info in rtp.c, and this the
problem:</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=Arial size=2>static struct ast_frame *process_rfc3389(struct
ast_rtp *rtp, unsigned char *data, int
len)<BR>{<BR> struct ast_frame *f =
NULL;<BR> /* Convert comfort noise
into audio with various codecs. Unfortunately this
doesn't<BR> totally
help us out becuase we don't have an engine to keep it going and we are
not<BR> guaranteed
to have it every 20ms or anything */<BR>#if
1<BR> printf("RFC3389: %d bytes, level
%d...\n", len, rtp->lastrxformat);<BR>#endif
<BR> if (!(rtp->flags &
FLAG_3389_WARNING))
{<BR>
ast_log(LOG_NOTICE, "RFC3389 support incomplete. Turn off on client if
possible\n");<BR>
rtp->flags |=
FLAG_3389_WARNING;<BR>
}<BR> /* Must have at least one byte
*/<BR> if (!len)
{<BR>
printf("RFC3389: Lenghth is -1 or null bytes....
\n");<BR>
return NULL;<BR>
}<BR> if (len < 24)
{<BR>
printf("RFC3389: Copying %d bytes.... \n",
len);<BR>
rtp->f.datalen = len -
1;<BR>
memcpy(rtp->f.data, data + 1, len -
1);<BR>
printf("RFC3389: Copying finished %d bytes.... \n",
len);<BR> } else
{<BR>
printf("RFC3389: Copying 0 bytes....
\n");<BR>
rtp->f.datalen = 0;<BR>
}<BR> printf("RFC3389: Preparing
return.... \n");<BR>
rtp->f.frametype =
AST_FRAME_CNG;<BR> rtp->f.subclass
= data[0] & 0x7f;<BR>
rtp->f.datalen = len - 1;<BR>
rtp->f.samples = 0;<BR>
rtp->f.delivery.tv_usec = rtp->f.delivery.tv_sec =
0;<BR> f =
&rtp->f;<BR> printf("RFC3389:
Returning f.... \n");<BR> return
f;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV><FONT face=Arial size=2>Kind regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Claus</FONT></DIV></BODY></HTML>