<a href="https://svn.sunlabs.com/svn/solaris-asterisk/nconference/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"></a><div><div>------First off let me say, I&#39;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&#39;t believe it worked.------
<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;"><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&#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.
</blockquote></div></span></div></blockquote><div><br><br><br><span class="gmail_quote"></span>The full source is available here:<br><a 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>