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

Содержание

Журнал

Вторник (03/29/16)

/dev/pts/7
13:30:16
$asterisk -r
bash: asterisk: command not found
/dev/pts/0
13:30:16
$asterisk -r
bash: asterisk: command not found
/dev/pts/5
13:30:29
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI>
asterisk3*CLI>
...
asterisk3*CLI> sip show press
No such command 'sip show press' (type 'core show help sip show press' for other possible commands)
asterisk3*CLI> sip show pres
No such command 'sip show pres' (type 'core show help sip show pres' for other possible commands)
asterisk3*CLI> pirs
No such command 'pirs' (type 'core show help pirs' for other possible commands)
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/7
13:30:29
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI>
asterisk3*CLI>
...
asterisk3*CLI> sip show press
No such command 'sip show press' (type 'core show help sip show press' for other possible commands)
asterisk3*CLI> sip show pres
No such command 'sip show pres' (type 'core show help sip show pres' for other possible commands)
asterisk3*CLI> pirs
No such command 'pirs' (type 'core show help pirs' for other possible commands)
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/0
13:30:29
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI>
asterisk3*CLI>
...
asterisk3*CLI> sip show press
No such command 'sip show press' (type 'core show help sip show press' for other possible commands)
asterisk3*CLI> sip show pres
No such command 'sip show pres' (type 'core show help sip show pres' for other possible commands)
asterisk3*CLI> pirs
No such command 'pirs' (type 'core show help pirs' for other possible commands)
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/5
13:32:59
$asterisk -r
bash: asterisk: command not found
/dev/pts/7
13:32:59
$asterisk -r
bash: asterisk: command not found
/dev/pts/0
13:32:59
$asterisk -r
bash: asterisk: command not found
/dev/pts/5
13:33:05
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
...
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
1301/1301                 192.168.30.101                           D  Auto (No)  No             5060     Unmonitored
1302/1302                 192.168.30.100                           D  Auto (No)  No             47623    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
[Mar 29 14:52:12] NOTICE[5698][C-00000003]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1301' rejected because extension not found in context 'default'.
[Mar 29 14:54:14] NOTICE[5698][C-00000004]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1302' rejected because extension not found in context 'default'.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/7
13:33:05
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
...
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
1301/1301                 192.168.30.101                           D  Auto (No)  No             5060     Unmonitored
1302/1302                 192.168.30.100                           D  Auto (No)  No             47623    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
[Mar 29 14:52:12] NOTICE[5698][C-00000003]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1301' rejected because extension not found in context 'default'.
[Mar 29 14:54:14] NOTICE[5698][C-00000004]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1302' rejected because extension not found in context 'default'.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/0
13:33:05
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
...
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
1301/1301                 192.168.30.101                           D  Auto (No)  No             5060     Unmonitored
1302/1302                 192.168.30.100                           D  Auto (No)  No             47623    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
[Mar 29 14:52:12] NOTICE[5698][C-00000003]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1301' rejected because extension not found in context 'default'.
[Mar 29 14:54:14] NOTICE[5698][C-00000004]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1302' rejected because extension not found in context 'default'.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
прошло 28 минут
/dev/pts/5
14:02:00
$asterisk -r
bash: asterisk: command not found
/dev/pts/7
14:02:00
$asterisk -r
bash: asterisk: command not found
/dev/pts/0
14:02:00
$asterisk -r
bash: asterisk: command not found
/dev/pts/5
14:02:17
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan reload
Dialplan reloaded.
[Mar 29 15:02:38] NOTICE[5698][C-00000005]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '4000' rejected because extension not found in context 'default'.
[Mar 29 15:02:58] NOTICE[5698][C-00000006]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4000' rejected because extension not found in context 'default'.
asterisk3*CLI> dialplan reload
Dialplan reloaded.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/7
14:02:17
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan reload
Dialplan reloaded.
[Mar 29 15:02:38] NOTICE[5698][C-00000005]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '4000' rejected because extension not found in context 'default'.
[Mar 29 15:02:58] NOTICE[5698][C-00000006]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4000' rejected because extension not found in context 'default'.
asterisk3*CLI> dialplan reload
Dialplan reloaded.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/0
14:02:17
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan reload
Dialplan reloaded.
[Mar 29 15:02:38] NOTICE[5698][C-00000005]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '4000' rejected because extension not found in context 'default'.
[Mar 29 15:02:58] NOTICE[5698][C-00000006]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4000' rejected because extension not found in context 'default'.
asterisk3*CLI> dialplan reload
Dialplan reloaded.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/5
14:03:20
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/7
14:03:20
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/0
14:03:20
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/5
14:03:42
$~
[default]
exten => 4000,1,playback(demo-thanks)
/dev/pts/7
14:03:42
$~
[default]
exten => 4000,1,playback(demo-thanks)
/dev/pts/0
14:03:42
$~
[default]
exten => 4000,1,playback(demo-thanks)
/dev/pts/5
14:03:44
$sudo mv mv /etc/asterisk/extensions.conf

/dev/pts/7
14:03:44
$sudo mv mv /etc/asterisk/extensions.conf

/dev/pts/0
14:03:44
$sudo mv mv /etc/asterisk/extensions.conf

/dev/pts/5
14:04:01
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan reload
Dialplan reloaded.
[Mar 29 15:04:38] NOTICE[7087][C-00000008]: channel.c:4301 __ast_read: Dropping incompatible voice frame on SIP/1302-00000001 of format ulaw since our native format has changed to (gsm)
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/7
14:04:01
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan reload
Dialplan reloaded.
[Mar 29 15:04:38] NOTICE[7087][C-00000008]: channel.c:4301 __ast_read: Dropping incompatible voice frame on SIP/1302-00000001 of format ulaw since our native format has changed to (gsm)
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/0
14:04:01
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan reload
Dialplan reloaded.
[Mar 29 15:04:38] NOTICE[7087][C-00000008]: channel.c:4301 __ast_read: Dropping incompatible voice frame on SIP/1302-00000001 of format ulaw since our native format has changed to (gsm)
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/5
14:11:06
$mkdir -p /var/tmp/asterisk

/dev/pts/7
14:11:06
$mkdir -p /var/tmp/asterisk

/dev/pts/0
14:11:06
$mkdir -p /var/tmp/asterisk

/dev/pts/5
14:12:46
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted
/dev/pts/7
14:12:46
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted
/dev/pts/0
14:12:46
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted
/dev/pts/5
14:13:19
$sudo chown asterisk:asterisk /var/tmp/asterisk

/dev/pts/7
14:13:19
$sudo chown asterisk:asterisk /var/tmp/asterisk

/dev/pts/0
14:13:19
$sudo chown asterisk:asterisk /var/tmp/asterisk

/dev/pts/5
14:13:29
$asterisk -r
bash: asterisk: command not found
/dev/pts/7
14:13:29
$asterisk -r
bash: asterisk: command not found
/dev/pts/0
14:13:29
$asterisk -r
bash: asterisk: command not found
/dev/pts/5
14:15:28
$asterisk -r
                    dialplan reload
bash: dialplan: command not found
/dev/pts/7
14:15:28
$asterisk -r
                    dialplan reload
bash: dialplan: command not found
/dev/pts/0
14:15:28
$asterisk -r
                    dialplan reload
bash: dialplan: command not found
/dev/pts/5
14:15:48
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan re
reload  remove
asterisk3*CLI> dialplan re
reload  remove
asterisk3*CLI> dialplan reload
Dialplan reloaded.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/7
14:15:48
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan re
reload  remove
asterisk3*CLI> dialplan re
reload  remove
asterisk3*CLI> dialplan reload
Dialplan reloaded.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/0
14:15:48
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan re
reload  remove
asterisk3*CLI> dialplan re
reload  remove
asterisk3*CLI> dialplan reload
Dialplan reloaded.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/5
14:19:05
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/7
14:19:05
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/0
14:19:05
$sudo vim /etc/asterisk/extensions.conf
прошло 16 минут
/dev/pts/5
14:35:11
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/7
14:35:11
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/0
14:35:11
$sudo vim /etc/asterisk/extensions.conf
прошло 10 минут
/dev/pts/5
14:45:45
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/7
14:45:45
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/0
14:45:45
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/5
14:49:48
$~
register => minsk:1234@192.168.40.2/vitebsk
[1301]t=default
[1301]
[1301]
[1302]
[1302]riend
secret=1234
[vitebsk]
type=friend
secret=1234
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 23L, 257C written
/dev/pts/7
14:49:48
$~
register => minsk:1234@192.168.40.2/vitebsk
[1301]t=default
[1301]
[1301]
[1302]
[1302]riend
secret=1234
[vitebsk]
type=friend
secret=1234
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 23L, 257C written
/dev/pts/0
14:49:48
$~
register => minsk:1234@192.168.40.2/vitebsk
[1301]t=default
[1301]
[1301]
[1302]
[1302]riend
secret=1234
[vitebsk]
type=friend
secret=1234
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 23L, 257C written
прошло 13 минут
/dev/pts/5
15:02:51
$sudo vim /etc/asterisk/sip.conf
/dev/pts/7
15:02:51
$sudo vim /etc/asterisk/sip.conf
/dev/pts/0
15:02:51
$sudo vim /etc/asterisk/sip.conf
/dev/pts/5
15:03:37
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> sip reload
asterisk3*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
1301/1301                 192.168.30.101                           D  Auto (No)  No             5060     Unmonitored
1302/1302                 192.168.30.100                           D  Auto (No)  No             47623    Unmonitored
vitebsk/minsk             192.168.30.1                             D  Auto (No)  No             5060     Unmonitored
3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline]
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/7
15:03:37
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> sip reload
asterisk3*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
1301/1301                 192.168.30.101                           D  Auto (No)  No             5060     Unmonitored
1302/1302                 192.168.30.100                           D  Auto (No)  No             47623    Unmonitored
vitebsk/minsk             192.168.30.1                             D  Auto (No)  No             5060     Unmonitored
3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline]
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/0
15:03:37
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> sip reload
asterisk3*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
1301/1301                 192.168.30.101                           D  Auto (No)  No             5060     Unmonitored
1302/1302                 192.168.30.100                           D  Auto (No)  No             47623    Unmonitored
vitebsk/minsk             192.168.30.1                             D  Auto (No)  No             5060     Unmonitored
3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline]
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
прошло 27 минут
/dev/pts/5
15:31:30
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/7
15:31:30
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/0
15:31:30
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/5
15:39:59
$sudo vim /etc/asterisk/sip.conf
/dev/pts/7
15:39:59
$sudo vim /etc/asterisk/sip.conf
/dev/pts/0
15:39:59
$sudo vim /etc/asterisk/sip.conf

Среда (03/30/16)

/dev/pts/0
09:06:59
$sudo vim /etc/asterisk/sip.conf
/dev/pts/2
09:07:05
$ssh user@192.168.30.1
user@192.168.30.1's password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have mail.
Last login: Wed Mar 30 10:03:35 2016 from m6
vipicoeevimnanol3-agent is already running: pid=27049; pidfile=/home/user/.lilalo/l3-agent.pid
09:07:17
$screen -x
прошло 16 минут
/dev/pts/0
09:23:53
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> sip
notify      prune       qualify     reload      set         show
...
asterisk3*CLI>
asterisk3*CLI>
asterisk3*CLI>
asterisk3*CLI>
asterisk3*CLI>
asterisk3*CLI>
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
09:33:26
$sudo vim /etc/asterisk/sip.conf
09:33:33
$type=friend
[       ]
[vitebsk]
"/etc/asterisk/sip.conf" 46L, 597C
type=friend
secret=1234
host=dynamic
[1301]
[1301]invaite=no
directmedia=no
;username=minsk
defaultuser=minsk
[warsaw]
type=friend
secret=1234
host=dynamic
;canreinvaite=no
directmedia=no
;username=minsk
defaultuser=minsk
[kiev]
type=friend                                               13,0-1        Top
09:33:46
$[1302]
[local]
[       ]               (           )
[       ]
[xten =>]4000,1,playback(demo-thanks)
[       ]
[       ]
exten => _40XX,1,record(/var/tmp/asterisk/message${EXTEN:2}:gsm)
ex                   (            )
exten => _40XX,n,playback(/var/tmp/asterisk/message${EXTEN:2})
ex                   (                    )
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/extensions.conf" 22L, 569C written
прошло 12 минут
09:46:37
$sudo vim /etc/asterisk/sip.conf
09:48:06
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> sip reload
asterisk3*CLI> dialplan reload
Dialplan reloaded.
[Mar 30 10:48:25] NOTICE[5698][C-00000036]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '2302' rejected because extension not found in context 'gr2'.
[Mar 30 10:49:05] NOTICE[5698][C-0000003a]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1401' rejected because extension not found in context 'gr2'.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
09:50:54
$sudo vim /etc/asterisk/sip.conf
09:51:43
$[ ]
"/etc/asterisk/sip.conf" 47L, 605C
[vitebsk]
type=friend
secret=1234
[1301]
[1301]ynamic
;canreinvaite=no
[1302]media=no
[1302]
;username=minsk
...
[       ]
[warsaw]]
type=friend
secret=1234
host=dynamic
;canreinvaite=no
directmedia=no
;username=minsk
defaultuser=minsk
"/etc/asterisk/sip.conf" 47L, 607C written
09:52:08
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan reload
Dialplan reloaded.
asterisk3*CLI> sip reload
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
прошло 57 минут
10:49:21
$sudo vim /etc/asterisk/sip.conf
10:51:00
$sudo vim /etc/asterisk/extensions.conf
прошло 55 минут
11:46:54
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> sip reload
asterisk3*CLI> dialplan reload
Dialplan reloaded.
[Mar 30 12:47:06] NOTICE[5698][C-00000047]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4200' rejected because extension not found in context 'gr1'.
[Mar 30 12:47:15] NOTICE[5698][C-00000048]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4200' rejected because extension not found in context 'gr1'.
[Mar 30 12:47:20] NOTICE[5698][C-00000049]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4201' rejected because extension not found in context 'gr1'.
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
11:47:26
$sudo vim /etc/asterisk/extensions.conf
11:49:31
$sudo vim /etc/asterisk/extensions.conf
11:51:16
$[ ]
;
; The arguments passed to this script are <mailbox> <context> <old pw> <new
pw>.
;
; The script should print "VALID" to stdout to indicate that the new passworr
d
; is acceptable.  If the password is considered too weak, the script should
print
; "INVALID" to stdout.
;
...
 have a new voicemail.|emailbody=Click on the attachment to listen.|rip=20100
-06-04
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;[acme]
[other]
"/etc/asterisk/voicemail.conf" 459L, 23811C written
11:55:28
$sudo vim /etc/asterisk/extensions.conf
11:57:26
$sudo vim /etc/asterisk/extensions.conf
12:02:30
$[1302]
exten => _13XX,1,Macro(call)
;exten => _13XX,1,dial(SIP/${EXTEN})
exten => 4000,1,playback(demo-thanks)
exten => _40XX,1,record(/var/tmp/asterisk/message${EXTEN:2}:gsm)
"/etc/asterisk/extensions.conf" 38L, 1119C
exten => _40XX,n,playback(/var/tmp/asterisk/message${EXTEN:2})
exten => _41XX,1,playback(/var/tmp/asterisk/message${EXTEN:2}cro-call])
[default]
;exten => _13XX,1,Macro(call)
;exten => _13XX,1,dial(SIP/${EXTEN})
...
[gr2]
[gr2]
[gr1]
[gr1]
[gr2]
[gr2]
~
~
~
"/etc/asterisk/extensions.conf" 33L, 1083C written
12:05:32
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
asterisk3*CLI> dialplan reload
Dialplan reloaded.
...
[Mar 30 13:05:37] WARNING[8600]: pbx.c:12279 ast_context_verify_includes: Context 'gr2' tries to include nonexistent context 'local'
[Mar 30 13:05:37] WARNING[8600]: pbx.c:12279 ast_context_verify_includes: Context 'gr1' tries to include nonexistent context 'local'
asterisk3*CLI> dialplan reload
Dialplan reloaded.
[Mar 30 13:05:44] WARNING[8600]: pbx.c:12279 ast_context_verify_includes: Context 'gr2' tries to include nonexistent context 'local'
[Mar 30 13:05:44] WARNING[8600]: pbx.c:12279 ast_context_verify_includes: Context 'gr1' tries to include nonexistent context 'local'
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
12:05:47
$sudo vim /etc/asterisk/extensions.conf
12:13:17
$sudo vim /etc/asterisk/extensions.conf
12:16:04
$sudo asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681)
  == Using SIP RTP CoS mark 5
    -- Executing [1302@gr1:1] Macro("SIP/1301-00000079", "call") in new stack
...
    -- SIP/1302-0000007a is ringing
    -- Nobody picked up in 10000 ms
    -- Executing [s@macro-call:3] GotoIf("SIP/1301-00000079", "0?label1") in new stack
    -- Executing [s@macro-call:4] Hangup("SIP/1301-00000079", "") in new stack
  == Spawn extension (macro-call, s, 4) exited non-zero on 'SIP/1301-00000079' in macro 'call'
  == Spawn extension (gr1, 1302, 1) exited non-zero on 'SIP/1301-00000079'
asterisk3*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
12:16:46
$sudo vim /etc/asterisk/extensions.conf
прошло 46 минут
13:03:23
$mail
bash: mail: command not found
13:03:26
$sudo apt-get install bsd-mailx
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  exim4-base exim4-config exim4-daemon-light
Suggested packages:
  eximon4 exim4-doc-html exim4-doc-info spf-tools-perl swaks
Recommended packages:
  mailx
...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u3) ...
Setting up exim4-config (4.84.2-1) ...
Adding system-user for exim (v4)
Setting up exim4-base (4.84.2-1) ...
exim: DB upgrade, deleting hints-db
Setting up exim4-daemon-light (4.84.2-1) ...
Setting up bsd-mailx (8.1.2-0.20141216cvs-2) ...
update-alternatives: using /usr/bin/bsd-mailx to provide /usr/bin/mailx (mailx) in auto mode
Processing triggers for systemd (215-17+deb8u3) ...
13:06:46
$mail
No mail for user
13:06:48
$mail
No mail for user

Статистика

Время первой команды журнала13:30:16 2016- 3-29
Время последней команды журнала13:06:48 2016- 3-30
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 4.95
Процент синтаксически неверно набранных команд, %14.85
Суммарное время работы с терминалом *, час 3.50
Количество командных строк в единицу времени, команда/мин 0.48
Частота использования команд
sudo65|=======================================| 39.16%
asterisk38|======================| 22.89%
vim34|====================| 20.48%
~6|===| 3.61%
chown6|===| 3.61%
mail3|=| 1.81%
mkdir3|=| 1.81%
mv3|=| 1.81%
[2|=| 1.20%
[1302]2|=| 1.20%
type=friend1|| 0.60%
screen1|| 0.60%
apt-get1|| 0.60%
ssh1|| 0.60%
____
*) Интервалы неактивности длительностью 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$