Сборка chan_h323

 yum install make gcc-c++ kernel-devel openssl-devel expat-devel gnutls-devel flex libxml2-devel -y
 cd /usr/src
 wget http://www.voxgratia.org/releases/pwlib-v1_10_0-src-tar.gz
 wget http://www.voxgratia.org/releases/openh323-v1_18_0-src-tar.gz
 
 mv openh323-v1_18_0-src-tar.gz openh323-v1_18_0-src.tar.gz
 mv pwlib-v1_10_0-src-tar.gz pwlib-v1_10_0-src.tar.gz
 tar vfxz openh323-v1_18_0-src.tar.gz
 mv openh323_v1_18_0  openh323
 tar vfxz pwlib-v1_10_0-src.tar.gz
  mv pwlib_v1_10_0  pwlib
 cd  /usr/src/pwlib
 ./configure
 make clean opt

cd /usr/src/openh323

 ./configure
 make clean opt

если

 error: linux/compiler.h: No such file or directory
 cp /usr/src/kernels/KERNEL_VERSION/include/linux/compiler.h  /usr/include/linux

и снова

 make clean opt
 cp /usr/src/pwlib/lib/libpt_linux_x86_r.so.1.10.0 /lib
 cp /usr/src/openh323/lib/libh323_linux_x86_r.so.1.18.0 /lib
 cd /usr/src
 wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.10.1.tar.gz
 tar zxvf asterisk-1.8.10.1.tar.gz
 cd asterisk-1.8.10.1
 export OPENH323DIR=/usr/src/openh323/
 export PWLIBDIR=/usr/src/pwlib/
 export OPENH323_LIBDIR=/lib
 export PWLIB_LIBDIR=/lib
 ./configure
 make menuselect
 channels Driver> 
          [*] chan_h323
 make
 make install
localhost*CLI> module load chan_h323.so
Loaded chan_h323.so
  == Parsing '/etc/asterisk/h323.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Registered channel type 'H323' (The NuFone Network's Open H.323 Channel Driver)
  == Registered RTP glue 'H323'
  == H.323 listener started
 Loaded chan_h323.so => (The NuFone Network's OpenH323 Channel Driver)
localhost*CLI> core show channeltypes
Type        Description                              Devicestate  Indications  Transfer    
----------  -----------                              -----------  -----------  --------    
Phone       Standard Linux Telephony API Driver      no           yes          no          
USTM        UNISTIM Channel Driver                   no           yes          no          
Bridge      Bridge Interaction Channel               no           no           no          
MulticastR  Multicast RTP Paging Channel Driver      no           no           no          
Agent       Call Agent Proxy Channel                 yes          yes          no          
DAHDI       DAHDI Telephony Driver w/PRI             yes          yes          no          
H323        The NuFone Network's Open H.323 Channel  no           yes          no          
SIP         Session Initiation Protocol (SIP)        yes          yes          yes         
IAX2        Inter Asterisk eXchange Driver (Ver 2)   yes          yes          yes         
Local       Local Proxy Channel Driver               yes          yes          no          
----------
10 channel drivers registered.

Настройка Asterisk

~~socialite~~

  • asterisk/install-chan_h323.txt
  • Последние изменения: 2016/12/17