Всем привет.
У меня Ubuntu 18.04 , астериск 13 версии.
Ни как не хочет корректно работать GSM модем.
Хочу обновить chan_dongle, но не совсем понимаю, как посмотреть его текущею версию и какую лучше сейчас поставить?
Сейчас установлен wget https://github.com/oleg-krv/asterisk-chan-dongle/archive/asterisk13.zip.
Как понять, какая версия chan_dongle стоит?
Нашёл в инете ссылку на wget http://softnastroy.com/downloads/asterisk/chan_dongle-1.1.r14.tgz
Но при установке одни ошибки. Что посоветуете? Какую лучше поставить?
root@shtrih-srv:/opt# cd chan_dongle-1.1.r14
root@shtrih-srv:/opt/chan_dongle-1.1.r14# aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
root@shtrih-srv:/opt/chan_dongle-1.1.r14# autoconf
root@shtrih-srv:/opt/chan_dongle-1.1.r14# automake -a
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:50: installing './compile'
automake: error: no 'Makefile.am' found for any configure output
root@shtrih-srv:/opt/chan_dongle-1.1.r14# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/opt/chan_dongle-1.1.r14/missing: Unknown `--is-lightweight' option
Try `/opt/chan_dongle-1.1.r14/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for strip... strip
checking for rm... rm
checking for library containing iconv... none required
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking whether asterisk.h in ../include... no
checking whether asterisk.h in /usr/include... yes
checking asterisk.h usability... yes
checking asterisk.h presence... yes
checking for asterisk.h... yes
checking whether iconv.h in /usr/include... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv use const inbuf... no
checking for iconv_t in iconv.h... yes
checking for AST_CONTROL_SRCCHANGE in asterisk/frame.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for ssize_t... yes
checking for uint64_t... yes
checking whether CC supports -fvisibility=hidden... yes
checking whether CC supports -fPIC... yes
checking whether CC supports -Wall... yes
checking whether CC supports -Wextra... yes
checking whether CC supports -MD -MT conftest.o -MF /dev/null -MP... yes
checking whether DESTDIR is /usr/lib/asterisk/modules... yes
checking for working memcmp... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for memmem... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for realpath... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
root@shtrih-srv:/opt/chan_dongle-1.1.r14# make
gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP -o app.o -c app.c
In file included from app.c:21:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
#error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
^~~~~
app.c: In function ‘app_register’:
app.c:162:43: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type [-Wincompatible-pointer-types]
ast_register_application2 (dca[i].name, (app_func_t)(dca[i].func), dca[i].synopsis, dca[i].desc, self_module());
^
In file included from app.c:20:0:
/usr/include/asterisk/module.h:537:5: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
int ast_register_application2(const char *app, int (*execute)(struct ast_channel *, const char *),
^~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:65: recipe for target 'app.o' failed
make: *** [app.o] Error 1
root@shtrih-srv:/opt/chan_dongle-1.1.r14#