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

Содержание

Журнал

Среда (10/19/11)

/dev/pts/4
11:13:53
#vi musiconhold.conf
--- /tmp/l3-saved-2090.267.3190	2011-10-19 12:14:01.000000000 +0300
+++ musiconhold.conf	2011-10-19 12:14:21.000000000 +0300
@@ -45,6 +45,10 @@
 [default]
 mode=files
 directory=/var/lib/asterisk/moh
+
+[class2]
+mode=files
+directory=/var/lib/asterisk/moh2
 ;
 ;[native-random]
 ;mode=files
/dev/pts/1
11:13:53
#vi musiconhold.conf
/dev/pts/4
11:14:21
#cd /var/lib/asterisk/

/dev/pts/1
11:14:21
#cd /var/lib/asterisk/

/dev/pts/4
11:14:32
#ls
astdb  moh  sounds  sqlite.db
/dev/pts/1
11:14:32
#ls
astdb  moh  sounds  sqlite.db
/dev/pts/4
11:14:33
#mkd
mkdir    mkdosfs
/dev/pts/1
11:14:33
#mkd
mkdir    mkdosfs
/dev/pts/4
11:14:33
#mkdir moh2

/dev/pts/1
11:14:33
#mkdir moh2

/dev/pts/4
11:14:50
#mc
/dev/pts/1
11:14:50
#mc
/dev/pts/4
11:15:22
#ls
astdb  moh  moh2  sounds  sqlite.db
/dev/pts/1
11:15:22
#ls
astdb  moh  moh2  sounds  sqlite.db
/dev/pts/4
11:15:25
#ls -l
итого 240
-rw-rw---- 1 asterisk asterisk   8192 Окт 19 12:15 astdb
drwxr-xr-x 2 asterisk asterisk   4096 Окт 19 12:15 moh
drwxr-xr-x 2 root     root       4096 Окт 19 12:15 moh2
drwxr-xr-x 3 asterisk asterisk   4096 Окт 18 10:37 sounds
-rw-r----- 1 asterisk asterisk 219136 Окт 19 12:04 sqlite.db
/dev/pts/1
11:15:25
#ls -l
итого 240
-rw-rw---- 1 asterisk asterisk   8192 Окт 19 12:15 astdb
drwxr-xr-x 2 asterisk asterisk   4096 Окт 19 12:15 moh
drwxr-xr-x 2 root     root       4096 Окт 19 12:15 moh2
drwxr-xr-x 3 asterisk asterisk   4096 Окт 18 10:37 sounds
-rw-r----- 1 asterisk asterisk 219136 Окт 19 12:04 sqlite.db
/dev/pts/4
11:15:27
#chown -R asterisk:asterisk moh2

/dev/pts/1
11:15:27
#chown -R asterisk:asterisk moh2

/dev/pts/4
11:15:46
#ls -l
итого 240
-rw-rw---- 1 asterisk asterisk   8192 Окт 19 12:15 astdb
drwxr-xr-x 2 asterisk asterisk   4096 Окт 19 12:15 moh
drwxr-xr-x 2 asterisk asterisk   4096 Окт 19 12:15 moh2
drwxr-xr-x 3 asterisk asterisk   4096 Окт 18 10:37 sounds
-rw-r----- 1 asterisk asterisk 219136 Окт 19 12:04 sqlite.db
/dev/pts/1
11:15:46
#ls -l
итого 240
-rw-rw---- 1 asterisk asterisk   8192 Окт 19 12:15 astdb
drwxr-xr-x 2 asterisk asterisk   4096 Окт 19 12:15 moh
drwxr-xr-x 2 asterisk asterisk   4096 Окт 19 12:15 moh2
drwxr-xr-x 3 asterisk asterisk   4096 Окт 18 10:37 sounds
-rw-r----- 1 asterisk asterisk 219136 Окт 19 12:04 sqlite.db
/dev/pts/4
11:15:48
#cd moh2

/dev/pts/1
11:15:48
#cd moh2

/dev/pts/4
11:15:50
#ls
jsmailo.gsm  jsmailo.mp3
11:15:50
#ls -l
итого 1212
-rw-r--r-- 1 asterisk asterisk 359865 Окт 19 11:56 jsmailo.gsm
-rwxr--r-- 1 asterisk asterisk 868400 Окт 19 12:00 jsmailo.mp3
/dev/pts/1
11:15:50
#ls
jsmailo.gsm  jsmailo.mp3
11:15:50
#ls -l
итого 1212
-rw-r--r-- 1 asterisk asterisk 359865 Окт 19 11:56 jsmailo.gsm
-rwxr--r-- 1 asterisk asterisk 868400 Окт 19 12:00 jsmailo.mp3
/dev/pts/4
11:15:51
#cd /etc/asterisk/

/dev/pts/1
11:15:51
#cd /etc/asterisk/

/dev/pts/4
11:16:04
#vi extensions.conf
--- /tmp/l3-saved-2090.18931.32127	2011-10-19 12:16:11.000000000 +0300
+++ extensions.conf	2011-10-19 12:22:34.000000000 +0300
@@ -3,7 +3,9 @@
 [macro-monitor]
 exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)})
 exten => s,n,Monitor(wav,${CALLFILENAME},m)
-exten => s,n,Dial(${ARG1},10)
+exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "31" ]?dial)
+exten => s,n,SetMusicOnHold(class2)
+exten => s,n(dial),Dial(${ARG1},10)
 
 [local]
 exten => _110X,1,Answer
/dev/pts/1
11:16:04
#vi extensions.conf
/dev/pts/4
11:22:39
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> mo
...
        Directory: /var/lib/asterisk/moh
Class: class2
        Mode: files
        Directory: /var/lib/asterisk/moh2
linux1*CLI> dialplan reload
Dialplan reloaded.
[Oct 19 12:23:24] NOTICE[4420]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:22:39
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> mo
...
        Directory: /var/lib/asterisk/moh
Class: class2
        Mode: files
        Directory: /var/lib/asterisk/moh2
linux1*CLI> dialplan reload
Dialplan reloaded.
[Oct 19 12:23:24] NOTICE[4420]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:23:34
#vi extensions.conf
--- /tmp/l3-saved-2090.7433.22628	2011-10-19 12:23:35.000000000 +0300
+++ extensions.conf	2011-10-19 12:23:42.000000000 +0300
@@ -3,7 +3,7 @@
 [macro-monitor]
 exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)})
 exten => s,n,Monitor(wav,${CALLFILENAME},m)
-exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "31" ]?dial)
+exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "11" ]?dial)
 exten => s,n,SetMusicOnHold(class2)
 exten => s,n(dial),Dial(${ARG1},10)
 
/dev/pts/1
11:23:34
#vi extensions.conf
/dev/pts/4
11:23:42
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> dialplan reload
...
5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 0 offline]
linux1*CLI> sip show registry
Host                           dnsmgr Username       Refresh State                Reg.Time
192.168.70.1:5060              N      kv                 105 Registered           Wed, 19 Oct 2011 12:52:22
192.168.50.1:5060              N      kv                 105 Registered           Wed, 19 Oct 2011 12:52:53
192.168.20.1:5060              N      kv                 105 Registered           Wed, 19 Oct 2011 12:52:22
3 SIP registrations.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:23:42
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> dialplan reload
...
5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 0 offline]
linux1*CLI> sip show registry
Host                           dnsmgr Username       Refresh State                Reg.Time
192.168.70.1:5060              N      kv                 105 Registered           Wed, 19 Oct 2011 12:52:22
192.168.50.1:5060              N      kv                 105 Registered           Wed, 19 Oct 2011 12:52:53
192.168.20.1:5060              N      kv                 105 Registered           Wed, 19 Oct 2011 12:52:22
3 SIP registrations.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло 30 минут
/dev/pts/4
11:53:54
#vi extensions.conf
--- /tmp/l3-saved-2090.6749.24921	2011-10-19 12:53:58.000000000 +0300
+++ extensions.conf	2011-10-19 12:54:49.000000000 +0300
@@ -12,6 +12,8 @@
 exten => _110X,n,Macro(monitor,SIP/${EXTEN})
 exten => _110X,n,Voicemail(${EXTEN}@default)
 
+exten => _1103,1,Dial(SIP/1102&SIP/1102)
+
 [national]
 exten => _12XX,1,Macro(monitor,SIP/lv/${EXTEN})
 
/dev/pts/1
11:53:54
#vi extensions.conf
/dev/pts/4
11:54:49
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> dialplan reload
Dialplan reloaded.
[Oct 19 12:55:10] WARNING[4594]: app_dial.c:1714 dial_exec_full: Skipping dialing interface 'SIP/1102' again since it has already been dialed
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:54:49
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> dialplan reload
Dialplan reloaded.
[Oct 19 12:55:10] WARNING[4594]: app_dial.c:1714 dial_exec_full: Skipping dialing interface 'SIP/1102' again since it has already been dialed
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:55:24
#vi extensions.conf
--- /tmp/l3-saved-2090.23261.25865	2011-10-19 12:55:25.000000000 +0300
+++ extensions.conf	2011-10-19 12:55:35.000000000 +0300
@@ -12,7 +12,7 @@
 exten => _110X,n,Macro(monitor,SIP/${EXTEN})
 exten => _110X,n,Voicemail(${EXTEN}@default)
 
-exten => _1103,1,Dial(SIP/1102&SIP/1102)
+exten => _1103,1,Dial(SIP/1101&SIP/1102)
 
 [national]
 exten => _12XX,1,Macro(monitor,SIP/lv/${EXTEN})
/dev/pts/1
11:55:24
#vi extensions.conf
/dev/pts/4
11:55:35
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> dialplan reload
...
[Oct 19 14:00:01] WARNING[4788]: chan_sip.c:6358 sip_write: Asked to transmit frame type 2, while native formats is 0x8 (alaw)(8) read/write = 0x8 (alaw)(8)/0x8 (alaw)(8)
[Oct 19 14:00:01] WARNING[4788]: chan_sip.c:6358 sip_write: Asked to transmit frame type 2, while native formats is 0x8 (alaw)(8) read/write = 0x8 (alaw)(8)/0x8 (alaw)(8)
[Oct 19 14:00:01] NOTICE[4788]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0'
[Oct 19 14:01:17] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'.
[Oct 19 14:02:13] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2202' rejected because extension not found in context 'gr1'.
[Oct 19 14:02:52] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'.
[Oct 19 14:03:30] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'.
linux1*CLI> 11
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:55:35
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> dialplan reload
...
[Oct 19 14:00:01] WARNING[4788]: chan_sip.c:6358 sip_write: Asked to transmit frame type 2, while native formats is 0x8 (alaw)(8) read/write = 0x8 (alaw)(8)/0x8 (alaw)(8)
[Oct 19 14:00:01] WARNING[4788]: chan_sip.c:6358 sip_write: Asked to transmit frame type 2, while native formats is 0x8 (alaw)(8) read/write = 0x8 (alaw)(8)/0x8 (alaw)(8)
[Oct 19 14:00:01] NOTICE[4788]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0'
[Oct 19 14:01:17] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'.
[Oct 19 14:02:13] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2202' rejected because extension not found in context 'gr1'.
[Oct 19 14:02:52] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'.
[Oct 19 14:03:30] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'.
linux1*CLI> 11
Disconnected from Asterisk server
Executing last minute cleanups
прошло 68 минут
/dev/pts/4
13:03:58
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-2090.15622.31258	2011-10-19 14:04:06.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-10-19 14:04:14.000000000 +0300
@@ -27,7 +27,7 @@
 secret=1234
 host=dynamic
 callerid="Kiev"
-context=gr1
+context=gr3
 mailbox=1102@default
 
 [lv]
/dev/pts/1
13:03:58
#vi /etc/asterisk/sip.conf
/dev/pts/4
13:04:14
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> sip reload l
...
res_crypto.so         res_http_post.so      res_jabber.so         res_musiconhold.so    res_odbc.so           res_phoneprov.so      res_smdi.so           rtp                   udptl                 plc
linux1*CLI> c
cdr      channel  cli      config   console  core
linux1*CLI> co
config   console  core
linux1*CLI> core restart
gracefully  now         when
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:04:14
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> sip reload l
...
res_crypto.so         res_http_post.so      res_jabber.so         res_musiconhold.so    res_odbc.so           res_phoneprov.so      res_smdi.so           rtp                   udptl                 plc
linux1*CLI> c
cdr      channel  cli      config   console  core
linux1*CLI> co
config   console  core
linux1*CLI> core restart
gracefully  now         when
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
13:10:33
#vi sip.conf
--- /tmp/l3-saved-2090.29032.31736	2011-10-19 14:10:36.000000000 +0300
+++ sip.conf	2011-10-19 14:11:52.000000000 +0300
@@ -21,6 +21,8 @@
 callerid="Kiev" 
 context=gr3
 mailbox=1101@default
+callgroup=1
+pickupgroup=1
 
 [1102]
 type=friend
@@ -29,6 +31,7 @@
 callerid="Kiev"
 context=gr3
 mailbox=1102@default
+callgroup=1
 
 [lv]
 type=friend
/dev/pts/1
13:10:33
#vi sip.conf
/dev/pts/4
13:11:52
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> sip reload
 Reloading SIP
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:11:52
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> sip reload
 Reloading SIP
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
13:12:27
#vi fe
/dev/pts/1
13:12:27
#vi fe
/dev/pts/4
13:12:27
#cp features.conf features.conf0

/dev/pts/1
13:12:27
#cp features.conf features.conf0

/dev/pts/4
13:12:38
#vi features.conf
/dev/pts/1
13:12:38
#vi features.conf
/dev/pts/4
13:21:59
#vi sip.conf
--- /tmp/l3-saved-2090.10259.4589	2011-10-19 14:22:03.000000000 +0300
+++ sip.conf	2011-10-19 14:22:12.000000000 +0300
@@ -22,7 +22,6 @@
 context=gr3
 mailbox=1101@default
 callgroup=1
-pickupgroup=1
 
 [1102]
 type=friend
@@ -32,6 +31,7 @@
 context=gr3
 mailbox=1102@default
 callgroup=1
+pickupgroup=1
 
 [lv]
 type=friend
/dev/pts/1
13:21:59
#vi sip.conf
/dev/pts/4
13:22:12
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> sip reload
 Reloading SIP
[Oct 19 14:22:35] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '*8#' rejected because extension not found in context 'gr3'.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:22:12
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> sip reload
 Reloading SIP
[Oct 19 14:22:35] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '*8#' rejected because extension not found in context 'gr3'.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
13:22:58
#vi sip.conf
/dev/pts/4
13:22:58
#vi sip.conf
--- /tmp/l3-saved-2090.414.21912	2011-10-19 14:22:59.000000000 +0300
+++ sip.conf	2011-10-19 14:23:06.000000000 +0300
@@ -22,6 +22,7 @@
 context=gr3
 mailbox=1101@default
 callgroup=1
+pickupgroup=1
 
 [1102]
 type=friend
13:23:06
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> sip reload
...
linux1*CLI> core show
application     applications    calls           channel         channels        channeltype     channeltypes
codec           codecs          config          file            function        functions       help
hint            hints           image           license         profile         settings        switches
sysinfo         taskprocessors  threads         translation     uptime          version         warranty
linux1*CLI> core show version
Asterisk 1.6.2.9-2+squeeze3 built by buildd @ murphy on a i686 running Linux on 2011-07-07 09:23:09 UTC
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:23:06
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> sip reload
...
linux1*CLI> core show
application     applications    calls           channel         channels        channeltype     channeltypes
codec           codecs          config          file            function        functions       help
hint            hints           image           license         profile         settings        switches
sysinfo         taskprocessors  threads         translation     uptime          version         warranty
linux1*CLI> core show version
Asterisk 1.6.2.9-2+squeeze3 built by buildd @ murphy on a i686 running Linux on 2011-07-07 09:23:09 UTC
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
13:26:07
#vi queue
/dev/pts/1
13:26:07
#vi queue
/dev/pts/4
13:26:07
#cp queues.conf queues.conf0

/dev/pts/1
13:26:07
#cp queues.conf queues.conf0

/dev/pts/4
13:26:32
#vi queue
/dev/pts/1
13:26:32
#vi queue
/dev/pts/4
13:26:32
#vi queues.conf
/dev/pts/1
13:26:32
#vi queues.conf
/dev/pts/4
13:27:24
#запись
; an application call from extensions.conf:
; Queue(queuename,[options],[optionalurl],[announceoverride],[timeout])
; example: Queue(dave,t,,,45)
; shared_lastcall will make the lastcall and calls received be the same in
; members logged in more than one queue.
; This is useful to make the queue respect the wrapuptime of another queue
; for a shared member
;
shared_lastcall=no
; an application call from extensions.conf:
...
~
~
~
~
~
~
~
~
~
"queues.conf" 505L, 22518C записано
/dev/pts/1
13:27:24
#запись
; This is useful to make the queue respect the wrapuptime of another queue
; for a shared member
;
shared_lastcall=no
;
;[markq]
;
; A sample call queue
;
; Musicclass sets which music applies for this particular call queue.
...
~
~
~
~
~
~
~
~
~
"queues.conf" 505L, 22518C записано
/dev/pts/4
13:30:52
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> queue show
...
[Oct 19 14:31:14] NOTICE[5098]: app_queue.c:5650 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.
[Oct 19 14:31:14] WARNING[5098]: app_queue.c:1569 queue_set_param: Unknown keyword in queue 'queue1': memeber at line 504 of queues.conf
[Oct 19 14:31:14] WARNING[5098]: app_queue.c:1569 queue_set_param: Unknown keyword in queue 'queue1': memeber at line 505 of queues.conf
linux1*CLI> queue show
queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
   No Members
   No Callers
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:30:52
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> queue show
...
[Oct 19 14:31:14] NOTICE[5098]: app_queue.c:5650 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.
[Oct 19 14:31:14] WARNING[5098]: app_queue.c:1569 queue_set_param: Unknown keyword in queue 'queue1': memeber at line 504 of queues.conf
[Oct 19 14:31:14] WARNING[5098]: app_queue.c:1569 queue_set_param: Unknown keyword in queue 'queue1': memeber at line 505 of queues.conf
linux1*CLI> queue show
queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
   No Members
   No Callers
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
13:31:45
#vi extensions.conf
/dev/pts/1
13:31:45
#vi extensions.conf
/dev/pts/4
13:32:09
#[ ]
[             ]
[xten => _110X]n,Macro(monitor,SIP/${EXTEN})
exten => _110X,n,Voicemail(${EXTEN}@default)
"extensions.conf" 63L, 1697C
exten => _1103,1,Dial(SIP/1101&SIP/1102)
[local]
[local]
[national]
exten => _12XX,1,Queue(queue1)
[international]
exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN})
"extensions.conf" 63L, 1687C записано
/dev/pts/1
13:32:09
#[ ]
[             ]
[xten => _110X]n,Macro(monitor,SIP/${EXTEN})
exten => _110X,n,Voicemail(${EXTEN}@default)
"extensions.conf" 63L, 1697C
exten => _1103,1,Dial(SIP/1101&SIP/1102)
[local]
[local]
[national]
exten => _12XX,1,Queue(queue1)
[international]
exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN})
"extensions.conf" 63L, 1687C записано
/dev/pts/4
13:32:26
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> queue show
...
linux1*CLI> sip show peers 1103
Usage: sip show peers [like <pattern>]
       Lists all known SIP peers.
       Optional regular expression pattern is used to filter the peer list.
linux1*CLI> sip show peer 1103
Peer 1103 not found.
linux1*CLI>
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:32:26
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> queue show
...
linux1*CLI> sip show peers 1103
Usage: sip show peers [like <pattern>]
       Lists all known SIP peers.
       Optional regular expression pattern is used to filter the peer list.
linux1*CLI> sip show peer 1103
Peer 1103 not found.
linux1*CLI>
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
13:33:10
#vi extensions.conf
/dev/pts/1
13:33:10
#vi extensions.conf
/dev/pts/4
13:33:52
#[local]
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> dialplan s
...
Session-Expires: 1800;refresher=uas
Contact: <sip:1103@192.168.10.1>
Content-Length: 0
<------------>
Really destroying SIP dialog 'OGY2ODQ2MGE3MDI2MjNjZDA1YmE4OTAxNDVmNDM3MmE.' Method: REGISTER
<--- SIP read from UDP:192.168.10.200:23834 --->
<------------->
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:33:52
#[local]
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
linux1*CLI> dialplan s
...
Session-Expires: 1800;refresher=uas
Contact: <sip:1103@192.168.10.1>
Content-Length: 0
<------------>
Really destroying SIP dialog 'OGY2ODQ2MGE3MDI2MjNjZDA1YmE4OTAxNDVmNDM3MmE.' Method: REGISTER
<--- SIP read from UDP:192.168.10.200:23834 --->
<------------->
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
13:35:19
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
[Oct 19 14:35:22] NOTICE[4024]: chan_sip.c:11655 sip_reregister:    -- Re-registration for  kv@192.168.70.1
...
Server: Asterisk PBX 1.6.2.9-2+squeeze3
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="36cb56bf", stale=true
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:35:19
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989)
Verbosity is at least 1
[Oct 19 14:35:22] NOTICE[4024]: chan_sip.c:11655 sip_reregister:    -- Re-registration for  kv@192.168.70.1
...
Server: Asterisk PBX 1.6.2.9-2+squeeze3
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="36cb56bf", stale=true
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
13:35:47
#ыÑыф.Ñ/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/1
13:35:47
#ыÑыф.Ñ/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/4
13:37:15
#vi extensions.conf
/dev/pts/1
13:37:15
#vi extensions.conf
/dev/pts/4
13:37:47
#{EXTEN})
[general]
;
; Global settings for call queues
;
; Persistent Members
;    Store each dynamic member in each queue in the astdb so that
;    when asterisk is restarted, each member will be automatically
;    read into their recorded queues. Default is 'yes'.
;
persistentmembers = yes
...
; recent, etc, you should list all the agents in this file individually and not
; use agent groups.
;
;member => Agent/@1             ; Any agent in group 1
;member => Agent/:1,1           ; Any agent in group 1, wait for first
                                ; available, but consider with penalty
[queue1]
strategy=ringall
memeber => SIP/1101
memeber => SIP/1102
/dev/pts/1
13:37:47
#{EXTEN})
[general]
;
; Global settings for call queues
;
; Persistent Members
;    Store each dynamic member in each queue in the astdb so that
;    when asterisk is restarted, each member will be automatically
;    read into their recorded queues. Default is 'yes'.
;
persistentmembers = yes
...
; recent, etc, you should list all the agents in this file individually and not
; use agent groups.
;
;member => Agent/@1             ; Any agent in group 1
;member => Agent/:1,1           ; Any agent in group 1, wait for first
                                ; available, but consider with penalty
[queue1]
strategy=ringall
memeber => SIP/1101
memeber => SIP/1102
/dev/pts/4
13:37:59
#vi queues.conf
--- /tmp/l3-saved-2090.2137.11565	2011-10-19 14:38:03.000000000 +0300
+++ queues.conf	2011-10-19 14:38:08.000000000 +0300
@@ -501,5 +501,5 @@
 
 [queue1]
 strategy=ringall
-memeber => SIP/1101
-memeber => SIP/1102
+member => SIP/1101
+member => SIP/1102
/dev/pts/1
13:37:59
#vi queues.conf
/dev/pts/4
13:38:08
#less queues.conf
/dev/pts/1
13:38:08
#less queues.conf
/dev/pts/4
13:38:09
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux1 (pid = 5209)
Verbosity is at least 1
linux1*CLI> queue
...
linux1*CLI> voicemail show users
Context    Mbox  User                      Zone       NewMsg
default    general New User                                  0
default    1101  User User                                 0
default    1102  User User                                 3
other      1234  Company2 User                             0
4 voicemail users configured.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups

Статистика

Время первой команды журнала11:13:53 2011-10-19
Время последней команды журнала13:38:09 2011-10-19
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 0.00
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.76
Количество командных строк в единицу времени, команда/мин 2.21
Частота использования команд
vi36|===================================| 35.64%
asterisk23|======================| 22.77%
ls12|===========| 11.88%
cd6|=====| 5.94%
cp4|===| 3.96%
ыÑыф.Ñ/etc/init.d/asterisk2|=| 1.98%
mkd2|=| 1.98%
{EXTEN})2|=| 1.98%
[2|=| 1.98%
запись2|=| 1.98%
mkdir2|=| 1.98%
less2|=| 1.98%
[local]2|=| 1.98%
chown2|=| 1.98%
mc2|=| 1.98%
____
*) Интервалы неактивности длительностью 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$