/l3/users/alexsay/nt-voip/linux3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#who
alexsay tty1 2012-04-23 11:19 alexsay tty7 2012-04-23 11:36 (:0) alexsay pts/0 2012-04-23 11:53 (:0.0) alexsay pts/1 2012-04-23 11:57 (:0.0) |
#who
alexsay tty1 2012-04-23 11:19 alexsay tty7 2012-04-23 11:36 (:0) alexsay pts/0 2012-04-23 11:53 (:0.0) alexsay pts/1 2012-04-23 11:57 (:0.0) |
#l3-agent
l3-agent is already running: pid=880; pidfile=/root/.lilalo/l3-agent.pid |
#l3-agent
l3-agent is already running: pid=880; pidfile=/root/.lilalo/l3-agent.pid |
#dpkg-reconfigure locales
â многополÑзоваÑелÑÑÐºÐ°Ñ ÑиÑÑема, где не вÑе полÑзоваÑели говоÑÑÑ Ð½Ð° â â вÑбÑанном ÑзÑке по ÑмолÑаниÑ, Ñо Ñ Ð½Ð¸Ñ Ð²Ð¾Ð·Ð½Ð¸ÐºÐ½ÑÑ ÑÑÑдноÑÑи. â â â â Ðжении: â â â â ÐÐµÑ â â en_US.UTF-8-8 â â ru_UA.UTF-8-8 â â â â â â <Ok>k> <ÐÑмена> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Generating locales (this might take a while)... en_US.UTF-8... done ru_UA.UTF-8... done Generation complete. |
#LANG=en_US.UTF-8
|
#LANG=ru_UA.UTF-8
|
#cat ~user/.l3rc
cat: ~user/.l3rc: Нет такого файла или каталога |
#cat ~alexsay/.l3rc
l3cd=/users/alexsay/nt-voip/linux3.unix.nt/alexsay |
#pkill -1 l3-agent
|
#su alexsay
|
$sudo ifconfig
[sudo] password for alexsay: eth0 Link encap:Ethernet HWaddr 00:0f:fe:e6:dd:33 inet addr:192.168.30.1 Bcast:192.168.30.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fee6:dd33/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:36 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:5201 (5.0 KiB) Interrupt:19 Memory:f0180000-f01a0000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:164 errors:0 dropped:0 overruns:0 frame:0 TX packets:164 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:64222 (62.7 KiB) TX bytes:64222 (62.7 KiB) |
$sudo ifconfig
[sudo] password for alexsay: eth0 Link encap:Ethernet HWaddr 00:0f:fe:e6:dd:33 inet addr:192.168.30.1 Bcast:192.168.30.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fee6:dd33/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:36 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:5201 (5.0 KiB) Interrupt:19 Memory:f0180000-f01a0000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:164 errors:0 dropped:0 overruns:0 frame:0 TX packets:164 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:64222 (62.7 KiB) TX bytes:64222 (62.7 KiB) |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... == Using SIP RTP CoS mark 5 -- Executing [3003@default:1] Dial("SIP/3001-0000000a", "SIP/3003") in new stack == Using SIP RTP CoS mark 5 -- Called 3003 -- SIP/3003-0000000b is ringing -- SIP/3003-0000000b answered SIP/3001-0000000a -- Native bridging SIP/3001-0000000a and SIP/3003-0000000b == Spawn extension (default, 3003, 1) exited non-zero on 'SIP/3001-0000000a' linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... == Using SIP RTP CoS mark 5 -- Executing [3003@default:1] Dial("SIP/3001-0000000a", "SIP/3003") in new stack == Using SIP RTP CoS mark 5 -- Called 3003 -- SIP/3003-0000000b is ringing -- SIP/3003-0000000b answered SIP/3001-0000000a -- Native bridging SIP/3001-0000000a and SIP/3003-0000000b == Spawn extension (default, 3003, 1) exited non-zero on 'SIP/3001-0000000a' linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... == Spawn extension (default, 3003, 1) exited non-zero on 'SIP/3001-0000000c' -- Unregistered SIP '3003' -- Registered SIP '3003' at 192.168.30.202 port 55805 > Saved useragent "CSipSimple r1000 / saga-10" for peer 3003 [Apr 24 10:27:01] NOTICE[1576]: chan_sip.c:18436 handle_response_peerpoke: Peer '3003' is now Reachable. (3ms / 2000ms) [Apr 24 10:28:05] NOTICE[1576]: chan_sip.c:23075 sip_poke_noanswer: Peer '3003' is now UNREACHABLE! Last qualify: 3 linux3*CLI> core set verbose 3 Verbosity was 9 and is now 3 linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... == Spawn extension (default, 3003, 1) exited non-zero on 'SIP/3001-0000000c' -- Unregistered SIP '3003' -- Registered SIP '3003' at 192.168.30.202 port 55805 > Saved useragent "CSipSimple r1000 / saga-10" for peer 3003 [Apr 24 10:27:01] NOTICE[1576]: chan_sip.c:18436 handle_response_peerpoke: Peer '3003' is now Reachable. (3ms / 2000ms) [Apr 24 10:28:05] NOTICE[1576]: chan_sip.c:23075 sip_poke_noanswer: Peer '3003' is now UNREACHABLE! Last qualify: 3 linux3*CLI> core set verbose 3 Verbosity was 9 and is now 3 linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... == Parsing '/etc/asterisk/users.conf': == Found [Apr 24 10:39:35] WARNING[1576]: chan_sip.c:25298 reload_config: Section '3001' lacks type == Parsing '/etc/asterisk/sip_notify.conf': == Found linux3*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 3002/3002 192.168.30.200 D N 63074 OK (6 ms) 3003/3003 192.168.30.202 D N 55805 UNREACHABLE 2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline] linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... == Parsing '/etc/asterisk/users.conf': == Found [Apr 24 10:39:35] WARNING[1576]: chan_sip.c:25298 reload_config: Section '3001' lacks type == Parsing '/etc/asterisk/sip_notify.conf': == Found linux3*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 3002/3002 192.168.30.200 D N 63074 OK (6 ms) 3003/3003 192.168.30.202 D N 55805 UNREACHABLE 2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline] linux3*CLI> exit Executing last minute cleanups |
$[3001]
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... Name/username Host Dyn Nat ACL Port Status 3002/3002 192.168.30.200 D N 63074 OK (5 ms) 3003/3003 192.168.30.202 D N 55805 UNREACHABLE 2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline] linux3*CLI> sip show No such command 'sip show' (type 'core show help sip show' for other possible commands) linux3*CLI> core show sip No such command 'core show sip' (type 'core show help core show' for other possible commands) linux3*CLI> exit Executing last minute cleanups |
$[3001]
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... Name/username Host Dyn Nat ACL Port Status 3002/3002 192.168.30.200 D N 63074 OK (5 ms) 3003/3003 192.168.30.202 D N 55805 UNREACHABLE 2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline] linux3*CLI> sip show No such command 'sip show' (type 'core show help sip show' for other possible commands) linux3*CLI> core show sip No such command 'core show sip' (type 'core show help core show' for other possible commands) linux3*CLI> exit Executing last minute cleanups |
$[ ]
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) Verbosity is at least 3 linux3*CLI> sip show No such command 'sip show' (type 'core show help sip show' for other possible commands) linux3*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 3002/3002 192.168.30.200 D N 63074 OK (6 ms) 3003/3003 (Unspecified) D N 0 UNKNOWN 2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline] linux3*CLI> exit Executing last minute cleanups |
$[ ]
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) Verbosity is at least 3 linux3*CLI> sip show No such command 'sip show' (type 'core show help sip show' for other possible commands) linux3*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 3002/3002 192.168.30.200 D N 63074 OK (6 ms) 3003/3003 (Unspecified) D N 0 UNKNOWN 2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline] linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551) 4096 (1 << 12) (0x1000) audio g722 (G722) 65536 (1 << 16) (0x10000) image jpeg (JPEG image) 131072 (1 << 17) (0x20000) image png (PNG image) 262144 (1 << 18) (0x40000) video h261 (H.261 Video) 524288 (1 << 19) (0x80000) video h263 (H.263 Video) 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video) 2097152 (1 << 21) (0x200000) video h264 (H.264 Video) linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551) 4096 (1 << 12) (0x1000) audio g722 (G722) 65536 (1 << 16) (0x10000) image jpeg (JPEG image) 131072 (1 << 17) (0x20000) image png (PNG image) 262144 (1 << 18) (0x40000) video h261 (H.261 Video) 524288 (1 << 19) (0x80000) video h263 (H.263 Video) 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video) 2097152 (1 << 21) (0x200000) video h264 (H.264 Video) linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551) 4096 (1 << 12) (0x1000) audio g722 (G722) 65536 (1 << 16) (0x10000) image jpeg (JPEG image) 131072 (1 << 17) (0x20000) image png (PNG image) 262144 (1 << 18) (0x40000) video h261 (H.261 Video) 524288 (1 << 19) (0x80000) video h263 (H.263 Video) 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video) 2097152 (1 << 21) (0x200000) video h264 (H.264 Video) linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551) 4096 (1 << 12) (0x1000) audio g722 (G722) 65536 (1 << 16) (0x10000) image jpeg (JPEG image) 131072 (1 << 17) (0x20000) image png (PNG image) 262144 (1 << 18) (0x40000) video h261 (H.261 Video) 524288 (1 << 19) (0x80000) video h263 (H.263 Video) 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video) 2097152 (1 << 21) (0x200000) video h264 (H.264 Video) linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... [Apr 24 11:07:02] NOTICE[1576]: chan_sip.c:21763 handle_request_register: Registration from '<sip:kiev@192.168.30.1>' failed for '192.168.50.1' - No matching peer found linux3*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 3001/3001 192.168.30.201 D N 5060 OK (2 ms) 3002/3002 192.168.30.200 D N 63074 OK (6 ms) 3003/3003 (Unspecified) D N 5060 UNKNOWN zurich/bern 192.168.15.252 D N 5060 Unmonitored 4 sip peers [Monitored: 2 online, 1 offline Unmonitored: 1 online, 0 offline] linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... [Apr 24 11:07:02] NOTICE[1576]: chan_sip.c:21763 handle_request_register: Registration from '<sip:kiev@192.168.30.1>' failed for '192.168.50.1' - No matching peer found linux3*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 3001/3001 192.168.30.201 D N 5060 OK (2 ms) 3002/3002 192.168.30.200 D N 63074 OK (6 ms) 3003/3003 (Unspecified) D N 5060 UNKNOWN zurich/bern 192.168.15.252 D N 5060 Unmonitored 4 sip peers [Monitored: 2 online, 1 offline Unmonitored: 1 online, 0 offline] linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... == Using SIP RTP CoS mark 5 -- Executing [6001@default:1] Dial("SIP/3001-0000000e", "SIP/zurich/6001") in new stack == Using SIP RTP CoS mark 5 -- Called zurich/6001 -- SIP/zurich-0000000f is ringing -- SIP/zurich-0000000f answered SIP/3001-0000000e -- Packet2Packet bridging SIP/3001-0000000e and SIP/zurich-0000000f == Spawn extension (default, 6001, 1) exited non-zero on 'SIP/3001-0000000e' linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... == Using SIP RTP CoS mark 5 -- Executing [6001@default:1] Dial("SIP/3001-0000000e", "SIP/zurich/6001") in new stack == Using SIP RTP CoS mark 5 -- Called zurich/6001 -- SIP/zurich-0000000f is ringing -- SIP/zurich-0000000f answered SIP/3001-0000000e -- Packet2Packet bridging SIP/3001-0000000e and SIP/zurich-0000000f == Spawn extension (default, 6001, 1) exited non-zero on 'SIP/3001-0000000e' linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) Verbosity is at least 3 linux3*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Parsing '/etc/asterisk/sip_notify.conf': == Found [Apr 24 11:21:00] WARNING[1576]: chan_sip.c:18282 handle_response_register: Got 404 Not found on SIP register to service bern@192.168.50.1, giving up [Apr 24 11:21:00] WARNING[1576]: chan_sip.c:18276 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'bern' to '192.168.10.1' linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) Verbosity is at least 3 linux3*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Parsing '/etc/asterisk/sip_notify.conf': == Found [Apr 24 11:21:00] WARNING[1576]: chan_sip.c:18282 handle_response_register: Got 404 Not found on SIP register to service bern@192.168.50.1, giving up [Apr 24 11:21:00] WARNING[1576]: chan_sip.c:18276 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'bern' to '192.168.10.1' linux3*CLI> exit Executing last minute cleanups |
$~
[default] exten=>_30XX,1,Dial(SIP/${EXTEN}) "/etc/asterisk/extensions.conf" 5L, 87C exten=>_60xx,1,Dial(SIP/zurich/${EXTEN}) |
$~
[default] exten=>_30XX,1,Dial(SIP/${EXTEN}) exten=>_60xx,1,Dial(SIP/zurich/${EXTEN}) "/etc/asterisk/extensions.conf" 5L, 87C |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... -- SIP/rome-00000023 is ringing -- SIP/rome-00000023 answered SIP/zurich-00000022 -- Packet2Packet bridging SIP/zurich-00000022 and SIP/rome-00000023 == Spawn extension (default, 1005, 1) exited non-zero on 'SIP/zurich-00000022' == Using SIP RTP CoS mark 5 [Apr 24 11:25:54] NOTICE[1576]: chan_sip.c:20276 handle_request_invite: Call from '3001' to extension '4001' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Apr 24 11:26:07] NOTICE[1576]: chan_sip.c:20276 handle_request_invite: Call from 'bern' to extension '2001' rejected because extension not found in context 'default'. linux3*CLI> exit Executing last minute cleanups |
$sudo asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze4 currently running on linux3 (pid = 1523) ... -- SIP/rome-00000023 is ringing -- SIP/rome-00000023 answered SIP/zurich-00000022 -- Packet2Packet bridging SIP/zurich-00000022 and SIP/rome-00000023 == Spawn extension (default, 1005, 1) exited non-zero on 'SIP/zurich-00000022' == Using SIP RTP CoS mark 5 [Apr 24 11:25:54] NOTICE[1576]: chan_sip.c:20276 handle_request_invite: Call from '3001' to extension '4001' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Apr 24 11:26:07] NOTICE[1576]: chan_sip.c:20276 handle_request_invite: Call from 'bern' to extension '2001' rejected because extension not found in context 'default'. linux3*CLI> exit Executing last minute cleanups |
$sudo mkdir /etc/var/asterisk/
mkdir: невозможно создать каталог «/etc/var/asterisk/»: Нет такого файла или каталога |
$sudo mkdir /etc/var/asterisk/
mkdir: невозможно создать каталог «/etc/var/asterisk/»: Нет такого файла или каталога |
$chown asterisk:asterisk /var/tmp/asterisk/
chown: изменение владельца «/var/tmp/asterisk/»: Операция не позволяется |
$chown asterisk:asterisk /var/tmp/asterisk/
chown: изменение владельца «/var/tmp/asterisk/»: Операция не позволяется |
$ls -l
итого 32 drwxr-xr-x 2 asterisk asterisk 4096 Апр 24 11:54 asterisk drwxrwx--- 2 asterisk asterisk 4096 Апр 24 11:59 astersik -rw------- 1 alexsay alexsay 12288 Апр 23 12:38 bash.bashrc.swp -rw------- 1 alexsay alexsay 12288 Апр 23 15:52 sip.conf.swp |
$ls -l
итого 32 drwxr-xr-x 2 asterisk asterisk 4096 Апр 24 11:54 asterisk drwxrwx--- 2 asterisk asterisk 4096 Апр 24 11:59 astersik -rw------- 1 alexsay alexsay 12288 Апр 23 12:38 bash.bashrc.swp -rw------- 1 alexsay alexsay 12288 Апр 23 15:52 sip.conf.swp |
$chown man
chown: пропущен операнд после «man» Попробуйте `chown --help' для получения более подробного описания. |
l3cd=/users/alexsay/nt-voip/linux3.unix.nt/root
l3cd=/users/alexsay/nt-voip/linux3.unix.nt/alexsay
Время первой команды журнала | 11:18:54 2012- 4-23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:59:58 2012- 4-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.77 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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