<!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">
<br>
Mr. Knox (or Atlanticnynex?)<br>
<br>
You can probably start by changing the copyright on the files you're
working on back to those who rightfully own the copyright here.
Clearly this code came from app_conference, and amongst other changes,
someone has changed the copyright.<br>
<br>
<br>
-SteveK<br>
<br>
<br>
<br>
<br>
Atlanticnynex wrote:
<blockquote
cite="mid:508c371f0706282156p13c42be4ka4e63af4bb6fdc9c@mail.gmail.com"
type="cite">
<div>
<div>------First off let me say, I'm not sure if this already got
posted, so I appologize if my last post went through and this is a
double- I tried to post without subsribing and I don't believe it
worked.------
<br>
</div>
<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span class="e" id="q_113705bab7407f4e_1">
<div>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey
All,<br>
<br>
Let me start off by saying that I'm a novice when it comes to C++, and
a beginner when it comes to C, so please forgive my noobishness.<br>
<br>
I'm trying to port an application that was written for the 1.2 codebase
to 1.4.<br>
I get the following build errors while trying to compile it with 1.4
code:<br>
--------------------------<br>
[CC] frame.c -> frame.o<br>
frame.c: In function 'ast_fr_init_ex':<br>
frame.c:51: error: 'struct ast_frame' has no member named 'prev'
<br>
frame.c:52: error: 'struct ast_frame' has no member named 'next'<br>
make: *** [frame.o] Error 1<br>
---------------------------<br>
I'm guessing I should start with looking at frame.c's use of ast_frame:
<br>
<br>
here are some relevant lines of code:<br>
struct ast_frame f; <br>
...........<br>
...........<br>
void ast_fr_init_ex(struct ast_frame *fr,<br>
int frame_type,<br>
int sub_type,
<br>
const char *src)<br>
{<br>
fr->frametype = frame_type;<br>
fr->subclass = sub_type;<br>
fr->datalen = 0;<br>
fr->samples = 0;<br>
fr->mallocd = 0;
<br>
fr->offset = 0;<br>
fr->src = (src) ? src : "";<br>
fr->data = NULL;<br>
fr->delivery = ast_tv(0,0);<br>
//fr->seq_no = 0;<br>
fr->prev = NULL;<br>
fr->next = NULL;<br>
//fr->has_timing_info = 0;<br>
//fr->ts = 0;<br>
//fr->len = 0;<br>
//fr->seq_no = 0;<br>
//fr->tx_copies = 1;<br>
}<br>
<br>
<br>
The application I'm trying to port makes use of the following asterisk
code.
<br>
================<br>
#include "asterisk.h"<br>
#include "asterisk/lock.h"<br>
#include "asterisk/file.h"<br>
#include "asterisk/logger.h"<br>
#include "asterisk/channel.h"
<br>
#include "asterisk/pbx.h"<br>
#include "asterisk/module.h"<br>
#include "asterisk/config.h"<br>
#include "asterisk/app.h"<br>
#include "asterisk/dsp.h"<br>
#include "asterisk/musiconhold.h"
<br>
#include "asterisk/manager.h"<br>
#include "asterisk/options.h"<br>
#include "asterisk/cli.h"<br>
#include "asterisk/say.h"<br>
#include "asterisk/utils.h"<br>
#include "asterisk/translate.h"
<br>
#include "asterisk/frame.h"<br>
#include "asterisk/features.h"<br>
#include "asterisk/monitor.h"<br>
======================<br>
<br>
I don't know if this is too much to ask for, but I'm wondering what
types of changes have been made that would affect the use of these
functions.
</blockquote>
</div>
</span></div>
</blockquote>
<div><br>
<br>
<br>
<span class="gmail_quote"></span>The full source is available here:<br>
<a moz-do-not-send="true"
href="https://svn.sunlabs.com/svn/solaris-asterisk/nconference/"
target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://svn.sunlabs.com/svn/solaris-asterisk/nconference/</a>
<br>
</div>
<br>
<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span class="e" id="q_113705bab7407f4e_1">
<div>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks
in Advance,<br>
<br>
-kn0x<br>
</blockquote>
</div>
<br>
</span></div>
</blockquote>
</div>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a>--
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></pre>
</blockquote>
<br>
</body>
</html>