HOWTO Compil Asterisk With H323

download HOWTO Compil Asterisk With H323

of 3

Transcript of HOWTO Compil Asterisk With H323

  • 8/6/2019 HOWTO Compil Asterisk With H323

    1/3

    HOWTO Compil Asterisk 1.4.19 with H323

    Hi All,

    You are probably interesting to compile Asterisk with H323, after lot of test it has been

    successfully compiled but is not easy when you don't know Linux so if you follow thistutorial it will be easy for the majority of the people:

    Installation of the package necessary on CentOS 5.1:

    yum -y install ncurses ncurses-devel openssl openssl-devel zlib zlib-devel

    bison bison-devel glibc gcc kernel-devel flex

    Installation of the package on Debian:

    pt-get install libc6 libc6-dev libncurses5 libncurses5-dev libssl-devopenssl libssl0.9.8 flex m4 bison libpopt-dev libdv4-dev libpopt-dev

    zlib1g zlib1g-dev

    Now you need to download the package for Asterisk from the folder /usr/src/:

    mkdir -p /usr/src/Asterisk_and_H323wget -P /usr/src/Asterisk_and_H323http://www.voxgratia.org/releases/pwlib-v1_10_0-src-tar.gz

    wget -P /usr/src/Asterisk_and_H323

    http://www.voxgratia.org/releases/openh323-v1_18_0-src-tar.gzwget -P /usr/src/Asterisk_and_H323

    http://downloads.digium.com/pub/libpri/releases/libpri-1.4.3.tar.gz

    wget -P /usr/src/Asterisk_and_H323http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.19.tar.gz

    Do not use another release more recent of OpenH323/Pwlib because the dependencies arenot stable.

    It can arrives sometimes that the compilation doesn't work due to a missing files

    /usr/include/linux/compiler.h, so it could be nice to create in all case the file below:

    vi /usr/include/linux/compiler.h

  • 8/6/2019 HOWTO Compil Asterisk With H323

    2/3

    Below the content of the compiler.h:

    #ifndef __LINUX_COMPILER_H

    #define __LINUX_COMPILER_H#define likely(x) __builtin_expect((x),1)

    #define unlikely(x) __builtin_expect((x),0)#endif /* __LINUX_COMPILER_H */

    Compilation de PWLib:

    cd /usr/src/Asterisk_and_H323

    tar -xvzf pwlib-v1_10_0-src-tar.gzcd pwlib_v1_10_0/

    ./configure --prefix=/usr

    make opt

    make installexport PWLIBDIR=/usr/src/Asterisk_and_H323/pwlib_v1_10_0

    Compilation of the library OpenH323:

    cd /usr/src/Asterisk_and_H323tar -xvzf openh323-v1_18_0-src-tar.gz

    cd openh323_v1_18_0./configure --prefix=/usr

    make opt

    make install

    export OPENH323DIR=/usr/src/Asterisk_and_H323/openh323_v1_18_0

    Compilation de Libpri:

    cd /usr/src/Asterisk_and_H323tar -xvzf libpri-1.4.3.tar.gz

    cd libpri-1.4.3

    make install

  • 8/6/2019 HOWTO Compil Asterisk With H323

    3/3

    Compilation d'Asterisk:

    You can observe that there is 2 times the make command, it permits to check if thecompilation of H323 has been successfully done, if it is not the case please re-check the

    step above.

    cd /usr/src/Asterisk_and_H323

    tar -xvzf asterisk-1.4.19.tar.gzcd asterisk-1.4.19/

    ./configure --prefix=/usr

    make menuselect (The modification can damage the compilation)make

    make

    make installmake samples

    make config

    asterisk