/l3/users/sasha-minsk/sl-voip-2016-03/asterisk3.unix.sl/root :1 :2 :3 :4 |
|
$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 |
#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 |
$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 |
$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 |
$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 |
$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 |
$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 |
$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 |
$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 |
$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 |
$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 |
$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 |
$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 |
$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 |
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted |
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted |
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted |
$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 |
$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 |
$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 |
$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 |
$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 |
$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 |
$sudo vim /etc/asterisk/sip.conf
|
#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 |
#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 |
#~
; 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== |
#;4069 => 6522,Matt Brooks,matt@marko.net,,|tz=central|attach=yes|saycid=yes|diall
|
#less /etc/asterisk/voicemail.conf
|
#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 |
#aterisk -rx 'database put order 1 1'
bash: aterisk: command not found |
#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 |
#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 |
#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 |
#echo hello | md5sum
b1946ac92492d2347c6235b4d2611184 - |
#echo hello1 | md5sum
b52731692f35498bba7e4660142129d2 - |
#ls -l /var/tmp/asterisk/message
ls: cannot access /var/tmp/asterisk/message: No such file or directory |
#ls -l /var/tmp/asterisk/messages
ls: cannot access /var/tmp/asterisk/messages: No such file or directory |
#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 |
#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 |
#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 |
#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 |
# # 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008