<br>First of all I can&#39;t say that I&#39;m sure because I didn&#39;t write that code.<br>As far as I&#39;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&#39;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&#39;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>&gt;Message: 1<br>&gt;Date: Fri, 29 Jun 2007 09:38:33 -0400<br>&gt;From: Steve Kann &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:stevek@stevek.com">
stevek@stevek.com</a>&gt;<br>&gt;Subject: Re: [asterisk-dev] Porting an app from Asterisk 1.2 to 1.4<br>&gt;To: Asterisk Developers Mailing List &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:asterisk-dev@lists.digium.com">
asterisk-dev@lists.digium.com</a>&gt;<br>&gt;Message-ID: &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:46850B59.5060009@stevek.com">46850B59.5060009@stevek.com</a>&gt;<br>&gt;Content-Type: text/plain; charset=&quot;iso-8859-1&quot;
<br>&gt;<br>&gt;<br>&gt;Mr. Knox (or Atlanticnynex?)<br>&gt;<br>&gt;You can probably start by changing the copyright on the files you&#39;re<br>&gt;working on back to those who rightfully own the copyright here. &nbsp;Clearly<br>
&gt;this code came from app_conference, and amongst other changes, someone<br>&gt;has changed the copyright.<br>&gt;<br>&gt;<br>&gt;-SteveK<br>&nbsp;</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&#39;m a novice when it comes to C++, and a beginner when it comes to C, so please forgive my noobishness.<br><br>I&#39;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 -&gt; frame.o<br>frame.c: In function &#39;ast_fr_init_ex&#39;:<br>frame.c:51: error: &#39;struct ast_frame&#39; has no member named &#39;prev&#39;
<br>frame.c:52: error: &#39;struct ast_frame&#39; has no member named &#39;next&#39;<br>make: *** [frame.o] Error 1<br>---------------------------<br>I&#39;m guessing I should start with looking at frame.c&#39;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int frame_type,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int sub_type,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const char *src)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;frametype = frame_type;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;subclass = sub_type;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;datalen = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;samples = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;mallocd = 0;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;offset = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;src = (src)&nbsp; ?&nbsp; src&nbsp; :&nbsp; &quot;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;data = NULL;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;delivery = ast_tv(0,0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //fr-&gt;seq_no = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;prev = NULL;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fr-&gt;next = NULL;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //fr-&gt;has_timing_info = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //fr-&gt;ts = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //fr-&gt;len = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //fr-&gt;seq_no = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //fr-&gt;tx_copies = 1;<br>}<br><br><br>The application I&#39;m trying to port makes use of the following asterisk code.
<br>================<br>#include &quot;asterisk.h&quot;<br>#include &quot;asterisk/lock.h&quot;<br>#include &quot;asterisk/file.h&quot;<br>#include &quot;asterisk/logger.h&quot;<br>#include &quot;asterisk/channel.h&quot;
<br>
#include &quot;asterisk/pbx.h&quot;<br>#include &quot;asterisk/module.h&quot;<br>#include &quot;asterisk/config.h&quot;<br>#include &quot;asterisk/app.h&quot;<br>#include &quot;asterisk/dsp.h&quot;<br>#include &quot;asterisk/musiconhold.h&quot;
<br>#include &quot;asterisk/manager.h&quot;<br>#include &quot;asterisk/options.h&quot;<br>#include &quot;asterisk/cli.h&quot;<br>#include &quot;asterisk/say.h&quot;<br>#include &quot;asterisk/utils.h&quot;<br>#include &quot;asterisk/translate.h&quot;
<br>#include &quot;asterisk/frame.h&quot;<br>#include &quot;asterisk/features.h&quot;<br>#include &quot;asterisk/monitor.h&quot;<br>======================<br><br>I don&#39;t know if this is too much to ask for, but I&#39;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>