<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'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 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>