/l3/users/2014-11-nt-voip/nt-voip/debian5/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#asterisk -rx 'sip show peers'
Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] |
#ЦФÐÐWATCH 'sk -rx 'sip show peers' '
bash: WATCH: command not found |
#No such command 'sip' (type 'core show help sip' for other possible comma
|
#No such command 'sip' (type 'core show help sip' for other possible comma
Usage: watch [options] command Options: -b, --beep beep if command has a non-zero exit -c, --color interpret ANSI color sequences -d, --differences[=<permanent>] highlight changes between updates -e, --errexit exit if command has a non-zero exit -g, --chgexit exit when output from command changes -n, --interval <secs> seconds to wait between updates -p, --precise attempt run command in precise intervals -t, --no-title turn off header -x, --exec pass command to exec instead of "sh -c" -h, --help display this help and exit -v, --version output version information and exit For more details see watch(1). |
#less /etc/dhcp/dhcpd.conf
|
#/etc/init.d/asterisk restart
|
#vim /etc/default/isc-dhcp-server
|
#/etc/init.d/asterisk restart
/etc/init.d/isc-dhcp-server restart Stopping ISC DHCP server: dhcpd. Starting ISC DHCP server: dhcpd. |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13187) Verbosity was 0 and is now 2 == Using SIP RTP CoS mark 5 [Nov 24 18:07:45] NOTICE[13225]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13296) Verbosity was 0 and is now 2 == Using SIP RTP CoS mark 5 [Nov 24 18:09:05] NOTICE[13334]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) debian5*CLI> con config console [Nov 24 18:12:35] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'. debian5*CLI> -rvv No such command '-rvv' (type 'core show help -rvv' for other possible commands) debian5*CLI> exit |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity was 0 and is now 2 == Using SIP RTP CoS mark 5 [Nov 24 18:12:57] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extentions.conf
|
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> dialplan reload Dialplan reloaded. debian5*CLI> asterisk -rvv No such command 'asterisk -rvv' (type 'core show help asterisk -rvv' for other possible commands) debian5*CLI> exit |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 == Using SIP RTP CoS mark 5 [Nov 24 18:14:39] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/exten
|
#vim /etc/asterisk/extensions
|
#vim /etc/asterisk/extensions.
|
#vim /etc/asterisk/extensions.
|
#vim /etc/asterisk/extensions.conf.bak .
|
#vim /etc/asterisk/extensions.conf
|
#~
4 -rw-r--r-- 1 root root 49 Nov 24 18:07 /etc/asterisk/extentions.conf |
#ls -ls /etc/asterisk/ | grep ext
4 -rw-r----- 1 asterisk asterisk 3397 Jan 4 2014 extconfig.conf 16 -rw-r----- 1 asterisk asterisk 12776 Jan 4 2014 extensions.ael 32 -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 extensions.conf.bak 8 -rw-r----- 1 asterisk asterisk 5253 Jan 4 2014 extensions.lua 8 -rw-r----- 1 asterisk asterisk 7480 Jan 4 2014 extensions_minivm.conf 4 -rw-r--r-- 1 root root 49 Nov 24 18:07 extentions.conf |
#ls -ls /etc/asterisk/ | grep ext
4 -rw-r----- 1 asterisk asterisk 3397 Jan 4 2014 extconfig.conf 4 -rw-r--r-- 1 root root 49 Nov 24 18:07 extension.conf 16 -rw-r----- 1 asterisk asterisk 12776 Jan 4 2014 extensions.ael 32 -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 extensions.conf.bak 8 -rw-r----- 1 asterisk asterisk 5253 Jan 4 2014 extensions.lua 8 -rw-r----- 1 asterisk asterisk 7480 Jan 4 2014 extensions_minivm.conf |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2202-00000002' debian5*CLI> exit Executing last minute cleanups |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2202-00000004' == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2202-00000006' debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> exit |
#ÑÑÐasterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> sip show pee peers peer debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] debian5*CLI> exit |
#ÑÑÐasterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> sip show pee peers peer debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] debian5*CLI> exit |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.16336.6886 2014-11-25 09:51:54.515469325 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 09:52:35.775469804 +0200 @@ -1,6 +1,7 @@ [general] ; [] - название секции на каждый номер телефона context=default +qualify=yes [2201] type=friend |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> sip reload ... == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found [Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2201' is now Reachable. (37ms / 2000ms) [Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2202' is now Reachable. (108ms / 2000ms) debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 OK (37 ms) 2202/2202 192.168.50.101 D N 61523 OK (108 ms) 2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline] debian5*CLI> quit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> sip reload ... == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found [Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2201' is now Reachable. (37ms / 2000ms) [Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2202' is now Reachable. (108ms / 2000ms) debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 OK (37 ms) 2202/2202 192.168.50.101 D N 61523 OK (108 ms) 2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline] debian5*CLI> quit |
#asterisk 'sip reload'
Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk 'sip reload'
Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found [Nov 25 10:27:58] WARNING[13555]: config.c:1354 process_text_line: No '=' (equal sign) in line 23 of /etc/asterisk/sip.conf == Parsing '/etc/asterisk/users.conf': == Found == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found [Nov 25 10:27:58] WARNING[13555]: config.c:1354 process_text_line: No '=' (equal sign) in line 23 of /etc/asterisk/sip.conf == Parsing '/etc/asterisk/users.conf': == Found == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found debian5*CLI> exit |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.23887.7703 2014-11-25 10:29:09.179495793 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 10:31:57.771497765 +0200 @@ -3,6 +3,10 @@ context=default qualify=yes +#include "/etc/asterisk/sip.conf.kiev" +#include "/etc/asterisk/sip.conf.kharkov" +#include "/etc/asterisk/sip.conf.odessa" + [2201] type=friend ; направление разрешеного звонка friend в оба направления |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.31092.18777 2014-11-25 10:32:07.075497876 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 10:34:59.523499919 +0200 @@ -3,9 +3,9 @@ context=default qualify=yes -#include "/etc/asterisk/sip.conf.kiev" -#include "/etc/asterisk/sip.conf.kharkov" -#include "/etc/asterisk/sip.conf.odessa" +;#include "/etc/asterisk/sip.conf.kiev" +;#include "/etc/asterisk/sip.conf.kharkov" +;#include "/etc/asterisk/sip.conf.odessa" [2201] type=friend |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.6949.8607 2014-11-25 10:35:26.779500241 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 10:36:03.095500659 +0200 @@ -29,12 +29,12 @@ secret=password -[softphone](!) +;[softphone](!) ;.... -qualify=no +;qualify=no -[smartphone](!,softphone) +;[smartphone](!,softphone) ;.... -quialify=yes +;quialify=yes [2203](phone) |
#ls -l /etc/asterisk/extension.*
-rw-r--r-- 1 root root 49 Nov 24 18:07 /etc/asterisk/extension.conf |
#ls -l /etc/asterisk/extension.*
-rw-r--r-- 1 root root 49 Nov 24 18:07 /etc/asterisk/extension.conf |
#vim /etc/asterisk/extension.conf
--- /tmp/l3-saved-15112.13890.15807 2014-11-25 10:41:50.271504782 +0200 +++ /etc/asterisk/extension.conf 2014-11-25 11:04:12.187520666 +0200 @@ -1,5 +1,22 @@ +[default] + +exten => 2201,1,NoOp(Starting call processing) +exten => 2201,2,NoOp(to extension 2201) +exten => 2201,3,Dial(SIP/2201) -[default] +exten => 2202,1,NoOp(Starting call processing) +exten => 2202,2,NoOp(to extension 2202) +exten => 2202,3,Dial(SIP/2202) + +; using ${EXTEN} + +exten => _22XX,1,NoOp(Starting call processing) +exten => _22XX,n,NoOp(to extension {EXTEN}) +exten => _22XX,n,Dial(SIP/${EXTEN}) + +; using same -exten => _22xx,1,Dial(SIP/${EXTEN}) +exten => _22XX,1,NoOp(Starting call processing) + same => n,NoOp(to extension {EXTEN}) + same => n,Dial(SIP/${EXTEN}) [default] |
#[ ]
; ÐÑÐÐÑÑи ÐÑÐо п ÑÐп н 1101 ; Dial пÑиложение ( ; SIP/ ÐÐÐÐÐÐи ÐÐÐÐÐа ÐÑд Ðг ÐÑÐн ÐÐÑÐÐÐÐÑÐÐÐÑÑ exten => 2201,1,NoOp(Starting call processing) exten => 2201,2,NoOp(to extension 2201) exten => 2201,3,Dial(SIP/2201) {EXTEN} exten => _81XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) ( { }) ; using ${EXTEN} ... ; same => n,NoOp(to extension {EXTEN}) ; same => n,Dial(SIP/${EXTEN}) [default] ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/extension.conf" 28L, 945C written |
#[ ]
; ÐÑÐÐÑÑи ÐÑÐо п ÑÐп н 1101 ; Dial пÑиложение ( ; SIP/ ÐÐÐÐÐÐи ÐÐÐÐÐа ÐÑд Ðг ÐÑÐн ÐÐÑÐÐÐÐÑÐÐÐÑÑ exten => 2201,1,NoOp(Starting call processing) exten => 2201,2,NoOp(to extension 2201) exten => 2201,3,Dial(SIP/2201) {EXTEN} exten => _81XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) ( { }) ; using ${EXTEN} ... ; same => n,NoOp(to extension {EXTEN}) ; same => n,Dial(SIP/${EXTEN}) [default] ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/extension.conf" 28L, 945C written |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found == Using SIP RTP CoS mark 5 [Nov 25 12:00:04] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'. debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 debian5*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found == Using SIP RTP CoS mark 5 [Nov 25 12:00:04] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'. debian5*CLI> exit |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 == Using SIP RTP CoS mark 5 [Nov 25 12:00:18] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '81100' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 2 == Using SIP RTP CoS mark 5 [Nov 25 12:00:18] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '81100' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity was 2 and is now 3 == Using SIP RTP CoS mark 5 [Nov 25 12:01:40] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8110' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Nov 25 12:02:07] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity was 2 and is now 3 == Using SIP RTP CoS mark 5 [Nov 25 12:01:40] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8110' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Nov 25 12:02:07] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extension.conf
--- /tmp/l3-saved-15112.19579.23057 2014-11-25 12:02:17.327561916 +0200 +++ /etc/asterisk/extension.conf 2014-11-25 12:02:35.279562128 +0200 @@ -12,8 +12,8 @@ exten => 2202,2,NoOp(to extension 2202) exten => 2202,3,Dial(SIP/2202) -exten => _81XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) -exten => _82XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2}) +exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) +exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) ; using ${EXTEN} |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> sip reload Reloading SIP == Using SIP RTP CoS mark 5 [Nov 25 12:02:52] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'. debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> sip reload Reloading SIP == Using SIP RTP CoS mark 5 [Nov 25 12:02:52] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'. debian5*CLI> exit |
#[ ]
Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#[ ]
Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical'; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.001653 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000069 sec -- Total time merge_contexts_delete: 0.001727 sec == Using SIP RTP CoS mark 5 [Nov 25 12:04:20] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'. debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical'; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.001653 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000069 sec -- Total time merge_contexts_delete: 0.001727 sec == Using SIP RTP CoS mark 5 [Nov 25 12:04:20] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'. debian5*CLI> exit |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 25 12:04:35] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 25 12:04:35] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extension.conf
--- /tmp/l3-saved-15112.1531.21853 2014-11-25 12:04:56.147563794 +0200 +++ /etc/asterisk/extension.conf 2014-11-25 12:06:46.179565096 +0200 @@ -13,6 +13,7 @@ exten => 2202,3,Dial(SIP/2202) exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) + exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) ; using ${EXTEN} |
#[ ]
Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#[ ]
Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001521 sec -- Time to restore hints and swap in new dialplan: 0.000006 sec -- Time to delete the old dialplan: 0.000095 sec -- Total time merge_contexts_delete: 0.001622 sec == Using SIP RTP CoS mark 5 [Nov 25 12:07:34] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'. debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001521 sec -- Time to restore hints and swap in new dialplan: 0.000006 sec -- Time to delete the old dialplan: 0.000095 sec -- Total time merge_contexts_delete: 0.001622 sec == Using SIP RTP CoS mark 5 [Nov 25 12:07:34] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'. debian5*CLI> exit |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Including switch 'Lua/' in context 'local' -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001559 sec -- Time to restore hints and swap in new dialplan: 0.000006 sec -- Time to delete the old dialplan: 0.000062 sec -- Total time merge_contexts_delete: 0.001627 sec debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Including switch 'Lua/' in context 'local' -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001559 sec -- Time to restore hints and swap in new dialplan: 0.000006 sec -- Time to delete the old dialplan: 0.000062 sec -- Total time merge_contexts_delete: 0.001627 sec debian5*CLI> exit Executing last minute cleanups |
#~
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Including switch 'Lua/' in context 'local' -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001533 sec -- Time to restore hints and swap in new dialplan: 0.000006 sec -- Time to delete the old dialplan: 0.000071 sec -- Total time merge_contexts_delete: 0.001610 sec debian5*CLI> exit Executing last minute cleanups |
#~
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Including switch 'Lua/' in context 'local' -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001533 sec -- Time to restore hints and swap in new dialplan: 0.000006 sec -- Time to delete the old dialplan: 0.000071 sec -- Total time merge_contexts_delete: 0.001610 sec debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 25 12:11:51] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8101' rejected because extension not found in context 'default'. debian5*CLI> Disconnected from Asterisk server Executing last minute cleanups |
Время первой команды журнала | 16:30:11 2014-11-24 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:11:42 2014-11-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.76 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.95 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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