Asterisk compilieren: Unterschied zwischen den Versionen
Aus metasec wiki
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 25: | Zeile 25: | ||
tar xzf dahdi-linux-complete-2.2.0.2+2.2.0.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 libpri-1.4.10.2.tar.gz | ||
+ | tar xzf agx-ast-addons.tar.gz | ||
</pre> | </pre> | ||
Zeile 33: | Zeile 34: | ||
=Sourcen anpassen= | =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= | =Compilieren= | ||
− | + | ||
+ | zuerst libpri | ||
+ | |||
+ | cd /usr/src/libpri-1.4.10.2 | ||
+ | make | ||
+ | make install | ||
+ | |||
+ | dann dahdi | ||
+ | |||
+ | cd | ||
+ | |||
apt-get --reinstall install linux-kbuild-2.6.18 | apt-get --reinstall install linux-kbuild-2.6.18 |
Version vom 23. November 2009, 11:21 Uhr
Inhaltsverzeichnis
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
zuerst libpri
cd /usr/src/libpri-1.4.10.2 make make install
dann dahdi
cd
apt-get --reinstall install linux-kbuild-2.6.18
dahdi
asterisk + agx patches addon_version nach asterisk koperen apps kopieren + funcs kopieren
./configure make menu_config make
rm -rf /usr/lib/asterisk/modules/*
make install
asterisk-addon ./configure make make install
Zaptel/DAHDI anpassen
/etc/modules
Restart
/etc/init.d/asterisk stop /etc/init.d/asterisk start
more
libmysqlclient15-dev