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

Содержание

Журнал

Четверг (12/10/09)

/dev/pts/3
13:49:01
#echo TREST | sendxmpp romchiko@obukhov.unix.nt

13:49:04
#echo TREST | sendxmpp igor@kiev.unix.nt

13:51:11
#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
=========================================================================
...
    -- Added extension '1' priority 1 to menu4
    -- Added extension '1' priority 2 to menu4
    -- Added extension '0' priority 1 to menu4
    -- Added extension '0' priority 2 to menu4
    -- Added extension 't' priority 1 to menu4
  == Parsing '/etc/asterisk/users.conf': Found
    -- Executing [340@default:1] BackGround("SIP/301-083bd958", "/root/megamenu/proba19") in new stack
    -- <SIP/301-083bd958> Playing '/root/megamenu/proba19' (language 'en')
obukhov*CLI> quit
Executing last minute cleanups
/dev/pts/1
13:54:07
#cd ../asterisk/

13:54:11
#vim extensions.conf
--- /tmp/l3-saved-2648.18856.16106	2009-12-10 14:54:15.000000000 +0200
+++ extensions.conf	2009-12-10 15:23:53.000000000 +0200
@@ -26,7 +26,7 @@
 exten => _31X,n,Hangup
 
 exten => 340,1,Background(/root/megamenu/proba19)
-;exten => 340,1,Answer
+exten => 340,1,System(echo You have ZVONOCHEK "${CALLERID})" | sendxmpp -f /root/.sendxmpprc romchiko@obukhov.unix.nt)
 exten => 340,n,WaitExten()
 exten => 1,1,Playback(/root/megamenu/proba10)
 exten => 1,n,Goto(340,1)
прошла 31 минута
14:25:11
#chown asterisk /var/lib/asterisk/.sendxmpprc

14:25:22
#ls -l /var/lib/asterisk/
total 16
-rw-rw---- 1 asterisk asterisk 8192 2009-12-10 15:24 astdb
drwxr-xr-x 2 asterisk asterisk 4096 2009-01-04 21:27 moh
drwxr-xr-x 3 asterisk asterisk 4096 2009-12-09 10:19 sounds
14:25:27
#ls -la /var/lib/asterisk/
total 28
drwxr-xr-x  4 asterisk asterisk 4096 2009-12-10 15:25 .
drwxr-xr-x 35 root     root     4096 2009-12-10 13:30 ..
-rw-rw----  1 asterisk asterisk 8192 2009-12-10 15:24 astdb
drwxr-xr-x  2 asterisk asterisk 4096 2009-01-04 21:27 moh
-rw-------  1 asterisk root       34 2009-12-10 15:25 .sendxmpprc
drwxr-xr-x  3 asterisk asterisk 4096 2009-12-09 10:19 sounds
14:28:07
#vim extensions.conf
--- /tmp/l3-saved-2648.22723.17914	2009-12-10 15:28:40.000000000 +0200
+++ extensions.conf	2009-12-10 15:29:36.000000000 +0200
@@ -25,8 +25,8 @@
 exten => _31X,n,Playback(/root/megamenu/proba${EXTEN:1})
 exten => _31X,n,Hangup
 
-exten => 340,1,Background(/root/megamenu/proba19)
-exten => 340,n,System(echo You have ZVONOCHEK | sendxmpp -f /var/lib/asterisk/.sendxmpprc romchiko@obukhov.unix.nt)
+;exten => 340,1,Background(/root/megamenu/proba19)
+exten => 340,1,System(echo You have ZVONOCHEK | 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)
/dev/pts/3
14:28:22
#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
=========================================================================
...
    -- Called 302
    -- SIP/302-083c0340 is ringing
    -- SIP/302-083c0340 answered SIP/301-083cb2a8
    -- Native bridging SIP/301-083cb2a8 and SIP/302-083c0340
[Dec 10 17:45:05] WARNING[19872]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found
[Dec 10 17:45:05] WARNING[19872]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found
    -- Remote UNIX connection
  == Spawn extension (macro-jabblog, s, 2) exited non-zero on 'SIP/301-083cb2a8' in macro 'jabblog'
  == Spawn extension (macro-jabblog, s, 2) exited non-zero on 'SIP/301-083cb2a8'
Terminated
/dev/pts/1
14:29:36
#vim extensions.conf
--- /tmp/l3-saved-2648.29838.15010	2009-12-10 15:31:40.000000000 +0200
+++ extensions.conf	2009-12-10 16:01:21.000000000 +0200
@@ -25,8 +25,8 @@
 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 | sendxmpp -f /var/lib/asterisk/.sendxmpprc romchiko@obukhov.unix.nt)
+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)
прошло 32 минуты
15:01:48
#exten => 340,1,Background(/root/megamenu/proba19)
~
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
"jabbtable" [New] 1L, 29C written
15:02:28
#vim /usr/local/bin/jabblog
--- /dev/null	2009-12-09 16:00:07.504275874 +0200
+++ /usr/local/bin/jabblog	2009-12-10 16:06:53.000000000 +0200
@@ -0,0 +1,5 @@
+#!/bin/sh
+JABBTABLE=/etc/asterisk/jabbtable
+
+jid="'grep "$1" $JABTABLE | awk '{print $2}''"
+[ -z "$jid" ] || sendxmpp -f /var/lib/asterisk/.sendxmpprv "$jid"
/dev/pts/11
15:03:57
#ssh root@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: Thu Dec 10 00:56:24 2009 from 192.168.101.3
l3-agent is already running: pid=2751; pidfile=/root/.lilalo/l3-agent.pid
15:04:13
#cat /etc/asterisk/jabbtable
201 igor@kiev.unix.nt
203 romchiko@obukhov.unix.nt
221 gib@poltava.unix.nt
15:04:27
#cat /usr/local/bin/jabblog
#!/bin/sh
JABBTABLE=/etc/asterisk/jabbtable
jid="`grep "$1" $JABBTABLE | awk '{print $2}'`"
[ -z "$jid" ] || sendxmpp -f /var/lib/asterisk/.sendxmpprc "$jid"
15:04:36
#cd /etc/asterisk/

/dev/pts/1
15:06:53
#vim extensions.conf
--- /tmp/l3-saved-2648.18494.30187	2009-12-10 16:06:57.000000000 +0200
+++ extensions.conf	2009-12-10 16:11:06.000000000 +0200
@@ -1,7 +1,12 @@
 [default]
 
+[macro-jabblig]
+exten => s,1,System(echo Tebe zavonit kakoeto telo "${CALLERID(all)}" | /usr/local/bin/jabblog ${ARG1})
+exten => s,n,Dial(SIP/${ARG1})
+
 ;exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)})
-exten => _3XX,1,Dial(SIP/${EXTEN})
+;exten => _3XX,1,Dial(SIP/${EXTEN})
+exten => _3XX,1,iMacro(jablog,${EXTEN})
 
 exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
 
/dev/pts/11
15:07:04
#vim extensions.conf
/dev/pts/1
15:11:06
#vim sip.conf
15:15:40
#vim extensions.conf
--- /tmp/l3-saved-2648.32031.26140	2009-12-10 16:15:56.000000000 +0200
+++ extensions.conf	2009-12-10 16:16:11.000000000 +0200
@@ -8,7 +8,7 @@
 ;exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)})
 ;exten => _3XX,1,Dial(SIP/${EXTEN})
 
-exten => _3XX,1,Macro(jablog,${EXTEN})
+exten => _3XX,1,Macro(jabblog,${EXTEN})
 
 exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
 
/dev/pts/11
15:18:33
#exten => 222,n,Festival('Vim is a text editor that is upwards compatible to Vi. It can be used to edit all kinds of plain text.
#!/bin/sh
JABBTABLE=/etc/asterisk/jabbtable
jid="`grep "$1" $JABBTABLE | awk '{print $2}'`"
[ -z "$jid" ] || sendxmpp -f /var/lib/asterisk/.sendxmpprc "$jid"
/dev/pts/1
15:21:06
#vim extensions.conf
15:23:06
#vim /usr/local/bin/jabblog
/dev/pts/16
15:25:23
#vi /etc/asterisk/extensions.conf
15:26:39
#exten => s,1,System
#!/bin/sh
JABBTABLE=/etc/asterisk/jabbtable
jid="`grep "$1" $JABBTABLE | awk '{print $2}'`"
[ -z "$jid" ] || sendxmpp -f /var/lib/asterisk/.sendxmpprc "$jid"
15:26:44
#ls -l /usr/local/bin/jabblog
-rw-r--r-- 1 root staff 159 2009-12-10 16:21 /usr/local/bin/jabblog
15:26:47
#chmod +x /usr/local/bin/jabblog

прошло 60 минут
/dev/pts/11
16:26:54
#cat

прошло 15 минут
/dev/pts/1
16:42:44
#vim musiconhold.conf
16:43:23
#cp /usr/share/asterisk/sounds/c
Display all 127 possibilities? (y or n)
cafeteria.gsm                       computer-friend1.gsm
california.gsm                      computer-friend2.gsm
call-forward.gsm                    conditions.gsm
call-forwarding.gsm                 conf-adminmenu.gsm
call-fwd-cancelled.gsm              conf-banned.gsm
call-fwd-no-ans.gsm                 conf-enteringno.gsm
call-fwd-on-busy.gsm                conference-call.gsm
call-fwd-parallel.gsm               conference.gsm
call-fwd-unconditional.gsm          conference-reservations.gsm
...
calls-waiting-for-rep.gsm           conf-hasjoin.gsm
call-terminated.gsm                 conf-hasleft.gsm
call-waiting.gsm                    conf-invalid.gsm
campground-office.gsm               conf-invalidpin.gsm
cancelled.gsm                       confirm-number-is.gsm
cannot-complete-as-dialed.gsm       conf-kicked.gsm
cannot-complete-network-error.gsm   conf-leaderhasleft.gsm
cannot-complete-otherend-error.gsm  conf-locked.gsm
cannot-complete-temp-error.gsm      conf-lockednow.gsm
card-balance-is.gsm                 conf-muted.gsm
16:43:23
#cp /usr/share/asterisk/sounds/c
Display all 127 possibilities? (y or n)
cafeteria.gsm                       computer-friend1.gsm
california.gsm                      computer-friend2.gsm
call-forward.gsm                    conditions.gsm
call-forwarding.gsm                 conf-adminmenu.gsm
call-fwd-cancelled.gsm              conf-banned.gsm
call-fwd-no-ans.gsm                 conf-enteringno.gsm
call-fwd-on-busy.gsm                conference-call.gsm
call-fwd-parallel.gsm               conference.gsm
call-fwd-unconditional.gsm          conference-reservations.gsm
...
calls-waiting-for-rep.gsm           conf-hasjoin.gsm
call-terminated.gsm                 conf-hasleft.gsm
call-waiting.gsm                    conf-invalid.gsm
campground-office.gsm               conf-invalidpin.gsm
cancelled.gsm                       confirm-number-is.gsm
cannot-complete-as-dialed.gsm       conf-kicked.gsm
cannot-complete-network-error.gsm   conf-leaderhasleft.gsm
cannot-complete-otherend-error.gsm  conf-locked.gsm
cannot-complete-temp-error.gsm      conf-lockednow.gsm
card-balance-is.gsm                 conf-muted.gsm
16:43:23
#cp /usr/share/asterisk/sounds/california.gsm /var/lib/asterisk/moh/

16:45:35
#:q
[fromDeb4]
type=friend
host=dynamic
~
~
~
~
~
16:46:22
#{CALLERID(all)}" | /usr/local/bin/jabblog ${ARG1})
;
; Music on Hold -- Sample Configuration
;
; valid mode options:
; files         -- read files from a directory in any Asterisk supported
;                  media format
; quietmp3      -- default
; mp3           -- loud
; mp3nb         -- unbuffered
; quietmp3nb    -- quiet unbuffered
...
;mode=custom
;directory=/var/lib/asterisk/mohmp3
;
;
;
;
;
;
;
;
16:48:46
#; mp3 -- loud
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
16:48:53
#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
=========================================================================
...
    -- Native bridging SIP/301-08376b08 and SIP/302-0837d188
    -- Started music on hold, class 'default', on SIP/301-08376b08
    -- Remote UNIX connection
  == Spawn extension (macro-jabblog, s, 2) exited non-zero on 'SIP/301-08376b08' in macro 'jabblog'
  == Spawn extension (macro-jabblog, s, 2) exited non-zero on 'SIP/301-08376b08'
    -- Stopped music on hold on SIP/301-08376b08
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
16:48:55
#cp /usr/share/asterisk/sounds/c /var/lib/asterisk/moh/
Display all 127 possibilities? (y or n)
cafeteria.gsm                       computer-friend1.gsm
california.gsm                      computer-friend2.gsm
call-forward.gsm                    conditions.gsm
call-forwarding.gsm                 conf-adminmenu.gsm
call-fwd-cancelled.gsm              conf-banned.gsm
call-fwd-no-ans.gsm                 conf-enteringno.gsm
call-fwd-on-busy.gsm                conference-call.gsm
call-fwd-parallel.gsm               conference.gsm
call-fwd-unconditional.gsm          conference-reservations.gsm
...
cloudy.gsm                          count.gsm
collections.gsm                     crash.gsm
colorado.gsm                        currently.gsm
colorado-springs.gsm                current-time-is.gsm
columbus.gsm                        custom/
comma.gsm                           customer-accounts.gsm
communications.gsm                  customer-relations.gsm
company-dir-411.gsm                 customer-service.gsm
complaint.gsm                       cyclone.gsm
compliance.gsm
16:48:55
#cp /usr/share/asterisk/sounds/casanova.gsm /var/lib/asterisk/moh/

/dev/pts/3
16:50:40
#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
=========================================================================
...
    -- B-channel 0/1 successfully restarted on span 1
[Dec 11 09:52:46] WARNING[20099]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1
    -- Registered SIP '302' at 192.168.102.107 port 46070 expires 3600
obukhov*CLI> voicemail show
users  zones
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/18
16:58:16
#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: Thu Dec 10 04:04:13 2009 from 192.168.102.2
l3-agent is already running: pid=2751; pidfile=/root/.lilalo/l3-agent.pid
16:58:33
#cd /etc/asterisk/

16:58:40
#vim extensions.conf
/dev/pts/1
17:03:44
#exten => 400,1,MeetMe(1,D
register => fromKiev@192.168.102.1/obukhov
[302]
type=friend
host=dynamic
secret=123
"sip.conf" 20L, 238C
callerid="romchiko-winSoft"
[fromDeb4]
type=friend
host=dynamic
~
~
"sip.conf" 22L, 282C written
17:04:48
#vim sip.conf
--- /tmp/l3-saved-2648.4910.2944	2009-12-10 18:05:09.000000000 +0200
+++ sip.conf	2009-12-10 18:05:54.000000000 +0200
@@ -20,3 +20,8 @@
 host=dynamic
 secret=123
 callerid="romchiko-DEB-4"
+
+[obukhov]
+type=friend
+host=dynamic
+username=forKiev

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

09:03:10
#[obukhov]
;
;
; NOTE: Asterisk has to edit this file to change a user's password.  This does
; not currently work with the "#include <file>" directive for Asterisk
; configuration files, nor when using realtime static configuration.
; Do not use them with this configuration file.
;
[general]
; Formats for writing Voicemail.  Note that when using IMAP storage for
"voicemail.conf" 250L, 11723C
...
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
301 => 301,Roman Sidorenko,root@obukhov.unix.nt
[other]
;The intro can be customized on a per-context basis
;directoryintro=dir-company2
"voicemail.conf" 252L, 11772C written
09:08:16
#vim extensions.conf
09:09:03
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
09:09: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
=========================================================================
...
   Chan Extension  Context         Language   MOH Interpret
 pseudo            default                    default
      1            default                    default
obukhov*CLI> zap show channels 1
No such trunk group 1
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
09:17:02
#vim voicemail.conf
--- /tmp/l3-saved-2648.24463.24696	2009-12-11 10:33:32.000000000 +0200
+++ voicemail.conf	2009-12-11 10:33:46.000000000 +0200
@@ -240,6 +240,7 @@
 
 
 301 => 301,Roman Sidorenko,root@obukhov.unix.nt
+302 => 302,Roman Sidorenko,root@obukhov.unix.nt
 
 ;
 ; Mailboxes may be organized into multiple contexts for
прошло 16 минут
09:33:47
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
09:36:54
#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
=========================================================================
...
Echo Cancellation: 128 taps, currently OFF
PRI Flags:
PRI Logical Span: Implicit
Hookstate (FXS only): Onhook
    -- Saved useragent "X-Lite release 1103k stamp 53621" for peer 302
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
09:36:54
#vim zapata.conf
--- /tmp/l3-saved-2648.21215.22063	2009-12-11 11:01:53.000000000 +0200
+++ zapata.conf	2009-12-11 11:02:11.000000000 +0200
@@ -362,7 +362,7 @@
 ; modules, they take precedence over the software echo canceller compiled
 ; into Zaptel automatically.
 ;
-echocancel=yes
+echocancel=no
 ;
 ; Generally, it is not necessary (and in fact undesirable) to echo cancel when
 ; the circuit path is entirely TDM.  You may, however, change this behavior
прошло 25 минут
10:02:11
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
10:02:13
#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
=========================================================================
...
Hookstate (FXS only): Onhook
    -- B-channel 0/1 restarted on span 1
    -- B-channel 0/1 successfully restarted on span 1
[Dec 11 11:02:28] WARNING[22021]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1
    -- Saved useragent "Asterisk PBX" for peer fromDeb4
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
10:04:42
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
10:04:43
#vim sip.conf
/dev/pts/3
10:04:43
#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
=========================================================================
...
    -- Called frompoltava/103
[Dec 11 14:25:16] WARNING[22123]: chan_iax2.c:7775 socket_process: Call rejected by 192.168.101.3: No such context/extension
    -- Hungup 'IAX2/frompoltava-16385'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/301-09c9ec98' status is 'CHANUNAVAIL'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
прошло >3 часов
/dev/pts/1
13:13:20
#vim sip.conf
--- /tmp/l3-saved-2648.24107.32427	2009-12-11 14:15:44.000000000 +0200
+++ sip.conf	2009-12-11 14:15:47.000000000 +0200
@@ -12,7 +12,7 @@
 [302]
 type=friend
 host=dynamic
-;secret=123
+secret=123
 callerid="romchiko-winSoft"
 
 [fromDeb4]
13:21:29
#secret=123
asterisk.adsi  asterisk.conf
13:21:29
#vmi asterisk.conf
bash: vmi: command not found
13:21:37
#vim asterisk.conf
13:21:44
#~
cat: manager.d: Is a directory
;tos_video=af41                 ; Sets TOS for RTP video packets.
;videosupport=yes               ; Turn on support for SIP video. You need to turn this on
                                ; in the this section to get any video support at all.
                                ; video support is enabled, but you can't enable it for
;maxcallbitrate=384             ; Maximum bitrate for video calls (default 384 kb/s)
                                ; Videosupport and maxcallbitrate is settable
; These timers are currently used for both audio and video streams. The RTP timeouts
                                ; Will not work for video and cases where the callee sends
; videosupport                videosupport
13:22:14
#vim sip.conf
--- /tmp/l3-saved-2648.32174.2357	2009-12-11 14:22:32.000000000 +0200
+++ sip.conf	2009-12-11 14:22:53.000000000 +0200
@@ -1,5 +1,6 @@
 [general]
 context=default
+videosupport=yes
 
 register => fromKiev@192.168.102.1/obukhov
 
13:22:53
#cat * | grep -i video
cat: manager.d: Is a directory
videosupport=yes
;tos_video=af41                 ; Sets TOS for RTP video packets.
;videosupport=yes               ; Turn on support for SIP video. You need to turn this on
                                ; in the this section to get any video support at all.
                                ; video support is enabled, but you can't enable it for
;maxcallbitrate=384             ; Maximum bitrate for video calls (default 384 kb/s)
                                ; Videosupport and maxcallbitrate is settable
; These timers are currently used for both audio and video streams. The RTP timeouts
                                ; Will not work for video and cases where the callee sends
; videosupport                videosupport
13:22:55
#vim sip.conf.SAVED
13:23:10
#;matchexterniplocally = yes ; Only substitute the externip or externhost setting if it matches
[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 => _31X,n,Playback(/root/megamenu/proba${EXTEN:1})
exten => _31X,n,Hangup
;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)
"extensions.conf" 69L, 2129C written
13:26:38
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
13:26:41
#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
=========================================================================
...
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/301-0954c3d8' status is 'CHANUNAVAIL'
[Dec 11 14:33:24] WARNING[22730]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1
  == Primary D-Channel on span 1 up
[Dec 11 14:33:44] WARNING[22730]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/9
13:26:55
#cd /etc/asterisk/

13:26:58
#vim extensions.conf
13:27:28
#[ ]
The system is going down for reboot NOW!.nt (pts/2) (Fri Dec 11 02:41:53 2009
Connection to 192.168.101.3 closed by remote host.
Connection to 192.168.101.3 closed.
13:27:28
#[ ]
The system is going down for reboot NOW!.nt (pts/2) (Fri Dec 11 02:41:53 2009
Connection to 192.168.101.3 closed by remote host.
Connection to 192.168.101.3 closed.
/dev/pts/1
13:28:29
#:q
exten => _1XX,1,Set(CALLERID(all)=ROMAZAVR)
"extensions.conf" 69L, 2129C
exten => _1XX,n,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)
13:32:14
#{EXTEN}
; Group: Defines a trunk group.
;        trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...]
;
;        trunkgroup  is the numerical trunk group to create
;        dchannel    is the zap channel which will have the
;                    d-channel for the trunk.
;        backup1     is an optional list of backup d-channels.
;
;trunkgroup => 1,24,48
;trunkgroup => 1,24
...
;  and they will be printed on the console when an inbound call comes in.
;
;dring1=95,0,0
;dring1context=internal1
;dring2=325,95,0
;dring2context=internal2
; If no pattern is matched here is where we go.
context=default
group=1
channel => 1
13:33:42
#:q
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
13:33:48
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel.
/dev/pts/3
13:33:48
#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 14:35:28] NOTICE[22892]: chan_zap.c:9024 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
  == Primary D-Channel on span 1 up
    -- B-channel 0/1 restarted on span 1
[Dec 11 14:35:35] WARNING[22892]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1
    -- B-channel 0/1 successfully restarted on span 1
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:34:14
#vim zapata.conf
13:35:21
#:Q
;videosupport=yes
secret=123
callerid="romchiko-mac"
[302]
type=friend
host=dynamic
secret=123
callerid="romchiko-winSoft"
[fromDeb4]
type=friend
...
~
~
~
~
~
~
~
~
~
"sip.conf" 28L, 353C written
13:35:29
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
13:35:39
#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
/dev/pts/3
13:35:39
#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
=========================================================================
...
    -- Hungup 'Zap/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/301-0853c470' status is 'CHANUNAVAIL'
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
13:35:39
#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
=========================================================================
...
    -- Hungup 'Zap/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/301-0853c470' status is 'CHANUNAVAIL'
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
13:36:21
#vim extensions.conf
--- /tmp/l3-saved-2648.6491.17332	2009-12-11 14:36:53.000000000 +0200
+++ extensions.conf	2009-12-11 14:37:35.000000000 +0200
@@ -15,9 +15,9 @@
 exten => 400,1,MeetMe(1,DMc)
 exten => 401,1,MeetMe(1,Dmc)
 
-exten => _3XX,1,Macro(jabblog,${EXTEN})
+;exten => _3XX,1,Macro(jabblog,${EXTEN})
 
-exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
+;exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
 
 exten => _1XX,1,Set(CALLERID(all)=ROMAZAVR)
 exten => _1XX,n,Dial(ZAP/G1/${EXTEN})
/dev/pts/14
13:40:18
#asterisk -rvv
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
=========================================================================
...
Overlap Dial: 0
T200 Timer: 1000
T203 Timer: 10000
T305 Timer: 30000
T308 Timer: 4000
T309 Timer: -1
T313 Timer: 4000
N200 Counter: 3
obukhov*CLI> quit
Executing last minute cleanups
13:41:21
#vi /etc/asterisk/zapata.conf
13:41:41
#; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
span=1,0,0,ccs,hdb3,crc4
bchan=1-15
dchan=16
bchan=17-31
/dev/pts/3
13:44:33
#screen -x
/dev/pts/0
13:44:37
#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
=========================================================================
...
    -- Hungup 'Zap/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/301-08c75dd8' status is 'CHANUNAVAIL'
[Dec 11 14:48:36] NOTICE[2376]: chan_zap.c:9024 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
  == Primary D-Channel on span 1 up
obukhov*CLI>
obukhov*CLI>
obukhov*CLI>
obukhov*CLI> quit
Executing last minute cleanups
/dev/pts/3
13:44:42
#screen
/dev/pts/5
13:44:44
#cd /etc/asterisk/

13:44:51
#vim extensions.conf
13:44:51
#vim extensions.conf
/dev/pts/7
13:44:53
#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:10:38] WARNING[2376]: 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:10:39] WARNING[2376]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
[Dec 11 15:10:40] WARNING[2376]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
[Dec 11 15:10:41] WARNING[2376]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
13:44:53
#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:10:38] WARNING[2376]: 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:10:39] WARNING[2376]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
[Dec 11 15:10:40] WARNING[2376]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
[Dec 11 15:10:41] WARNING[2376]: chan_zap.c:10256 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/5
13:47:22
#{EXTEN:1}:gsm|3)
[fromDeb4]
type=friend28L, 353C
host=dynamic
secret=123
callerid="romchiko-DEB-4"
~
~
~
~
~
~
~
~
~
~
13:47:22
#{EXTEN:1}:gsm|3)
[fromDeb4]
type=friend28L, 353C
host=dynamic
secret=123
callerid="romchiko-DEB-4"
~
~
~
~
~
~
~
~
~
~
/dev/pts/0
13:48:41
#vi /etc/asterisk/extensions.conf
13:48:41
#vi /etc/asterisk/extensions.conf
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

Файлы

  • /etc/asterisk/jabbtable
  • /usr/local/bin/jabblog
  • /etc/asterisk/jabbtable
    >
    201 igor@kiev.unix.nt
    203 romchiko@obukhov.unix.nt
    221 gib@poltava.unix.nt
    
    /usr/local/bin/jabblog
    >
    #!/bin/sh
    JABBTABLE=/etc/asterisk/jabbtable
    jid="`grep "$1" $JABBTABLE | awk '{print $2}'`"
    [ -z "$jid" ] || sendxmpp -f /var/lib/asterisk/.sendxmpprc "$jid"
    

    Статистика

    Время первой команды журнала13:49:01 2009-12-10
    Время последней команды журнала13:54:59 2009-12-11
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 7.92
    Процент синтаксически неверно набранных команд, % 0.99
    Суммарное время работы с терминалом *, час 2.93
    Количество командных строк в единицу времени, команда/мин 0.57
    Частота использования команд
    vim26|=======================| 23.01%
    asterisk17|===============| 15.04%
    /etc/init.d/asterisk6|=====| 5.31%
    cp5|====| 4.42%
    cd5|====| 4.42%
    cat4|===| 3.54%
    vi4|===| 3.54%
    exten4|===| 3.54%
    ls3|==| 2.65%
    :q3|==| 2.65%
    screen2|=| 1.77%
    echo2|=| 1.77%
    [2|=| 1.77%
    3)2|=| 1.77%
    {EXTEN:1}:gsm2|=| 1.77%
    sendxmpp2|=| 1.77%
    ssh2|=| 1.77%
    proba19)1|| 0.88%
    /etc/init.d/zaptel1|| 0.88%
    chmod1|| 0.88%
    :Q1|| 0.88%
    {EXTEN}1|| 0.88%
    Only1|| 0.88%
    {CALLERID(all)}"1|| 0.88%
    ~1|| 0.88%
    [obukhov]1|| 0.88%
    jbmaxsize1|| 0.88%
    400,1,MeetMe(1,D1|| 0.88%
    chown1|| 0.88%
    222,n,Festival('Vim1|| 0.88%
    matchexterniplocally1|| 0.88%
    mp31|| 0.88%
    secret=1231|| 0.88%
    jabblog1|| 0.88%
    vmi1|| 0.88%
    grep1|| 0.88%
    Max1|| 0.88%
    ztscan1|| 0.88%
    s,1,System1|| 0.88%
    ____
    *) Интервалы неактивности длительностью 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$