[asterisk-dev] Porting an app from Asterisk 1.2 to 1.4

Steve Kann stevek at stevek.com
Fri Jun 29 08:38:33 CDT 2007


Mr. Knox (or Atlanticnynex?)

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.


-SteveK




Atlanticnynex wrote:
> ------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.------
>  
>
>         Hey All,
>
>         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.
>
>         I'm trying to port an application that was written for the 1.2
>         codebase to 1.4.
>         I get the following build errors while trying to compile it
>         with 1.4 code:
>         --------------------------
>         [CC] frame.c -> frame.o
>         frame.c: In function 'ast_fr_init_ex':
>         frame.c:51: error: 'struct ast_frame' has no member named 'prev'
>         frame.c:52: error: 'struct ast_frame' has no member named 'next'
>         make: *** [frame.o] Error 1
>         ---------------------------
>         I'm guessing I should start with looking at frame.c's use of
>         ast_frame:
>
>         here are some relevant lines of code:
>         struct ast_frame f;
>         ...........
>         ...........
>         void ast_fr_init_ex(struct ast_frame *fr,
>                              int frame_type,
>                              int sub_type,
>                              const char *src)
>         {
>                 fr->frametype = frame_type;
>                 fr->subclass = sub_type;
>                 fr->datalen = 0;
>                 fr->samples = 0;
>                 fr->mallocd = 0;
>                 fr->offset = 0;
>                 fr->src = (src)  ?  src  :  "";
>                 fr->data = NULL;
>                 fr->delivery = ast_tv(0,0);
>                 //fr->seq_no = 0;
>                 fr->prev = NULL;
>                 fr->next = NULL;
>                 //fr->has_timing_info = 0;
>                 //fr->ts = 0;
>                 //fr->len = 0;
>                 //fr->seq_no = 0;
>                 //fr->tx_copies = 1;
>         }
>
>
>         The application I'm trying to port makes use of the following
>         asterisk code.
>         ================
>         #include "asterisk.h"
>         #include "asterisk/lock.h"
>         #include "asterisk/file.h"
>         #include "asterisk/logger.h"
>         #include "asterisk/channel.h"
>         #include "asterisk/pbx.h"
>         #include "asterisk/module.h"
>         #include "asterisk/config.h"
>         #include "asterisk/app.h"
>         #include "asterisk/dsp.h"
>         #include "asterisk/musiconhold.h"
>         #include "asterisk/manager.h"
>         #include "asterisk/options.h"
>         #include "asterisk/cli.h"
>         #include "asterisk/say.h"
>         #include "asterisk/utils.h"
>         #include "asterisk/translate.h"
>         #include "asterisk/frame.h"
>         #include "asterisk/features.h"
>         #include "asterisk/monitor.h"
>         ======================
>
>         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. 
>
>
>
>
> The full source is available here:
> https://svn.sunlabs.com/svn/solaris-asterisk/nconference/
>
>
>         Thanks in Advance,
>
>         -kn0x
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20070629/45e8823f/attachment.htm 


More information about the asterisk-dev mailing list