[asterisk-dev] Troubles with Asterisk and chan_h323

Mark Best markbest at co.nezperce.id.us
Wed Nov 18 16:56:18 CST 2009


I'm compiling Asterisk 1.6.0.17 from source with H323Plus on CentOS 5.4.

 

After what seems a successful compile I can't 'connect' to Asterisk.
With the error 'Unable to connect to remote asterisk (does
/var/run/asterisk.ctl exist?)'. There is no /var/log/asterisk/full log
to check for errors.

 

I moved the chan_h323.so out of the /usr/lib/asterisk/modules/ folder,
but Asterisk seems still to crash. 

 

Below are a few of 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


#https://issues.asterisk.org/file_download.php?file_id=23840&type=bug

grep -rl BOOL ~/asterisk/channels/h323/ast_h323.cxx | xargs sed -i
's|BOOL|PBoolean|g'

grep -rl BOOL ~/asterisk/channels/h323/ast_h323.h | xargs sed -i
's|BOOL|PBoolean|g'



cd ~/asterisk

./configure --prefix=/usr

make menuselect

[*] chan_h323

 

                make

make install

make samples

make config

make progdocs

ldd /usr/lib/asterisk/modules/chan_h323.so

        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002ab1fd5db000)

        libm.so.6 => /lib64/libm.so.6 (0x00002ab1fd8db000)

        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002ab1fdb5e000)

        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ab1fdd6d000)

        libc.so.6 => /lib64/libc.so.6 (0x00002ab1fdf88000)

        /lib64/ld-linux-x86-64.so.2 (0x00000039bf200000)

 

asterisk -rvvvvvvvvv

Asterisk 1.6.0.17, Copyright (C) 1999 - 2009 Digium, Inc. and others.

Created by Mark Spencer <markster at digium.com>

Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty'
for details.

This is free software, with components licensed under the GNU General
Public

License version 2 and other licenses; you are welcome to redistribute it
under

certain conditions. Type 'core show license' for details.

========================================================================
=

  == Parsing '/etc/asterisk/asterisk.conf':   == Found

  == Parsing '/etc/asterisk/extconfig.conf':   == Found

Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

 

 

Anyone have any experience with this sort of thing? Does a different
version of 1.6/1.4 with H323plus work better than another?

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20091118/94d7c8f6/attachment-0001.htm 


More information about the asterisk-dev mailing list