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

Содержание

Журнал

Понедельник (04/08/13)

/dev/pts/1
16:19:01
#vim extensions.conf
--- /tmp/l3-saved-5151.16762.15387	2013-04-08 17:19:05.000000000 +0300
+++ extensions.conf	2013-04-08 17:20:50.000000000 +0300
@@ -1,5 +1,9 @@
 ; extension.conf
 
 [default]
-exten => 8000,1,Playback(welcome)
+exten => 8000,1,Answer
+exten => 8000,n,Wait(2)
+exten => 8000,n,Playback(welcome)
+exten => 8000,n,Playback(congrats)
+
 exten => _21XX,1,Dial(SIP/${EXTEN},30)
/dev/pts/0
16:20:51
#ls -l /var/lib/asterisk/sounds/custom/
total 0
/dev/pts/1
16:20:51
#ls -l /var/lib/asterisk/sounds/custom/
total 0
/dev/pts/0
16:21:23
#dpkg -L asterisk-sounds-extra | grep congr

/dev/pts/1
16:21:23
#dpkg -L asterisk-sounds-extra | grep congr

/dev/pts/0
16:21:45
#dpkg -L asterisk-sounds-extra | grep congr*

/dev/pts/1
16:21:45
#dpkg -L asterisk-sounds-extra | grep congr*

/dev/pts/0
16:21:48
#dpkg -L asterisk-sounds-main | grep congr
/usr/share/asterisk/sounds/en_US_f_Allison/demo-congrats.gsm
/dev/pts/1
16:21:48
#dpkg -L asterisk-sounds-main | grep congr
/usr/share/asterisk/sounds/en_US_f_Allison/demo-congrats.gsm
/dev/pts/0
16:22:20
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- Total time merge_contexts_delete: 0.000631 sec
  == Using SIP RTP CoS mark 5
    -- Executing [8000@default:1] Answer("SIP/2101-00000004", "") in new stack
    -- Executing [8000@default:2] Wait("SIP/2101-00000004", "2") in new stack
    -- Executing [8000@default:3] Playback("SIP/2101-00000004", "welcome") in new stack
    -- <SIP/2101-00000004> Playing 'welcome.gsm' (language 'en')
    -- Executing [8000@default:4] Playback("SIP/2101-00000004", "demo-congrats") in new stack
    -- <SIP/2101-00000004> Playing 'demo-congrats.gsm' (language 'en')
  == Spawn extension (default, 8000, 4) exited non-zero on 'SIP/2101-00000004'
linux5*CLI> exit
/dev/pts/1
16:22:20
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- Total time merge_contexts_delete: 0.000631 sec
  == Using SIP RTP CoS mark 5
    -- Executing [8000@default:1] Answer("SIP/2101-00000004", "") in new stack
    -- Executing [8000@default:2] Wait("SIP/2101-00000004", "2") in new stack
    -- Executing [8000@default:3] Playback("SIP/2101-00000004", "welcome") in new stack
    -- <SIP/2101-00000004> Playing 'welcome.gsm' (language 'en')
    -- Executing [8000@default:4] Playback("SIP/2101-00000004", "demo-congrats") in new stack
    -- <SIP/2101-00000004> Playing 'demo-congrats.gsm' (language 'en')
  == Spawn extension (default, 8000, 4) exited non-zero on 'SIP/2101-00000004'
linux5*CLI> exit
/dev/pts/0
16:25:57
#vim extensions.conf
/dev/pts/1
16:25:57
#vim extensions.conf
--- /tmp/l3-saved-5151.5717.15876	2013-04-08 17:25:59.000000000 +0300
+++ extensions.conf	2013-04-08 17:26:31.000000000 +0300
@@ -2,8 +2,8 @@
 
 [default]
 exten => 8000,1,Answer
-exten => 8000,n,Wait(2)
-exten => 8000,n,Playback(welcome)
-exten => 8000,n,Playback(demo-congrats)
+ same =>      n,Wait(2)
+ same =>      n,Playback(welcome)
+ same =>      n,Playback(demo-congrats)
 
 exten => _21XX,1,Dial(SIP/${EXTEN},30)
/dev/pts/0
16:26:31
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x8c6ac28)
    -- Registered extension context 'parkedcalls' (0x8c6b190) in local table 0x8c45198; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_config
    -- Added extension '700' priority 1 to parkedcalls (0x8c6b190)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000583 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000036 sec
    -- Total time merge_contexts_delete: 0.000620 sec
linux5*CLI> exit
/dev/pts/1
16:26:31
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x8c6ac28)
    -- Registered extension context 'parkedcalls' (0x8c6b190) in local table 0x8c45198; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_config
    -- Added extension '700' priority 1 to parkedcalls (0x8c6b190)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000583 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000036 sec
    -- Total time merge_contexts_delete: 0.000620 sec
linux5*CLI> exit
/dev/pts/0
16:29:10
#vim extensions.conf
/dev/pts/1
16:29:10
#vim extensions.conf
--- /tmp/l3-saved-5151.395.27051	2013-04-08 17:29:11.000000000 +0300
+++ extensions.conf	2013-04-08 17:30:49.000000000 +0300
@@ -6,4 +6,7 @@
  same =>      n,Playback(welcome)
  same =>      n,Playback(demo-congrats)
 
+exten => 9000,1,Answer
+ same =>      n,Dial(SIP/192.168.70.101)
+
 exten => _21XX,1,Dial(SIP/${EXTEN},30)
/dev/pts/0
16:30:49
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000033 sec
    -- Total time merge_contexts_delete: 0.000654 sec
  == Using SIP RTP CoS mark 5
    -- Executing [9000@default:1] Answer("SIP/2101-00000005", "") in new stack
    -- Executing [9000@default:2] Dial("SIP/2101-00000005", "SIP/192.168.70.101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 192.168.70.101
  == Spawn extension (default, 9000, 2) exited non-zero on 'SIP/2101-00000005'
linux5*CLI> exit
/dev/pts/1
16:30:49
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000033 sec
    -- Total time merge_contexts_delete: 0.000654 sec
  == Using SIP RTP CoS mark 5
    -- Executing [9000@default:1] Answer("SIP/2101-00000005", "") in new stack
    -- Executing [9000@default:2] Dial("SIP/2101-00000005", "SIP/192.168.70.101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 192.168.70.101
  == Spawn extension (default, 9000, 2) exited non-zero on 'SIP/2101-00000005'
linux5*CLI> exit
/dev/pts/0
16:31:09
#ping 192.168.70.101
PING 192.168.70.101 (192.168.70.101) 56(84) bytes of data.
^C
--- 192.168.70.101 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1006ms
/dev/pts/1
16:31:09
#ping 192.168.70.101
PING 192.168.70.101 (192.168.70.101) 56(84) bytes of data.
^C
--- 192.168.70.101 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1006ms
/dev/pts/0
16:31:17
#ping 192.168.70.100
PING 192.168.70.100 (192.168.70.100) 56(84) bytes of data.
^C
--- 192.168.70.100 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
/dev/pts/1
16:31:17
#ping 192.168.70.100
PING 192.168.70.100 (192.168.70.100) 56(84) bytes of data.
^C
--- 192.168.70.100 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
/dev/pts/0
16:31:21
#ping 192.168.70.102
PING 192.168.70.102 (192.168.70.102) 56(84) bytes of data.
^C
--- 192.168.70.102 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1006ms
/dev/pts/1
16:31:21
#ping 192.168.70.102
PING 192.168.70.102 (192.168.70.102) 56(84) bytes of data.
^C
--- 192.168.70.102 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1006ms
/dev/pts/0
16:31:23
#ping 192.168.70.101
PING 192.168.70.101 (192.168.70.101) 56(84) bytes of data.
^C
--- 192.168.70.101 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
/dev/pts/1
16:31:23
#ping 192.168.70.101
PING 192.168.70.101 (192.168.70.101) 56(84) bytes of data.
^C
--- 192.168.70.101 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
/dev/pts/0
16:31:26
#ping 192.168.60.101
PING 192.168.60.101 (192.168.60.101) 56(84) bytes of data.
64 bytes from 192.168.60.101: icmp_req=1 ttl=249 time=79.1 ms
^C
--- 192.168.60.101 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 79.182/79.182/79.182/0.000 ms
/dev/pts/1
16:31:26
#ping 192.168.60.101
PING 192.168.60.101 (192.168.60.101) 56(84) bytes of data.
64 bytes from 192.168.60.101: icmp_req=1 ttl=249 time=79.1 ms
^C
--- 192.168.60.101 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 79.182/79.182/79.182/0.000 ms
/dev/pts/0
16:31:32
#ping 192.168.60.102
PING 192.168.60.102 (192.168.60.102) 56(84) bytes of data.
^C
--- 192.168.60.102 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
/dev/pts/1
16:31:32
#ping 192.168.60.102
PING 192.168.60.102 (192.168.60.102) 56(84) bytes of data.
^C
--- 192.168.60.102 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
/dev/pts/0
16:31:33
#ping 192.168.60.100
PING 192.168.60.100 (192.168.60.100) 56(84) bytes of data.
^C
--- 192.168.60.100 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
/dev/pts/1
16:31:33
#ping 192.168.60.100
PING 192.168.60.100 (192.168.60.100) 56(84) bytes of data.
^C
--- 192.168.60.100 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
/dev/pts/0
16:31:35
#vim extensions.conf
/dev/pts/1
16:31:35
#vim extensions.conf
--- /tmp/l3-saved-5151.3959.21188	2013-04-08 17:31:40.000000000 +0300
+++ extensions.conf	2013-04-08 17:31:58.000000000 +0300
@@ -7,6 +7,6 @@
  same =>      n,Playback(demo-congrats)
 
 exten => 9000,1,Answer
- same =>      n,Dial(SIP/192.168.70.101)
+ same =>      n,Dial(SIP/192.168.60.101)
 
 exten => _21XX,1,Dial(SIP/${EXTEN},30)
/dev/pts/0
16:31:58
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- Total time merge_contexts_delete: 0.000611 sec
  == Using SIP RTP CoS mark 5
    -- Executing [9000@default:1] Answer("SIP/2101-00000007", "") in new stack
    -- Executing [9000@default:2] Dial("SIP/2101-00000007", "SIP/192.168.60.101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 192.168.60.101
    -- SIP/192.168.60.101-00000008 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Auto fallthrough, channel 'SIP/2101-00000007' status is 'CONGESTION'
linux5*CLI> exit
/dev/pts/1
16:31:58
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- Total time merge_contexts_delete: 0.000611 sec
  == Using SIP RTP CoS mark 5
    -- Executing [9000@default:1] Answer("SIP/2101-00000007", "") in new stack
    -- Executing [9000@default:2] Dial("SIP/2101-00000007", "SIP/192.168.60.101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 192.168.60.101
    -- SIP/192.168.60.101-00000008 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Auto fallthrough, channel 'SIP/2101-00000007' status is 'CONGESTION'
linux5*CLI> exit
/dev/pts/0
16:33:01
#vim extensions.conf
/dev/pts/1
16:33:01
#vim extensions.conf
--- /tmp/l3-saved-5151.23346.23428	2013-04-08 17:33:03.000000000 +0300
+++ extensions.conf	2013-04-08 17:34:01.000000000 +0300
@@ -6,7 +6,6 @@
  same =>      n,Playback(welcome)
  same =>      n,Playback(demo-congrats)
 
-exten => 9000,1,Answer
- same =>      n,Dial(SIP/192.168.60.101)
-
 exten => _21XX,1,Dial(SIP/${EXTEN},30)
+exten => _1021XX,1,Dial(SIP/${EXTEN:2},30)
+exten => _10XX21XX,1,Dial(SIP/${EXTEN:4},30)
/dev/pts/0
16:34:02
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
[ Context 'default' created by 'pbx_config' ]
  '8000' =>         1. Answer()                                   [pbx_config]
                    2. Wait(2)                                    [pbx_config]
                    3. Playback(welcome)                          [pbx_config]
                    4. Playback(demo-congrats)                    [pbx_config]
  '_1021XX' =>      1. Dial(SIP/${EXTEN:2},30)                    [pbx_config]
  '_10XX21XX' =>    1. Dial(SIP/${EXTEN:4},30)                    [pbx_config]
  '_21XX' =>        1. Dial(SIP/${EXTEN},30)                      [pbx_config]
-= 4 extensions (7 priorities) in 1 context. =-
linux5*CLI> exit
/dev/pts/1
16:34:02
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
[ Context 'default' created by 'pbx_config' ]
  '8000' =>         1. Answer()                                   [pbx_config]
                    2. Wait(2)                                    [pbx_config]
                    3. Playback(welcome)                          [pbx_config]
                    4. Playback(demo-congrats)                    [pbx_config]
  '_1021XX' =>      1. Dial(SIP/${EXTEN:2},30)                    [pbx_config]
  '_10XX21XX' =>    1. Dial(SIP/${EXTEN:4},30)                    [pbx_config]
  '_21XX' =>        1. Dial(SIP/${EXTEN},30)                      [pbx_config]
-= 4 extensions (7 priorities) in 1 context. =-
linux5*CLI> exit
/dev/pts/0
16:34:35
#vim extensions.conf
/dev/pts/1
16:34:35
#vim extensions.conf
--- /tmp/l3-saved-5151.23022.15296	2013-04-08 17:34:59.000000000 +0300
+++ extensions.conf	2013-04-08 17:35:22.000000000 +0300
@@ -8,4 +8,4 @@
 
 exten => _21XX,1,Dial(SIP/${EXTEN},30)
 exten => _1021XX,1,Dial(SIP/${EXTEN:2},30)
-exten => _10XX21XX,1,Dial(SIP/${EXTEN:4},30)
+exten => _1021XX10,1,Dial(SIP/${EXTEN:4},30)
/dev/pts/0
16:35:22
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- SIP/2110-0000000e is ringing
  == Spawn extension (default, 102110, 1) exited non-zero on 'SIP/2101-0000000d'
  == Using SIP RTP CoS mark 5
    -- Executing [10211010@default:1] Dial("SIP/2101-0000000f", "SIP/1010,30") in new stack
  == Using SIP RTP CoS mark 5
[Apr  8 17:35:58] WARNING[5556]: chan_sip.c:5470 create_addr: No such host: 1010
[Apr  8 17:35:58] WARNING[5556]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/2101-0000000f' status is 'CHANUNAVAIL'
linux5*CLI> exit
/dev/pts/1
16:35:22
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- SIP/2110-0000000e is ringing
  == Spawn extension (default, 102110, 1) exited non-zero on 'SIP/2101-0000000d'
  == Using SIP RTP CoS mark 5
    -- Executing [10211010@default:1] Dial("SIP/2101-0000000f", "SIP/1010,30") in new stack
  == Using SIP RTP CoS mark 5
[Apr  8 17:35:58] WARNING[5556]: chan_sip.c:5470 create_addr: No such host: 1010
[Apr  8 17:35:58] WARNING[5556]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/2101-0000000f' status is 'CHANUNAVAIL'
linux5*CLI> exit
/dev/pts/0
16:36:23
#vim extensions.conf
/dev/pts/1
16:36:23
#vim extensions.conf
--- /tmp/l3-saved-5151.29616.13437	2013-04-08 17:36:25.000000000 +0300
+++ extensions.conf	2013-04-08 17:36:51.000000000 +0300
@@ -8,4 +8,4 @@
 
 exten => _21XX,1,Dial(SIP/${EXTEN},30)
 exten => _1021XX,1,Dial(SIP/${EXTEN:2},30)
-exten => _1021XX10,1,Dial(SIP/${EXTEN:4},30)
+exten => _1021XX10,1,Dial(SIP/${EXTEN:2:4},30)
/dev/pts/0
16:36:55
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000038 sec
    -- Total time merge_contexts_delete: 0.000628 sec
  == Using SIP RTP CoS mark 5
    -- Executing [10211010@default:1] Dial("SIP/2101-00000010", "SIP/2110,30") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2110
    -- SIP/2110-00000011 is ringing
  == Spawn extension (default, 10211010, 1) exited non-zero on 'SIP/2101-00000010'
linux5*CLI> exit
/dev/pts/1
16:36:55
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000038 sec
    -- Total time merge_contexts_delete: 0.000628 sec
  == Using SIP RTP CoS mark 5
    -- Executing [10211010@default:1] Dial("SIP/2101-00000010", "SIP/2110,30") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2110
    -- SIP/2110-00000011 is ringing
  == Spawn extension (default, 10211010, 1) exited non-zero on 'SIP/2101-00000010'
linux5*CLI> exit
/dev/pts/0
16:38:00
#vim extensions.conf
/dev/pts/1
16:38:00
#vim extensions.conf
/dev/pts/0
16:38:32
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan show 2101
There is no existence of '2101' context
Command 'dialplan show 2101' failed.
linux5*CLI> dialplan show 2101@default
[ Context 'default' created by 'pbx_config' ]
  '_21XX' =>        1. Dial(SIP/${EXTEN},30)                      [pbx_config]
-= 1 extension (1 priority) in 1 context. =-
linux5*CLI> exit
/dev/pts/1
16:38:32
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 4524)
Verbosity is at least 3
linux5*CLI> dialplan show 2101
There is no existence of '2101' context
Command 'dialplan show 2101' failed.
linux5*CLI> dialplan show 2101@default
[ Context 'default' created by 'pbx_config' ]
  '_21XX' =>        1. Dial(SIP/${EXTEN},30)                      [pbx_config]
-= 1 extension (1 priority) in 1 context. =-
linux5*CLI> exit

Вторник (04/09/13)

/dev/pts/0
08:41:25
#nano /etc/asterisk/users.conf
/dev/pts/2
08:41:25
#nano /etc/asterisk/users.conf
/dev/pts/0
08:41:56
#;

/dev/pts/2
08:41:56
#;

/dev/pts/0
08:42:16
#; "sip.conf" file
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 1553)
linux5*CLI> sip reload
[Apr  9 09:45:55] NOTICE[1597]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2110
linux5*CLI> exit
/dev/pts/2
08:42:16
#; "sip.conf" file
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 1553)
linux5*CLI> sip reload
[Apr  9 09:45:55] NOTICE[1597]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2110
linux5*CLI> exit
прошло 13 минут
/dev/pts/0
08:55:56
#screen
/dev/pts/2
08:55:56
#screen
/dev/pts/4
08:56:05
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 1553)
[Apr  9 10:04:16] NOTICE[1597]: chan_sip.c:21812 handle_request_register: Registration from '<sip:minsk@192.168.50.1>' failed for '192.168.60.1' - No matching peer found
linux5*CLI> sip reload
...
    -- Called minsk/1201
    -- SIP/minsk-000000b8 is ringing
  == Spawn extension (user_group3, 1201, 1) exited non-zero on 'SIP/2101-000000b7'
  == Using SIP RTP CoS mark 5
    -- Executing [1101@user_group3:1] Dial("SIP/2101-000000b9", "SIP/minsk/1101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called minsk/1101
    -- SIP/minsk-000000ba is ringing
  == Spawn extension (user_group3, 1101, 1) exited non-zero on 'SIP/2101-000000b9'
linux5*CLI> exit
/dev/pts/6
08:56:14
#cd /etc/asterisk/

08:56:17
#vim sip.conf
--- /tmp/l3-saved-2580.29213.2149	2013-04-09 09:56:23.000000000 +0300
+++ sip.conf	2013-04-09 10:04:20.000000000 +0300
@@ -2,6 +2,7 @@
 
 [general]
 context=default
+register => bobruisk:1234@192.168.60.1/minsk
 
 ; SIP-peer
 [2101]
@@ -18,3 +19,11 @@
 type=friend
 secret=4321
 host=dynamic
+
+[minsk]
+type=friend
+username=bobruisk
+secret=1234
+host=dynamic
+canreinvite=no
+
прошло 14 минут
09:10:18
#[general]
[       ]
[       ]
[default]
exten => 8000,1,Answer
exten => _21xxn,,dial(sip  {exten
 xten => _1021XX10,1,Dial(SIP/${EXTEN:2:4},30)
exten => _11XX,1,Dial(SIP/minsk/${EXTEN})
exten => _12XX,1,Dial(SIP/minsk/${EXTEN})
exten => _13XX,1,Dial(SIP/minsk/${EXTEN})
exten => _14XX,1,Dial(SIP/minsk/${EXTEN})
exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
exten => _23XX,1,Dial(SIP/minsk/${EXTEN})
exten => _23XX,1,Dial(SIP/minsk/${EXTEN})
~
exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
~
~
"extensions.conf" 19L, 533C written
прошло 32 минуты
09:43:08
#vim sip.conf
--- /tmp/l3-saved-2580.19574.23313	2013-04-09 10:43:11.000000000 +0300
+++ sip.conf	2013-04-09 10:43:49.000000000 +0300
@@ -2,6 +2,7 @@
 
 [general]
 context=default
+qualify=yes
 register => bobruisk:1234@192.168.60.1/minsk
 
 ; SIP-peer
09:50:45
#vim sip.conf
--- /tmp/l3-saved-2580.360.1021	2013-04-09 10:50:52.000000000 +0300
+++ sip.conf	2013-04-09 10:52:00.000000000 +0300
@@ -8,16 +8,19 @@
 ; SIP-peer
 [2101]
 type=friend
+callerid="Sergey Kuranda"
 secret=4321
 host=dynamic
 
 [2102]
 type=friend
+callerid="Sergey Kuranda"
 secret=4321
 host=dynamic
 
 [2110]
 type=friend
+callerid="Sergey Kuranda"
 secret=4321
 host=dynamic
 
09:52:00
#vim extensions.conf
--- /tmp/l3-saved-2580.591.4569	2013-04-09 11:45:37.000000000 +0300
+++ extensions.conf	2013-04-09 11:54:07.000000000 +0300
@@ -1,19 +1,42 @@
 ; extension.conf
 
 [default]
+
+[internal]
 exten => 8000,1,Answer
  same =>      n,Wait(2)
  same =>      n,Playback(welcome)
  same =>      n,Playback(demo-congrats)
 
+[local]
 exten => _21XX,1,Dial(SIP/${EXTEN})
 exten => _1021XX,1,Dial(SIP/${EXTEN:2})
 exten => _1021XX10,1,Dial(SIP/${EXTEN:2:4})
 
+[national]
+exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
+exten => _23XX,1,Dial(SIP/minsk/${EXTEN})
+
+[international]
 exten => _11XX,1,Dial(SIP/minsk/${EXTEN})
 exten => _12XX,1,Dial(SIP/minsk/${EXTEN})
 exten => _13XX,1,Dial(SIP/minsk/${EXTEN})
 exten => _14XX,1,Dial(SIP/minsk/${EXTEN})
-exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
-exten => _23XX,1,Dial(SIP/minsk/${EXTEN})
 
+[user_group1]
+include => internal 
+include => local
+;include => national
+;include => international
+
+[user_group2]
+include => internal 
+include => local
+include => national
+;include => international
+
+[user_group3]
+include => internal 
+include => local
+include => national
+include => international
прошло 62 минуты
10:54:41
#[ ]
[2110]
[2102]
[onte]t=user_grour2
[ype=]riend
callerid="Sergey Kuranda"
secret=4321
[2110]
[onte]t=user_grour1
[ost=]ynamic
[minsk]
[minsk]
[minsk]
type=friend
username=bobruisk
secret=1234
host=dynamic
canreinvite=no
-- INSERT --                                                                                        35,15         85%
прошло 13 минут
11:07:42
#vim sip.conf
--- /tmp/l3-saved-2580.17318.1473	2013-04-09 12:07:43.000000000 +0300
+++ sip.conf	2013-04-09 12:07:59.000000000 +0300
@@ -28,7 +28,7 @@
 host=dynamic
 
 [minsk]
-context=user_group1
+context=incoming
 type=friend
 username=bobruisk
 secret=1234
11:07:59
#vim sip.conf
11:12:55
#[general]
include => national
;include => international
[user_group3]
[           ]
include => local
include => national
include => internal
include => local
include => national
 nclude => international
...
 same =>       n,Monitor(wav,${CALLFILENAME},m)
 same =>       n,Dial(SIP/${EXTEN})
[national]
exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
exten => _23XX,1,Dial(SIP/minsk/${EXTEN})
[international]
exten => _11XX,1,Dial(SIP/minsk/${EXTEN})
exten => _12XX,1,Dial(SIP/minsk/${EXTEN})
exten => _13XX,1,Dial(SIP/minsk/${EXTEN})
exten => _14XX,1,Dial(SIP/minsk/${EXTEN})
прошла 91 минута
/dev/pts/4
12:44:36
#mkdir /var/tmp/message/

12:44:53
#chown asterisk:asterisk /var/tmp/message/

12:45:09
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 1553)
Verbosity is at least 3
linux5*CLI> dialplan reload
...
    -- SIP/2102-000000dd is ringing
    -- Nobody picked up in 10000 ms
    -- Executing [2102@user_group3:3] VoiceMail("SIP/2101-000000dc", "2102@default") in new stack
    -- <SIP/2101-000000dc> Playing 'vm-intro.gsm' (language 'es-co')
  == Spawn extension (user_group3, 2102, 3) exited non-zero on 'SIP/2101-000000dc'
linux5*CLI> core restart
gracefully  now         when
linux5*CLI> core restart gracefully
linux5*CLI>
Disconnected from Asterisk server
прошло 10 минут
/dev/pts/8
12:56:05
#apt-get install sox
Reading package lists... Done
Building dependency tree
Reading state information... Done
sox is already the newest version.
sox set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
12:56:13
#ls /var/spool/asterisk/monitor/

12:56:25
#ls /var/spool/asterisk/monitor/

12:57:03
#^C

12:57:08
#^C

12:57:09
#ls /var/spool/asterisk/monitor/

12:59:50
#ls /var/spool/asterisk/monitor/
filename.wav
/dev/pts/0
13:02:00
#screen -x
/dev/pts/2
13:02:00
#screen -x
/dev/pts/8
13:05:22
#ls /var/spool/asterisk/monitor/
2101-1301-1365505541.wav  2102-2101-1365505533.wav  2110-2101-1365505527.wav  filename.wav
13:06:26
#rm /var/spool/asterisk/monitor/filename.wav

13:06:52
#apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  samba-common samba-common-bin
account_policy_get: tdb_fetch_uint32 failed for type 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0
Importing account for nobody...ok
Importing account for user...ok
Adding group `sambashare' (GID 115) ...
Done.
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
Starting Samba daemons: nmbd smbd.
Setting up samba-common-bin (2:3.5.6~dfsg-3squeeze9) ...
update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode.
update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode.
update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode.
13:07:44
#vim /etc/samba/smb.conf
--- /tmp/l3-saved-3187.5885.17333	2013-04-09 14:07:53.000000000 +0300
+++ /etc/samba/smb.conf	2013-04-09 14:09:04.000000000 +0300
@@ -302,12 +302,12 @@
 ;   write list = root, @lpadmin
 
 # A sample share for sharing your CD-ROM with others.
-;[cdrom]
-;   comment = Samba server's CD-ROM
-;   read only = yes
-;   locking = no
-;   path = /cdrom
-;   guest ok = yes
+[monitor]
+   comment = Linux 5 PC Monitor Path
+   read only = yes
+   locking = no
+   path = /var/spool/asterisk/monitor
+   guest ok = yes
 
 # The next two parameters show how to auto-mount a CD-ROM when the
 #	cdrom share is accesed. For this to work /etc/fstab must contain
13:09:04
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
13:11:01
#vim /etc/group
--- /tmp/l3-saved-3187.30636.29130	2013-04-09 14:12:01.000000000 +0300
+++ /etc/group	2013-04-09 14:12:42.000000000 +0300
@@ -42,7 +42,7 @@
 Debian-exim:x:103:
 mlocate:x:104:
 ssh:x:105:
-user:x:1000:
+user:x:1000:asterisk
 messagebus:x:106:
 avahi:x:107:
 netdev:x:108:
13:13:02
#tail -f /var/log/
alternatives.log     daemon.log           fontconfig.log       mail.info            syslog
apt/                 debug                fsck/                mail.log             syslog.1
aptitude             dmesg                gdm3/                mail.warn            unattended-upgrades/
asterisk/            dmesg.0              installer/           messages             user.log
auth.log             dmesg.1.gz           kern.log             news/                wtmp
boot                 dpkg.log             lastlog              pm-powersave.log     Xorg.0.log
btmp                 exim4/               lpr.log              pycentral.log        Xorg.0.log.old
ConsoleKit/          faillog              mail.err             samba/
13:13:02
#tail -f /var/log/samba/
cores/                     log.lenovo-it              log.smbd
log.__ffff_192.168.50.100  log.nmbd
13:13:02
#tail -f /var/log/samba/log.smbd
  smbd version 3.5.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2013/04/09 14:13:02.962544,  0] printing/print_cups.c:108(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2013/04/09 14:13:02.965480,  0] printing/print_cups.c:108(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2013/04/09 14:13:02.979607,  0] smbd/server.c:500(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2013/04/09 14:13:02.979782,  0] smbd/server.c:500(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
^C
13:14:51
#tail -f /var/log/samba/log.
log.__ffff_192.168.50.100  log.lenovo-it              log.nmbd                   log.smbd
13:14:51
#tail -f /var/log/samba/log.nmbd
  Got SIGTERM: going down...
[2013/04/09 14:13:02,  0] nmbd/nmbd.c:857(main)
  nmbd version 3.5.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2013/04/09 14:13:33.736365,  0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
  *****
  Samba name server LINUX5 is now a local master browser for workgroup WORKGROUP on subnet 192.168.50.1
  *****
^C
13:15:01
#tail -f /var/log/samba/log.
log.__ffff_192.168.50.100  log.lenovo-it              log.nmbd                   log.smbd
13:15:01
#tail -f /var/log/samba/log.__ffff_192.168.50.100
^C
13:15:12
#tail -f /var/log/samba/log.smbd
  smbd version 3.5.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2013/04/09 14:13:02.962544,  0] printing/print_cups.c:108(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2013/04/09 14:13:02.965480,  0] printing/print_cups.c:108(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2013/04/09 14:13:02.979607,  0] smbd/server.c:500(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2013/04/09 14:13:02.979782,  0] smbd/server.c:500(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
^C
13:21:09
#id user
uid=1000(user) gid=1000(user) groups=1000(user),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev)
13:23:17
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
13:25:45
#apt-get install sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 sendmail : Depends: sendmail-bin but it is not going to be installed
E: Broken packages

Статистика

Время первой команды журнала16:19:01 2013- 4- 8
Время последней команды журнала13:25:45 2013- 4- 9
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %16.83
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 1.94
Количество командных строк в единицу времени, команда/мин 0.87
Частота использования команд
vim23|=====================| 21.90%
asterisk14|=============| 13.33%
ping14|=============| 13.33%
tail8|=======| 7.62%
ls7|======| 6.67%
dpkg6|=====| 5.71%
grep6|=====| 5.71%
screen4|===| 3.81%
[default]4|===| 3.81%
apt-get3|==| 2.86%
"sip.conf"2|=| 1.90%
/etc/init.d/samba2|=| 1.90%
nano2|=| 1.90%
[general]2|=| 1.90%
^C2|=| 1.90%
mkdir1|| 0.95%
chown1|| 0.95%
rm1|| 0.95%
cd1|| 0.95%
[1|| 0.95%
id1|| 0.95%
____
*) Интервалы неактивности длительностью 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$