Asterisk compilieren: Unterschied zwischen den Versionen

Aus metasec wiki
Wechseln zu: Navigation, Suche
Zeile 59: Zeile 59:
  
 
  cd /usr/src/dahdi-linux-complete-2.2.0.2+2.2.0
 
  cd /usr/src/dahdi-linux-complete-2.2.0.2+2.2.0
./configure
 
 
  make
 
  make
 
  make install
 
  make install

Version vom 20. Januar 2010, 15:32 Uhr

Download

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.4.9.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.26.3.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz  
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.2.tar.gz
wget http://dl.metasec.de/zphone/agx-ast-addons.tar.gz

oder einfach:

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.4.9.tar.gz \
http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.26.3.tar.gz \
http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz  \
http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.2.tar.gz \
http://dl.metasec.de/zphone/agx-ast-addons.tar.gz


Entpacken

tar xzf asterisk-1.4.26.3.tar.gz
tar xzf asterisk-addons-1.4.9.tar.gz
tar xzf dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz
tar xzf libpri-1.4.10.2.tar.gz
tar xzf agx-ast-addons.tar.gz

Zusätzliche Software

bitte benötigte Pakete wie folgt installieren -> Bristuff_compilieren

Sourcen anpassen

cp /usr/src/agx-ast-addons/trunk/addon_version.h /usr/src/asterisk-1.4.26.3/
cp /usr/src/agx-ast-addons/trunk/app-asterisk/app_devstate.c /usr/src/asterisk-1.4.26.3/apps/
cp /usr/src/agx-ast-addons/trunk/app-asterisk/app_pickup2.c /usr/src/asterisk-1.4.26.3/apps/
cp /usr/src/agx-ast-addons/trunk/app-asterisk/func_devstate.c /usr/src/asterisk-1.4.26.3/funcs/


Compilieren

wenn kein Debian eigener Kernel verwendet wird, ist vorher der Source zu besorgen

 wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-`uname -r`.tar.bz2
 tar xjf linux-`uname -r`.tar.bz2
 cd linux-`uname -r`.tar.bz2
 zcat /proc/config.gz > .config

dann libpri

cd /usr/src/libpri-1.4.10.2
make 
make install

dann dahdi

cd /usr/src/dahdi-linux-complete-2.2.0.2+2.2.0
make
make install

danach asterisk

cd /usr/src/asterisk-1.4.26.3/
./configure
make

alte asteriskmodule vor dem installieren entfernen

mv /usr/lib/asterisk/modules /usr/lib/asterisk/modules_old

dann asterisk installieren

make install

danach addons installieren

cd /usr/src/asterisk-addons-1.4.9
./configure
make
make install


asterisk-addon ./configure make make install

Zaptel/DAHDI anpassen

echo "dahdi_dummy" >> /etc/modules modprobe dahdi_dummy

Restart

/etc/init.d/asterisk stop /etc/init.d/asterisk start


Hints

apt-get --reinstall install linux-kbuild-2.6.18 libmysqlclient15-dev