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

Содержание

Журнал

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

/dev/pts/4
11:49:23
$mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.saved
mv: cannot move ‘/etc/asterisk/sip.conf’ to ‘/etc/asterisk/sip.conf.saved’: Permission denied
прошло 83 минуты
/dev/pts/1
13:13:11
$vim /etc/asterisk/sip.conf
/dev/pts/6
13:13:11
$vim /etc/asterisk/sip.conf
/dev/pts/4
13:13:11
$vim /etc/asterisk/sip.conf
прошло 15 минут
/dev/pts/9
13:28:27
#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> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/1
13:29:39
$[general]
[sudo] password for user:
/dev/pts/6
13:29:39
$[general]
[sudo] password for user:
/dev/pts/4
13:29:39
$[general]
[sudo] password for user:
/dev/pts/1
13:30:16
$asterisk -r
bash: asterisk: command not found
/dev/pts/6
13:30:16
$asterisk -r
bash: asterisk: command not found
/dev/pts/4
13:30:16
$asterisk -r
bash: asterisk: command not found
/dev/pts/1
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/6
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/4
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/1
13:32:59
$asterisk -r
bash: asterisk: command not found
/dev/pts/6
13:32:59
$asterisk -r
bash: asterisk: command not found
/dev/pts/4
13:32:59
$asterisk -r
bash: asterisk: command not found
/dev/pts/1
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/6
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/4
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/1
14:02:00
$asterisk -r
bash: asterisk: command not found
/dev/pts/6
14:02:00
$asterisk -r
bash: asterisk: command not found
/dev/pts/4
14:02:00
$asterisk -r
bash: asterisk: command not found
/dev/pts/1
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/6
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/4
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/1
14:03:20
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/6
14:03:20
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/4
14:03:20
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/1
14:03:42
$~
[default]
exten => 4000,1,playback(demo-thanks)
/dev/pts/6
14:03:42
$~
[default]
exten => 4000,1,playback(demo-thanks)
/dev/pts/4
14:03:42
$~
[default]
exten => 4000,1,playback(demo-thanks)
/dev/pts/1
14:03:44
$sudo mv mv /etc/asterisk/extensions.conf

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

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

/dev/pts/1
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/6
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/4
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/1
14:11:06
$mkdir -p /var/tmp/asterisk

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

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

/dev/pts/1
14:12:46
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted
/dev/pts/6
14:12:46
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted
/dev/pts/4
14:12:46
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted
/dev/pts/1
14:13:19
$sudo chown asterisk:asterisk /var/tmp/asterisk

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

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

/dev/pts/1
14:13:29
$asterisk -r
bash: asterisk: command not found
/dev/pts/6
14:13:29
$asterisk -r
bash: asterisk: command not found
/dev/pts/4
14:13:29
$asterisk -r
bash: asterisk: command not found
/dev/pts/1
14:15:28
$asterisk -r
                    dialplan reload
bash: dialplan: command not found
/dev/pts/6
14:15:28
$asterisk -r
                    dialplan reload
bash: dialplan: command not found
/dev/pts/4
14:15:28
$asterisk -r
                    dialplan reload
bash: dialplan: command not found
/dev/pts/1
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/6
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/4
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/1
14:19:05
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/6
14:19:05
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/4
14:19:05
$sudo vim /etc/asterisk/extensions.conf
прошло 16 минут
/dev/pts/1
14:35:11
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/6
14:35:11
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/4
14:35:11
$sudo vim /etc/asterisk/extensions.conf
прошло 10 минут
/dev/pts/1
14:45:45
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/6
14:45:45
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/4
14:45:45
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/1
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/6
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/4
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/1
15:02:51
$sudo vim /etc/asterisk/sip.conf
/dev/pts/6
15:02:51
$sudo vim /etc/asterisk/sip.conf
/dev/pts/4
15:02:51
$sudo vim /etc/asterisk/sip.conf
/dev/pts/1
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/6
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/4
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/6
15:31:30
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/4
15:31:30
$sudo vim /etc/asterisk/extensions.conf
/dev/pts/1
15:31:30
$sudo vim /etc/asterisk/extensions.conf
15:39:59
$sudo vim /etc/asterisk/sip.conf
/dev/pts/6
15:39:59
$sudo vim /etc/asterisk/sip.conf
/dev/pts/4
15:39:59
$sudo vim /etc/asterisk/sip.conf
/dev/pts/9
15:49:53
#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)
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
kiev/minsk                192.168.30.1                             D  Auto (Yes) No             1034     Unmonitored
vitebsk/minsk             192.168.30.1                             D  Auto (Yes) No             5060     Unmonitored
warsaw/minsk              (Unspecified)                            D  Auto (No)  No             0        Unmonitored
5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 1 offline]
asterisk3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/9
15:50:36
#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)
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
kiev/minsk                192.168.30.1                             D  Auto (Yes) No             1034     Unmonitored
vitebsk/minsk             192.168.30.1                             D  Auto (Yes) No             5060     Unmonitored
warsaw/minsk              (Unspecified)                            D  Auto (No)  No             0        Unmonitored
5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 1 offline]
asterisk3*CLI>
asterisk3*CLI>
asterisk3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups

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

/dev/pts/4
13:07:35
#vim /etc/asterisk/extensions.conf
13:07:45
#~
; the externpassnotify option below instead.
;externpass=/usr/bin/myapp
;externpassnotify=/usr/bin/myapp
; If you would like to have an external program called when a user changes the
le,
; voicemail password for the purpose of doing validation on the new password,
; requirements, and they will be asked to enter another password.inimum password
; then use this option.  The script can decide whether or not the new password
;
; meets minimum password strength requirements before the Voicemail application
...
eastern=America/New_York|'vm-received' Q 'digits/at' IMp
central=America/Chicago|'vm-received' Q 'digits/at' IMp
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
[default]Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
02 => 1234,user,user@localhost
no|serveremail=myaddy@digium.com|tz=central|maxmsg=10
;4300 => 3456,Ben Rigas,ben@american-computer.net
;4310 => -5432,Sales,sales@marko.net
;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach==
13:08:06
#;4069 => 6522,Matt Brooks,matt@marko.net,,|tz=central|attach=yes|saycid=yes|diall

/dev/pts/4
13:10:24
#less /var/mail/asterisk
13:10:59
#less /etc/asterisk/voicemail.conf
13:11:15
#asterisk -rvvvv
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> voicemail reload
Reloading voicemail configuration...
  == Parsing '/etc/asterisk/voicemail.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
asterisk3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
прошло >2 часов
/dev/pts/4
16:02:32
#less /etc/asterisk/extensions.conf
16:03:05
#aterisk -rx 'database put order 1 1'
bash: aterisk: command not found

Четверг (03/31/16)

/dev/pts/4
09:53:40
#cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
...
# User alias specification
# Cmnd alias specification
# User privilege specification
root    ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
user ALL=(ALL:ALL) ALL
asterisk ALL=(ALL) NOPASSWORD:/usr/bin/touch
09:53:45
#vim /etc/sudoers
--- /tmp/l3-saved-2313.20764.7903	2016-03-31 10:54:02.948258572 +0300
+++ /etc/sudoers	2016-03-31 10:54:10.392258539 +0300
@@ -26,4 +26,4 @@
 
 #includedir /etc/sudoers.d
 user ALL=(ALL:ALL) ALL
-asterisk ALL=(ALL) NOPASSWORD:/usr/bin/touch
+asterisk ALL=(ALL) NOPASSWD:/usr/bin/touch
прошло 75 минут
/dev/pts/8
11:09:32
#ls -l /var/lib/asterisk/sounds/tts/
total 1004
-rw-rw---- 1 asterisk asterisk 448942 Mar 31 12:03 tts-0d70b4e597139d61cf2468e31ec3ea70.wav
-rw-rw---- 1 asterisk asterisk 577404 Mar 31 12:04 tts-2b34e9c2522cce498bc4be142b1cbd71.wav
11:09:37
#echo hello | md5sum
b1946ac92492d2347c6235b4d2611184  -
11:09:49
#echo hello1 | md5sum
b52731692f35498bba7e4660142129d2  -
прошло 23 минуты
/dev/pts/8
11:33:46
#ls -l /var/tmp/asterisk/message
ls: cannot access /var/tmp/asterisk/message: No such file or directory
11:33:52
#ls -l /var/tmp/asterisk/messages
ls: cannot access /var/tmp/asterisk/messages: No such file or directory
11:33:54
#ls -l /var/tmp/asterisk/message
message00.gsm  message03.gsm  message06.gsm  message09.gsm
message01.gsm  message04.gsm  message07.gsm  message10.gsm
message02.gsm  message05.gsm  message08.gsm  message11.gsm
11:34:33
#asterisk -rvvvv
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 = 748)
asterisk3*CLI>
  == Using SIP RTP CoS mark 5
...
asterisk3*CLI>
asterisk3*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [4012@gr1:1] Record("SIP/1301-00000018", "/var/tmp/asterisk/message12:gsm") in new stack
       > 0x7fd180004eb0 -- Probation passed - setting RTP source address to 192.168.30.102:10048
    -- <SIP/1301-00000018> Playing 'beep.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1301-00000018' status is 'UNKNOWN'
asterisk3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
прошло >2 часов
/dev/pts/8
14:03:20
#asterisk -rvvvv
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 = 748)
asterisk3*CLI>
asterisk3*CLI>
...
1            (Agent 007) logged in on SIP/1302-0000003a talking to SIP/1301-0000003b (musiconhold is 'default')
1 agents online
asterisk3*CLI> agent show online
1            (Agent 007) logged in on SIP/1302-0000003a talking to SIP/1301-0000003b (musiconhold is 'default')
1 agents online
    -- Started music on hold, class 'default', on SIP/1302-0000003a
  == Spawn extension (menu, 3, 1) exited non-zero on 'SIP/1301-0000003b'
asterisk3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
14:04:54
#vim /etc/asterisk/agents.conf
--- /tmp/l3-saved-6090.25595.11136	2016-03-31 15:04:58.424192542 +0300
+++ /etc/asterisk/agents.conf	2016-03-31 15:06:50.032192052 +0300
@@ -40,7 +40,7 @@
 ; configure which DTMF key will end a call. The default is
 ; '*'.
 ;
-;endcall=yes
+;endcall=no
 ;enddtmf=*
 ;
 ; Define wrapuptime.  This is the minimum amount of time when

Файлы

  • /etc/sudoers
  • /etc/sudoers
    >
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # Please consider adding local content in /etc/sudoers.d/ instead of
    # directly modifying this file.
    #
    # See the man page for details on how to write a sudoers file.
    #
    Defaults        env_reset
    Defaults        mail_badpass
    Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    # Host alias specification
    # User alias specification
    # Cmnd alias specification
    # User privilege specification
    root    ALL=(ALL:ALL) ALL
    # Allow members of group sudo to execute any command
    %sudo   ALL=(ALL:ALL) ALL
    # See sudoers(5) for more information on "#include" directives:
    #includedir /etc/sudoers.d
    user ALL=(ALL:ALL) ALL
    asterisk ALL=(ALL) NOPASSWORD:/usr/bin/touch
    

    Статистика

    Время первой команды журнала11:49:23 2016- 3-29
    Время последней команды журнала14:04:54 2016- 3-31
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 9.90
    Процент синтаксически неверно набранных команд, %11.88
    Суммарное время работы с терминалом *, час 3.14
    Количество командных строк в единицу времени, команда/мин 0.54
    Частота использования команд
    sudo45|=============================| 29.41%
    asterisk39|=========================| 25.49%
    vim27|=================| 17.65%
    ~7|====| 4.58%
    chown6|===| 3.92%
    ls4|==| 2.61%
    mv4|==| 2.61%
    mkdir3|=| 1.96%
    [general]3|=| 1.96%
    less3|=| 1.96%
    echo2|=| 1.31%
    md5sum2|=| 1.31%
    diall1|| 0.65%
    attach=yes1|| 0.65%
    saycid=yes1|| 0.65%
    6522,Matt1|| 0.65%
    tz=central1|| 0.65%
    cat1|| 0.65%
    aterisk1|| 0.65%
    40691|| 0.65%
    ____
    *) Интервалы неактивности длительностью 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$