First of all I can't say that I'm sure because I didn't write that code.
As far as I've been told this was written completely from scratch for
OpenPBX
by one of their developers, and unless you are certain after comparing
sources,
then I think it is unwise to make such allegations of code theft. I myself
haven't
had the opportunity to do so, but I will make my own attempt to see just for
curiosity.
Well that wasn't exactly the kind of help I was looking for so if anyone
else still has some suggestions
please share :).
~kn0x~
Message: 1
Date: Fri, 29 Jun 2007 09:38:33 -0400
From: Steve Kann <[EMAIL PROTECTED]>
Subject: Re: [asterisk-dev] Porting an app from Asterisk 1.2 to 1.4
To: Asterisk Developers Mailing List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
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
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.
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