[Asterisk-Dev] chan_h323.c compile error

Bisker, Scott (7805) sbisker at harvardgrp.com
Tue Jul 1 08:28:03 MST 2003


I posted this to users instead of dev.   Is this an appropriate patch?  I
didn't do much digging on this one, but it seems to work.


Hello all,

I got the following error compiling h323 support in the latest cvs.  Below
the error is a diff to the file that I got to make it work.  I took an
example out of sip as far as the syntax for ast_rtp_new.  Not sure if it is
correct or not, but it seems to work.  Please correct me if I am wrong in
the additional 2 arguements.



cc -g -pg -c -o chan_h323.o -march=i686 -DPBYTE_ORDER=PLITTLE_ENDIAN
-DNDEBUG -DDO_CRASH -DDEBUG_THREADS -pipe -Wall -fPIC -Wmissing-prototypes
-Wmissing-declarations  -DP_LINUX  -D_REENTRANT -D_GNU_SOURCE
-DP_USE_PRAGMA  -I/usr/local/pwlib/include/ptlib/unix
-I/usr/local/pwlib/include  -I/usr/local/openh323/include
-Wno-missing-prototypes -Wno-missing-declarations chan_h323.c
chan_h323.c: In function `oh323_alloc':
chan_h323.c:687: too few arguments to function `ast_rtp_new'
chan_h323.c: At top level:
chan_h323.c:1601: warning: initialization from incompatible pointer type
make: *** [chan_h323.o] Error 1

--- chan_h323.c	2003-07-01 08:09:33.000000000 -0400
+++ chan_h323.c.mod	2003-06-30 10:25:30.000000000 -0400
@@ -684,7 +684,7 @@
 	/* Keep track of stuff */
 	memset(p, 0, sizeof(struct oh323_pvt));
-	p->rtp = ast_rtp_new(NULL, NULL);
+	p->rtp = ast_rtp_new(NULL, NULL, 1, 0);
 	if (!p->rtp) {
 		ast_log(LOG_WARNING, "Unable to create RTP session: %s\n",

More information about the asterisk-dev mailing list