mam problem przy instalacji asteriska, narazie kroki które poczyniłem to:
Kod: Zaznacz cały
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.15.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.1+2.6.1.tar.gz
wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.28.tgz
wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-addons-1.4.13.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.12.tar.gz
tar xvfz ./asterisk-1.8.15.0.tar.gz
tar xvfz ./dahdi-linux-complete-2.6.1+2.6.1.tar.gz
tar xvfz ./wanpipe-3.5.28.tgz
tar xvfz ./asterisk-addons-1.4.13.tar.gz
tar xvfz ./libpri-1.4.12.tar.gz
apt-get update
apt-get install mysql-server
apt-get install mc gcc g++ make libncurses5-dev bison flex subversion libtool autoconf
apt-get install lksctp-tools libsctp-dev linux-headers-`uname -r`
apt-get install mysql-common mysql-client libmysqlclient15-dev patch
http://docs.digium.com/misc/ADL_quickstart.pdf
cd /usr/src/libpri-1.4.12
make
make install
cd /usr/src/dahdi-linux-complete-2.6.1+2.6.1
make
make install
make config (ale jeśli robisz to drugi raz to tego nie trzeba)
cd tools
./configure
make
make install
make config
Kod: Zaznacz cały
make[1]: Nie ma nic do zrobienia w `all'.
[CC] app_addon_sql_mysql.c -> app_addon_sql_mysql.o
app_addon_sql_mysql.c: In function ‘mysql_ds_destroy’:
app_addon_sql_mysql.c:118:54: error: macro "AST_LIST_REMOVE_CURRENT" passed 2 arguments, but takes just 1
app_addon_sql_mysql.c:118:5: error: ‘AST_LIST_REMOVE_CURRENT’ undeclared (first use in this function)
app_addon_sql_mysql.c:118:5: note: each undeclared identifier is reported only once for each function it appears in
app_addon_sql_mysql.c: In function ‘mysql_ds_fixup’:
app_addon_sql_mysql.c:144:54: error: macro "AST_LIST_REMOVE_CURRENT" passed 2 arguments, but takes just 1
app_addon_sql_mysql.c:144:5: error: ‘AST_LIST_REMOVE_CURRENT’ undeclared (first use in this function)
app_addon_sql_mysql.c: In function ‘MYSQL_exec’:
app_addon_sql_mysql.c:477:4: warning: ‘ast_channel_datastore_alloc’ is deprecated (declared at /usr/include/asterisk/channel.h:1059) [-Wdeprecated-declarations]
app_addon_sql_mysql.c: In function ‘load_module’:
app_addon_sql_mysql.c:522:41: error: macro "ast_config_load" requires 2 arguments, but only 1 given
app_addon_sql_mysql.c:522:13: error: ‘ast_config_load’ undeclared (first use in this function)
app_addon_sql_mysql.c:529:2: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type [enabled by default]
In file included from app_addon_sql_mysql.c:35:0:
/usr/include/asterisk/module.h:458:5: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
make[1]: *** [app_addon_sql_mysql.o] Błąd 1
make: *** [apps] Błąd 2
Pozdrawiam!