/l3/users/mugiwara/asterisk/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
#mcedit extensions.conf
|
#mcedit sip.conf
[kharkov] 14 0 14 303 c 99 0x63 [102] type=friend secret=password host=dynamic canreinvite=no [103] type=friend secret=password host=dynamic canreinvite=no [kiev] type=friend secret=password host=dynamic username=dnepr canreinvite=no [odessa] type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
#mcedit extensions.conf
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15372.10998.31749 2010-05-26 11:14:29.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-26 11:14:51.000000000 +0300 @@ -7,4 +7,5 @@ exten => _3XX,1,Dial(Sip/odessa/${EXTEN}) exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN}) exten => _5XX,1,Dial(Sip/crimea/${EXTEN}) -exten => _6XX,1,Dial(Sip/lvov/${EXTEN}) \ В конце файла нет новой строки +exten => _6XX,1,Dial(Sip/lvov/${EXTEN}) + |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> console dial 380681234567 linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found linux1*CLI> -- Got SIP response 486 "Busy Here" back from 192.168.3.1 -- SIP/odessa-081df130 is busy == Everyone is busy/congested at this time (1:1/0/0) == Auto fallthrough, channel 'Console/dsp' status is 'BUSY' [May 26 11:16:20] WARNING[14958]: chan_oss.c:682 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory linux1*CLI> linux1*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/asterisk/messages
|
#asterisk -r
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux1 (pid = 15529) Verbosity is at least 3 linux1*CLI> exit |
#less /etc/asterisk/sip.conf
|
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [380638969600@default:1] Dial("SIP/102-081d1390", "Sip/odessa/380638969600") in new stack -- Called odessa/380638969600 -- Got SIP response 503 "Service Unavailable" back from 192.168.3.1 -- SIP/odessa-081d88c8 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/102-081d1390' status is 'CONGESTION' linux1*CLI> linux1*CLI> linux1*CLI> quit Executing last minute cleanups |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-15801.22540.18130 2010-05-26 11:22:50.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-05-26 11:23:04.000000000 +0300 @@ -7,19 +7,19 @@ ;register => dnepr:password@192.168.6.1/lvov -[101] +[701] type=friend secret=password host=dynamic canreinvite=no -[102] +[702] type=friend secret=password host=dynamic canreinvite=no -[103] +[703] type=friend secret=password host=dynamic |
#asterisk -rx 'dialplan reload'
Dialplan reloaded. |
#asterisk -r
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Spawn extension (gr2, 301, 1) exited non-zero on 'SIP/701-b730b168' -- Executing [201@gr2:1] Dial("SIP/701-b730d538", "Sip/kiev/201") in new stack -- Called kiev/201 -- SIP/kiev-081d6548 is ringing == Spawn extension (gr2, 201, 1) exited non-zero on 'SIP/701-b730d538' [May 26 13:36:30] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '701' rejected because extension not found. [May 26 13:36:41] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '701' rejected because extension not found. [May 26 13:36:55] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '701' rejected because extension not found. [May 26 13:36:56] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit |
#ssh 192.168.5.1
The authenticity of host '192.168.5.1 (192.168.5.1)' can't be established. RSA key fingerprint is 95:9e:2c:1f:7b:eb:a2:b6:f0:48:a1:90:62:4c:e1:ea. Are you sure you want to continue connecting (yes/no)? Host key verification failed. |
#ssh 192.168.5.1
The authenticity of host '192.168.5.1 (192.168.5.1)' can't be established. RSA key fingerprint is 95:9e:2c:1f:7b:eb:a2:b6:f0:48:a1:90:62:4c:e1:ea. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.5.1' (RSA) to the list of known hosts. root@192.168.5.1's password: Linux linux5 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed May 26 10:33:10 2010 l3-agent is already running: pid=13611; pidfile=/root/.lilalo/l3-agent.pid |
#mc
|
#mcedit extensions.conf
extensions.conf [----] 0 L:[ 1+ 1 2/ 10] *(10 / 304b)= e 101 0x65 [default] exten => _7XX,1,Dial(Sip/${EXTEN}) exten => _2XX,1,Dial(Sip/kiev/${EXTEN}) exten => _4XX,1,DialBMip/k 0rkov/${E 3 4/ 20 85 / 581b)= e 101 0x65 ] exten => _7XX,1,Dial(Sip/${EXTEN}) exten => _2XX,1,Dial(Sip/kiev/${EXTEN}) exten => _2XX,1,Dial(Sip/kiev/${EXodessa}${EXTEN}) exten => _4XX,1,Dial(Sip/kharkov/${EXTEN}) ... ] 1,Dial(Sip/kharkov/${EXTEN}) 1,Dial(Sip/odessa/${EXTEN}) ] XXXXXXXX,1,Dial(Sip/odessa/${EXTEN}) include => local [gr2] include => world [gr3] include => local |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... 703 (Unspecified) D 0 Unmonitored 702/702 192.168.1.10 D 15300 Unmonitored 701 (Unspecified) D 0 Unmonitored 8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 3 offline] [May 26 12:06:32] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '301' rejected because extension not found. [May 26 12:06:51] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '201' rejected because extension not found. [May 26 12:06:51] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 [May 26 12:07:05] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '702' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
include => local [gr3] include => local include => corp include => world 1Помощь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux1 (pid = 15529) Verbosity is at least 4 [May 26 12:11:15] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '301' rejected because extension not found. [May 26 12:12:24] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '301' rejected because extension not found. [May 26 12:12:31] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '501' rejected because extension not found. [May 26 12:12:36] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '201' rejected because extension not found. [May 26 12:12:45] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '401' rejected because extension not found. [May 26 12:12:51] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
|
#mcedit extensions.conf
|
#mcedit sip.conf
|
#mcedit extensions.conf
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/cdr_pgsql.conf': Found -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2)) == Parsing '/etc/asterisk/iax.conf': Found == Parsing '/etc/asterisk/users.conf': Found > doing dnsmgr_lookup for '216.207.245.47' == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' [May 26 12:14:26] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '702' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... kharkov/dnepr 192.168.4.1 D 5060 Unmonitored odessa/dnepr 192.168.3.1 5060 Unmonitored kiev/dnepr 192.168.2.1 D 5060 Unmonitored 703 (Unspecified) D 0 Unmonitored 702/702 192.168.1.10 D 15300 Unmonitored 701 (Unspecified) D 0 Unmonitored 8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 3 offline] [May 26 12:16:07] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '702' to extension '201' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
|
#mcedit sip.conf
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... odessa/dnepr 192.168.3.1 5060 Unmonitored kiev/dnepr 192.168.2.1 D 5060 Unmonitored 703 (Unspecified) D 0 Unmonitored 702/702 192.168.1.10 D 15300 Unmonitored 701/701 192.168.1.11 D 2048 Unmonitored 8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 2 offline] [May 26 12:21:52] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 [May 26 12:24:52] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
âââââââââââââââââââââââââ ââââââââââââââââââââââ [gr2] include => corp include => local [gr3] |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15801.14436.16690 2010-05-26 12:34:46.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-26 12:35:19.000000000 +0300 @@ -2,6 +2,9 @@ [local] exten => _7XX,1,Dial(Sip/${EXTEN}) +exten => 801,1,Answer +exten => 801,n,Wait(1) +exten => 801,n,Record(/tmp/greetings) [corp] exten => _2XX,1,Dial(Sip/kiev/${EXTEN}) @@ -22,4 +25,4 @@ [gr3] include => local include => corp -include => world \ В конце файла нет новой строки +include => world |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Registered extension context 'gr2' -- Including context 'corp' in context 'gr2' -- Including context 'local' in context 'gr2' -- Registered extension context 'gr3' -- Including context 'local' in context 'gr3' -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
|
#mcedit extensions.conf
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found [May 26 12:44:45] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '800' rejected because extension not found. -- Executing [801@gr2:1] Answer("SIP/701-b7313940", "") in new stack -- Executing [801@gr2:2] Wait("SIP/701-b7313940", "i") in new stack [May 26 12:45:00] WARNING[16403]: pbx.c:1832 pbx_extension_helper: No application 'Record ' for extension (gr2, 801, 3) == Spawn extension (gr2, 801, 3) exited non-zero on 'SIP/701-b7313940' linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- <SIP/701-b7316460> Playing 'beep' (language 'en') == Auto fallthrough, channel 'SIP/701-b7316460' status is 'UNKNOWN' -- Executing [801@gr2:1] Answer("SIP/701-b730eac8", "") in new stack -- Executing [801@gr2:2] Wait("SIP/701-b730eac8", "i") in new stack -- Executing [801@gr2:3] Record("SIP/701-b730eac8", "/var/tmp/welcome:gsm|3") in new stack -- <SIP/701-b730eac8> Playing 'beep' (language 'en') == Auto fallthrough, channel 'SIP/701-b730eac8' status is 'UNKNOWN' [May 26 12:48:53] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
exten => _801,n,W │ │ └───────────────────────────────────────────┘ exten => _5XXX,1,Set(CALLERID(all)=Privet<123>) [gr1] include => local |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'corp' in context 'gr2' -- Including context 'local' in context 'gr2' -- Registered extension context 'gr3' -- Including context 'local' in context 'gr3' -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found [May 26 12:51:53] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
extensions.conf [----] 16 L:[ 4+10 14/ 31] *(294 / 593b)= D 68 0x44 [local] exten => _7XX,1,Dial(Sip/${EXTEN}) exten => _2800,1,Dial(Sip/${EXTEN:1}) exten => _801,1,Answer ) |
#mcedit extensions.conf
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found -- Executing [801@gr2:1] Answer("SIP/701-b730d538", "") in new stack -- Executing [801@gr2:2] Wait("SIP/701-b730d538", "1") in new stack -- Executing [801@gr2:3] Record("SIP/701-b730d538", "/var/tmp/welcome:gsm|3") in new stack -- <SIP/701-b730d538> Playing 'beep' (language 'en') == Auto fallthrough, channel 'SIP/701-b730d538' status is 'UNKNOWN' linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
extensions.conf [----] 25 L:[ 1+ 8 9/ 31] *(165 / 593b)= a 97 0x61 [default] [local] [world] exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN}) [gr1] include => local 1Помощь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'corp' in context 'gr2' -- Including context 'local' in context 'gr2' -- Registered extension context 'gr3' -- Including context 'local' in context 'gr3' -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found [May 26 12:55:16] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '701' to extension '800' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
#mcedit sip.conf
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'local' in context 'gr2' -- Registered extension context 'gr3' -- Including context 'local' in context 'gr3' -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found [May 26 12:57:54] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 [May 26 12:57:59] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '701' to extension '800' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [801@gr2:3] Record("SIP/701-b730b168", "/var/tmp/welcome:gsm|3") in new stack -- <SIP/701-b730b168> Playing 'beep' (language 'en') -- Executing [800@gr2:1] Answer("SIP/701-b730b168", "") in new stack -- Executing [800@gr2:2] Wait("SIP/701-b730b168", "1") in new stack -- Executing [800@gr2:3] Playback("SIP/701-b730b168", "/var/tmp/welcome") in new stack -- <SIP/701-b730b168> Playing '/var/tmp/welcome' (language 'en') == Auto fallthrough, channel 'SIP/701-b730b168' status is 'UNKNOWN' [May 26 13:12:54] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
#mcedit extensions.conf
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... crimea/dnepr 192.168.5.1 D 5060 Unmonitored kharkov/dnepr 192.168.4.1 D 5060 Unmonitored odessa/dnepr 192.168.3.1 5060 Unmonitored kiev/dnepr 192.168.2.1 D 5060 Unmonitored 703 (Unspecified) D 0 Unmonitored 702/702 192.168.1.10 D 15300 Unmonitored 701/701 192.168.1.11 D 2048 Unmonitored 8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 2 offline] linux1*CLI> quit Executing last minute cleanups |
#mcedit sip.conf
register => dnepr:password1592.16232.5 28v 484 . 10 0x0A type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход ;register => dnepr:password@192.168.3.1/odessa register => dnepr:password@192.168.4.1/kharkov ;call-limit=1 register => dnepr:password@192.168.5.1/crimea ;register => dnepr:password@192.168.6.1/lvov callerid="Dnepr Phone" [702] secret=password ... callerid="Dnepr Phone" [702] context=gr1 type=friend secret=password host=dynamic [lvov] username=dnepr callerid="Kiev Phone" [odessa] |
#mcedit extensions.conf
exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1}) exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _4XXX,1,Dial(Sip/kharkov/${EXTEN:1}) exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _3XXX,1,Dial(Sip/odessa/${EXTEN:1}) exten => _5XXX,1,Set(CALLERID(all)=Privet<123>) exten => _5XXX,n,Dial(Sip/crimea/${EXTEN:1}) [world] exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN}) |
#mcedit extensions.conf
|
#mcedit sip.conf
|
#mcedit extensions.conf
|
#mcedit sip.conf
|
#mcedit sip.conf
|
#mcedit sip.conf
[702] type=friend host=dynamic callerid="SoftPhone" [703] secret=password canreinvite=no secret=password username=dnepr callerid="Kiev Phone" 1Помощь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
#mcedit extensions.conf
|
#mcedit sip.conf
secret=password BM 0 30 0 30/ 77 498 /1125b)= c 99 0x63 callerid="NoteBookPhone" [kiev] type=friend secret=password host=dynamic username=dnepr canreinvite=no callerid="Kiev Phone" context=gr2 [odessa] type=friend secret=password host=192.168.3.1 username=dnepr canreinvite=no ;limitonpeers=yes ;call-limit=1 callerid="Odessa Phone" type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
#mcedit sip.conf
type=friend 19 0 19 361 c 99 0x63 type=friend secret=password host=dynamic canreinvite=no callerid="SoftPhone" [703] type=friend secret=password host=dynamic canreinvite=no callerid="NoteBookPhone" [kiev] type=friend secret=password host=dynamic username=dnepr canreinvite=no callerid="Kiev Phone" type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
#mcedit extensions.conf
exten => _800,n,Wait(M) 1 3 4/ 47] *(65 /1132 . 10 0x0A macro-m1] [xten => s,1,..... $(MACRO_EXTEN) xten => s,n,..... e ] exten => _3XX,1,Macro(m1) [corp] exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1}) exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _4XXX,1,Dial(Sip/kharkov/${EXTEN:1}) exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) |
#mcedit extensions.conf
;exten => _3XXX,1,DiB-(Sip 6dessa 1{18 191}) 440 8 . 10 0x0A [macro-m1] exten => s,1,Set(CALLERID(number)=1${ARG1}) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1} exten => _3XX,1,Macro(m1,${CALLERID(number)},odessa) xten => _3XX,1,Macro(m1,${CALLERID(number)},odessa) [local] 1,Dial(Sip/${EXTEN}) exten => _7XX,1,Dial(Sip/${EXTEN})1}) exten => _2800,1,Dial( ip/${EXTEN:1}) exten => _801,1,Answer ... exten => _801,1,Answer exten => _801,n,Wait(1) exten => _801,n,Record(/var/tmp/welcome:gsm,3) exten => _800,1,Answer exten => _800,n,Wait(1) exten => _800,n,Playback(/var/tmp/welcome) [corp] exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1}) exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) |
#mceditsip.conf
bash: mceditsip.conf: команда не найдена |
#mcedit sip.conf
register => dnepr:password@192.168.4.1/kharkov ;register => dnepr:password@192.168.6.1/lvov ] context=gr2 ┌────────────────── Выход ──────────────────┐ secret=password │ │ canreinvite=no └───────────────────────────────────────────┘ ] context=gr1 secret=password callerid="SoftPhone" [703] [703] secret=password type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
#mcedit extensions.conf
exten => _801,1,AnswBM 39 2 3/ 52 94 /1283 . 10 0x0A ] [xten => _801,n,Wait(1) ) xten => s,n,GotoIf($[${ARG1}=101]?end) }) exten => s,n,(end),Hangupar/tmp/welcome:gsm,3) [macro-m2] e ] exten => _800,n,Wait(1) ] ... ;exten => s,1,ial(SIP/${MACRO_EXTEN},10) exten => s,1,DotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?endть ] │ exten => s,n,Gial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})}) exten => s,n(Dnd),Hangup exten => s,n(end),Ha$[${DIALSTATUS}=BUSY]?busy) exten => s,n,GotoIf(${DIALSTATUS}=BUSY]?busy) exten => s,n(busy),Playback(/var/tmp/busy) exten => _901,1,Answer exten => _901,n,Wait(1) ;exten => _4XX,1,Dial(Sip/kharkov/${EXTEN}) |
#mcedit sip.conf
type=friend 11 37 0 37 598 e 101 0x65 canreinvite=no callerid="Kiev Phone" context=gr2 [odessa] type=friend secret=password host=192.168.3.1 username=dnepr canreinvite=no ... ;[lvov] ;type=friend ┌────────────────── Выход ──────────────────┐ ;secret=password │ │ ;host=dynamic └───────────────────────────────────────────┘ ;username=dnepr ;canreinvite=no [sipnet] type=friend secret= username= 0024321191 |
#mcedit sip.conf
┌────────────────── Выход ──────────────────┐ │ │ └───────────────────────────────────────────┘ |
#apt-get install gpm
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: gpm обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 213kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 455kB. Получено:1 http://ftp.ua.debian.org lenny/main gpm 1.20.4-3.1 [213kB] Получено 213kБ за 0s (394kБ/c) Предварительная настройка пакетов ... Выбор ранее не выбранного пакета gpm. (Чтение базы данных... на данный момент установлено 28937 файлов и каталогов.) Распаковывается пакет gpm (из файла .../gpm_1.20.4-3.1_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет gpm (1.20.4-3.1) ... Creating config file /etc/gpm.conf with new version Stopping mouse interface server: gpmO0o.oops(): [daemon/check_kill.c(38)]: Could not open /var/run/gpm.pid. failed! Starting mouse interface server: gpm. |
#mcedit sip.conf
canreinvite=no callerid="Crimea Phone" context=gr2 ;[lvov] ;type=friend ;secret=password ;host=dynamic ;username=dnepr ;canreinvite=no |
#mcedit sip.conf
canreinvite=no callerid="Crimea Phone" context=gr2 ;[lvov] ;type=friend ;secret=password ;host=dynamic ;username=dnepr ;canreinvite=no |
#vi sip.conf
--- /tmp/l3-saved-10416.12530.12417 2010-05-26 17:50:03.000000000 +0300 +++ sip.conf 2010-05-26 17:50:22.000000000 +0300 @@ -74,3 +74,27 @@ ;host=dynamic ;username=dnepr ;canreinvite=no + +[sipnet] +type=friend +secret = +username = 0024321191 +trunkname = sipnet +callerid = Xgu.ru +hasexten = no +hassip = yes +hasiax = no +registeriax = no +registersip = yes +host = sipnet.ru +context = sipnet-in +insecure = invite +fromuser = 0024321191 +fromdomain = sipnet.ru +contact = 100 +disallow=all +allow = alaw +allow = ulaw +allow = g729 +nat = npnet] + |
#mcedit extensions.conf
[world] exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN}) [gr1] include => local [gr2] include => corp include => local [gr3] include => local |
#mcedit sip.conf
hassip = yes hasiax = no registeriax = no registersip = yes host = sipnet.ru context = sipnet-in insecure = invite fromuser = 0024321191 fromdomain = sipnet.ru contact = 100 disallow=all allow = alaw |
#mcedit extensions.conf
extensions.conf [----] 0 L:[ 36+10 46/ 65] *(1523/1875b)= . 10 0x0A exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1}) exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _4XXX,1,Dial(Sip/kharkov/${EXTEN:1}) ;exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) ;exten => _3XXX,1,Dial(Sip/odessa/${EXTEN:1}) ;exten => _3XXX,1,Macro(m1,${CALLERID(number)},odessa) exten => _3XXX,1,Macro(incoming) exten => _5XXX,1,Set(CALLERID(all)=Privet<123>) exten => _5XXX,n,Dial(Sip/crimea/${EXTEN:1}) exten => -2323,n,Dial(Sip/sipnet/${Exten:1}) 1Помощь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
#mcedit sip.conf
context = sipnet-in - 0 69 1 70 1040/1465 . 10 0x0A context=gr2 ;[lvov] ;type=friend ;secret=password ;host=dynamic ;username=dnepr [sipnet] type=friend secret = coolsip ... callerid = coolsip hasexten = no hassip = yes hasiax = no registeriax = no registersip = yes host = sipnet.ru context = gr2 insecure = invite 1Помощь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
#ssh 192.168.3.1
The authenticity of host '192.168.3.1 (192.168.3.1)' can't be established. RSA key fingerprint is 33:37:1d:14:ec:fd:f2:28:03:16:a6:66:31:f7:02:e1. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.3.1' (RSA) to the list of known hosts. root@192.168.3.1's password: Permission denied, please try again. root@192.168.3.1's password: Permission denied, please try again. root@192.168.3.1's password: Permission denied (publickey,password). |
#clear
|
#mc
|
#cd /etc/asterisk/
|
#co
codepage colrm command compose continue col column compgen config_data corelist colcrt comm complete consolechars |
#c
c++ chage clear cpan c2ph charset clear_console cpan2dist c89 chattr cmp cpanp c89-gcc chcon codepage cpanp-run-perl c99 chfn col cpgr c99-gcc chgpasswd colcrt cpio cal chgrp colrm cpp calendar chkdupexe column cpp-4.3 caller chmod comm cppw captoinfo chown command c_rehash case chpasswd compgen cron cat chroot complete crontab catchsegv chrt compose csplit catman chsh config_data ctrlaltdel cc chvt consolechars ctstat cd ckbcomp continue cut cfdisk cksum corelist cyr c++filt cleanup-info cp cytune |
#cp
cp cpanp cpio cppw cpan cpanp-run-perl cpp cpan2dist cpgr cpp-4.3 |
#cp /etc/asterisk/sip.conf /root/Conf/s.conf.save
|
#mc
|
#mcedit voicemail.conf
[general] 177+18 195 8890 ; 59 0x3B R 24 hour time, including minute. < cidinternalcontexts=intern<-->; Internal Context for Name Playback instead of. <------><------><------>; extension digits when saying caller id. sayduration=no <----->; Turn on/off the duration information before the messag ; saydurationm=2 ; Specify the minimum duration to say. Default is 2 minu ; dialout=fromvm ; Context to dial out from [option 4 from mailbox's advanced me ; If not specified, option 4 will not be listed and dialing out ; from within VoiceMailMain() will not be permitted. considered to be unchangeable. ... ; hidefromdir=yes<----->; Hide this mailbox from the directory produced by app_d <------><------><------>; The default is "no". ;tempgreetwarn=yes<---->; Remind the user that their temporary greeting is set [zonemessages] 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' military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p' european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM sendvoicemail=yes ; Allow the user to compose and send a voicemail while inside. |
#vi extensions.conf
--- /tmp/l3-saved-10416.26398.1564 2010-05-27 10:11:14.000000000 +0300 +++ extensions.conf 2010-05-27 10:13:27.000000000 +0300 @@ -11,7 +11,29 @@ exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) exten => s,n,Dial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})}) exten => s,n(end),Hangup -exten => s,n,GotoIf($[${DIALSTATUS}=BUSY]?busy) +exten => s,n,GotoIf($[${DIALSTATUS}cro-test] + + + +exten => s,1,Answer +exten => s,n,Say(${ARG1}) +exten => s,n,Say(${ARG2}) +exten => s,n,Say(${ARG3}) +exten => s,n,Say(${ARG4}) +exten => s,n,Say(${ARG5}) +exten => s,n,Say(${ARG6}) +i + + +exten => s,n,Say(${ARG9}) +exten => s,n,Say(${ARG10}) +exten => s,n,Say(${ARG11}) +exten => s,n,Say(${ARG12}) +exten => s,n,Say(${ARG13}) +exten => s,n,Say(${ARG14}) +exten => s,n,Say(${ARG15}) + +=BUSY]?busy) exten => s,n(busy),Playback(/var/tmp/busy) @@ -62,4 +84,4 @@ [gr3] include => local include => corp -include => world \ В конце файла нет новой строки +include => world |
#mcedit extensions.conf
extensions.conf [----] 23 L:[ 35+10 45/ 88] *(1027/2256b)= . 10 0x0A =BUSY]?busy) exten => s,n(busy),Playback(/var/tmp/busy) [default] [local] exten => _901,1,Answer B 0 3 2 5 148 ; 59 0x3B ;exten => s,n,GotoIf($[${ARG1}=3301]?end) ;exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) ;exten => s,n,(end),Hangup ... exten => _901,n,Record(/var/tmp/busy:gsm,3) exten => _801,1,Answer exten => _7XX,1,Macro(incoming) exten => _801,n,Wait(1) exten => _800,1,Answer exten => _800,n,Wait(1) exten => _800,n,Playback(/var/tmp/welcome) [corp] exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _801,n,Record(/var/tmp/welcome:gsm,3) |
#apt-get install bin
bin86 bindgraph binutils-dev bincimap binfmtc binutils-doc bincimap-run binfmt-support binutils-h8300-hms binclock bing binutils-m68hc11 bind biniax2 binutils-m68hc12 bind9 biniax2-data binutils-m68hc1x bind9-doc binkd binutils-multiarch bind9-host bins binutils-source bind9utils binstats binutils-z80 bind-dev binutils bindfs binutils-avr |
Время первой команды журнала | 10:01:26 2010- 5-26 | |||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:25:01 2010- 5-27 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 4.21 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.40 | |||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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