/l3/users/Andreos/sl-voip-2016-03/asterisk6.unix.sl/root :1 :2 :3 |
|
#~
Extension:4211 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/tmp/call.call" 3L, 46C written |
#vim /tmp/call.call
--- /tmp/l3-saved-1805.18642.32203 2016-03-31 15:59:22.939314093 +0300 +++ /tmp/call.call 2016-03-31 15:59:38.527314369 +0300 @@ -1,3 +1,3 @@ Channel:SIP/2201 Extension:4211 -Context:local +Context:internal |
#exten => 4203,1,VoicemailMain()
; (default is 45 for all lots) picking up a parked call.ller ; Enables or disables DTMF based transfers when ; one of: callee, caller, both, no (default is nn o for all lots) cking up a parked call.caller ; Enables or disables DTMF based parking when pii ; one of: callee, caller, both, no (default is nn o for all lots) cking up a parked call.ler ; Enables or disables DTMF based hangups when pii ; one of: callee, caller, both, no (default is nn o for all lots) ... set the T and/or t option in the Dial() or Queue() app call! [featuremap] the H and/or h option in the Dial() or Queue() app call! *) -- Make sure to sett ;blindxfer => #1 ; Blind transfer (default is #) -- Make sure too sure to set the W and/or w option in the Dial() or Queue() app call!tor -- Make atxfer => *2 ; Attended transfer -- Make sure to set the T ann d/or t option in the Dial() or Queue() app call! ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call! "/etc/asterisk/features.conf" 236L, 15605C written |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1369.4141.12203 2016-03-31 16:06:27.907321617 +0300 +++ /etc/asterisk/extensions.conf 2016-03-31 16:07:04.255322260 +0300 @@ -67,7 +67,7 @@ exten => s,n,Set(TIMESTAMP=${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")}) exten => s,n,Set(CALLFILENAME=${CALLERID(num)}-${EXTEN}-${TIMESTAMP}) exten => s,n,Monitor(wav,${CALLFILENAME},m) -exten => s,n,Dial(SIP/${MACRO_EXTEN},10) +exten => s,n,Dial(SIP/${MACRO_EXTEN},10,tT) exten => s,n,GotoIf($["${DIALSTATUS}"= "NOANSWER"]?label1) exten => s,n,Hangup exten => s,n(label1),GotoIf($["${DB(mobile/${MACRO_EXTEN})}" = ""]?label2) |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1369.16807.27683 2016-03-31 16:21:24.583337491 +0300 +++ /etc/asterisk/sip.conf 2016-03-31 16:22:14.863338381 +0300 @@ -11,6 +11,8 @@ host=dynamic qualify=yes language=ru +callgroup=1 +pickupgroup=1 [2202] type=friend @@ -18,7 +20,8 @@ host=dynamic qualify=yes language=en - +callgroup=1 +pickupgroup=1 [krakow] type=friend |
#vim /etc/asterisk/confbridge.conf
|
#;music_on_hold_when_empty=yes ; Sets whether MOH should be played when only
[ ] exten => _40XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _41XX,1,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => 4206,1,AnswerRDER,/var/tmp/asterisk/message00) exten => 4206,n,Set(result=${SHELL(df -h / | tail -1 | awk '{print $4}')}) exten => 4206,n,NoOp(Result is ${result}) exten => 4206,n,SayNumber(${result})terisk/message0${DB(order/${ORDER})}) exten => 4208,1,AGI(/usr/local/bin/asterisk-festival.pl,/tmp/belki.txt) exten => 4209,1,AGI(/usr/local/bin/asterisk-festival.pl,/tmp/burunduki.txt)t -t) "/etc/asterisk/extensions.conf" 97L, 3196C ... exten => 2299,1,ConfBridge() 90,17 88% [local] (Call) Answer n,ConfBridge(1) [gr1] [gr1] include => internal include => international "/etc/asterisk/extensions.conf" 100L, 3250C written |
#vim /etc/asterisk/confbridge.conf
|
#curl wttr.nl
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=us-ascii" /> <title>WTTR | Westland truck en trailer repair</title> <link href="styles/style.css" rel="stylesheet" type="text/css" /> <link href="styles/facebox.css" rel="stylesheet" type="text/css" /> <script src="js/jquery-1.3.2.min.js" type="text/javascript"> </script> ... <li>Polyester reparatie</li> <li>Reparatie- en onderhoud van opleggers en aanhangwagens</li> <li>Levering, onderhoud en reparatie van laadkleppen</li> <li>Afhandeling van verzekering schades</li> </ul> </p> </div> </div><!--<div id="bottom"></div>--> </div> </body> </html> |
#vim /tmp/call.call
|
#dpkg git
![]() dpkg: error: need an action option Type dpkg --help for help about installing and deinstalling packages [*]; Use 'apt' or 'aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through 'less' or 'more' ! |
#dpkg apt git
![]() dpkg: error: need an action option Type dpkg --help for help about installing and deinstalling packages [*]; Use 'apt' or 'aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through 'less' or 'more' ! |
#dpkg apt
![]() dpkg: error: need an action option Type dpkg --help for help about installing and deinstalling packages [*]; Use 'apt' or 'aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through 'less' or 'more' ! |
#lsusb
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub |
#apt-get install asterisk-chan-d
![]() |
#vim /tmp/call.call
![]() |
#vim /tmp/call.call
![]() |
#vim /tmp/call.call
![]() |
#vim /tmp/call.call
![]() |
#apt-get install asterisk-chan-d
![]() |
#vim /tmp/call.call
![]() |
#vim /tmp/call.call
![]() |
#apt-get install asterisk-chan-d
apt-get install git-core Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: git-core 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1,496 B of archives. After this operation, 21.5 kB of additional disk space will be used. Get:1 http://security.debian.org/ jessie/updates/main git-core all 1:2.1.4-2.1+deb8u2 [1,496 B] Fetched 1,496 B in 0s (10.8 kB/s) Selecting previously unselected package git-core. (Reading database ... 68108 files and directories currently installed.) Preparing to unpack .../git-core_1%3a2.1.4-2.1+deb8u2_all.deb ... Unpacking git-core (1:2.1.4-2.1+deb8u2) ... Setting up git-core (1:2.1.4-2.1+deb8u2) ... |
#git clone https://github.com/bg111/asterisk-chan-dongle
Cloning into 'asterisk-chan-dongle'... remote: Counting objects: 273, done. remote: Total 273 (delta 0), reused 0 (delta 0), pack-reused 273 Receiving objects: 100% (273/273), 161.49 KiB | 0 bytes/s, done. Resolving deltas: 100% (131/131), done. Checking connectivity... done. |
#cd /usr/src/
|
#git clone https://github.com/bg111/asterisk-chan-dongle
Cloning into 'asterisk-chan-dongle'... remote: Counting objects: 273, done. remote: Total 273 (delta 0), reused 0 (delta 0), pack-reused 273 Receiving objects: 100% (273/273), 161.49 KiB | 0 bytes/s, done. Resolving deltas: 100% (131/131), done. Checking connectivity... done. |
#cd asterisk-chan-dongle
|
#ls
app.c at_response.h configure.in INSTALL pdiscovery.h app.h BUGS contrib LICENSE.txt pdu.c at_command.c chan_dongle.c COPYRIGHT.txt Makefile.in pdu.h at_command.h chan_dongle.h cpvt.c manager.c README.txt at_parse.c channel.c cpvt.h manager.h ringbuffer.c at_parse.h channel.h dc_config.c memmem.c ringbuffer.h at_queue.c char_conv.c dc_config.h memmem.h single.c at_queue.h char_conv.h etc mixbuffer.c stamp-h.in at_read.c cli.c export.h mixbuffer.h test at_read.h cli.h helpers.c mutils.h TODO.txt at_response.c config.h.in helpers.h pdiscovery.c tools |
#curl wttr.in
Weather for City: Minsk, Belarus Overcast .--. 4 °C .-( ). ↓ 0 km/h (___.__)__) 10 km 0.1 mm ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Fri 01. Apr ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ ... │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Sunny │ \ / Partly Cloudy │ \ / Partly Cloudy │ \ / Partly Cloudy │ │ .-. -1 – 3 °C │ _ /"".-. 4 – 7 °C │ _ /"".-. 10 – 11 °C │ _ /"".-. 0 – 2 °C │ │ ― ( ) ― ↘ 14 – 17 km/h │ \_( ). ↘ 17 – 19 km/h │ \_( ). ↘ 11 km/h │ \_( ). ↘ 8 – 10 km/h │ │ `-’ 10 km │ /(___(__) 10 km │ /(___(__) 10 km │ /(___(__) 10 km │ │ / \ 0.0 mm | 1% │ 0.0 mm | 1% │ 0.0 mm | 0% │ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ Check new Feature: wttr.in/Moon or wttr.in/Moon@2016-Mar-23 to see the phase of the Moon Follow @igor_chubin for wttr.in updates |
#apt-get install git-core
autoconf Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: automake autotools-dev libsigsegv2 m4 Suggested packages: autoconf-archive gnu-standards autoconf-doc libtool gettext The following NEW packages will be installed: autoconf automake autotools-dev libsigsegv2 m4 ... Preparing to unpack .../automake_1%3a1.14.1-4_all.deb ... Unpacking automake (1:1.14.1-4) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up libsigsegv2:amd64 (2.10-4+b1) ... Setting up m4 (1.4.17-4) ... Setting up autoconf (2.69-8) ... Setting up autotools-dev (20140911.1) ... Setting up automake (1:1.14.1-4) ... update-alternatives: using /usr/bin/automake-1.14 to provide /usr/bin/automake (automake) in auto mode Processing triggers for libc-bin (2.19-18+deb8u3) ... |
#ls
app.c at_response.h configure.in INSTALL pdiscovery.h app.h BUGS contrib LICENSE.txt pdu.c at_command.c chan_dongle.c COPYRIGHT.txt Makefile.in pdu.h at_command.h chan_dongle.h cpvt.c manager.c README.txt at_parse.c channel.c cpvt.h manager.h ringbuffer.c at_parse.h channel.h dc_config.c memmem.c ringbuffer.h at_queue.c char_conv.c dc_config.h memmem.h single.c at_queue.h char_conv.h etc mixbuffer.c stamp-h.in at_read.c cli.c export.h mixbuffer.h test at_read.h cli.h helpers.c mutils.h TODO.txt at_response.c config.h.in helpers.h pdiscovery.c tools |
#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.in
![]() bash: ./configure.in: Permission denied |
#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.60.1:9999/debian/ jessie/main asterisk-dev all 1:11.13.1~dfsg-2 [791 kB] Fetched 791 kB in 0s (8,978 kB/s) Selecting previously unselected package asterisk-dev. (Reading database ... 68403 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) ... |
#./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... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... 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 |
#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 ... 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 |
#cd
|
#rw asterisk-chan-dongle
![]() bash: rw: command not found |
#rm asterisk-chan-dongle
![]() rm: cannot remove ‘asterisk-chan-dongle’: No such file or directory |
#cd /usr/src
|
#rm asterisk-chan-dongle
![]() rm: cannot remove ‘asterisk-chan-dongle’: Is a directory |
#rmf asterisk-chan-dongle
![]() bash: rmf: command not found |
#rm
rm: missing operand Try 'rm --help' for more information. |
#tar --usage
Usage: tar [-AcdrtuxGnSkUWOmpsMBiajJzZhPlRvwo?] [-g FILE] [-f ARCHIVE] [-F NAME] [-L NUMBER] [-b BLOCKS] [-H FORMAT] [-V TEXT] [-I PROG] [-C DIR] [-K MEMBER-NAME] [-N DATE-OR-FILE] [-T FILE] [-X FILE] [--catenate] [--concatenate] [--create] [--diff] [--compare] [--delete] [--append] [--list] [--test-label] [--update] [--extract] [--get] [--check-device] [--listed-incremental=FILE] [--incremental] [--ignore-failed-read] [--level=NUMBER] [--seek] [--no-check-device] [--no-seek] [--occurrence[=NUMBER]] [--sparse-version=MAJOR[.MINOR]] [--sparse] [--keep-old-files] [--keep-directory-symlink] [--keep-newer-files] ... [--no-wildcards-match-slash] [--wildcards] [--wildcards-match-slash] [--checkpoint[=NUMBER]] [--checkpoint-action=ACTION] [--full-time] [--index-file=FILE] [--check-links] [--no-quote-chars=STRING] [--quote-chars=STRING] [--quoting-style=STYLE] [--block-number] [--show-defaults] [--show-omitted-dirs] [--show-snapshot-field-ranges] [--show-transformed-names] [--show-stored-names] [--totals[=SIGNAL]] [--utc] [--verbose] [--warning=KEYWORD] [--interactive] [--confirmation] [--help] [--restrict] [--usage] [--version] [FILE]... |
#--usage
![]() |
#rm
aclocal aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' |
#--usage
![]() |
#rm
autoconf |
#--usage
![]() |
#rm
![]() 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 |
#--usage
![]() |
#rm
./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... no checking for mawk... mawk checking whether make sets $(MAKE)... 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: config.h is unchanged config.status: executing depfiles commands |
#--usage
![]() |
#rm
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 ... 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 |
#--usage
![]() |
#rm
![]() |
#--usage
![]() |
#cd dongle-asterisk-11-patched
make install ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands strip chan_dongle.so /usr/bin/install -c -m 755 chan_dongle.so /usr/lib/asterisk/modules |
#ls etc/
dongle.conf extensions.conf |
#curl wttr.in/help
Weather for City: Helpa, Slovakia Overcast .--. 11 °C .-( ). ↗ 0 km/h (___.__)__) 10 km 0.0 mm ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Fri 01. Apr ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ ... │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Sunny │ \ / Sunny │ Overcast │ Overcast │ │ .-. 10 – 11 °C │ .-. 14 – 15 °C │ .--. 10 °C │ .--. 6 °C │ │ ― ( ) ― ↑ 12 – 14 km/h │ ― ( ) ― ↑ 15 – 17 km/h │ .-( ). ↑ 9 – 18 km/h │ .-( ). ↗ 8 – 16 km/h │ │ `-’ 10 km │ `-’ 10 km │ (___.__)__) 10 km │ (___.__)__) 10 km │ │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ Check new Feature: wttr.in/Moon or wttr.in/Moon@2016-Mar-23 to see the phase of the Moon Follow @igor_chubin for wttr.in updates |
#curl wttr.in/alc
Weather for IATA: alc, Alicante Airport, Spain Overcast .--. 9 – 12 °C .-( ). → 28 km/h (___.__)__) 10 km 0.0 mm ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Fri 01. Apr ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ ... │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Sunny │ \ / Partly Cloudy │ \ / Sunny │ \ / Clear │ │ .-. 17 °C │ _ /"".-. 21 °C │ .-. 18 °C │ .-. 16 °C │ │ ― ( ) ― ← 8 – 9 km/h │ \_( ). ← 14 – 16 km/h │ ― ( ) ― ← 8 – 9 km/h │ ― ( ) ― → 3 km/h │ │ `-’ 10 km │ /(___(__) 10 km │ `-’ 10 km │ `-’ 10 km │ │ / \ 0.0 mm | 0% │ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ Check new Feature: wttr.in/Moon or wttr.in/Moon@2016-Mar-23 to see the phase of the Moon Follow @igor_chubin for wttr.in updates |
#curl wttr.in/Moon
.------ .--' o .-' . O .-'@ @@@@@@@ /@@@ @@@@@@@@@@@ ./ o @@@@@@@@@@@ /@@ o @@@@@@@@@@@. /@@@@ . @@@@@@@o |@@@@@ . /@@@@@ O `.-./ . Last Quarter + ... \ @@@@ @\@@ / \ o @@ \ \ / `\ . .\.-.___ \ `-' `-. o / | `-. / . `--. `------ Check new Feature: wttr.in/Moon or wttr.in/Moon@2016-Mar-23 to see the phase of the Moon Follow @igor_chubin for wttr.in updates |
#ls etc
![]() ls: cannot access etc: No such file or directory |
#vim /tmp/call.call
![]() |
#vim /tmp/call.call
![]() --- /tmp/l3-saved-1356.2581.3163 2016-04-01 11:24:45.495221786 +0300 +++ /etc/asterisk/dongle.conf 2016-04-01 11:25:22.743222446 +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 |
#vim /tmp/call.call
![]() --- /tmp/l3-saved-1356.10913.20666 2016-04-01 11:34:00.727231616 +0300 +++ /etc/asterisk/dongle.conf 2016-04-01 11:34:30.451232142 +0300 @@ -76,9 +76,9 @@ ; default is 'relax' by compatibility reason ; dongle required settings -[dongle0] -audio=/dev/ttyUSB1 ; tty port for audio connection; no default value -data=/dev/ttyUSB2 ; tty port for AT commands; no default value +;[dongle0] +;audio=/dev/ttyUSB1 ; tty port for audio connection; no default value +;data=/dev/ttyUSB2 ; tty port for AT commands; no default value ; 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 ! |
#--usage
![]() |
#rm
apt-get install asterisk-dahdi Reading package lists... Done Building dependency tree Reading state information... Done asterisk-dahdi is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#vim /etc/asterisk/dongle.conf
|
#service asterisk restart
|
#vim /etc/asterisk/dongle.conf
|
#service asterisk restart
|
#apt-get install dahdi-linux
Reading package lists... Done Building dependency tree Reading state information... Done dahdi-linux is already the newest version. dahdi-linux set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#cd..
![]() bash: cd..: command not found |
#cd
|
#cd \usr\src\
![]() > exit bash: cd: usrsrcexit: No such file or directory |
#cd /usr/src
|
#git clone dahdi-linux set to manually installed.
Too many arguments. usage: git clone [options] [--] <repo> [<dir>] -v, --verbose be more verbose -q, --quiet be more quiet --progress force progress reporting -n, --no-checkout don't create a checkout --bare create a bare repository --mirror create a mirror repository (implies bare) -l, --local to clone from a local repository --no-hardlinks don't use local hardlinks, always copy ... -b, --branch <branch> checkout <branch> instead of the remote's HEAD -u, --upload-pack <path> path to git-upload-pack on the remote --depth <depth> create a shallow clone of that depth --single-branch clone only one branch, HEAD or --branch --separate-git-dir <gitdir> separate git dir from working tree -c, --config <key=value> set config inside the new repository |
#[root@asterisk6:dongle-asterisk-11-patched]# cd..
![]() bash: [root@asterisk6:dongle-asterisk-11-patched]#: command not found |
#bash: cd..: command not found
![]() bash: bash:: command not found |
#[root@asterisk6:dongle-asterisk-11-patched]# cd
![]() bash: [root@asterisk6:dongle-asterisk-11-patched]#: command not found |
#[root@asterisk6:~]# cd \usr\src\
![]() > > exit bash: [root@asterisk6:~]#: command not found |
#bash: cd: usrsrcexit: No such file or directory
![]() bash: bash:: command not found |
#[root@asterisk6:~]# cd /usr/src
![]() bash: [root@asterisk6:~]#: command not found |
#ls
asterisk-chan-dongle dongle-asterisk-11-patched.tar.gz sngrep dongle-asterisk-11-patched exit |
#cd /usr/src/sngrep
|
#git clone dahdi-linux set to manually installed.
aclocal |
#git clone dahdi-linux set to manually installed.
autoconf |
#git clone dahdi-linux set to manually installed.
automake -a configure.ac:3: installing './install-sh' configure.ac:3: installing './missing' configure.ac:5: error: required file 'src/config.h.in' not found src/Makefile.am: installing './depcomp' tests/Makefile.am:10: warning: source file '../src/vector.c' is in a subdirectory, tests/Makefile.am:10: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. tests/Makefile.am:10: warning: source file '../src/util.c' is in a subdirectory, tests/Makefile.am:10: but option 'subdir-objects' is disabled parallel-tests: installing './test-driver' |
#git clone dahdi-linux set to manually installed.
![]() ./configure 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... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU ... checking dependency style of gcc... (cached) gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking whether ln -s works... yes checking for egrep... (cached) /bin/grep -E checking for pthread_create in -lpthread... yes checking for pcap_open_offline in -lpcap... no configure: error: You need to have libpcap installed to compile sngrep. |
#git clone dahdi-linux set to manually installed.
![]() apt-get install libpcap Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libpcap |
#apt-get search libpcap
![]() E: Invalid operation search |
#apt-
![]() apt-cache apt-extracttemplates apt-key apt-cdrom apt-ftparchive apt-mark apt-config apt-get apt-sortpkgs |
#apt-cashe search libpcap
![]() bash: apt-cashe: command not found |
Время первой команды журнала | 14:56:25 2016- 3-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:19:40 2016- 4- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.87 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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