<br>First of all I can't say that I'm sure because I didn't write that code.<br>As far as I've been told this was written completely from scratch for OpenPBX <br>by one of their developers, and unless you are certain after comparing sources,
<br>then I think it is unwise to make such allegations of code theft. I myself haven't <br>had the opportunity to do so, but I will make my own attempt to see just for curiosity.<br><br>Well that wasn't exactly the kind of help I was looking for so if anyone else still has some suggestions
<br>please share :).<br><br>~kn0x~<br><div><span class="gmail_quote"></span><div><br>>Message: 1<br>>Date: Fri, 29 Jun 2007 09:38:33 -0400<br>>From: Steve Kann <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:stevek@stevek.com">
stevek@stevek.com</a>><br>>Subject: Re: [asterisk-dev] Porting an app from Asterisk 1.2 to 1.4<br>>To: Asterisk Developers Mailing List <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:asterisk-dev@lists.digium.com">
asterisk-dev@lists.digium.com</a>><br>>Message-ID: <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:46850B59.5060009@stevek.com">46850B59.5060009@stevek.com</a>><br>>Content-Type: text/plain; charset="iso-8859-1"
<br>><br>><br>>Mr. Knox (or Atlanticnynex?)<br>><br>>You can probably start by changing the copyright on the files you're<br>>working on back to those who rightfully own the copyright here. Clearly<br>
>this code came from app_conference, and amongst other changes, someone<br>>has changed the copyright.<br>><br>><br>>-SteveK<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;">
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.
<br><br>Thanks in Advance,<br><br>-kn0x<br>
</blockquote></div><br>