/l3/users/sasha-minsk/sl-voip-2016-03/asterisk3.unix.sl/root :1 :2 :3 :4 |
|
#aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' |
#autoconf
|
#automake -a
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:50: installing './compile' configure.in:6: installing './config.guess' configure.in:6: installing './config.sub' configure.in:7: installing './install-sh' configure.in:7: installing './missing' automake: error: no 'Makefile.am' found for any configure output |
#./con
config.guess config.sub configure contrib/ |
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes 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 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... no checking whether asterisk.h in /usr/local/include... no checking whether asterisk.h in /opt/local/include... no configure: error: Can't find "asterisk.h" |
#apt-get install asterisk-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: asterisk-dev 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 791 kB of archives. After this operation, 2,229 kB of additional disk space will be used. Get:1 http://192.168.30.1:9999/debian/ jessie/main asterisk-dev all 1:11.13.1~dfsg-2 [791 kB] Fetched 791 kB in 0s (1,121 kB/s) Selecting previously unselected package asterisk-dev. (Reading database ... 142901 files and directories currently installed.) Preparing to unpack .../asterisk-dev_1%3a11.13.1~dfsg-2_all.deb ... Unpacking asterisk-dev (1:11.13.1~dfsg-2) ... Setting up asterisk-dev (1:11.13.1~dfsg-2) ... |
##apt-get install asterisk-dev
|
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes 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 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 |
#make -j32
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 gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_command.o -MF .at_command.o.d -MP -o at_command.o -c at_command.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_parse.o -MF .at_parse.o.d -MP -o at_parse.o -c at_parse.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_queue.o -MF .at_queue.o.d -MP -o at_queue.o -c at_queue.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_read.o -MF .at_read.o.d -MP -o at_read.o -c at_read.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_response.o -MF .at_response.o.d -MP -o at_response.o -c at_response.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT chan_dongle.o -MF .chan_dongle.o.d -MP -o chan_dongle.o -c chan_dongle.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT channel.o -MF .channel.o.d -MP -o channel.o -c channel.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT char_conv.o -MF .char_conv.o.d -MP -o char_conv.o -c char_conv.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT cli.o -MF .cli.o.d -MP -o cli.o -c cli.c ... In file included from manager.c:19:0: /usr/include/asterisk/manager.h:195:5: note: declared here int ast_manager_register2( ^ Makefile:65: recipe for target 'at_response.o' failed make: *** [at_response.o] Error 1 Makefile:65: recipe for target 'channel.o' failed make: *** [channel.o] Error 1 Makefile:65: recipe for target 'manager.o' failed make: *** [manager.o] Error 1 |
#vim cli.c +18
|
#include "cli.h"
bg <bg_one@mail.ru> */ #ifdef HAVE_CONFIG_H #include <config.h> ast_cli_args */CONFIG_H */ ion() */ <asterisk/callerid.h> /* ast_describe_caller_presentatt #include <asterisk/version.h> /* ASTERISK_VERSION_NUM */ #include <asterisk/cli.h> /* struct ast_cli_entry; struct #include "cli.h" ast_version.h> /* ASTERISK_VERSION_NUM */ "cli.c" 958L, 27653C written |
#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 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:458: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 |
#grep asterisk/version -r .
./app.c:#include <asterisk/version.h> /* ASTERISK_VERSION_NUM */ ./channel.c:#include <asterisk/version.h> /* ASTERISK_VERSION_NUM */ |
#grep asterisk/version -rl .
./app.c ./channel.c |
#cd ..
|
#apt-cache search dongle
altos - Altus Metrum firmware and utilities libgnuradio-fcd3.7.5 - gnuradio FunCube Dongle support gqrx-sdr - Software defined radio receiver gr-fcdproplus - Funcube Dongle Pro Plus controller for GNU Radio libgnuradio-fcdproplus0 - Funcube Dongle Pro Plus controller for GNU Radio gr-osmosdr - Gnuradio blocks from the OsmoSDR project libpam-blue - PAM module for local authenticaction with bluetooth devices gir1.2-modemmanager-1.0 - GObject introspection data for modemmanager libmm-glib-dev - D-Bus service for managing modems - library development files libmm-glib-doc - D-Bus service for managing modems - library documentation libmm-glib0 - D-Bus service for managing modems - shared libraries modemmanager - D-Bus service for managing modems modemmanager-dbg - D-Bus service for managing modems - debugging symbols modemmanager-dev - D-Bus service for managing modems - development files modemmanager-doc - D-Bus service for managing modems - documentation files qthid-fcd-controller - Funcube Dongle controller librtlsdr-dev - Software defined radio receiver for Realtek RTL2832U (development files) librtlsdr0 - Software defined radio receiver for Realtek RTL2832U (library) rtl-sdr - Software defined radio receiver for Realtek RTL2832U (tools) usb-modeswitch - mode switching tool for controlling "flip flop" USB devices usb-modeswitch-data - mode switching data for usb-modeswitch |
#apt-cache search asterisk.*dongle
|
#apt-cache search datacard
comgt - Option GlobeTrotter and Vodafone datacard control tool gcom - datacard control tool - transitional package |
#dpkg -l asterisk
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= ii asterisk 1:11.13.1~df amd64 Open Source Private Branch Exchan |
#tar xfz chan_dongle-1.1.r14.tgz
|
#ls
asterisk-chan-dongle chan_dongle-1.1.r14 chan_dongle-1.1.r14.tgz |
#cd chan_dongle-1.1.r14/
|
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out ... checking for memmem... yes checking for strcasecmp... yes checking for strchr... yes checking for strncasecmp... yes checking for strtol... yes checking for realpath... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands |
#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 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:458: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 |
#aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' |
#autoconf
|
#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 |
#ls
aclocal.m4 BUGS config.status INSTALL pdiscovery.h app.c chan_dongle.c config.sub install-sh pdu.c app.h chan_dongle.h configure LICENSE.txt pdu.h at_command.c channel.c configure.in Makefile README.txt at_command.h channel.h contrib Makefile.in ringbuffer.c at_parse.c char_conv.c COPYRIGHT.txt manager.c ringbuffer.h at_parse.h char_conv.h cpvt.c manager.h single.c at_queue.c cli.c cpvt.h memmem.c stamp-h1 at_queue.h cli.h dc_config.c memmem.h stamp-h.in at_read.c compile dc_config.h missing test at_read.h config.guess etc mixbuffer.c TODO.txt at_response.c config.h export.h mixbuffer.h tools at_response.h config.h.in helpers.c mutils.h autom4te.cache config.log helpers.h pdiscovery.c |
#cd ..
|
#tar xf dongle-asterisk-11-patched.tar.gz
|
#cd dongle-asterisk-11-patched/
|
#ls
aclocal.m4 chan_dongle.c configure LICENSE.txt pdu.h app.c chan_dongle.h configure.in Makefile README.txt app.h channel.c contrib Makefile.in ringbuffer.c at_command.c channel.h COPYRIGHT.txt manager.c ringbuffer.h at_command.h char_conv.c cpvt.c manager.h single.c at_parse.c char_conv.h cpvt.h memmem.c stamp-h1 at_parse.h cli.c dc_config.c memmem.h stamp-h.in at_queue.c cli.h dc_config.h missing test at_queue.h config.guess etc mixbuffer.c TODO.txt at_read.c config.h export.h mixbuffer.h tools at_read.h config.h.in helpers.c mutils.h at_response.c config.log helpers.h pdiscovery.c at_response.h config.status INSTALL pdiscovery.h BUGS config.sub install-sh pdu.c |
#autoconf
|
#automake
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:7: error: version mismatch. This is Automake 1.14.1, configure.in:7: but the definition used by this AM_INIT_AUTOMAKE configure.in:7: comes from Automake 1.11.6. You should recreate configure.in:7: aclocal.m4 with aclocal and run automake again. configure.in:7: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged. configure.in:7: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead, configure.in:7: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files. configure.in:6: error: required file './config.guess' not found configure.in:6: 'automake --add-missing' can install 'config.guess' configure.in:6: error: required file './config.sub' not found configure.in:6: 'automake --add-missing' can install 'config.sub' configure.in:7: error: required file './install-sh' not found configure.in:7: 'automake --add-missing' can install 'install-sh' configure.in:7: error: required file './missing' not found configure.in:7: 'automake --add-missing' can install 'missing' automake: error: no 'Makefile.am' found for any configure output |
#./config
config.status configure |
#./configure
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." |
#cd ..
aclocal aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' |
#automake
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:50: error: required file './compile' not found configure.in:50: 'automake --add-missing' can install 'compile' configure.in:6: error: required file './config.guess' not found configure.in:6: 'automake --add-missing' can install 'config.guess' configure.in:6: error: required file './config.sub' not found configure.in:6: 'automake --add-missing' can install 'config.sub' configure.in:7: error: required file './install-sh' not found configure.in:7: 'automake --add-missing' can install 'install-sh' configure.in:7: error: required file './missing' not found configure.in:7: 'automake --add-missing' can install 'missing' automake: error: no 'Makefile.am' found for any configure output |
#autoconf
|
#automake
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:50: error: required file './compile' not found configure.in:50: 'automake --add-missing' can install 'compile' configure.in:6: error: required file './config.guess' not found configure.in:6: 'automake --add-missing' can install 'config.guess' configure.in:6: error: required file './config.sub' not found configure.in:6: 'automake --add-missing' can install 'config.sub' configure.in:7: error: required file './install-sh' not found configure.in:7: 'automake --add-missing' can install 'install-sh' configure.in:7: error: required file './missing' not found configure.in:7: 'automake --add-missing' can install 'missing' automake: error: no 'Makefile.am' found for any configure output |
#aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' |
#autoconf
|
#automake -a
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:50: installing './compile' configure.in:6: installing './config.guess' configure.in:6: installing './config.sub' configure.in:7: installing './install-sh' configure.in:7: installing './missing' automake: error: no 'Makefile.am' found for any configure output |
#./config
config.guess config.status config.sub configure |
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes 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 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: config.h is unchanged config.status: executing depfiles commands |
#make
gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP -o app.o -c app.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_command.o -MF .at_command.o.d -MP -o at_command.o -c at_command.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_parse.o -MF .at_parse.o.d -MP -o at_parse.o -c at_parse.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_queue.o -MF .at_queue.o.d -MP -o at_queue.o -c at_queue.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_read.o -MF .at_read.o.d -MP -o at_read.o -c at_read.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_response.o -MF .at_response.o.d -MP -o at_response.o -c at_response.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT chan_dongle.o -MF .chan_dongle.o.d -MP -o chan_dongle.o -c chan_dongle.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT channel.o -MF .channel.o.d -MP -o channel.o -c channel.c channel.c:1401:2: warning: initialization from incompatible pointer type .requester = channel_request, ... gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT helpers.o -MF .helpers.o.d -MP -o helpers.o -c helpers.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT manager.o -MF .manager.o.d -MP -o manager.o -c manager.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT memmem.o -MF .memmem.o.d -MP -o memmem.o -c memmem.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT ringbuffer.o -MF .ringbuffer.o.d -MP -o ringbuffer.o -c ringbuffer.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT cpvt.o -MF .cpvt.o.d -MP -o cpvt.o -c cpvt.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT dc_config.o -MF .dc_config.o.d -MP -o dc_config.o -c dc_config.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT pdu.o -MF .pdu.o.d -MP -o pdu.o -c pdu.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT mixbuffer.o -MF .mixbuffer.o.d -MP -o mixbuffer.o -c mixbuffer.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT pdiscovery.o -MF .pdiscovery.o.d -MP -o pdiscovery.o -c pdiscovery.c gcc -shared -Xlinker -x -o chan_dongle.so app.o at_command.o at_parse.o at_queue.o at_read.o at_response.o chan_dongle.o channel.o char_conv.o cli.o helpers.o manager.o memmem.o ringbuffer.o cpvt.o dc_config.o pdu.o mixbuffer.o pdiscovery.o |
#cd ..
|
#rm -rf dongle-asterisk-11-patched
|
#cd dongle-asterisk-11-patched/
|
#rm -rf dongle-asterisk-11-patched
|
#cd ..
aclocal aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' |
#autoconf
|
#automake -a
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:50: installing './compile' configure.in:6: installing './config.guess' configure.in:6: installing './config.sub' configure.in:7: installing './install-sh' configure.in:7: installing './missing' automake: error: no 'Makefile.am' found for any configure output |
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes 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 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: config.h is unchanged config.status: executing depfiles commands |
#make
gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP -o app.o -c app.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_command.o -MF .at_command.o.d -MP -o at_command.o -c at_command.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_parse.o -MF .at_parse.o.d -MP -o at_parse.o -c at_parse.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_queue.o -MF .at_queue.o.d -MP -o at_queue.o -c at_queue.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_read.o -MF .at_read.o.d -MP -o at_read.o -c at_read.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_response.o -MF .at_response.o.d -MP -o at_response.o -c at_response.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT chan_dongle.o -MF .chan_dongle.o.d -MP -o chan_dongle.o -c chan_dongle.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT channel.o -MF .channel.o.d -MP -o channel.o -c channel.c channel.c:1401:2: warning: initialization from incompatible pointer type .requester = channel_request, ... gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT helpers.o -MF .helpers.o.d -MP -o helpers.o -c helpers.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT manager.o -MF .manager.o.d -MP -o manager.o -c manager.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT memmem.o -MF .memmem.o.d -MP -o memmem.o -c memmem.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT ringbuffer.o -MF .ringbuffer.o.d -MP -o ringbuffer.o -c ringbuffer.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT cpvt.o -MF .cpvt.o.d -MP -o cpvt.o -c cpvt.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT dc_config.o -MF .dc_config.o.d -MP -o dc_config.o -c dc_config.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT pdu.o -MF .pdu.o.d -MP -o pdu.o -c pdu.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT mixbuffer.o -MF .mixbuffer.o.d -MP -o mixbuffer.o -c mixbuffer.c gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT pdiscovery.o -MF .pdiscovery.o.d -MP -o pdiscovery.o -c pdiscovery.c gcc -shared -Xlinker -x -o chan_dongle.so app.o at_command.o at_parse.o at_queue.o at_read.o at_response.o chan_dongle.o channel.o char_conv.o cli.o helpers.o manager.o memmem.o ringbuffer.o cpvt.o dc_config.o pdu.o mixbuffer.o pdiscovery.o |
##aclocal
|
##autoconf
|
##automake -a
|
##./configure
|
#rm -rf dongle-asterisk-11-patched
|
#cd ..
make ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands |
#make install
./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands gcc -shared -Xlinker -x -o chan_dongle.so app.o at_command.o at_parse.o at_queue.o at_read.o at_response.o chan_dongle.o channel.o char_conv.o cli.o helpers.o manager.o memmem.o ringbuffer.o cpvt.o dc_config.o pdu.o mixbuffer.o pdiscovery.o strip chan_dongle.so /usr/bin/install -c -m 755 chan_dongle.so /usr/lib/asterisk/modules |
#cd /usr/src/
asterisk-chan-dongle/ dongle-asterisk-11-patched/ chan_dongle-1.1.r14/ |
#cd /usr/src/
asterisk-chan-dongle/ dongle-asterisk-11-patched/ chan_dongle-1.1.r14/ |
#cd /usr/src/dongle-asterisk-11-patched/
|
#ls
aclocal.m4 at_response.o config.h helpers.h pdiscovery.c app.c autom4te.cache config.h.in helpers.o pdiscovery.h app.h BUGS config.log INSTALL pdiscovery.o app.o chan_dongle.c config.status install-sh pdu.c at_command.c chan_dongle.h config.sub LICENSE.txt pdu.h at_command.h chan_dongle.o configure Makefile pdu.o at_command.o chan_dongle.so configure.in Makefile.in README.txt at_parse.c channel.c contrib manager.c ringbuffer.c at_parse.h channel.h COPYRIGHT.txt manager.h ringbuffer.h at_parse.o channel.o cpvt.c manager.o ringbuffer.o at_queue.c char_conv.c cpvt.h memmem.c single.c at_queue.h char_conv.h cpvt.o memmem.h stamp-h1 at_queue.o char_conv.o dc_config.c memmem.o stamp-h.in at_read.c cli.c dc_config.h missing test at_read.h cli.h dc_config.o mixbuffer.c TODO.txt at_read.o cli.o etc mixbuffer.h tools at_response.c compile export.h mixbuffer.o at_response.h config.guess helpers.c mutils.h |
#ls etc/
dongle.conf extensions.conf |
#cp etc/dongle.conf /etc/asterisk/
|
#vim /etc/asterisk/dongle.conf
|
#vim /etc/asterisk/dongle.conf
--- /tmp/l3-saved-14407.88.16875 2016-04-01 11:23:35.464470232 +0300 +++ /etc/asterisk/dongle.conf 2016-04-01 11:24:13.668470065 +0300 @@ -83,8 +83,8 @@ ; or you can omit both audio and data together and use imei=123456789012345 and/or imsi=123456789012345 ; imei and imsi must contain exactly 15 digits ! ; imei/imsi discovery is available on Linux only -imei=123456789012345 -imsi=123456789012345 +; imei=123456789012345 +; imsi=123456789012345 ; if audio and data set together with imei and/or imsi audio and data has precedence ; you can use both imei and imsi together in this case exact match by imei and imsi required |
#service asterisk restart
|
#asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 14547) asterisk3*CLI> dongle callwaiting cmd discovery pdu reload remove ... asterisk3*CLI> dongle show device devices version asterisk3*CLI> dongle show d device devices asterisk3*CLI> dongle show devices ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number dongle0 0 Not connec 0 0 0 NONE Unknown asterisk3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#ps aux | grep -i net
root 28 0.0 0.0 0 0 ? S< 09:18 0:00 [netns] root 14922 0.0 0.0 12732 2296 pts/9 S+ 11:30 0:00 grep -i net |
#ps aux | grep -i netw
root 14931 0.0 0.0 12728 2240 pts/9 S+ 11:30 0:00 grep -i netw |
#systemctl disable NetworkManager.service
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service. Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service. |
#asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 551) asterisk3*CLI> asterisk3*CLI> ... asterisk3*CLI> dongle show devices ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number dongle0 0 Free 22 0 0 velcom E1550 11.608.13.02.00 353443040708955 257010073073647 Unknown [Apr 1 11:34:56] ERROR[821]: at_response.c:533 at_response_error: [dongle0] Received unexpected 'ERROR' [Apr 1 11:34:59] ERROR[821]: at_response.c:119 at_response_ok: [dongle0] Received unexpected 'OK' [Apr 1 11:35:02] ERROR[821]: at_response.c:533 at_response_error: [dongle0] Received unexpected 'ERROR' [Apr 1 11:35:05] ERROR[821]: at_response.c:119 at_response_ok: [dongle0] Received unexpected 'OK' asterisk3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#^C
|
#less /usr/src/
|
#less /usr/src/dongle-asterisk-11-patched
|
#less /usr/src/dongle-asterisk-11-patched/
|
#less /usr/src/dongle-asterisk-11-patched/etc/
|
#less /usr/src/dongle-asterisk-11-patched/etc/dongle.conf
|
#less /etc/asterisk/dongle.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1863.27519.7190 2016-04-01 11:45:13.693363250 +0300 +++ /etc/asterisk/extensions.conf 2016-04-01 11:46:30.297362914 +0300 @@ -127,3 +127,7 @@ [gr2] include => local + +[dongle] + +exten => s,1,Goto(menu,s,1) |
#vim /etc/asterisk/dongle.conf
--- /tmp/l3-saved-1863.7221.6384 2016-04-01 11:47:52.637362552 +0300 +++ /etc/asterisk/dongle.conf 2016-04-01 11:48:14.265362458 +0300 @@ -66,7 +66,7 @@ initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote' ; 'remove' same as 'disable=yes' -exten=+1234567890 ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid) +exten=s ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid) dtmf=relax ; control of incoming DTMF detection, possible values: ; off - off DTMF tones detection, voice data passed to asterisk unaltered |
#asterisk -rvv
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#asterisk -rvv
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#less /var/log/messages
|
#less /var/log/daemon.log
|
#service asterisk restart
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2355.23775.18714 2016-04-01 12:24:25.697352934 +0300 +++ /etc/asterisk/extensions.conf 2016-04-01 12:25:28.045352661 +0300 @@ -114,6 +114,9 @@ exten => _430X,1,System(/usr/local/bin/mass-call.sh ${EXTEN:3}) exten => _430X,n,ConfBridge(1) +exten => _+375XXXXXXXXX,1,Dial(Dongle/dongle0/${PREFIX}) +exten => _375XXXXXXXXX,1,Dial(Dongle/dongle0/+${PREFIX}) + [default] ;exten => _13XX,1,dial(SIP/${EXTEN}) exten => _14XX,1,dial(SIP/vitebsk/${EXTEN}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2355.24865.27210 2016-04-01 12:25:47.549352575 +0300 +++ /etc/asterisk/extensions.conf 2016-04-01 12:28:47.217351787 +0300 @@ -114,8 +114,10 @@ exten => _430X,1,System(/usr/local/bin/mass-call.sh ${EXTEN:3}) exten => _430X,n,ConfBridge(1) -exten => _+375XXXXXXXXX,1,Dial(Dongle/dongle0/${PREFIX}) -exten => _375XXXXXXXXX,1,Dial(Dongle/dongle0/+${PREFIX}) +exten => _+375XXXXXXXXX,1,Dial(Dongle/dongle0/${EXTEN}) +exten => _375XXXXXXXXX,1,Dial(Dongle/dongle0/+${EXTEN}) +exten => _80XXXXXXXXX,1,Dial(Dongle/dongle0/+375${EXTEN:2}) +exten => _810XXXXXXXXX,1,Dial(Dongle/dongle0/+375${EXTEN:3}) [default] ;exten => _13XX,1,dial(SIP/${EXTEN}) |
#asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 2153) asterisk3*CLI> asterisk3*CLI> sip ... Supported: replaces, timer Expires: 120 Contact: <sip:minsk@192.168.60.2:5060>;expires=120 Date: Fri, 01 Apr 2016 11:12:16 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '0b509137698ddf136d09f01e5764a6de@192.168.60.2' in 32000 ms (Method: REGISTER) asterisk3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
## https://github.com/irontec/sngrep
|
#apt-cache search sngrep
|
#cd /usr/src/
|
#cd sngrep/
|
#ls
AUTHORS config Doxyfile Makefile.am src bootstrap.sh configure.ac INSTALL NEWS tests ChangeLog COPYING LICENSE README TODO compile doc LICENSE.OpenSSL README.md |
Время первой команды журнала | 09:58:29 2016- 4- 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:15:25 2016- 4- 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.03 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.63 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008