Журнал лабораторных работ

Содержание

Журнал

Суббота (04/26/14)

/dev/pts/0
12:17:46
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
12:17:57
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
12:18:28
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
12:18:30
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
12:18:36
#cd ~

12:19:34
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
12:19:58
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
12:20:02
#less /var/log/asterisk/messages
12:21:13
#ps aux | grep aster
root     17296  0.0  0.0   6304   600 pts/3    S+   13:21   0:00 grep aster
user     32217  0.7  1.5 1160056 248976 ?      Sl   Apr24  22:00 iceweasel http://downloads.asterisk.org/pub/telephony/sounds/
12:21:16
#df -h
Filesystem                                              Size  Used Avail Use% Mounted on
rootfs                                                  443G  5.0G  415G   2% /
udev                                                     10M     0   10M   0% /dev
tmpfs                                                   1.6G  908K  1.6G   1% /run
/dev/disk/by-uuid/1654f5cb-42ee-41a6-b72e-3958d93be4eb  443G  5.0G  415G   2% /
tmpfs                                                   5.0M     0  5.0M   0% /run/lock
tmpfs                                                   6.3G  764K  6.3G   1% /run/shm
/dev/sda1                                               487M  128K  486M   1% /boot/efi
12:21:21
#rm /usr/lib/
Display all 759 possibilities? (y or n)
12:21:21
#mv /usr/lib/asterisk/modules/chan_datacard.so /tmp/

12:21:53
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
12:21:55
#ps aux | grep aster
asterisk 17354  7.0  0.1 753464 30480 ?        Ssl  13:21   0:00 /usr/sbin/asterisk -p -U asterisk
asterisk 17355  0.0  0.0  13912   772 ?        S    13:21   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 17354
root     17404  0.0  0.0   6304   600 pts/3    S+   13:21   0:00 grep aster
user     32217  0.7  1.5 1160056 251088 ?      Sl   Apr24  22:00 iceweasel http://downloads.asterisk.org/pub/telephony/sounds/
12:22:00
#cd /usr/src/chan-datacard-read-only/

12:22:07
#ls
COPYRIGHT.txt  README.txt         __at_read.c      __char_conv.c  __memmem.c       chan_datacard.h   etc
LICENSE.txt    __app.c            __at_response.c  __cli.c        __ringbuffer.c   chan_datacard.o
Makefile       __at_fifo_queue.c  __at_send.c      __helpers.c    __ringbuffer.h   chan_datacard.so
Makefile.in    __at_parse.c       __channel.c      __manager.c    chan_datacard.c  configure
12:22:08
#make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
gcc  -shared -Xlinker -x chan_datacard.o  -o chan_datacard.so
chmod 755 chan_datacard.so
12:22:11
#make install
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
gcc  -shared -Xlinker -x chan_datacard.o  -o chan_datacard.so
chmod 755 chan_datacard.so
install -d                /usr/lib/asterisk/modules/
install -m 755 chan_datacard.so /usr/lib/asterisk/modules/
12:22:27
#mv /etc/asterisk/datacard.conf /tmp/

12:22:40
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
12:22:44
#ps aux | grep aster
asterisk 17497  7.0  0.1 761680 30356 ?        Ssl  13:22   0:00 /usr/sbin/asterisk -p -U asterisk
asterisk 17498  0.0  0.0  13912   772 ?        S    13:22   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 17497
root     17547  0.0  0.0   6304   600 pts/3    S+   13:22   0:00 grep aster
user     32217  0.7  1.5 1160056 253464 ?      Sl   Apr24  22:00 iceweasel http://downloads.asterisk.org/pub/telephony/sounds/
12:22:47
#mv /tmp/datacard.conf /etc/asterisk/

12:22:58
#vim /etc/asterisk/datacard.conf
--- /tmp/l3-saved-6759.13463.25153	2014-04-26 13:23:01.296962789 +0300
+++ /etc/asterisk/datacard.conf	2014-04-26 13:23:14.876963015 +0300
@@ -38,13 +38,13 @@
 ;jblog = no			; Enables jitterbuffer frame logging. Defaults to "no".
 ;-----------------------------------------------------------------------------------
 
-;[E1550_t](!)
-;context=incoming-datacard	; context for incoming calls
-;rxgain=3			; increase the incoming volume
-;txgain=-3			; increase the outgoint volume
-;autodeletesms=yes		; auto delete incoming sms
-;resetdatacard=yes		; reset datacard during initialization
-;u2diag=0			; set U2DIAG parameter (0 = disable everything except modem function)
+[E1550_t](!)
+context=incoming-datacard	; context for incoming calls
+rxgain=3			; increase the incoming volume
+txgain=-3			; increase the outgoint volume
+autodeletesms=yes		; auto delete incoming sms
+resetdatacard=yes		; reset datacard during initialization
+u2diag=0			; set U2DIAG parameter (0 = disable everything except modem function)
 
 
 [datacard0](E1550_t)
12:23:14
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
12:23:17
#ps aux | grep aster
asterisk 17601 14.0  0.1 761204 30332 ?        Ssl  13:23   0:00 /usr/sbin/asterisk -p -U asterisk
asterisk 17602  0.0  0.0  13912   772 ?        S    13:23   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 17601
root     17652  0.0  0.0   6304   596 pts/3    S+   13:23   0:00 grep aster
user     32217  0.7  1.5 1160056 255048 ?      Sl   Apr24  22:01 iceweasel http://downloads.asterisk.org/pub/telephony/sounds/
12:23:19
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
12:24:50
#make^C

12:25:01
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian7 (pid = 17697)
Verbosity was 0 and is now 1
debian7*CLI>
debian7*CLI>
debian7*CLI>
[Apr 26 13:25:06] WARNING[17740]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
debian7*CLI>
[Apr 26 13:25:21] WARNING[17740]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
debian7*CLI> quit
Executing last minute cleanups
12:25:25
#nano /etc/asterisk/extensions.
12:25:25
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-6759.18835.5666	2014-04-26 13:25:49.932965639 +0300
+++ /etc/asterisk/extensions.conf	2014-04-26 13:28:27.336968295 +0300
@@ -117,6 +117,10 @@
 exten => s-ANSWER,1,Hangup
 exten => s-BUSY,1,Busy
 
+[incoming-datacard]
+
+exten => s,1,Goto(menu,s,1)
+
 
 [menu]
 
12:31:02
#{EXTEN})

12:32:57
#{EXTEN})

12:35:02
#{EXTEN})

12:36:01
#{EXTEN})

12:38:38
#{EXTEN})

прошло 10 минут
12:49:00
#;jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a Datacard
  GNU nano 2.2.6                  File: /etc/asterisk/extensions.conf                                Modified
exten => _2[12]XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN})
exten => _33XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN})
exten => _14XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN})
[fallback]
;exten => _.,1,Playback(/var/tmp/asterisk/message)
[ukraine-gateway]
;exten => _380XXXXXXXXX,1,Dial(DATACARD/g1/+${EXTEN})
exten => _380XXXXXXXXX,1,Dial(SIP/santiago/${EXTEN})
exten => sms,1,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}-${DATACARD}-${CALLERID(num)}:
...
include => internal
include => local
include => national
include => fallback
[gr3]
include => internal
include => local
include => fallback
^G Get Help       ^O WriteOut       ^R Read File      ^Y Prev Page      ^K Cut Text       ^C Cur Pos
^X Exit           ^J Justify        ^W Where Is       ^V Next Page      ^U UnCut Text     ^T To Spell
прошла 41 минута
13:30:10
#tar -xf asterisk-11-current.tar.gz

13:30:24
#ls -l
total 34112
-rw-r--r--  1 root root 34844777 Apr 26 14:29 asterisk-11-current.tar.gz
drwxr-xr-x 29 root root     4096 Apr 23 17:05 asterisk-11.9.0
drwxr-xr-x  4 root root     4096 Apr 26 12:29 c
drwxr-xr-x  4 root root     4096 Apr 26 13:22 chan-datacard-read-only
-rw-r--r--  1 root root    69129 May  9  2012 vpb-driver.tar.bz2
13:30:28
#cd asterisk-11.9.0/

13:30:36
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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 arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking sys/io.h usability... yes
checking sys/io.h presence... yes
checking for sys/io.h... yes
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for initscr in -lcurses... no
checking for initscr in -lncurses... no
configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)
13:34:58
#apt-get install libsqlite3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  sqlite3-doc
The following NEW packages will be installed:
  libsqlite3-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 578 kB of archives.
After this operation, 1382 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main libsqlite3-dev amd64 3.7.13-1+deb7u1 [578 kB]
Fetched 578 kB in 0s (21.6 MB/s)
Selecting previously unselected package libsqlite3-dev.
(Reading database ... 138760 files and directories currently installed.)
Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.13-1+deb7u1_amd64.deb) ...
Setting up libsqlite3-dev (3.7.13-1+deb7u1) ...
13:40:01
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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 arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking sys/io.h usability... yes
checking sys/io.h presence... yes
checking for sys/io.h... yes
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for initscr in -lcurses... no
checking for initscr in -lncurses... no
configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)
13:40:17
#apt-get install libncurses5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libtinfo-dev
Suggested packages:
  ncurses-doc
The following NEW packages will be installed:
  libncurses5-dev libtinfo-dev
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
...
Get:1 http://192.168.12.254/debian/ wheezy/main libtinfo-dev amd64 5.9-10 [105 kB]
Get:2 http://192.168.12.254/debian/ wheezy/main libncurses5-dev amd64 5.9-10 [223 kB]
Fetched 328 kB in 0s (13.9 MB/s)
Selecting previously unselected package libtinfo-dev:amd64.
(Reading database ... 138772 files and directories currently installed.)
Unpacking libtinfo-dev:amd64 (from .../libtinfo-dev_5.9-10_amd64.deb) ...
Selecting previously unselected package libncurses5-dev.
Unpacking libncurses5-dev (from .../libncurses5-dev_5.9-10_amd64.deb) ...
Setting up libtinfo-dev:amd64 (5.9-10) ...
Setting up libncurses5-dev (5.9-10) ...
13:40:43
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
13:41:07
#make menucofig
make: *** No rule to make target `menucofig'.  Stop.
13:41:35
#make menuselect/
Makefile                 config.log               install-sh               menuselect_gtk.c
README                   config.status            linkedlists.h            menuselect_newt.c
acinclude.m4             config.sub               make_version             menuselect_stub.c
aclocal.m4               configure                makeopts                 missing
autoconfig.h             configure.ac             makeopts.in              mxml/
autoconfig.h.in          configure.lineno         menuselect.c             strcompat.c
bootstrap.sh             contrib/                 menuselect.h             test/
config.guess             example_menuselect-tree  menuselect_curses.c
13:41:35
#make menuselect/
Makefile                 config.log               install-sh               menuselect_gtk.c
README                   config.status            linkedlists.h            menuselect_newt.c
acinclude.m4             config.sub               make_version             menuselect_stub.c
aclocal.m4               configure                makeopts                 missing
autoconfig.h             configure.ac             makeopts.in              mxml/
autoconfig.h.in          configure.lineno         menuselect.c             strcompat.c
bootstrap.sh             contrib/                 menuselect.h             test/
config.guess             example_menuselect-tree  menuselect_curses.c
13:41:35
#make menuconfig
                                              Press 'h' for help.
                                        --->  Add-ons (See README-addons.txt)
                                              Applications
                                              Bridging Modules
                                              Call Detail Recording
                                              Channel Event Logging
                                              Channel Drivers
                                              Codec Translators
                                              Format Interpreters
                                              Dialplan Functions
...
                                              Compiler Flags
                                              Voicemail Build Options
                                              Utilities
                                              AGI Samples
                                              Module Embedding
                                              Core Sound Packages
                                              Music On Hold File Packages
                                              Extras Sound Packages
menuselect changes NOT saved!
make[1]: Leaving directory `/usr/src/asterisk-11.9.0'
13:45:38
#apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libssl-doc zlib1g-dev
The following NEW packages will be installed:
  libssl-dev libssl-doc zlib1g-dev
0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
Need to get 3162 kB of archives.
After this operation, 8314 kB of additional disk space will be used.
...
(Reading database ... 138819 files and directories currently installed.)
Unpacking zlib1g-dev:amd64 (from .../zlib1g-dev_1%3a1.2.7.dfsg-13_amd64.deb) ...
Selecting previously unselected package libssl-dev.
Unpacking libssl-dev (from .../libssl-dev_1.0.1e-2+deb7u7_amd64.deb) ...
Selecting previously unselected package libssl-doc.
Unpacking libssl-doc (from .../libssl-doc_1.0.1e-2+deb7u7_all.deb) ...
Processing triggers for man-db ...
Setting up zlib1g-dev:amd64 (1:1.2.7.dfsg-13) ...
Setting up libssl-dev (1.0.1e-2+deb7u7) ...
Setting up libssl-doc (1.0.1e-2+deb7u7) ...
13:46:42
#apt-get install libsrtp0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libsrtp0-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 117 kB of archives.
After this operation, 390 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main libsrtp0-dev amd64 1.4.4+20100615~dfsg-2+deb7u1 [117 kB]
Fetched 117 kB in 0s (7922 kB/s)
Selecting previously unselected package libsrtp0-dev.
(Reading database ... 140257 files and directories currently installed.)
Unpacking libsrtp0-dev (from .../libsrtp0-dev_1.4.4+20100615~dfsg-2+deb7u1_amd64.deb) ...
Setting up libsrtp0-dev (1.4.4+20100615~dfsg-2+deb7u1) ...
13:47:08
#configure
l3script: configure: command not found
13:47:50
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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 initscr in -lcurses... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for initscr in -lncurses... yes
checking for curses.h... (cached) yes
checking for xml2-config... no
configure: *** XML documentation will not be available because the 'libxml2' development package is missing.
configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option
configure: *** or install the 'libxml2' development package.
13:48:02
#make menuconfig
                                              Press 'h' for help.
                                        --->  Add-ons (See README-addons.txt)
                                              Applications
                                              Bridging Modules
                                              Call Detail Recording
                                              Channel Event Logging
                                              Channel Drivers
                                              Codec Translators
                                              Format Interpreters
                                              Dialplan Functions
...
                                              Compiler Flags
                                              Voicemail Build Options
                                              Utilities
                                              AGI Samples
                                              Module Embedding
                                              Core Sound Packages
                                              Music On Hold File Packages
                                              Extras Sound Packages
menuselect changes NOT saved!
make[1]: Leaving directory `/usr/src/asterisk-11.9.0'
13:49:58
#apt-get install dahdi-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  fxload
The following NEW packages will be installed:
  dahdi-linux fxload
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 108 kB of archives.
After this operation, 337 kB of additional disk space will be used.
...
Get:2 http://192.168.12.254/debian/ wheezy/main dahdi-linux all 1:2.6.1+dfsg2-1 [91.3 kB]
Fetched 108 kB in 0s (6888 kB/s)
Selecting previously unselected package fxload.
(Reading database ... 140303 files and directories currently installed.)
Unpacking fxload (from .../fxload_0.0.20081013-1_amd64.deb) ...
Selecting previously unselected package dahdi-linux.
Unpacking dahdi-linux (from .../dahdi-linux_1%3a2.6.1+dfsg2-1_all.deb) ...
Processing triggers for man-db ...
Setting up fxload (0.0.20081013-1) ...
Setting up dahdi-linux (1:2.6.1+dfsg2-1) ...
13:51:43
#apt-get remove dahdi-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  fxload
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  dahdi-linux
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
After this operation, 259 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 140336 files and directories currently installed.)
Removing dahdi-linux ...
прошло 19 минут
14:11:11
#apt-get install libtonezone-dev libspeex-dev dahdi-source libsrtp0-dev libssl-

14:11:11
#apt-cashe search auto
l3script: apt-cashe: command not found
14:11:32
#apt-cache search auto
a2jmidid - Daemon for exposing legacy ALSA MIDI in JACK MIDI systems
a2ps - GNU a2ps - 'Anything to PostScript' converter and pretty-printer
libaa1-dbg - ASCII art library, debugging symbols
aaphoto - Auto Adjust Photo, automatic color correction of photos
abacas - Algorithm Based Automatic Contiguation of Assembled Sequences
accerciser - interactive Python accessibility explorer for the GNOME desktop
mpc-ace - makefile, project, and workspace creator
ack - Kanji code converter
xul-ext-adblock-plus - Advertisement blocking extension for web browsers
xul-ext-adblock-plus-element-hiding-helper - extension for Adblock Plus meant to make creating element hiding rules easier
...
zoomer - generate a video from a picture by zooming from one point to another
python-zope.testrunner - Flexible test runner with layer support for Python
python3-zope.testrunner - Flexible test runner with layer support for Python 3
zsh - shell with lots of features
zsh-dbg - shell with lots of features (debugging symbols)
zsh-dev - shell with lots of features (development files)
zsh-doc - zsh documentation - info/HTML format
zsh-static - shell with lots of features (static link)
zsh-beta - A shell with lots of features (dev tree)
zsh-beta-doc - zsh beta documentation - info/HTML format
14:11:36
#apt-cache search auto | grep install
auto-apt - package search by file and on-demand package installation tool
auto-install-el - Auto install elisp file
autopkgtest - automatic as-installed testing for Debian packages
cpanminus - script to get, unpack, build and install modules from CPAN
debpear - automatically builds and installs PEAR package as Debian packages
dh-di - Debhelper addon for debian-installer
dpsyco-skel - Automatically install a add-on skeleton
gnome-codec-install - GStreamer codec installer
guacamole-tomcat - Tomcat-based Guacamole install with VNC support
cabal-install - command-line interface for Cabal and Hackage
...
libmodule-install-perl - framework for installing Perl modules
libmodule-install-readmefrompod-perl - automatically convert POD to a README
liblistaller-glib-dev - 3rd-party application installer (development files)
liblistaller-glib0 - 3rd-party application installer (shared library)
listaller - 3rd-party application installer
listaller-devtools - 3rd-party application installer packaging tools
mini-dinstall - daemon for updating Debian packages in a repository
perlbrew - script to manage perl installations in your $HOME
unattended-upgrades - automatic installation of security upgrades
zeroinstall-injector - run programs by URL
14:11:45
#m-a a-i
USAGE:
  module-assistant update
  module-assistant [options] COMMAND [ packages ]
module-assistant is the tool to get debianized source of kernel modules,
build module package from it and install them. The most frequently used
command may be auto-install followed by the 'alli' argument.
Commands:
  update - refresh internal information about the packages
  unpack - unpacks the tarballs of specified packages (or similar action)
  get - download/install the source (package) and unpack if needed
...
 -S, --sudo-cmd    An alternative command for sudo
 -f, --force       Force duplicated work: source package reinstallation,
                   rebuild though existing packages are found, etc.
 -t, --text-mode   Text mode, no dialog boxes
 -u, --userdir     Specifies a (writeable) replacement directory for /var&/usr
 -k, --kernel-dir  List of kernel headers/source directories, comma separated
 -l, --kvers-list  List of kernel versions to work on (default: current version)
Lists in options are strings separated by commas, spaces or newlines.
Example:
  m-a update ; m-a a-i nvidia-kernel ; echo Enjoy!
14:12:06
#m-a a-i dahdi
                  lqqqqqqqqqqqqqqqqqqqqu Updating cached package data tqqqqqqqqqqqqqqqqqqqqqk
                  x Reading apt-cache output...                                             x
                  x                                                                         x
                  x                                                                         x
                  x                                  100%                                   x
                  x                                                                         x
                  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Updated infos about 1 packages
unpack
Extracting the package tarball, /usr/src/dahdi.tar.bz2, please wait...
"/usr/share/modass/packages/default.sh" build KVERS=3.2.0-4-amd64 KSRC=/lib/modules/3.2.0-4-amd64/build KDREV=3.2.54-2 kdist_image
14:13:46
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
14:14:23
#apt-get install libtonezone-dev libspeex-dev dahdi-source libsrtp0-dev libssl-

14:14:23
#apt-get install libspeexdsp-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  pkg-config
The following NEW packages will be installed:
  libspeexdsp-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 60.0 kB of archives.
After this operation, 202 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main libspeexdsp-dev amd64 1.2~rc1-7 [60.0 kB]
Fetched 60.0 kB in 0s (4832 kB/s)
Selecting previously unselected package libspeexdsp-dev:amd64.
(Reading database ... 149479 files and directories currently installed.)
Unpacking libspeexdsp-dev:amd64 (from .../libspeexdsp-dev_1.2~rc1-7_amd64.deb) ...
Setting up libspeexdsp-dev:amd64 (1.2~rc1-7) ...
14:15:17
#apt-get install make -j32
E: Command line option 'j' [from -j32] is not known.
14:15:28
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
14:15:53
#cp /etc/asterisk/ /etc/asterisk.backup
cp: omitting directory `/etc/asterisk/'
14:19:20
#cp -R /etc/asterisk/ /etc/asterisk.backup

14:19:26
#make
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect'
Generating input for menuselect ...
menuselect/menuselect --check-deps menuselect.makeopts
menuselect/menuselect --check-deps menuselect.makeopts
Generating embedded module rules ...
   [CC] astcanary.c -> astcanary.o
   [LD] astcanary.o -> astcanary
...
creating makelist
creating config.h
   [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o config.o config_options.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o format.o forma
Building Documentation For: channels pbx apps codecs formats cdr cel bridges funcs tests main res addons
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+
14:22:04
#apt-get remove asterisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  asterisk asterisk-prompt-de asterisk-voicemail
0 upgraded, 0 newly installed, 3 to remove and 5 not upgraded.
After this operation, 6174 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 149490 files and directories currently installed.)
Removing asterisk-prompt-de ...
Removing asterisk-voicemail ...
Removing asterisk ...
Stopping Asterisk PBX: asterisk.
Processing triggers for man-db ...
14:23:53
#apt-get avtoremove
E: Invalid operation avtoremove
14:24:10
#apt-get
apt 0.9.7.9 for amd64 compiled on Nov 16 2013 12:41:41
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]
apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.
Commands:
   update - Retrieve new lists of packages
   upgrade - Perform an upgrade
...
  -f  Attempt to correct a system with broken dependencies in place
  -m  Attempt to continue if archives are unlocatable
  -u  Show a list of upgraded packages as well
  -b  Build the source package after fetching it
  -V  Show verbose version numbers
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.
14:24:17
#apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules
  asterisk-moh-opsound-gsm freetds-common libcurl3 libiksemel3 libodbc1 libpq5 libradiusclient-ng2
  libresample1 libsaclm3 libsaevt3 libsensors4 libsnmp-base libsnmp15 libsqlite0 libsybdb5 libvpb0
  vpb-driver-source
0 upgraded, 0 newly installed, 21 to remove and 5 not upgraded.
After this operation, 22.7 MB disk space will be freed.
...
Removing libresample1 ...
Removing libsaclm3 ...
Removing libsaevt3 ...
Removing libsnmp15 ...
Removing libsensors4:amd64 ...
Removing libsnmp-base ...
Removing libsqlite0 ...
Removing libvpb0 ...
Removing vpb-driver-source ...
Processing triggers for man-db ...
14:24:58
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect'
Installing modules from channels...
Installing modules from pbx...
Installing modules from apps...
Installing modules from codecs...
Installing modules from formats...
Installing modules from cdr...
...
 +-------------------------------------------+
 WARNING WARNING WARNING
 Your Asterisk modules directory, located at
 /usr/lib/asterisk/modules
 contains modules that were not installed by this
 version of Asterisk. Please ensure that these
 modules are compatible with this version before
 attempting to run Asterisk.
    chan_datacard.so
 WARNING WARNING WARNING
14:25:11
#make clean
rm -f defaults.h
rm -f include/asterisk/build.h
rm -f main/version.c
rm -f doc/core-en_US.xml
rm -f doc/full-en_US.xml
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
rm -f menuselect cmenuselect gmenuselect nmenuselect menuselect.o strcompat.o menuselect_stub.o menuselect_curses.o
make[2]: Entering directory `/usr/src/asterisk-11.9.0/menuselect/mxml'
/bin/rm -f mxmldoc.o testmxml.o mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o libmxml.a mxmldoc testmxml mxml.xml
/bin/rm -f mxmldoc-static libmxml.a
/bin/rm -f *.bck *.bak
/bin/rm -f config.cache config.log config.status config.h
/bin/rm -f -r autom4te*.cache
make[2]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect/mxml'
make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect'
cp -f .cleancount .lastclean
14:25:45
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
14:26:22
#make
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
gcc  -g -D_GNU_SOURCE -Wall   -c -o menuselect.o menuselect.c
gcc  -g -D_GNU_SOURCE -Wall   -c -o strcompat.o strcompat.c
gcc  -g -D_GNU_SOURCE -Wall   -c -o menuselect_stub.o menuselect_stub.c
make[2]: Entering directory `/usr/src/asterisk-11.9.0/menuselect/mxml'
...
   [LD] res_timing_pthread.o -> res_timing_pthread.so
   [CC] res_timing_timerfd.c -> res_timing_timerfd.o
   [LD] res_timing_timerfd.o -> res_timing_timerfd.so
Building Documentation For: channels pbx apps codecs formats cdr cel bridges funcs tests main res addons
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+
14:29:01
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect'
Installing modules from channels...
Installing modules from pbx...
Installing modules from apps...
Installing modules from codecs...
Installing modules from formats...
Installing modules from cdr...
...
 +-------------------------------------------+
 WARNING WARNING WARNING
 Your Asterisk modules directory, located at
 /usr/lib/asterisk/modules
 contains modules that were not installed by this
 version of Asterisk. Please ensure that these
 modules are compatible with this version before
 attempting to run Asterisk.
    chan_datacard.so
 WARNING WARNING WARNING
14:31:29
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
прошло 12 минут
14:44:02
#asterisk -rv
Asterisk 11.9.0, 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.9.0 currently running on debian7 (pid = 12375)
[Apr 26 15:44:09] NOTICE[12404]: chan_sip.c:27924 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3102
debian7*CLI>
...
[Apr 26 15:55:01] NOTICE[12404]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'havana@192.168.12.2' timed out, trying again (Attempt #18)
[Apr 26 15:55:06] NOTICE[12404]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'havana@192.168.12.8' timed out, trying again (Attempt #34)
[Apr 26 15:55:21] NOTICE[12404]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'havana@192.168.12.2' timed out, trying again (Attempt #19)
[Apr 26 15:55:26] NOTICE[12404]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'havana@192.168.12.8' timed out, trying again (Attempt #35)
[Apr 26 15:55:41] NOTICE[12404]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'havana@192.168.12.2' timed out, trying again (Attempt #20)
[Apr 26 15:55:46] NOTICE[12404]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'havana@192.168.12.8' timed out, trying again (Attempt #36)
[Apr 26 15:56:01] NOTICE[12404]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'havana@192.168.12.2' timed out, trying again (Attempt #21)
debian7*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
прошло 12 минут
14:56:03
#la -l /etc/asterisk/
l3script: la: command not found
14:56:38
#la -l /etc/asterisk
l3script: la: command not found
14:56:40
#la -l /etc/asterisk
l3script: la: command not found
14:56:50
#la -l /etc/
l3script: la: command not found
14:57:05
#ls -l /etc/asterisk
total 804
-rw-r----- 1 asterisk asterisk   140 Jan  4 03:07 adsi.conf
-rw-r----- 1 asterisk asterisk  2790 Apr 26 09:07 agents.conf
-rw-r----- 1 asterisk asterisk  2904 Jan  4 03:07 ais.conf
-rw-r----- 1 asterisk asterisk  2084 Jan  4 03:07 alarmreceiver.conf
-rw-r----- 1 asterisk asterisk  3498 Jan  4 03:07 alsa.conf
-rw-r----- 1 asterisk asterisk   767 Jan  4 03:07 amd.conf
-rw-r----- 1 asterisk asterisk  1044 Jan  4 03:07 app_mysql.conf
-rw-r----- 1 asterisk asterisk  3254 Jan  4 03:07 asterisk.adsi
-rw-r----- 1 asterisk asterisk  3465 Jan  4 03:07 asterisk.conf
...
-rw-r----- 1 asterisk asterisk   742 Jan  4 03:07 sip_notify.conf
-rw-r----- 1 asterisk asterisk  9185 Jan  4 03:07 skinny.conf
-rw-r----- 1 asterisk asterisk  6774 Jan  4 03:07 sla.conf
-rw-r----- 1 asterisk asterisk  2669 Jan  4 03:07 smdi.conf
-rw-r----- 1 asterisk asterisk  1384 Jan  4 03:07 telcordia-1.adsi
-rw-r----- 1 asterisk asterisk   656 Jan  4 03:07 udptl.conf
-rw-r----- 1 asterisk asterisk  5096 Jan  4 03:07 unistim.conf
-rw-r----- 1 asterisk asterisk  2423 Jan  4 03:07 users.conf
-rw-r----- 1 asterisk asterisk 21318 Apr 24 13:19 voicemail.conf
-rw-r----- 1 asterisk asterisk  5939 Jan  4 03:07 vpb.conf
14:57:13
#^C

14:57:15
#ls -l /etc/asterisk/extensions.conf
-rw-r--r-- 1 root root 6721 Apr 26 13:53 /etc/asterisk/extensions.conf
14:57:24
#nano /etc/asterisk/extensions.conf
прошло 30 минут
15:28:02
#[general]

прошло 12 минут
15:40:34
#{STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}-${DATACARD}-${CALLERID(num)}:${SMS}' >> /$
Updated infos about 1 packages
Getting source for kernel version: 3.2.0-4-amd64
Kernel headers available in /lib/modules/3.2.0-4-amd64/build
Creating symlink...
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Done!
unpack
Extracting the package tarball, /usr/src/dahdi.tar.bz2, please wait...
Target package file /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb already exists, not
rebuilding!
(however, you could use the -f switch to ignore it)
dpkg -Ei /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb
dpkg: version 1:2.6.1+dfsg2-1+3.2.54-2 of dahdi-modules-3.2.0-4-amd64 already installed, skipping
15:41:06
#nano /etc/asterisk/extensions.conf.local
--- /tmp/l3-saved-6759.4520.19914	2014-04-26 16:41:20.805163865 +0300
+++ /etc/asterisk/extensions.conf.local	2014-04-26 16:42:36.509165144 +0300
@@ -4,5 +4,9 @@
 
 exten => 3198,1,Answer
 exten => 3198,n,Queue(queue1)
+exten => 3198,n,Hangup
+
+exten => 3197,1,Answer
+exten => 3197,n,MeetMe(100)
 
 exten => _31XX,1,Macro(localcall,${EXTEN})
15:42:36
#[local]

15:43:12
#;

15:43:16
#asterisk -rv
Asterisk 11.9.0, 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.9.0 currently running on debian7 (pid = 12375)
debian7*CLI> meetme
No such command 'meetme' (type 'core show help meetme' for other possible commands)
debian7*CLI> core show help meetme
No such command 'meetme'.
debian7*CLI> core show
No such command 'core show ' (type 'core show help core show' for other possible commands)
debian7*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
15:44:46
#ls -l
total 4296
-rw-r--r--  1 root root     294 Apr 15  2013 BSDmakefile
-rw-r--r--  1 root root     599 Jul 14  2011 BUGS
-rw-r--r--  1 root root  142967 Apr 21 23:56 CHANGES
-rw-r--r--  1 root root   17986 Feb 14  2006 COPYING
-rw-r--r--  1 root root   11612 Sep 15  2011 CREDITS
-rw-r--r--  1 root root 1553602 Apr 23 16:37 ChangeLog
-rw-r--r--  1 root root    2984 Feb  5  2010 LICENSE
-rw-r--r--  1 root root   37697 Feb 16 03:47 Makefile
-rw-r--r--  1 root root    5914 Jan 30  2012 Makefile.moddir_rules
...
-rwxr-xr-x  1 root root    6480 May  8  2006 missing
-rwxr-xr-x  1 root root     724 May  8  2006 mkinstalldirs
drwxr-xr-x  3 root root    4096 Apr 26 15:27 pbx
drwxr-xr-x  2 root root    4096 Apr 23 17:05 phoneprov
drwxr-xr-x  5 root root   20480 Apr 26 15:29 res
-rw-r--r--  1 root root    2721 Dec 20  2010 sample.call
drwxr-xr-x  2 root root    4096 Apr 23 17:05 sounds
drwxr-xr-x  2 root root    4096 Apr 23 17:05 static-http
drwxr-xr-x  2 root root    4096 Apr 26 14:42 tests
drwxr-xr-x  3 root root    4096 Apr 26 15:26 utils
15:45:08
#make menuconfig
                              **************************************************
                                              Press 'h' for help.
                                                 --- core ---
                                             [*] app_authenticate
                                             [*] app_cdr
                                             [*] app_celgenuserevent
                                             [*] app_channelredirect
                                             [*] app_chanspy
                                             [*] app_confbridge
                                             [*] app_controlplayback
...
                                             [*] app_sendtext
                                             [ ] app_skel
                                             [*] app_softhangup
                                             [*] app_speech_utils
                                                 ... More ...
                                       Extension Macros
                                       Depends on: chan_local(M)(M)
                                       Read Variable Application
                                       Depends on: res_monitor(M)(M)
                                                       ore, Replaced by: app_stack (GoSub)
15:46:41
#make & make install
[2] 13035
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect'
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect'
Generating embedded module rules ...
...
 WARNING WARNING WARNING
 Your Asterisk modules directory, located at
 /usr/lib/asterisk/modules
 contains modules that were not installed by this
 version of Asterisk. Please ensure that these
 modules are compatible with this version before
 attempting to run Asterisk.
    chan_datacard.so
 WARNING WARNING WARNING
[2]-  Done                    make
15:46:56
#nano /etc/asterisk/meetme.conf ^C
15:47:09
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:47:16
#asterisk -rv
Asterisk 11.9.0, 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.9.0 currently running on debian7 (pid = 14410)
debian7*CLI> meetme
No such command 'meetme ' (type 'core show help meetme' for other possible commands)
...
debian7*CLI> meetme
kick    list    lock    mute    unlock  unmute
debian7*CLI> meetme
kick    list    lock    mute    unlock  unmute
debian7*CLI> meetme list
No active MeetMe conferences.
debian7*CLI>
debian7*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
15:48:24
#nano /etc/asterisk/meetme.conf

Статистика

Время первой команды журнала12:17:46 2014- 4-26
Время последней команды журнала15:48:24 2014- 4-26
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %13.86
Процент синтаксически неверно набранных команд, % 5.94
Суммарное время работы с терминалом *, час 2.31
Количество командных строк в единицу времени, команда/мин 0.73
Частота использования команд
make14|============| 12.96%
apt-get14|============| 12.96%
asterisk8|=======| 7.41%
configure8|=======| 7.41%
/etc/init.d/asterisk8|=======| 7.41%
nano6|=====| 5.56%
{EXTEN})5|====| 4.63%
grep5|====| 4.63%
ls5|====| 4.63%
ps4|===| 3.70%
la4|===| 3.70%
cd3|==| 2.78%
mv3|==| 2.78%
m-a2|=| 1.85%
cp2|=| 1.85%
apt-cache2|=| 1.85%
Jitterbuffer1|| 0.93%
jbimpl1|| 0.93%
{STRFTIME(${EPOCH},,%Y-%m-%d1|| 0.93%
[local]1|| 0.93%
/$1|| 0.93%
>1|| 0.93%
vim1|| 0.93%
rm1|| 0.93%
[general]1|| 0.93%
apt-cashe1|| 0.93%
less1|| 0.93%
df1|| 0.93%
^C1|| 0.93%
tar1|| 0.93%
make^C1|| 0.93%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$