I'm trying to compile chan_h323 for Asterisk, I only get an error when I start the make on Asterisk. Can someone shed some light on this issue? (CentOS 5.4 x64)
Here are my notes:
yum -y install ncurses ncurses-devel openssl openssl-devel zlib zlib-devel bison bison-devel glibc gcc kernel-devel flex yum install gcc-c++
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.6.0.17.t ar.gz
wget http://www.h323plus.org/source/download/h323plus-v1_21_0.tar.gz
wget http://www.h323plus.org/source/download/ptlib-2.4.5.tar.bz2
tar zxvf asterisk-1.6.0.17.tar.gz
mv asterisk-1.6.0.17/ ~/asterisk
tar zxvf h323plus-v1_21_0.tar.gz
bzip2 -cd ptlib-2.4.5.tar.bz2 | tar xvf -
mv h323plus ~/h323plus
mv ptlib-2.4.5 ~/ptlib
export PTLIBDIR=$HOME/ptlib
export OPENH323DIR=$HOME/h323plus
export LD_LIBRARY_PATH=$OPENH323DIR/lib:$PTLIBDIR/lib
cd $PTLIBDIR
./configure --prefix=/usr
make
make install
cd $OPENH323DIR
chmod +x configure
./configure --prefix=/usr
make
make opt
cd lib
cp libh323_linux_x86_64_.so.1.21-beta0 libh323_linux_x86_64_.so.1.21.0
cd ..
make install
cd ~/asterisk
./configure --prefix=/usr
make menuselect
[*] chan_h323
make
[CC] chan_agent.c -> chan_agent.o
[LD] chan_agent.o -> chan_agent.so
[CC] chan_h323.c -> chan_h323.o
ast_h323.h:104: error: 'BOOL' has not been declared
ast_h323.h:156: error: 'BOOL' does not name a type
ast_h323.h:157: error: 'BOOL' does not name a type
ast_h323.h:159: error: 'BOOL' does not name a type
ast_h323.cxx:2102: error: prototype for 'void MyH323Connection::MyHoldCall(PBoolean)' does not match any in class 'MyH323Connection'
ast_h323.h:104: error: candidate is: void MyH323Connection::MyHoldCall(int)
ast_h323.cxx:2370: error: 'BOOL' does not name a type
ast_h323.cxx:2376: error: 'BOOL' does not name a type
ast_h323.cxx:2387: error: 'BOOL' does not name a type
make[2]: *** [ast_h323.o] Error 1
make[1]: *** [h323/libchanh323.a] Error 2
make: *** [channels] Error 2