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

Содержание

Журнал

Вторник (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