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

Содержание

Журнал

Пятница (12/11/09)

/dev/pts/0
13:54:59
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
...
[Dec 11 14:58:55] WARNING[2376]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 14:59:00] WARNING[2376]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 14:59:05] WARNING[2376]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
obukhov*CLI>
obukhov*CLI>
[Dec 11 14:59:10] WARNING[2376]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
obukhov*CLI> quir
No such command 'quir' (type 'help quir' for other possible commands)
obukhov*CLI> quit
Executing last minute cleanups
13:54:59
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
...
[Dec 11 14:58:55] WARNING[2376]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 14:59:00] WARNING[2376]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 14:59:05] WARNING[2376]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
obukhov*CLI>
obukhov*CLI>
[Dec 11 14:59:10] WARNING[2376]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
obukhov*CLI> quir
No such command 'quir' (type 'help quir' for other possible commands)
obukhov*CLI> quit
Executing last minute cleanups
/dev/pts/0
14:04:21
#tail /var/log/messages
Dec 11 14:43:26 obukhov kernel: [   13.656210] loop: module loaded
Dec 11 14:43:26 obukhov kernel: [   14.318105] atl1 0000:02:00.0: eth0 link is up 100 Mbps full duplex
Dec 11 14:43:26 obukhov kernel: [   14.743643] NET: Registered protocol family 10
Dec 11 14:43:26 obukhov kernel: [   14.743643] lo: Disabled Privacy Extensions
Dec 11 14:43:27 obukhov kernel: [   16.944578] wcte12xp: Span configured for CCS/HDB3/CRC4
Dec 11 14:43:29 obukhov lpd[2303]: restarted
Dec 11 14:44:18 obukhov kernel: [   79.199072] [drm] Initialized drm 1.1.0 20060810
Dec 11 14:44:18 obukhov kernel: [   79.203072] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
Dec 11 14:44:18 obukhov kernel: [   79.203072] [drm] Initialized i915 1.6.0 20060119 on minor 0
Dec 11 14:56:56 obukhov kernel: [ 1001.454735] wcte12xp: Setting yellow alarm
14:04:21
#tail /var/log/messages
Dec 11 14:43:26 obukhov kernel: [   13.656210] loop: module loaded
Dec 11 14:43:26 obukhov kernel: [   14.318105] atl1 0000:02:00.0: eth0 link is up 100 Mbps full duplex
Dec 11 14:43:26 obukhov kernel: [   14.743643] NET: Registered protocol family 10
Dec 11 14:43:26 obukhov kernel: [   14.743643] lo: Disabled Privacy Extensions
Dec 11 14:43:27 obukhov kernel: [   16.944578] wcte12xp: Span configured for CCS/HDB3/CRC4
Dec 11 14:43:29 obukhov lpd[2303]: restarted
Dec 11 14:44:18 obukhov kernel: [   79.199072] [drm] Initialized drm 1.1.0 20060810
Dec 11 14:44:18 obukhov kernel: [   79.203072] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
Dec 11 14:44:18 obukhov kernel: [   79.203072] [drm] Initialized i915 1.6.0 20060119 on minor 0
Dec 11 14:56:56 obukhov kernel: [ 1001.454735] wcte12xp: Setting yellow alarm
14:04:25
#tail /var/log/messages
Dec 11 14:43:26 obukhov kernel: [   13.656210] loop: module loaded
Dec 11 14:43:26 obukhov kernel: [   14.318105] atl1 0000:02:00.0: eth0 link is up 100 Mbps full duplex
Dec 11 14:43:26 obukhov kernel: [   14.743643] NET: Registered protocol family 10
Dec 11 14:43:26 obukhov kernel: [   14.743643] lo: Disabled Privacy Extensions
Dec 11 14:43:27 obukhov kernel: [   16.944578] wcte12xp: Span configured for CCS/HDB3/CRC4
Dec 11 14:43:29 obukhov lpd[2303]: restarted
Dec 11 14:44:18 obukhov kernel: [   79.199072] [drm] Initialized drm 1.1.0 20060810
Dec 11 14:44:18 obukhov kernel: [   79.203072] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
Dec 11 14:44:18 obukhov kernel: [   79.203072] [drm] Initialized i915 1.6.0 20060119 on minor 0
Dec 11 14:56:56 obukhov kernel: [ 1001.454735] wcte12xp: Setting yellow alarm
14:04:25
#tail /var/log/messages
Dec 11 14:43:26 obukhov kernel: [   13.656210] loop: module loaded
Dec 11 14:43:26 obukhov kernel: [   14.318105] atl1 0000:02:00.0: eth0 link is up 100 Mbps full duplex
Dec 11 14:43:26 obukhov kernel: [   14.743643] NET: Registered protocol family 10
Dec 11 14:43:26 obukhov kernel: [   14.743643] lo: Disabled Privacy Extensions
Dec 11 14:43:27 obukhov kernel: [   16.944578] wcte12xp: Span configured for CCS/HDB3/CRC4
Dec 11 14:43:29 obukhov lpd[2303]: restarted
Dec 11 14:44:18 obukhov kernel: [   79.199072] [drm] Initialized drm 1.1.0 20060810
Dec 11 14:44:18 obukhov kernel: [   79.203072] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
Dec 11 14:44:18 obukhov kernel: [   79.203072] [drm] Initialized i915 1.6.0 20060119 on minor 0
Dec 11 14:56:56 obukhov kernel: [ 1001.454735] wcte12xp: Setting yellow alarm
14:04:31
#less /var/log/asterisk/
14:04:31
#less /var/log/asterisk/
14:04:31
#less /var/log/asterisk/messages
14:04:31
#less /var/log/asterisk/messages
14:06:40
#{CALLERID(all)}" | /usr/local/bin/jabblog ${ARG1})
; Note that if any of your Zaptel cards have hardware echo cancellers,
; then this setting only turns them on and off; numeric settings will
; be treated as "yes". There are no special settings required for
; hardware echo cancellers; when present and enabled in their kernel
; modules, they take precedence over the software echo canceller compiled
; into Zaptel automatically.
;
echocancel=yes
;
; Generally, it is not necessary (and in fact undesirable) to echo cancel when
...
; Note that these parameters do not apply to hardware echo cancellers.
;
;echotraining=yes
;echotraining=800
;
; If you are having trouble with DTMF detection, you can relax the DTMF
; detection parameters.  Relaxing them may make the DTMF detector more likely
; to have "talkoff" where DTMF is detected when it shouldn't be.
;
;relaxdtmf=yes
14:06:40
#{CALLERID(all)}" | /usr/local/bin/jabblog ${ARG1})
; Note that if any of your Zaptel cards have hardware echo cancellers,
; then this setting only turns them on and off; numeric settings will
; be treated as "yes". There are no special settings required for
; hardware echo cancellers; when present and enabled in their kernel
; modules, they take precedence over the software echo canceller compiled
; into Zaptel automatically.
;
echocancel=yes
;
; Generally, it is not necessary (and in fact undesirable) to echo cancel when
...
; Note that these parameters do not apply to hardware echo cancellers.
;
;echotraining=yes
;echotraining=800
;
; If you are having trouble with DTMF detection, you can relax the DTMF
; detection parameters.  Relaxing them may make the DTMF detector more likely
; to have "talkoff" where DTMF is detected when it shouldn't be.
;
;relaxdtmf=yes
14:08:29
#less /var/log/asterisk/
14:08:29
#less /var/log/asterisk/messages
14:08:29
#less /var/log/asterisk/messages
/dev/pts/0
14:10:01
#vi /etc/zaptel.conf
--- /tmp/l3-saved-3309.8828.5871	2009-12-11 15:10:04.000000000 +0200
+++ /etc/zaptel.conf	2009-12-11 15:10:15.000000000 +0200
@@ -1,4 +1,4 @@
-span=1,0,0,ccs,hdb3,crc4
+span=1,1,0,ccs,hdb3,crc4
 bchan=1-15
 dchan=16
-bchan=17-31
+;bchan=17-31
14:10:01
#vi /etc/zaptel.conf
--- /tmp/l3-saved-3309.8828.5871	2009-12-11 15:10:04.000000000 +0200
+++ /etc/zaptel.conf	2009-12-11 15:10:15.000000000 +0200
@@ -1,4 +1,4 @@
-span=1,0,0,ccs,hdb3,crc4
+span=1,1,0,ccs,hdb3,crc4
 bchan=1-15
 dchan=16
-bchan=17-31
+;bchan=17-31
14:10:15
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-3309.20591.14249	2009-12-11 15:10:20.000000000 +0200
+++ /etc/asterisk/zapata.conf	2009-12-11 15:10:31.000000000 +0200
@@ -210,7 +210,7 @@
 ;                 (2-way)
 ; sf_rxtx:        Same as sf_txrx (for our dyslexic friends)
 ;
-signalling=pri_net
+signalling=pri_cpe ; net
 ;
 ; If you have an outbound signalling format that is different from format
 ; specified above (but compatible), you can specify outbound signalling format,
14:10:15
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-3309.20591.14249	2009-12-11 15:10:20.000000000 +0200
+++ /etc/asterisk/zapata.conf	2009-12-11 15:10:31.000000000 +0200
@@ -210,7 +210,7 @@
 ;                 (2-way)
 ; sf_rxtx:        Same as sf_txrx (for our dyslexic friends)
 ;
-signalling=pri_net
+signalling=pri_cpe ; net
 ;
 ; If you have an outbound signalling format that is different from format
 ; specified above (but compatible), you can specify outbound signalling format,
14:10:31
#/etc/init.d/zaptel stop

14:10:31
#/etc/init.d/zaptel stop

14:10:37
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:10:37
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:10:42
#/etc/init.d/zaptel start
Zaptel telephony kernel driver: Notice: Configuration file is /etc/zaptel.conf
line 4: Unknown keyword ';bchan'
1 error(s) detected
14:10:42
#/etc/init.d/zaptel start
Zaptel telephony kernel driver: Notice: Configuration file is /etc/zaptel.conf
line 4: Unknown keyword ';bchan'
1 error(s) detected
/dev/pts/7
14:10:42
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
...
The 'show config mappings' command is deprecated and will be removed in a future release. Please use 'core show config mappings' instead.
    -- Channel 0/1, span 1 got hangup request, cause 19
    -- Hungup 'Zap/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/301-0961cb40' status is 'CHANUNAVAIL'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/0
14:10:44
#vi /etc/zaptel.conf
--- /tmp/l3-saved-3309.7456.16162	2009-12-11 15:10:48.000000000 +0200
+++ /etc/zaptel.conf	2009-12-11 15:10:51.000000000 +0200
@@ -1,4 +1,4 @@
 span=1,1,0,ccs,hdb3,crc4
 bchan=1-15
 dchan=16
-;bchan=17-31
+#;bchan=17-31
14:10:44
#vi /etc/zaptel.conf
--- /tmp/l3-saved-3309.7456.16162	2009-12-11 15:10:48.000000000 +0200
+++ /etc/zaptel.conf	2009-12-11 15:10:51.000000000 +0200
@@ -1,4 +1,4 @@
 span=1,1,0,ccs,hdb3,crc4
 bchan=1-15
 dchan=16
-;bchan=17-31
+#;bchan=17-31
14:10:51
#tail /var/log/messages
Dec 11 14:43:26 obukhov kernel: [   14.743643] NET: Registered protocol family 10
Dec 11 14:43:26 obukhov kernel: [   14.743643] lo: Disabled Privacy Extensions
Dec 11 14:43:27 obukhov kernel: [   16.944578] wcte12xp: Span configured for CCS/HDB3/CRC4
Dec 11 14:43:29 obukhov lpd[2303]: restarted
Dec 11 14:44:18 obukhov kernel: [   79.199072] [drm] Initialized drm 1.1.0 20060810
Dec 11 14:44:18 obukhov kernel: [   79.203072] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
Dec 11 14:44:18 obukhov kernel: [   79.203072] [drm] Initialized i915 1.6.0 20060119 on minor 0
Dec 11 14:56:56 obukhov kernel: [ 1001.454735] wcte12xp: Setting yellow alarm
Dec 11 15:10:21 obukhov kernel: [ 1969.977200] wcte12xp: Clearing yellow alarm
Dec 11 15:10:51 obukhov kernel: [ 2008.068534] wcte12xp: Span configured for CCS/HDB3/CRC4
14:10:51
#tail /var/log/messages
Dec 11 14:43:26 obukhov kernel: [   14.743643] NET: Registered protocol family 10
Dec 11 14:43:26 obukhov kernel: [   14.743643] lo: Disabled Privacy Extensions
Dec 11 14:43:27 obukhov kernel: [   16.944578] wcte12xp: Span configured for CCS/HDB3/CRC4
Dec 11 14:43:29 obukhov lpd[2303]: restarted
Dec 11 14:44:18 obukhov kernel: [   79.199072] [drm] Initialized drm 1.1.0 20060810
Dec 11 14:44:18 obukhov kernel: [   79.203072] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
Dec 11 14:44:18 obukhov kernel: [   79.203072] [drm] Initialized i915 1.6.0 20060119 on minor 0
Dec 11 14:56:56 obukhov kernel: [ 1001.454735] wcte12xp: Setting yellow alarm
Dec 11 15:10:21 obukhov kernel: [ 1969.977200] wcte12xp: Clearing yellow alarm
Dec 11 15:10:51 obukhov kernel: [ 2008.068534] wcte12xp: Span configured for CCS/HDB3/CRC4
14:11:35
#less /var/log/asterisk/messages
/dev/pts/9
14:13:34
#ssh 192.168.102.1
root@192.168.102.1's password:
Linux debian4 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 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: Fri Dec 11 00:08:56 2009 from 192.168.7.101
l3-agent is already running: pid=2751; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/0
14:15:15
#/etc/init.d/zaptel start
Zaptel telephony kernel driver: zaptel.
14:15:18
#tail /var/log/messages
Dec 11 14:43:27 obukhov kernel: [   16.944578] wcte12xp: Span configured for CCS/HDB3/CRC4
Dec 11 14:43:29 obukhov lpd[2303]: restarted
Dec 11 14:44:18 obukhov kernel: [   79.199072] [drm] Initialized drm 1.1.0 20060810
Dec 11 14:44:18 obukhov kernel: [   79.203072] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
Dec 11 14:44:18 obukhov kernel: [   79.203072] [drm] Initialized i915 1.6.0 20060119 on minor 0
Dec 11 14:56:56 obukhov kernel: [ 1001.454735] wcte12xp: Setting yellow alarm
Dec 11 15:10:21 obukhov kernel: [ 1969.977200] wcte12xp: Clearing yellow alarm
Dec 11 15:10:51 obukhov kernel: [ 2008.068534] wcte12xp: Span configured for CCS/HDB3/CRC4
Dec 11 15:14:33 obukhov kernel: [ 2271.091778] wcte12xp: Setting yellow alarm
Dec 11 15:15:18 obukhov kernel: [ 2326.055605] wcte12xp: Span configured for CCS/HDB3/CRC4
14:15:21
#tail /var/log/asterisk/messages
[Dec 11 15:14:39] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:44] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:49] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:54] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:59] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:04] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:09] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:14] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:19] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:24] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
14:15:27
#tail -f /var/log/asterisk/messages
[Dec 11 15:14:44] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:49] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:54] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:59] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:04] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:09] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:14] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:19] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:24] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:29] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
...
[Dec 11 15:16:25] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:30] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:35] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:40] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:45] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:48] NOTICE[3490] chan_zap.c: PRI got event: No more alarm (5) on Primary D-channel of span 1
[Dec 11 15:16:48] NOTICE[3491] chan_zap.c: Alarm cleared on channel 1
[Dec 11 15:16:50] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:55] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
^C
14:15:27
#tail -f /var/log/asterisk/messages
[Dec 11 15:14:44] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:49] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:54] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:14:59] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:04] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:09] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:14] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:19] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:24] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:15:29] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
...
[Dec 11 15:16:25] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:30] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:35] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:40] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:45] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:48] NOTICE[3490] chan_zap.c: PRI got event: No more alarm (5) on Primary D-channel of span 1
[Dec 11 15:16:48] NOTICE[3491] chan_zap.c: Alarm cleared on channel 1
[Dec 11 15:16:50] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Dec 11 15:16:55] WARNING[3490] chan_zap.c: No D-channels available!  Using Primary channel 16 as D-channel anyway!
^C
14:17:12
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
...
1 active call
    -- Channel 0/1, span 1 got hangup request, cause 19
    -- Hungup 'Zap/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/301-0961cb40' status is 'CHANUNAVAIL'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/5
14:20:11
#mkdir /root/asterisk.configs

14:20:28
#cp -Rfv * /root/asterisk.configs/
`adsi.conf' -> `/root/asterisk.configs/adsi.conf'
`adtranvofr.conf' -> `/root/asterisk.configs/adtranvofr.conf'
`agents.conf' -> `/root/asterisk.configs/agents.conf'
`alarmreceiver.conf' -> `/root/asterisk.configs/alarmreceiver.conf'
`alsa.conf' -> `/root/asterisk.configs/alsa.conf'
`amd.conf' -> `/root/asterisk.configs/amd.conf'
`asterisk.adsi' -> `/root/asterisk.configs/asterisk.adsi'
`asterisk.conf' -> `/root/asterisk.configs/asterisk.conf'
`cdr.conf' -> `/root/asterisk.configs/cdr.conf'
`cdr_custom.conf' -> `/root/asterisk.configs/cdr_custom.conf'
...
`skinny.conf' -> `/root/asterisk.configs/skinny.conf'
`sla.conf' -> `/root/asterisk.configs/sla.conf'
`smdi.conf' -> `/root/asterisk.configs/smdi.conf'
`telcordia-1.adsi' -> `/root/asterisk.configs/telcordia-1.adsi'
`udptl.conf' -> `/root/asterisk.configs/udptl.conf'
`users.conf' -> `/root/asterisk.configs/users.conf'
`voicemail.conf' -> `/root/asterisk.configs/voicemail.conf'
`vpb.conf' -> `/root/asterisk.configs/vpb.conf'
`watchdog.conf' -> `/root/asterisk.configs/watchdog.conf'
`zapata.conf' -> `/root/asterisk.configs/zapata.conf'
14:20:44
#cp ../zaptel.conf /root/

14:20:56
#dpkg -r asterisk

14:21:15
#apt-get remove asterisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  asterisk
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 6140kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 56046 files and directories currently installed.)
Removing asterisk ...
Stopping Asterisk PBX: asterisk.
Processing triggers for man-db ...
14:21:32
#dpkg -P asterisk
(Reading database ... 55823 files and directories currently installed.)
Removing asterisk ...
Purging configuration files for asterisk ...
dpkg - warning: while removing asterisk, directory `/var/spool/asterisk/voicemail' not empty so not removed.
dpkg - warning: while removing asterisk, directory `/var/spool/asterisk' not empty so not removed.
14:21:50
#dpkg -P asterisk.
asterisk.adsi  asterisk.conf
14:21:50
#dpkg -P asterisk.
asterisk.adsi  asterisk.conf
14:21:50
#dpkg -P asterisk.
asterisk.adsi  asterisk.conf
14:21:50
#dpkg -P asterisk.

14:22:13
#cd ../

14:22:13
#cd ../

14:22:15
#dpkg -P asterisk
dpkg - warning: ignoring request to remove asterisk which isn't installed.
14:22:15
#dpkg -P asterisk
dpkg - warning: ignoring request to remove asterisk which isn't installed.
14:22:22
#. /etc/bash_completion

14:22:33
#dpkg -P asterisk-*
dpkg - warning: ignoring request to remove asterisk-* which isn't installed.
14:22:33
#dpkg -P asterisk-*
dpkg - warning: ignoring request to remove asterisk-* which isn't installed.
14:22:38
#dpkg -P asterisk-.*
dpkg - warning: ignoring request to remove asterisk-.* which isn't installed.
14:22:38
#dpkg -P asterisk-.*
dpkg - warning: ignoring request to remove asterisk-.* which isn't installed.
14:22:40
#dpkg -P asterisk-config
(Reading database ... 55814 files and directories currently installed.)
Removing asterisk-config ...
Purging configuration files for asterisk-config ...
dpkg - warning: while removing asterisk-config, directory `/etc/asterisk' not empty so not removed.
14:22:40
#dpkg -P asterisk-config
(Reading database ... 55814 files and directories currently installed.)
Removing asterisk-config ...
Purging configuration files for asterisk-config ...
dpkg - warning: while removing asterisk-config, directory `/etc/asterisk' not empty so not removed.
14:22:44
#rm -rf asterisk/

14:22:44
#rm -rf asterisk/

14:22:54
#ztscan
[1]
active=yes
alarms=OK
description=Wildcard TE122 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE122
location=PCI Bus 03 Slot 01
basechan=1
totchans=31
irq=20
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
14:23:08
#dpkg -P zaptel
zaptel                       zaptel-modules-2.6.26-2-686  zaptel-source
14:23:08
#dpkg -P zaptel
(Reading database ... 55671 files and directories currently installed.)
Removing zaptel ...
Purging configuration files for zaptel ...
Processing triggers for man-db ...
14:23:31
#dpkg -P zaptel-modules-2.6.26-2-686
(Reading database ... 55587 files and directories currently installed.)
Removing zaptel-modules-2.6.26-2-686 ...
Purging configuration files for zaptel-modules-2.6.26-2-686 ...
14:23:31
#dpkg -P zaptel-modules-2.6.26-2-686
(Reading database ... 55587 files and directories currently installed.)
Removing zaptel-modules-2.6.26-2-686 ...
Purging configuration files for zaptel-modules-2.6.26-2-686 ...
/dev/pts/1
14:25:41
#. /etc/bash_completion

14:25:48
#screen
/dev/pts/3
14:25:53
#apt-get install asterisk.configs/

14:26:11
#cd /etc/

14:26:13
#apt-get insta

14:26:20
#. /etc/bash_completion

14:26:26
#apt-get install asterisk asterisk
asterisk                          asterisk-oh323
asterisk-1.4                      asterisk-ooh323c
asterisk-bristuff                 asterisk-prompt-de
asterisk-chan-capi                asterisk-prompt-es
asterisk-classic                  asterisk-prompt-es-co
asterisk-config                   asterisk-prompt-fr
asterisk-config-custom            asterisk-prompt-fr-armelle
asterisk-dbg                      asterisk-prompt-fr-proformatique
asterisk-dev                      asterisk-prompt-it
asterisk-doc                      asterisk-prompt-se
asterisk-h323                     asterisk-sounds-extra
asterisk-mp3                      asterisk-sounds-main
asterisk-mysql
14:27:08
#apt-get install zap
zapping                      zaptel-modules-2.6.26-2-686
zaptel                       zaptel-source
14:27:08
#apt-get install zaptel zaptel-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
zaptel-source is already the newest version.
The following NEW packages will be installed:
  zaptel
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/299kB of archives.
After this operation, 1085kB of additional disk space will be used.
Selecting previously deselected package zaptel.
(Reading database ... 55919 files and directories currently installed.)
Unpacking zaptel (from .../zaptel_1%3a1.4.11~dfsg-3_i386.deb) ...
Processing triggers for man-db ...
Setting up zaptel (1:1.4.11~dfsg-3) ...
Zaptel telephony kernel driver: FATAL: Module ztdummy not found.
14:28:09
#m
m4                metasend          mk_modmap         msgattrib
m-a               mii-tool          mknod             msgcat
mail/             mimeit            mkpasswd          msgcmp
mail-files        mimencode         mkswap            msgcomm
mailq             mkbimage          mktemp            msgconv
mailshar          mkbiospkg.sh      mlocate           msgen
mailstat          mkboot            mlock             msgexec
mailstats         mkdir             modinfo           msgfilter
mailto            mke2fs            modprobe          msgfmt
mailx             mkfifo            module-assistant  msggrep
...
man               mkfs.bfs          mount.nfs4        msguniq
mandb             mkfs.cramfs       mountpoint        mt
manpath           mkfs.ext2         mp3-decoder       mt-gnu
mawk              mkfs.ext3         mpg123            mtrace
mbchk             mkfs.ext4         mpg123-alsa       munchlist
mcookie           mkfs.ext4dev      mpg123.bin        muted
md5sum            mkfs.minix        mpg123-esd        mutt
md5sum.textutils  mkinitramfs       mpg123-nas        mutt_dotlock
mesg              mkinitramfs-kpkg  mpg123-oss        mv
metamail          mklost+found      mpg123-oss-i486
14:28:09
#m-a a-i zaptel
unpack
Extracting the package tarball, /usr/src/zaptel.tar.bz2, please wait...
Target package file
/usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb
already exists, not rebuilding!
(however, you could use the -f switch to ignore it)
dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb
Selecting previously deselected package zaptel-modules-2.6.26-2-686.
(Reading database ... 56003 files and directories currently installed.)
Unpacking zaptel-modules-2.6.26-2-686 (from .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb) ...
Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-19lenny2) ...
14:28:37
#ztscan
Unable to open /dev/zap/ctl: No such file or directory
14:30:11
#/etc/init.d/zaptel
Usage: /etc/init.d/zaptel {start|stop|restart|force-reload|status|unload}
14:30:18
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'
line 0: Unable to open configuration file '/etc/zaptel.conf'
2 error(s) detected
14:30:21
#cp /root/zaptel.conf .

14:30:32
#ztscan
[1]
active=yes
alarms=UNCONFIGURED
description=ZTDUMMY/1 (source: HRtimer) 1
name=ZTDUMMY/1
manufacturer=
devicetype=Zaptel Dummy Timing Driver
location=
basechan=1
totchans=0
irq=0
14:30:37
#cat zaptel.conf
span=1,1,0,ccs,hdb3,crc4
bchan=1-15
dchan=16
#;bchan=17-31
14:30:43
#shutdown -r now

/dev/tty1
14:31:59
#. /etc/bash_completion

14:32:05
#ztscan
[1]
active=yes
alarms=OK
description=Wildcard TE122 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE122
location=PCI Bus 03 Slot 01
basechan=1
totchans=31
irq=20
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
14:32:08
#cd asterisk.configs/

14:32:17
#cp extensions.conf /etc/asterisk/

14:32:27
#cp sip.conf /etc/asterisk/

14:32:33
#cd /etc/asterisk/

14:32:51
#vim sip.conf
--- /tmp/l3-saved-2542.13391.746	2009-12-11 15:32:57.000000000 +0200
+++ sip.conf	2009-12-11 15:33:08.000000000 +0200
@@ -1,8 +1,5 @@
 [general]
 context=default
-;videosupport=yes
-
-register => fromKiev@192.168.102.1/obukhov
 
 [301]
 type=friend
@@ -16,13 +13,3 @@
 secret=123
 callerid="romchiko-winSoft"
 
-[fromDeb4]
-type=friend
-host=dynamic
-secret=123
-callerid="romchiko-DEB-4"
-
-[obukhov]
-type=friend
-host=dynamic
-username=forKiev
14:33:08
#vim extensions.conf
--- /tmp/l3-saved-2542.24337.1957	2009-12-11 15:33:12.000000000 +0200
+++ extensions.conf	2009-12-11 15:34:06.000000000 +0200
@@ -1,71 +1,10 @@
 
-[macro-jabblog]
-exten => s,1,System(echo Tebe zavonit kakoeto telo "${CALLERID(all)}" | /usr/local/bin/jabblog ${ARG1})
-exten => s,n,Dial(SIP/${ARG1},10)
-exten => s,n,VoiceMail(${ARG1}@default,u)
-
 [default]
 
 exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)})
 exten => _3XX,1,Dial(SIP/${EXTEN})
 
-exten => 7000,1,VoiceMailMain()
-
-;exten => 400,1,MeetMe(1,dcP,1234)
-exten => 400,1,MeetMe(1,DMc)
-exten => 401,1,MeetMe(1,Dmc)
-
-;exten => _3XX,1,Macro(jabblog,${EXTEN})
-
-;exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
-
 exten => _1XX,1,Set(CALLERID(all)=ROMAZAVR)
 exten => _1XX,n,Dial(ZAP/G1/${EXTEN})
 
 exten => 911,1,Dial(ZAP/G1/${EXTEN})
-
-exten => _380XXXXXXXXX,1,Dial(SIP/fromDeb4/${EXTEN})
-
-exten => 300,1,Answer
-;exten => 300,n,Wait(2)
-exten => 300,n,Echo
-exten => 300,n,Hangup
-;exten => 300,n,
-
-exten => 391,1,Wait(2)
-exten => 391,n,Playback(casanova)
-
-exten => _31X,1,Answer
-exten => _31X,n,Wait(2)
-exten => _31X,n,Record(/root/megamenu/proba${EXTEN:1}:gsm|3)
-exten => _31X,n,Playback(/root/megamenu/proba${EXTEN:1})
-exten => _31X,n,Hangup
-
-exten => 340,1,Background(/root/megamenu/proba19)
-;exten => 340,1,System(echo You have ZVONOCHEK " ${CALLERID(all)} ${STRFTIME(${EPOCH},,%d/\%m/\%Y-%H:%M:%S)} ${CHANNEL}"| sendxmpp -f /var/lib/asterisk/.sendxmpprc romchiko@obukhov.unix.nt)
-exten => 340,n,WaitExten()
-exten => 1,1,Playback(/root/megamenu/proba10)
-exten => 1,n,Goto(340,1)
-exten => 2,1,Playback(/root/megamenu/proba11)
-exten => 2,n,Goto(340,1)
-exten => 3,1,Playback(/root/megamenu/proba12)
-exten => 3,n,Goto(340,1)
-exten => 4,1,Playback(/root/megamenu/proba13)
-exten => 4,n,Goto(menu4,s,1)
-exten => 0,1,Playback(/root/megamenu/proba18)
-exten => 0,n,Hangup
-exten => i,1,Playback(/root/megamenu/proba17)
-exten => i,n,Goto(340,1)
-exten => t,1,Goto(340,1)
-
-exten => 342,1,Answer
-exten => 342,n,Festival('e1000: eth1: e1000_watchdog: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX')
-
-[menu4]
-exten => s,1,Background(/root/megamenu/proba14)
-exten => s,n,WaitExten()
-exten => 1,1,Playback(/root/megamenu/proba15)
-exten => 1,n,Goto(default,301,1)
-exten => 0,1,Playback(/root/megamenu/proba16)
-exten => 0,n,Goto(default,340,1)
-exten => t,1,Goto(menu4,s,1)
14:34:06
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:34:12
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, 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/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on obukhov (pid = 2726)
Verbosity was 0 and is now 4
    -- Executing [301@default:1] Set("SIP/301-0854b618", "CALLERID(number)=2301") in new stack
  == Auto fallthrough, channel 'SIP/301-0854b618' status is 'UNKNOWN'
[Dec 11 15:34:22] NOTICE[2752]: chan_iax2.c:5499 register_verify: No registration for peer 'frompoltava' (from 192.168.101.3)
obukhov*CLI> quit
Executing last minute cleanups
14:34:47
#vim sip.conf
14:36:52
#vim extensions.conf
14:37:35
#vim zapata.conf
--- /tmp/l3-saved-2542.30491.4505	2009-12-11 15:37:41.000000000 +0200
+++ zapata.conf	2009-12-11 15:39:27.000000000 +0200
@@ -59,7 +59,7 @@
 ; ni1:            Old National ISDN 1
 ; qsig:           Q.SIG
 ;
-switchtype=national
+switchtype=euroisdn
 ;
 ; Some switches (AT&T especially) require network specific facility IE
 ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
@@ -210,7 +210,7 @@
 ;                 (2-way)
 ; sf_rxtx:        Same as sf_txrx (for our dyslexic friends)
 ;
-signalling=fxo_ls
+signalling=pri_cpe
 ;
 ; If you have an outbound signalling format that is different from format
 ; specified above (but compatible), you can specify outbound signalling format,
@@ -678,5 +678,5 @@
 ;dring2context=internal2 
 ; If no pattern is matched here is where we go.
 ;context=default
-;channel => 1 
+channel => 1 
 
14:39:27
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:39:32
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
...
[Dec 11 15:41:53] WARNING[2940]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the CPE, but they think they're the CPE too.
[Dec 11 15:41:54] WARNING[2940]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the CPE, but they think they're the CPE too.
[Dec 11 15:41:55] WARNING[2940]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the CPE, but they think they're the CPE too.
[Dec 11 15:41:56] WARNING[2940]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the CPE, but they think they're the CPE too.
  == Primary D-Channel on span 1 down
[Dec 11 15:41:57] WARNING[2940]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
  == Primary D-Channel on span 1 up
[Dec 11 15:41:58] WARNING[2940]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the CPE, but they think they're the CPE too.
obukhov*CLI> quit
Executing last minute cleanups
/dev/pts/1
14:40:13
#minicom
bash: minicom: command not found
/dev/pts/3
14:40:21
#screen -x

Файлы

  • zaptel.conf
  • zaptel.conf
    >
    span=1,1,0,ccs,hdb3,crc4
    bchan=1-15
    dchan=16
    #;bchan=17-31
    

    Статистика

    Время первой команды журнала13:54:59 2009-12-11
    Время последней команды журнала14:40:21 2009-12-11
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 9.90
    Процент синтаксически неверно набранных команд, % 0.99
    Суммарное время работы с терминалом *, час 0.76
    Количество командных строк в единицу времени, команда/мин 2.23
    Частота использования команд
    dpkg18|=================| 17.48%
    tail10|=========| 9.71%
    less8|=======| 7.77%
    /etc/init.d/zaptel7|======| 6.80%
    asterisk6|=====| 5.83%
    vi6|=====| 5.83%
    apt-get6|=====| 5.83%
    cp5|====| 4.85%
    vim5|====| 4.85%
    cd5|====| 4.85%
    /etc/init.d/asterisk4|===| 3.88%
    .4|===| 3.88%
    ztscan4|===| 3.88%
    screen2|=| 1.94%
    rm2|=| 1.94%
    {CALLERID(all)}"2|=| 1.94%
    jabblog2|=| 1.94%
    mkdir1|| 0.97%
    m-a1|| 0.97%
    m1|| 0.97%
    minicom1|| 0.97%
    shutdown1|| 0.97%
    cat1|| 0.97%
    ssh1|| 0.97%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$