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

Содержание

Журнал

Понедельник (12/07/09)

/dev/pts/12
15:48:10
#apt-get install alsa-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  alsa-base linux-sound-base
Suggested packages:
  apmd alsa-oss oss-compat
The following NEW packages will be installed:
  alsa-base alsa-utils linux-sound-base
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
...
(Reading database ... 43082 files and directories currently installed.)
Unpacking linux-sound-base (from .../linux-sound-base_1.0.17.dfsg-4_all.deb) ...
Selecting previously deselected package alsa-base.
Unpacking alsa-base (from .../alsa-base_1.0.17.dfsg-4_all.deb) ...
Selecting previously deselected package alsa-utils.
Unpacking alsa-utils (from .../alsa-utils_1.0.16-2_i386.deb) ...
Processing triggers for man-db ...
Setting up linux-sound-base (1.0.17.dfsg-4) ...
Setting up alsa-base (1.0.17.dfsg-4) ...
Setting up alsa-utils (1.0.16-2) ...
15:48:21
#alsamixer
      | Master [dB gain=0.00]         |  |       |  |                           |
      |::|       |  |                 |  |       |  |                           |
      |::|       |  |                 |  |       |  |                           |
     +--+               +--+     +--+      +--+     +--+      +--+     +--+     |
|     |:LFE [dB gain=-46.50]             |       |  |                           |
     |::|               |::|     |  |      |  |     |  |      |  |     |  |
                          ------     ------     ------
     |::|               |::|     |::|      |::|     |::|      |::|     |::|     >
              +--+      |::|     |::|      |::|     |::|      |::|     |::|     >
     |::|               |::|     |::|      |  |     |::|      |::|     |  |     >
...
     |::|     |::|      |::|     |  |      |  |     |  |      |  |     |  |
     |::|     +--+      +--+     +--+      +::+     +::+      +--+     +--+
     +--+     |MM|      |MM|               |MM|     |MM|      |MM|     |MM|
              +--+      +--+               +::+     +::+      +--+     +--+
                                                                      ------
     +--+    77<>77    77<>77   67<>67    77<>77     81         0      0<>0
  < 77<>77  Front Mi  Front Mi Front Mi  Surround  Center   CaLFE      Line
   1 PCM   > Front     77<>77     81        ::       ::       Mic    Mic Boos
                                  ::        ::       ::
     +--+     +--+
/dev/pts/5
15:50:15
#mpg123 rondo_veneziano_-_alba_sul_mare.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
Playing MPEG stream 1 of 1: rondo_veneziano_-_alba_sul_mare.mp3 ...
Title:   Alba sul mare                   Artist: Papagena
Comment:                                 Album:  Rondo Veneziano 2
Year:                                    Genre:  classic
MPEG 1.0 layer III, 224 kbit/s, 44100 Hz stereo
^C
[1:54] Decoding of rondo_veneziano_-_alba_sul_mare.mp3 finished.
/dev/pts/12
15:51:56
#alsa
Usage: /usr/sbin/alsa {unload|reload|force-unload|force-reload|suspend|resume}
15:52:04
#alsa reload
/usr/sbin/alsa: Warning: Processes using sound devices: 12536(xfce-mcs-manage) 19478(mpg123).
Unloading ALSA sound driver modules: snd-usb-audio snd-usb-lib snd-rawmidi snd-seq-device snd-hwdep snd-hda-intel snd-pcm snd-timer snd-page-alloc (failed: modules still loaded: snd-hda-intel snd-pcm snd-timer snd-page-alloc).
Loading ALSA sound driver modules: snd-usb-audio snd-usb-lib snd-rawmidi snd-seq-device snd-hwdep snd-hda-intel snd-pcm snd-timer snd-page-alloc.
15:52:07
#alsamixer
|    |::Mic [dB gain=-33.00, -33.00]|      |::|     |  |      |::|     |  |     |
|    |::|     |  |      |::|     |::|      |::|     |::|      |  |     |::|     |
|    |::|   Boost                   +      +--+     +--+      +::+     +  +     |
|    +--+     +--+      |MM|               |MM|     |MM|      |  |     |::|     |
|       IEC958 [Off]    +--+               +--+     +--+      +--+     +  +     |
|             +--+    100<>100  67<>67    77<>77     81                0<>0     |
|  100<>100  77<>77    77<>77   Front    Surround  Center  <  LFE   >  L  e     |
+--  PCM     Front    Front Mi Fro:: Mi-----  -----------------  ----         --+
                                                              L::|
               ::        ::                                    ::|
...
<             |::|
<             |::|               +--+      +--+     +--+
               OO       |OO|     |MM|               |MM|       MM       MM
     |OO|               |OO|     +--+               +--+
              +--+    100<>100  77<>77    67<>67   77<>77      81       87
  <                   Front Mi Front Mi  Front Mi Surround   Center    LFE
   Headphon>  PCM      Front   Front Mi
              |::|
              |::|
     +--+     +--+      +--+
/dev/pts/5
15:52:10
#mpg123 rondo_veneziano_-_alba_sul_mare.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
Playing MPEG stream 1 of 1: rondo_veneziano_-_alba_sul_mare.mp3 ...
Title:   Alba sul mare                   Artist: Papagena
Comment:                                 Album:  Rondo Veneziano 2
Year:                                    Genre:  classic
MPEG 1.0 layer III, 224 kbit/s, 44100 Hz stereo
^C
[1:03] Decoding of rondo_veneziano_-_alba_sul_mare.mp3 finished.
15:53:14
#mpg123 alba.wav
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[parse.c:504] error: Giving up searching valid MPEG header after 64K of junk.
[mpg123.c:946] error: Initial seek failed: No error... (code 0)
15:56:21
#sox
alba.wav                                    rondo_veneziano_-_gioco_italiano.mp3
rondo_veneziano_-_alba_sul_mare.mp3         rondo_veneziano_-_incontro.mp3
rondo_veneziano_-_bettina.mp3               rondo_veneziano_-_interludio.mp3
rondo_veneziano_-_casanova.mp3              rondo_veneziano_-_la_serenissima.mp3
rondo_veneziano_-_cattedrali.mp3            rondo_veneziano_-_lorientale.mp3
rondo_veneziano_-_cecilia.mp3               rondo_veneziano_-_magica.mp3
rondo_veneziano_-_danza_mediterranea.mp3    rondo_veneziano_-_nostalgia_di_venezia.mp3
rondo_veneziano_-_desiree.mp3               rondo_veneziano_-_re_sole.mp3
rondo_veneziano_-_donna_lucrezia.mp3        rondo_veneziano_-_torcello.mp3
rondo_veneziano_-_fantasia_veneziana.mp3    rondo_veneziano_-_viaggio_italiano.mp3
15:56:21
#sox rondo_veneziano_-_alba_sul_mare.mp3 -r 8000 -c1 alba.wav avg
sox sox: Effect `avg' is deprecated; see sox(1) for an alternative
15:57:50
#mpg123 alba.wav
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[parse.c:568] error: Header 0xffe701d2 seems to indicate a free format stream; I do not handle that yet
[parse.c:568] error: Header 0xffe60000 seems to indicate a free format stream; I do not handle that yet
[parse.c:568] error: Header 0xffe302d6 seems to indicate a free format stream; I do not handle that yet
[parse.c:568] error: Header 0xffe60284 seems to indicate a free format stream; I do not handle that yet
[parse.c:568] error: Header 0xffe60416 seems to indicate a free format stream; I do not handle that yet
[parse.c:568] error: Header 0xffeb0095 seems to indicate a free format stream; I do not handle that yet
[parse.c:568] error: Header 0xffe2005c seems to indicate a free format stream; I do not handle that yet
[parse.c:504] error: Giving up searching valid MPEG header after 64K of junk.
[mpg123.c:946] error: Initial seek failed: No error... (code 0)
15:58:04
#mv alba.wav /usr/share/asterisk/sounds/al
alabama.gsm                         albuquerque.gsm                     all-reps-busy.gsm
alaska.gsm                          all-circuits-busy-now.gsm           all-your-base.gsm
alba.wav                            all-outgoing-lines-unavailable.gsm  altitude.gsm
15:58:04
#mv alba.wav /usr/share/asterisk/sounds/al
alabama.gsm                         albuquerque.gsm                     all-reps-busy.gsm
alaska.gsm                          all-circuits-busy-now.gsm           all-your-base.gsm
alba.wav                            all-outgoing-lines-unavailable.gsm  altitude.gsm
15:58:04
#mv alba.wav /usr/share/asterisk/sounds/alba.gsm

16:00:07
#sox rondo_veneziano_-_alba_sul_mare.mp3 -r 8000 -c1 alba.wav -ql
sox: SoX v14.0.1
Failed: missing filename
Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]...
SPECIAL FILENAMES:
-               stdin (infile) or stdout (outfile)
-n              use the null file handler; for use with e.g. synth & stat
GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect):
--buffer BYTES  set the buffer size (default 8192)
--combine concatenate  concatenate multiple input files (default for sox, rec)
--combine sequence  sequence multiple input files (default for play)
...
-N, --reverse-nibbles  nibble-order
-X, --reverse-bits  bit-order of data
-B/-L           force endianness to big/little
-s/-u/-U/-A/    sample encoding: signed/unsigned/u-law/A-law
  -a/-i/-g/-f   ADPCM/IMA ADPCM/GSM/floating point
-1/-2/-3/-4/-8  sample size in bytes
-v, --volume FACTOR  volume input file volume adjustment factor (real number)
SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud mp2 mp3 nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa
SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol
effopts: depends on effect
16:00:17
#sox rondo_veneziano_-_alba_sul_mare.mp3 -r 8000 -c1 alba.wav

16:02:38
#mpg123 alba.wav
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[parse.c:504] error: Giving up searching valid MPEG header after 64K of junk.
[mpg123.c:946] error: Initial seek failed: No error... (code 0)
16:02:46
#play alba.wav
Input File     : 'alba.wav'
Sample Size    : 16-bit (2 bytes)
Sample Encoding: signed (2's complement)
Channels       : 2
Sample Rate    : 44100
Time: 00:24.71 [03:06.35] of 03:31.06 (11.7%) Samples out: 1.18M Clips: 0    ^C
Aborted.
16:03:28
#sox alba.wav -r 8000 -c 1 alba.gsm

16:03:58
#mv alba.gsm /usr/share/asterisk/sounds/

16:04:08
#sox
sox: SoX v14.0.1
Failed: Not enough input filenames specified
Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]...
SPECIAL FILENAMES:
-               stdin (infile) or stdout (outfile)
-n              use the null file handler; for use with e.g. synth & stat
GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect):
--buffer BYTES  set the buffer size (default 8192)
--combine concatenate  concatenate multiple input files (default for sox, rec)
--combine sequence  sequence multiple input files (default for play)
...
-N, --reverse-nibbles  nibble-order
-X, --reverse-bits  bit-order of data
-B/-L           force endianness to big/little
-s/-u/-U/-A/    sample encoding: signed/unsigned/u-law/A-law
  -a/-i/-g/-f   ADPCM/IMA ADPCM/GSM/floating point
-1/-2/-3/-4/-8  sample size in bytes
-v, --volume FACTOR  volume input file volume adjustment factor (real number)
SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud mp2 mp3 nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa
SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol
effopts: depends on effect
16:05:46
#man sox
16:07:54
#ifconfig
eth1      Link encap:Ethernet  HWaddr 00:07:e9:0c:45:80
          inet addr:192.168.102.1  Bcast:192.168.102.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe0c:4580/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:234987 errors:0 dropped:0 overruns:0 frame:0
          TX packets:131189 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:280032348 (267.0 MiB)  TX bytes:11184482 (10.6 MiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1776 (1.7 KiB)  TX bytes:1776 (1.7 KiB)

Вторник (12/08/09)

08:51:16
#ping 192.168.102.254
PING 192.168.102.254 (192.168.102.254) 56(84) bytes of data.
64 bytes from 192.168.102.254: icmp_seq=1 ttl=64 time=6.30 ms
64 bytes from 192.168.102.254: icmp_seq=2 ttl=64 time=0.534 ms
64 bytes from 192.168.102.254: icmp_seq=3 ttl=64 time=0.563 ms
^C
--- 192.168.102.254 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.534/2.468/6.307/2.714 ms
08:51:28
#cd /etc/asterisk/

/dev/pts/7
08:59:27
#screen -x
/dev/pts/5
09:00:36
#vim sip.conf
--- /tmp/l3-saved-13650.9025.1134	2009-12-07 22:00:38.000000000 -1000
+++ sip.conf	2009-12-07 22:00:57.000000000 -1000
@@ -7,3 +7,8 @@
 secret=1234
 callerid="Roman Sidorenko"
 
+[203]
+type=friend
+host=dynamic
+secret=203
+callerid="Roman Sidorenko"
09:00:57
#vim sip.conf
--- /tmp/l3-saved-13650.12047.24361	2009-12-07 22:01:01.000000000 -1000
+++ sip.conf	2009-12-07 22:01:37.000000000 -1000
@@ -11,4 +11,4 @@
 type=friend
 host=dynamic
 secret=203
-callerid="Roman Sidorenko"
+callerid="Roman Sidorenko-softPhone"
09:01: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
=========================================================================
...
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/sip_notify.conf': Found
    -- Registered SIP '203' at 192.168.102.101 port 7206 expires 3600
    -- Saved useragent "X-Lite release 1014k stamp 47051" for peer 203
[Dec  7 22:02:01] NOTICE[18719]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203
[Dec  7 22:02:07] NOTICE[18719]: chan_sip.c:14035 handle_request_invite: Call from '201' to extension '203' rejected because extension not found.
debian4*CLI> q
No such command 'q' (type 'help q' for other possible commands)
debian4*CLI> quit
Executing last minute cleanups
09:02:28
#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
=========================================================================
...
    -- Executing [202@default:1] Answer("SIP/203-09b09f60", "") in new stack
    -- Executing [202@default:2] Wait("SIP/203-09b09f60", "1") in new stack
    -- Executing [202@default:3] Playback("SIP/203-09b09f60", "alba") in new stack
    -- <SIP/203-09b09f60> Playing 'alba' (language 'en')
[Dec  7 22:05:48] WARNING[20676]: file.c:677 ast_readaudio_callback: Failed to write frame
  == Spawn extension (default, 202, 3) exited non-zero on 'SIP/203-09b09f60'
[Dec  7 22:05:54] NOTICE[18719]: chan_sip.c:14035 handle_request_invite: Call from '203' to extension '201' rejected because extension not found.
[Dec  7 22:06:07] NOTICE[18719]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203
debian4*CLI> quit
Executing last minute cleanups
/dev/pts/10
09:04:48
#rm /usr/share/asterisk/sounds/al
alabama.gsm                         all-circuits-busy-now.gsm
alaska.gsm                          all-outgoing-lines-unavailable.gsm
alba.gsm                            all-reps-busy.gsm
alba.wav                            all-your-base.gsm
albuquerque.gsm                     altitude.gsm
09:04:48
#rm /usr/share/asterisk/sounds/alba.wav

09:05:01
#vi /etc/asterisk/extensions.conf
/dev/pts/5
09:06:11
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
09:15:01
#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 203
    -- SIP/203-0a164d58 is ringing
    -- Got SIP response 486 "Busy Here" back from 192.168.102.101
    -- SIP/203-0a164d58 is busy
  == Everyone is busy/congested at this time (1:1/0/0)
  == Auto fallthrough, channel 'SIP/201-0a1637c8' status is 'BUSY'
uit
No such command 'uit' (type 'help uit' for other possible commands)
debian4*CLI> quit
Executing last minute cleanups
09:16:14
#vim sip.conf
--- /tmp/l3-saved-13650.21834.7637	2009-12-07 22:16:18.000000000 -1000
+++ sip.conf	2009-12-07 22:16:32.000000000 -1000
@@ -5,7 +5,7 @@
 type=friend
 host=dynamic
 secret=1234
-callerid="Roman Sidorenko"
+callerid="Roman Sidorenko-MegaPhone"
 
 [203]
 type=friend
09:16: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
=========================================================================
...
    -- SIP/poltava-0a174610 answered SIP/203-0a168110
    -- Native bridging SIP/203-0a168110 and SIP/poltava-0a174610
    -- Executing [202@default:1] Answer("SIP/kiev-0a179be0", "") in new stack
    -- Executing [202@default:2] Wait("SIP/kiev-0a179be0", "1") in new stack
    -- Executing [202@default:3] Playback("SIP/kiev-0a179be0", "alba") in new stack
    -- <SIP/kiev-0a179be0> Playing 'alba' (language 'en')
debian4*CLI>
debian4*CLI>
debian4*CLI> quit
Executing last minute cleanups
/dev/pts/14
09:25:59
#cd /etc/asterisk/

09:26:03
#cat sip.conf
[general]
context=default
[201]
type=friend
host=dynamic
secret=1234
callerid="Roman Sidorenko-MegaPhone"
[203]
type=friend
host=dynamic
secret=203
callerid="Roman Sidorenko-softPhone"
09:26:11
#cat extensions.conf
[default]
exten => 202,1,Answer
exten => 202,n,Wait(1)
exten => 202,n,Playback(alba)
;exten => 202,n,Playback(demo-congrats)
exten => 202,n,Hangup
exten => _2XX,1,Dial(SIP/${EXTEN})
09:26:22
#vim sip.conf
--- /tmp/l3-saved-20856.3570.26808	2009-12-07 22:28:18.000000000 -1000
+++ sip.conf	2009-12-07 22:28:43.000000000 -1000
@@ -12,3 +12,9 @@
 host=dynamic
 secret=203
 callerid="Roman Sidorenko-softPhone"
+
+[204]
+type=friend
+host=dynamic
+secret=204
+callerid="Roman Sidorenko-softPhone"
09:28:43
#vim sip.conf
09:35:16
#vim extensions.conf
--- /tmp/l3-saved-20856.7111.525	2009-12-07 22:35:54.000000000 -1000
+++ extensions.conf	2009-12-07 22:36:19.000000000 -1000
@@ -7,5 +7,5 @@
 exten => 202,n,Hangup
 
 exten => _2XX,1,Dial(SIP/${EXTEN})
-exten => _999,1,Echo(SIP/${EXTEN})
+exten => 999,1,Echo
 
09:36:19
#vim extensions.conf
--- /tmp/l3-saved-20856.23849.878	2009-12-07 22:36:31.000000000 -1000
+++ extensions.conf	2009-12-07 22:47:18.000000000 -1000
@@ -6,6 +6,10 @@
 ;exten => 202,n,Playback(demo-congrats)
 exten => 202,n,Hangup
 
-exten => _2XX,1,Dial(SIP/${EXTEN})
-exten => 999,1,Echo
+exten => _2XX,1,SetCollerID(SIP/${EXTEN})
+exten => _2XX,n,Dial(SIP/${EXTEN})
+
+exten => 999,1,Answer
+exten => 999,n,Echo
+exten => 999,n,Hangup
 
прошло 10 минут
/dev/pts/16
09:47:03
#screen -x
/dev/pts/10
09:47:16
#~
[default]
exten => 202,1,Answer
exten => 202,n,Wait(1)
exten => 202,n,Playback(alba)
;exten => 202,n,Playback(demo-congrats)
exten => 202,n,Hangup
~
~
~
~
...
~
~
~
~
"/etc/asterisk/extensions.conf" 15 lines, 292 characters
                             number)=5${EXTEN})
exten =>
exten => _2XX,1,Set(CallerID(SIP/${EXTEN})
~
"/etc/asterisk/extensions.conf" 15 lines, 298 characters written
/dev/pts/18
09:48:30
#screen -x
/dev/pts/10
09:50:34
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18560.22221.3802	2009-12-07 22:51:59.000000000 -1000
+++ /etc/asterisk/extensions.conf	2009-12-07 22:52:56.000000000 -1000
@@ -6,7 +6,7 @@
 ;exten => 202,n,Playback(demo-congrats)
 exten => 202,n,Hangup
 
-exten => _2XX,1,Set(CALLERID(number)=5${EXTEN})
+exten => _2XX,1,Set(CALLERID(number)=5${CALLERID(number)})
 exten => _2XX,n,Dial(SIP/${EXTEN})
 
 exten => 999,1,Answer
09:52:58
#{XTEN})
[general]
context=default
[201]
type=friend
host=dynamic
secret=1234
callerid="Roman Sidorenko-MegaPhone"
[203]
type=friend
host=dynamic
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 26 lines, 321 characters written
прошло 23 минуты
10:16:39
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18560.14517.14868	2009-12-07 23:17:40.000000000 -1000
+++ /etc/asterisk/extensions.conf	2009-12-07 23:18:12.000000000 -1000
@@ -9,6 +9,8 @@
 exten => _2XX,1,Set(CALLERID(number)=5${CALLERID(number)})
 exten => _2XX,n,Dial(SIP/${EXTEN})
 
+exten => _1XX,1,Dial(SIP/poltava/${EXTEN})
+
 exten => 999,1,Answer
 exten => 999,n,Echo
 exten => 999,n,Hangup
10:18:12
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-18560.9848.17107	2009-12-07 23:19:16.000000000 -1000
+++ /etc/asterisk/sip.conf	2009-12-07 23:20:21.000000000 -1000
@@ -22,5 +22,5 @@
 [poltava]
 type=friend
 host=192.168.101.3
-secret=1234
+;secret=1234
 
10:20:21
#cat

/dev/pts/12
10:20:40
#ssh root@192.168.101.3
root@192.168.101.3's password:
Linux debian3 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 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: Mon Dec  7 23:19:23 2009 from 192.168.102.100
l3-agent is already running: pid=3725; pidfile=/root/.lilalo/l3-agent.pid
10:20:59
#vi /etc/asterisk/sip.conf
/dev/pts/10
10:21:29
#cd /etc/asterisk/

10:21:33
#cat extensions.conf
[default]
exten => 202,1,Answer
exten => 202,n,Wait(1)
exten => 202,n,Playback(alba)
;exten => 202,n,Playback(demo-congrats)
exten => 202,n,Hangup
exten => _2XX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _2XX,n,Dial(SIP/${EXTEN})
exten => _1XX,1,Dial(SIP/poltava/${EXTEN})
exten => 999,1,Answer
exten => 999,n,Echo
exten => 999,n,Hangup
/dev/pts/12
10:21:34
#asterisk -rxx
No such command 'x' (type 'help x' for other possible commands)
10:21:42
#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
=========================================================================
...
kiev                       192.168.102.1               5060     Unmonitored
103/103                    192.168.101.102  D          31080    Unmonitored
101/phone                  192.168.101.101  D          2048     Unmonitored
3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline]
debian3*CLI> sip show registry
Host                            Username       Refresh State                Reg.Time
 Reloading SIP
[Dec  7 23:25:39] WARNING[23691]: chan_sip.c:12530 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'poltava' to '192.168.102.1'
debian3*CLI> quit
Executing last minute cleanups
/dev/pts/10
10:23:51
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-18560.24669.7229	2009-12-07 23:24:22.000000000 -1000
+++ /etc/asterisk/sip.conf	2009-12-07 23:25:01.000000000 -1000
@@ -1,6 +1,8 @@
 [general]
 context=default
 
+register => kiev:1234@192.168.101.3/poltava
+
 [201]
 type=friend
 host=dynamic
@@ -21,6 +23,7 @@
 
 [poltava]
 type=friend
-host=192.168.101.3
+host=dynamic
+; 192.168.101.3
 ;secret=1234
 
10:25:01
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-18560.10575.18056	2009-12-07 23:26:16.000000000 -1000
+++ /etc/asterisk/sip.conf	2009-12-07 23:26:21.000000000 -1000
@@ -25,5 +25,5 @@
 type=friend
 host=dynamic
 ; 192.168.101.3
-;secret=1234
+secret=1234
 
10:26:21
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-18560.16062.25229	2009-12-07 23:26:32.000000000 -1000
+++ /etc/asterisk/sip.conf	2009-12-07 23:26:41.000000000 -1000
@@ -25,5 +25,5 @@
 type=friend
 host=dynamic
 ; 192.168.101.3
-secret=1234
+; secret=1234
 
10:26:41
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-18560.9333.28793	2009-12-07 23:27:23.000000000 -1000
+++ /etc/asterisk/sip.conf	2009-12-07 23:27:27.000000000 -1000
@@ -25,5 +25,5 @@
 type=friend
 host=dynamic
 ; 192.168.101.3
-; secret=1234
+secret=1234
 
/dev/pts/12
10:27:03
#less /etc/asterisk/sip.conf
10:28:51
#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
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity was 1 and is now 2
debian3*CLI>
debian3*CLI>
debian3*CLI> sip show registry
Host                            Username       Refresh State                Reg.Time
192.168.102.1:5060              poltava            105 Registered           Mon, 07 Dec 2009 23:27:57
debian3*CLI> quit
Executing last minute cleanups
10:29:14
#vi /etc/asterisk/sip.conf
/dev/pts/5
10:30:31
#asterisk -rvvv
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
=========================================================================
...
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 1 offline]
[Dec  8 02:28:22] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 204
debian4*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/sip_notify.conf': Found
debian4*CLI>
debian4*CLI> quit
Executing last minute cleanups
/dev/pts/10
10:30:49
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-18560.16502.17269	2009-12-07 23:30:54.000000000 -1000
+++ /etc/asterisk/sip.conf	2009-12-07 23:31:21.000000000 -1000
@@ -26,4 +26,6 @@
 host=dynamic
 ; 192.168.101.3
 secret=1234
+call-limit=1
+limitonpeers=yes
 
10:38:02
#cat iax.conf
; Inter-Asterisk eXchange driver definition
;
; This configuration is re-read at reload
; or with the CLI command
;       reload chan_iax2.so
;
; General settings, like port number to bind to, and
; an option address (the default is to bind to all
; local addresses).
;
...
;
;[marko]
;type=friend
;host=dynamic
;regexten=1234
;secret=moofoo   ; Multiple secrets may be specified. For a "user", all
;secret=foomoo   ; specified entries will be accepted as valid. For a "peer",
;secret=shazbot  ; only the last specified secret will be used.
;context=default
;permit=0.0.0.0/0.0.0.0
10:38:44
#cat sip.conf >>iax.conf

10:38:58
#vim iax.conf
10:39:21
#;context=default

10:39:34
#cat sip.conf >>iax.conf

10:39:39
#vim iax.conf
--- /tmp/l3-saved-18560.2907.11995	2009-12-07 23:39:43.000000000 -1000
+++ iax.conf	2009-12-07 23:43:25.000000000 -1000
@@ -1,25 +1,7 @@
 [general]
 context=default
 
-register => kiev:1234@192.168.101.3/poltava
-
-[201]
-type=friend
-host=dynamic
-secret=1234
-callerid="Roman Sidorenko-MegaPhone"
-
-[203]
-type=friend
-host=dynamic
-secret=203
-callerid="Roman Sidorenko-softPhone"
-
-[204]
-type=friend
-host=dynamic
-secret=204
-callerid="Roman Sidorenko-winPhone"
+register => kiev:1234@192.168.101.3
 
 [poltava]
 type=friend
@@ -28,4 +10,5 @@
 secret=1234
 ;call-limit=1
 ;limitonpeers=yes
-
+deny=0.0.0.0/0.0.0.0
+allow=192.168.101.3/255.255.255.255
10:45:11
#~
[default]
exten => 202,1,Answer
exten => 202,n,Wait(1)
exten => 202,n,Playback(alba)
;exten => 202,n,Playback(demo-congrats)
exten => 202,n,Hangup
"extensions.conf" 17L, 353C
[default]
register => kiev:1234@192.168.101.3
exten => 202,1,Answer
...
~
~
~
~
~
~
~
~
~
"extensions.conf" 18L, 398C written
10:51:05
#apt-cache search zaptel
zaptel - zapata telephony utilities
zaptel-source - Zapata telephony interface (source code for kernel driver)
10:51:19
#vim sip.conf
--- /tmp/l3-saved-18560.23847.29007	2009-12-07 23:52:54.000000000 -1000
+++ sip.conf	2009-12-07 23:57:36.000000000 -1000
@@ -2,6 +2,7 @@
 context=default
 
 register => kiev:1234@192.168.101.3/poltava
+register => nt:1234@xgu.ru/vkiev
 
 [201]
 type=friend
@@ -29,3 +30,9 @@
 ;call-limit=1
 ;limitonpeers=yes
 
+[vkiev]
+type=friend
+host=xgu.ru
+;secret=1234
+username=nt
+nat=yes
11:00:26
#vim extensions.conf
--- /tmp/l3-saved-18560.9924.12800	2009-12-08 00:00:27.000000000 -1000
+++ extensions.conf	2009-12-08 00:00:46.000000000 -1000
@@ -9,7 +9,7 @@
 exten => _2XX,1,Set(CALLERID(number)=5${CALLERID(number)})
 exten => _2XX,n,Dial(SIP/${EXTEN})
 
-exten => 4000,1,Dial(SIP/${EXTEN})
+exten => 4000,1,Dial(SIP/vkiev/${EXTEN})
 
 ;exten => _1XX,1,Dial(SIP/poltava/${EXTEN})
 exten => _1XX,1,Dial(IAX2/poltava/${EXTEN})
11:05:35
#:q
exten => 999,n,Echo
exten => 999,n,Hangup
exten => 291,1,Dial(SIP/201,10)
exten => 291,n,Dial(SIP/vkiev/380674074085,10)
exten => 291,n,Hangup
exten => 291,n,Dial(SIP/vkiev/380674074085
;exten => 291,n,Wait(1)
exten => 291,n,Playback(alba)
exten => 291,n,Hangup
~
...
~
~
~
~
~
~
~
~
~
-- INSERT --
прошла 81 минута
12:27:15
#{EXTEN})
[general]
context=default
register => kiev:1234@192.168.101.3/poltava
register => nt:1234@xgu.ru/vkiev
[201]
type=friend
host=dynamic
secret=1234
"sip.conf" 38L, 506C
secret=204
...
use
;call-limit=1
;limitonpeers=yes
~
~
~
~
~
~
"sip.conf" 39L, 521C written
12:27:55
#vim extensions.conf
--- /tmp/l3-saved-18560.26372.21624	2009-12-08 01:29:53.000000000 -1000
+++ extensions.conf	2009-12-08 01:30:02.000000000 -1000
@@ -13,8 +13,8 @@
 
 exten => _380XXXXXXXXX,1,Dial(SIP/vkiev/${EXTEN})
 
-;exten => _1XX,1,Dial(SIP/poltava/${EXTEN})
-exten => _1XX,1,Dial(IAX2/poltava/${EXTEN})
+exten => _1XX,1,Dial(SIP/poltava/${EXTEN})
+;exten => _1XX,1,Dial(IAX2/poltava/${EXTEN})
 
 exten => 999,1,Answer
 exten => 999,n,Echo
12:30:02
#vim sip.conf
--- /tmp/l3-saved-18560.6755.11958	2009-12-08 01:59:59.000000000 -1000
+++ sip.conf	2009-12-08 02:00:16.000000000 -1000
@@ -22,6 +22,12 @@
 secret=204
 callerid="Roman Sidorenko-winPhone"
 
+[205]
+type=friend
+host=dynamic
+secret=205
+callerid="Roman Sidorenko-winPhone"
+
 [poltava]
 type=friend
 host=dynamic
/dev/pts/20
12:31:28
#alsamixer

12:32:03
#kill -9 13028

/dev/pts/3
12:32:15
#minicom -s
Lockfile is stale. Overriding it..
Welcome to minicom 2.3
OPTIONS: I18n
                 Press CTRL-A Z for help on special keys
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyUSB0
/dev/pts/20
12:32:15
#tail -f /var/lib/dhcp3/dhcpd.leases
}
lease 192.168.102.102 {
  starts 2 2009/12/08 11:43:52;
  ends 2 2009/12/08 11:53:52;
  cltt 2 2009/12/08 11:43:52;
  binding state active;
  next binding state free;
  hardware ethernet 00:04:13:24:e5:7e;
  uid "\001\000\004\023$\345~";
}
...
lease 192.168.102.102 {
  starts 2 2009/12/08 12:03:52;
  ends 2 2009/12/08 12:13:52;
  cltt 2 2009/12/08 12:03:52;
  binding state active;
  next binding state free;
  hardware ethernet 00:04:13:24:e5:7e;
  uid "\001\000\004\023$\345~";
}
^C
/dev/pts/3
12:33:01
#minicom -s
Welcome to minicom 2.3
OPTIONS: I18n
                 Press CTRL-A Z for help on special keys
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyUSB0
12:33:28
#minicom -s
Welcome to minicom 2.3
OPTIONS: I18n
                 Press CTRL-A Z for help on special keys
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyUSB0
12:35:02
#minicom -s
Welcome to minicom 2.3
OPTIONS: I18n
                 Press CTRL-A Z for help on special keys
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyUSB0
12:35:46
#minicom -s
Welcome to minicom 2.3
OPTIONS: I18n
                 Press CTRL-A Z for help on special keys
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyUSB0
12:37:29
#minicom -s
Welcome to minicom 2.3
OPTIONS: I18n
                 Press CTRL-A Z for help on special keys
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyUSB0
12:42:06
#minicom -s
Welcome to minicom 2.3
OPTIONS: I18n
                 Press CTRL-A Z for help on special keys
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyUSB0
12:43:24
#minicom -s
Welcome to minicom 2.3
OPTIONS: I18n
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyUSB0
                 Press CTRL-A Z for help on special keys
ProCurve Switch 3400cl-48G(config)#
  192.168.102.1   0007e9-0c4580     dynamic 2
  192.168.101.100 000ea6-204c29     dynamic 5
PSTN#show ru ?" for a list of subcommands
прошло 22 минуты
/dev/pts/20
13:05:31
#ping 192.168.102.104
PING 192.168.102.104 (192.168.102.104) 56(84) bytes of data.
64 bytes from 192.168.102.104: icmp_seq=1 ttl=69 time=200 ms
64 bytes from 192.168.102.104: icmp_seq=2 ttl=69 time=25.6 ms
64 bytes from 192.168.102.104: icmp_seq=3 ttl=69 time=45.5 ms
64 bytes from 192.168.102.104: icmp_seq=4 ttl=69 time=65.3 ms
64 bytes from 192.168.102.104: icmp_seq=5 ttl=69 time=83.9 ms
^C
--- 192.168.102.104 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4013ms
rtt min/avg/max/mdev = 25.629/84.257/200.791/61.436 ms
/dev/pts/10
13:07:14
#host=dy
bash: tcpdump: command not found
13:07:30
#tcpdump -i eth0 -n host 192.168.102.104
bash: tcpdump: command not found
13:07:33
#apt-get install tcpdump
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpcap0.8
The following NEW packages will be installed:
  libpcap0.8 tcpdump
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 400kB of archives.
After this operation, 848kB of additional disk space will be used.
...
Get:2 http://10.0.35.1 lenny/main tcpdump 3.9.8-4 [306kB]
Fetched 400kB in 0s (4949kB/s)
Selecting previously deselected package libpcap0.8.
(Reading database ... 43204 files and directories currently installed.)
Unpacking libpcap0.8 (from .../libpcap0.8_0.9.8-5_i386.deb) ...
Selecting previously deselected package tcpdump.
Unpacking tcpdump (from .../tcpdump_3.9.8-4_i386.deb) ...
Processing triggers for man-db ...
Setting up libpcap0.8 (0.9.8-5) ...
Setting up tcpdump (3.9.8-4) ...
13:07:41
#tcpdump -i eth0 -n host 192.168.102.104
tcpdump: bind: Network is down
13:07:42
#ifconfig
eth1      Link encap:Ethernet  HWaddr 00:07:e9:0c:45:80
          inet addr:192.168.102.1  Bcast:192.168.102.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe0c:4580/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:357102 errors:0 dropped:0 overruns:0 frame:0
          TX packets:247949 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:307119264 (292.8 MiB)  TX bytes:34993465 (33.3 MiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1776 (1.7 KiB)  TX bytes:1776 (1.7 KiB)
13:07:46
#tcpdump -i eth1 -n host 192.168.102.104
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
02:08:12.517548 arp who-has 192.168.102.1 tell 192.168.102.104
02:08:12.517615 arp reply 192.168.102.1 is-at 00:07:e9:0c:45:80
02:08:12.608426 IP 192.168.102.104.68 > 192.168.102.1.67: BOOTP/DHCP, Request from 00:24:04:bd:d2:a6, length 300
02:08:12.618442 IP 192.168.102.1.67 > 192.168.102.104.68: BOOTP/DHCP, Reply, length 300
02:08:17.614980 arp who-has 192.168.102.104 tell 192.168.102.1
02:08:18.614980 arp who-has 192.168.102.104 tell 192.168.102.1
02:08:18.651018 arp reply 192.168.102.104 is-at 00:24:04:bd:d2:a6
^C
7 packets captured
7 packets received by filter
0 packets dropped by kernel
прошла 21 минута
/dev/pts/5
13:29:17
#asterisk -rvvvv
[Dec  8 02:58:24] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 204
[Dec  8 02:59:35] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203
[Dec  8 03:01:24] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 204
[Dec  8 03:02:35] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203
[Dec  8 03:04:24] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 204
[Dec  8 03:05:35] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203
[Dec  8 03:07:24] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 204
[Dec  8 03:08:35] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203
[Dec  8 03:10:25] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 204
[Dec  8 03:11:35] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203
...
    -- Saved useragent "X-Lite release 1103k stamp 53621" for peer 204
    -- Registered SIP '203' at 192.168.102.101 port 38820 expires 3600
[Dec  8 04:33:50] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203
[Dec  8 04:33:52] NOTICE[20735]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203
    -- Unregistered SIP '203'
    -- Registered SIP '203' at 192.168.102.101 port 21140 expires 3600
    -- Saved useragent "X-Lite Beta release 4.0 v3 stamp 55153" for peer 203
debian4*CLI>
debian4*CLI> quit
Executing last minute cleanups
прошло 37 минут
/dev/pts/20
14:06:50
#vim /etc/dhcp3/dhcpd.conf

Файлы

  • >>iax.conf
  • extensions.conf
  • iax.conf
  • sip.conf
  • >>iax.conf
    >
    extensions.conf
    >
    [default]
    exten => 202,1,Answer
    exten => 202,n,Wait(1)
    exten => 202,n,Playback(alba)
    ;exten => 202,n,Playback(demo-congrats)
    exten => 202,n,Hangup
    exten => _2XX,1,Set(CALLERID(number)=5${CALLERID(number)})
    exten => _2XX,n,Dial(SIP/${EXTEN})
    exten => _1XX,1,Dial(SIP/poltava/${EXTEN})
    exten => 999,1,Answer
    exten => 999,n,Echo
    exten => 999,n,Hangup
    
    iax.conf
    >
    ; Inter-Asterisk eXchange driver definition
    ;
    ; This configuration is re-read at reload
    ; or with the CLI command
    ;       reload chan_iax2.so
    ;
    ; General settings, like port number to bind to, and
    ; an option address (the default is to bind to all
    ; local addresses).
    ;
    [general]
    ;bindport=4569                  ; bindport and bindaddr may be specified
    ;                               ; NOTE: bindport must be specified BEFORE
                                    ; bindaddr or may be specified on a specific
                                    ; bindaddr if followed by colon and port
                                    ;  (e.g. bindaddr=192.168.0.1:4569)
    ;bindaddr=192.168.0.1           ; more than once to bind to multiple
    ;                               ; addresses, but the first will be the
    ;                               ; default
    ;
    ; Set iaxcompat to yes if you plan to use layered switches or
    ; some other scenario which may cause some delay when doing a
    ; lookup in the dialplan. It incurs a small performance hit to
    ; enable it. This option causes Asterisk to spawn a separate thread
    ; when it receives an IAX DPREQ (Dialplan Request) instead of
    ; blocking while it waits for a response.
    ;
    ;iaxcompat=yes
    ;
    ; Disable UDP checksums (if nochecksums is set, then no checkums will
    ; be calculated/checked on systems supporting this feature)
    ;
    ;nochecksums=no
    ;
    ;
    ; For increased security against brute force password attacks
    ; enable "delayreject" which will delay the sending of authentication
    ; reject for REGREQ or AUTHREP if there is a password.
    ;
    ;delayreject=yes
    ;
    ; You may specify a global default AMA flag for iaxtel calls.  It must be
    ; one of 'default', 'omit', 'billing', or 'documentation'.  These flags
    ; are used in the generation of call detail records.
    ;
    ;amaflags=default
    ;
    ; ADSI (Analog Display Services Interface) can be enabled if you have
    ; (or may have) ADSI compatible CPE equipment
    ;
    ;adsi=no
    ;
    ; You may specify a default account for Call Detail Records in addition
    ; to specifying on a per-user basis
    ;
    ;accountcode=lss0101
    ;
    ; You may specify a global default language for users.
    ; Can be specified also on a per-user basis
    ; If omitted, will fallback to english
    ;
    ;language=en
    ;
    ; This option specifies a preference for which music on hold class this channel
    ; should listen to when put on hold if the music class has not been set on the
    ; channel with Set(CHANNEL(musicclass)=whatever) in the dialplan, and the peer
    ; channel putting this one on hold did not suggest a music class.
    ;
    ; If this option is set to "passthrough", then the hold message will always be
    ; passed through as signalling instead of generating hold music locally.
    ;
    ; This option may be specified globally, or on a per-user or per-peer basis.
    ;
    ;mohinterpret=default
    ;
    ; This option specifies which music on hold class to suggest to the peer channel
    ; when this channel places the peer on hold. It may be specified globally or on
    ; a per-user or per-peer basis.
    ;
    ;mohsuggest=default
    ;
    ; Specify bandwidth of low, medium, or high to control which codecs are used
    ; in general.
    ;
    bandwidth=low
    ;
    ; You can also fine tune codecs here using "allow" and "disallow" clauses
    ; with specific codecs.  Use "all" to represent all formats.
    ;
    ;allow=all                      ; same as bandwidth=high
    ;disallow=g723.1                ; Hm...  Proprietary, don't use it...
    disallow=lpc10                  ; Icky sound quality...  Mr. Roboto.
    ;allow=gsm                      ; Always allow GSM, it's cool :)
    ;
    ; You can adjust several parameters relating to the jitter buffer.
    ; The jitter buffer's function is to compensate for varying
    ; network delay.
    ;
    ; All the jitter buffer settings are in milliseconds.
    ; The jitter buffer works for INCOMING audio - the outbound audio
    ; will be dejittered by the jitter buffer at the other end.
    ;
    ; jitterbuffer=yes|no: global default as to whether you want
    ; the jitter buffer at all.
    ;
    ; forcejitterbuffer=yes|no: in the ideal world, when we bridge VoIP channels
    ; we don't want to do jitterbuffering on the switch, since the endpoints
    ; can each handle this.  However, some endpoints may have poor jitterbuffers
    ; themselves, so this option will force * to always jitterbuffer, even in this
    ; case.
    ;
    ; maxjitterbuffer: a maximum size for the jitter buffer.
    ; Setting a reasonable maximum here will prevent the call delay
    ; from rising to silly values in extreme situations; you'll hear
    ; SOMETHING, even though it will be jittery.
    ;
    ; resyncthreshold: when the jitterbuffer notices a significant change in delay
    ; that continues over a few frames, it will resync, assuming that the change in
    ; delay was caused by a timestamping mix-up. The threshold for noticing a
    ; change in delay is measured as twice the measured jitter plus this resync
    ; threshold.
    ; Resyncing can be disabled by setting this parameter to -1.
    ;
    ; maxjitterinterps: the maximum number of interpolation frames the jitterbuffer
    ; should return in a row. Since some clients do not send CNG/DTX frames to
    ; indicate silence, the jitterbuffer will assume silence has begun after
    ; returning this many interpolations. This prevents interpolating throughout
    ; a long silence.
    ;
    jitterbuffer=no
    forcejitterbuffer=no
    ;maxjitterbuffer=1000
    ;maxjitterinterps=10
    ;resyncthreshold=1000
    ;trunkfreq=20                   ; How frequently to send trunk msgs (in ms)
    ; Should we send timestamps for the individual sub-frames within trunk frames?
    ; There is a small bandwidth use for these (less than 1kbps/call), but they
    ; ensure that frame timestamps get sent end-to-end properly.  If both ends of
    ; all your trunks go directly to TDM, _and_ your trunkfreq equals the frame
    ; length for your codecs, you can probably suppress these.  The receiver must
    ; also support this feature, although they do not also need to have it enabled.
    ;
    ; trunktimestamps=yes
    ;
    ; Minimum and maximum amounts of time that IAX peers can request as
    ; a registration expiration interval (in seconds).
    ; minregexpire = 60
    ; maxregexpire = 60
    ;
    ; IAX helper threads
    ; Establishes the number of iax helper threads to handle I/O.
    ; iaxthreadcount = 10
    ; Establishes the number of extra dynamic threads that may be spawned to handle I/O
    ; iaxmaxthreadcount = 100
    ;
    ; We can register with another IAX server to let him know where we are
    ; in case we have a dynamic IP address for example
    ;
    ; Register with tormenta using username marko and password secretpass
    ;
    ;register => marko:secretpass@tormenta.linux-support.net
    ;
    ; Register joe at remote host with no password
    ;
    ;register => joe@remotehost:5656
    ;
    ; Register marko at tormenta.linux-support.net using RSA key "torkey"
    ;
    ;register => marko:[torkey]@tormenta.linux-support.net
    ;
    ; Sample Registration for iaxtel
    ;
    ; Visit http://www.iaxtel.com to register with iaxtel.  Replace "user"
    ; and "pass" with your username and password for iaxtel.  Incoming
    ; calls arrive at the "s" extension of "default" context.
    ;
    ;register => user:pass@iaxtel.com
    ;
    ; Sample Registration for IAX + FWD
    ;
    ; To register using IAX with FWD, it must be enabled by visiting the URL
    ; http://www.fwdnet.net/index.php?section_id=112
    ;
    ; Note that you need an extension in you default context which matches
    ; your free world dialup number.  Please replace "FWDNumber" with your
    ; FWD number and "passwd" with your password.
    ;
    ;register => FWDNumber:passwd@iax.fwdnet.net
    ;
    ;
    ; You can disable authentication debugging to reduce the amount of
    ; debugging traffic.
    ;
    ;authdebug=no
    ;
    ; See doc/ip-tos.txt for a description of the tos parameters.
    ;tos=ef
    ;
    ; If regcontext is specified, Asterisk will dynamically create and destroy
    ; a NoOp priority 1 extension for a given peer who registers or unregisters
    ; with us.  The actual extension is the 'regexten' parameter of the registering
    ; peer or its name if 'regexten' is not provided.  More than one regexten
    ; may be supplied if they are separated by '&'.  Patterns may be used in
    ; regexten.
    ;
    ;regcontext=iaxregistrations
    ;
    ; If we don't get ACK to our NEW within 2000ms, and autokill is set to yes,
    ; then we cancel the whole thing (that's enough time for one retransmission
    ; only).  This is used to keep things from stalling for a long time for a host
    ; that is not available, but would be ill advised for bad connections.  In
    ; addition to 'yes' or 'no' you can also specify a number of milliseconds.
    ; See 'qualify' for individual peers to turn on for just a specific peer.
    ;
    autokill=yes
    ;
    ; codecpriority controls the codec negotiation of an inbound IAX call.
    ; This option is inherited to all user entities.  It can also be defined
    ; in each user entity separately which will override the setting in general.
    ;
    ; The valid values are:
    ;
    ; caller   - Consider the callers preferred order ahead of the host's.
    ; host     - Consider the host's preferred order ahead of the caller's.
    ; disabled - Disable the consideration of codec preference altogether.
    ;            (this is the original behaviour before preferences were added)
    ; reqonly  - Same as disabled, only do not consider capabilities if
    ;            the requested format is not available the call will only
    ;            be accepted if the requested format is available.
    ;
    ; The default value is 'host'
    ;
    ;codecpriority=host
    ;
    ; allowfwdownload controls whether this host will serve out firmware to
    ; IAX clients which request it.  This has only been used for the IAXy,
    ; and it has been recently proven that this firmware distribution method
    ; can be used as a source of traffic amplification attacks.  Also, the
    ; IAXy firmware has not been updated for at least 18 months, so unless
    ; you are provisioning IAXys in a secure network, we recommend that you
    ; leave this option to the default, off.
    ;
    ;allowfwdownload=yes
    ;rtcachefriends=yes     ; Cache realtime friends by adding them to the internal list
                            ; just like friends added from the config file only on a
                            ; as-needed basis? (yes|no)
    ;rtupdate=yes           ; Send registry updates to database using realtime? (yes|no)
                            ; If set to yes, when a IAX2 peer registers successfully,
                            ; the ip address, the origination port, the registration period,
                            ; and the username of the peer will be set to database via realtime.
                            ; If not present, defaults to 'yes'.
    ;rtautoclear=yes        ; Auto-Expire friends created on the fly on the same schedule
                            ; as if it had just registered? (yes|no|<seconds>)
                            ; If set to yes, when the registration expires, the friend will
                            ; vanish from the configuration until requested again.
                            ; If set to an integer, friends expire within this number of
                            ; seconds instead of the registration interval.
    ;rtignoreregexpire=yes  ; When reading a peer from Realtime, if the peer's registration
                            ; has expired based on its registration interval, used the stored
                            ; address information regardless. (yes|no)
    ; Guest sections for unauthenticated connection attempts.  Just specify an
    ; empty secret, or provide no secret section.
    ;
    [guest]
    type=user
    context=default
    callerid="Guest IAX User"
    ;
    ; Trust Caller*ID Coming from iaxtel.com
    ;
    [iaxtel]
    type=user
    context=default
    auth=rsa
    inkeys=iaxtel
    ;
    ; Trust Caller*ID Coming from iax.fwdnet.net
    ;
    [iaxfwd]
    type=user
    context=default
    auth=rsa
    inkeys=freeworlddialup
    ;
    ; Trust callerid delivered over DUNDi/e164
    ;
    ;
    ;[dundi]
    ;type=user
    ;dbsecret=dundi/secret
    ;context=dundi-e164-local
    ;
    ; Further user sections may be added, specifying a context and a secret used
    ; for connections with that given authentication name.  Limited IP based
    ; access control is allowed by use of "allow" and "deny" keywords.  Multiple
    ; rules are permitted.  Multiple permitted contexts may be specified, in
    ; which case the first will be the default.  You can also override caller*ID
    ; so that when you receive a call you set the Caller*ID to be what you want
    ; instead of trusting what the remote user provides
    ;
    ; There are three authentication methods that are supported:  md5, plaintext,
    ; and rsa.  The least secure is "plaintext", which sends passwords cleartext
    ; across the net.  "md5" uses a challenge/response md5 sum arrangement, but
    ; still requires both ends have plain text access to the secret.  "rsa" allows
    ; unidirectional secret knowledge through public/private keys.  If "rsa"
    ; authentication is used, "inkeys" is a list of acceptable public keys on the
    ; local system that can be used to authenticate the remote peer, separated by
    ; the ":" character.  "outkey" is a single, private key to use to authenticate
    ; to the other side.  Public keys are named /var/lib/asterisk/keys/<name>.pub
    ; while private keys are named /var/lib/asterisk/keys/<name>.key.  Private
    ; keys should always be 3DES encrypted.
    ;
    ;
    ; NOTE: All hostnames and IP addresses in this file are for example purposes
    ;       only; you should not expect any of them to actually be available for
    ;       your use.
    ;
    ;
    ;[markster]
    ;type=user
    ;context=default
    ;context=local
    ;auth=md5,plaintext,rsa
    ;secret=markpasswd
    ;setvar=foo=bar
    ;dbsecret=mysecrets/place       ; Secrets can be stored in astdb, too
    ;transfer=no            ; Disable IAX native transfer
    ;transfer=mediaonly     ; When doing IAX native transfers, transfer
                            ; only media stream
    ;jitterbuffer=yes       ; Override global setting an enable jitter buffer
    ;                       ; for this user
    ;maxauthreq=10          ; Set maximum number of outstanding AUTHREQs waiting for replies. Any further authentication attempts will be blocked
    ;                       ; if this limit is reached until they expire or a reply is received.
    ;callerid="Mark Spencer" <(256) 428-6275>
    ;deny=0.0.0.0/0.0.0.0
    ;accountcode=markster0101
    ;permit=209.16.236.73/255.255.255.0
    ;language=en            ; Use english as default language
    ;
    ; Peers may also be specified, with a secret and
    ; a remote hostname.
    ;
    [demo]
    type=peer
    username=asterisk
    secret=supersecret
    host=216.207.245.47
    ;sendani=no
    ;host=asterisk.linux-support.net
    ;port=5036
    ;mask=255.255.255.255
    ;qualify=yes                    ; Make sure this peer is alive
    ;qualifysmoothing = yes         ; use an average of the last two PONG
                                    ; results to reduce falsely detected LAGGED hosts
                                    ; Default: Off
    ;qualifyfreqok = 60000          ; how frequently to ping the peer when
                                    ; everything seems to be ok, in milliseconds
    ;qualifyfreqnotok = 10000       ; how frequently to ping the peer when it's
                                    ; either LAGGED or UNAVAILABLE, in milliseconds
    ;jitterbuffer=no                ; Turn off jitter buffer for this peer
    ;
    ; Peers can remotely register as well, so that they can be mobile.  Default
    ; IP's can also optionally be given but are not required.  Caller*ID can be
    ; suggested to the other side as well if it is for example a phone instead of
    ; another PBX.
    ;
    ;[dynamichost]
    ;host=dynamic
    ;secret=mysecret
    ;mailbox=1234           ; Notify about mailbox 1234
    ;inkeys=key1:key2
    ;peercontext=local      ; Default context to request for calls to peer
    ;defaultip=216.207.245.34
    ;callerid="Some Host" <(256) 428-6011>
    ;
    ;
    ;[biggateway]
    ;type=peer
    ;host=192.168.0.1
    ;context=*
    ;secret=myscret
    ;trunk=yes                      ; Use IAX2 trunking with this host
    ;timezone=America/New_York      ; Set a timezone for the date/time IE
    ;
    ;
    ; Friends are a short cut for creating a user and
    ; a peer with the same values.
    ;
    ;[marko]
    ;type=friend
    ;host=dynamic
    ;regexten=1234
    ;secret=moofoo   ; Multiple secrets may be specified. For a "user", all
    ;secret=foomoo   ; specified entries will be accepted as valid. For a "peer",
    ;secret=shazbot  ; only the last specified secret will be used.
    ;context=default
    ;permit=0.0.0.0/0.0.0.0
    
    sip.conf
    >
    [general]
    context=default
    [201]
    type=friend
    host=dynamic
    secret=1234
    callerid="Roman Sidorenko-MegaPhone"
    [203]
    type=friend
    host=dynamic
    secret=203
    callerid="Roman Sidorenko-softPhone"
    

    Статистика

    Время первой команды журнала15:48:10 2009-12- 7
    Время последней команды журнала14:06:50 2009-12- 8
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 4.95
    Процент синтаксически неверно набранных команд, % 1.98
    Суммарное время работы с терминалом *, час 3.60
    Количество командных строк в единицу времени, команда/мин 0.47
    Частота использования команд
    vim14|=============| 13.33%
    vi11|==========| 10.48%
    asterisk9|========| 8.57%
    minicom8|=======| 7.62%
    cat7|======| 6.67%
    sox6|=====| 5.71%
    mpg1235|====| 4.76%
    mv4|===| 3.81%
    screen3|==| 2.86%
    cd3|==| 2.86%
    tcpdump3|==| 2.86%
    alsamixer3|==| 2.86%
    ifconfig2|=| 1.90%
    rm2|=| 1.90%
    alsa2|=| 1.90%
    apt-get2|=| 1.90%
    ~2|=| 1.90%
    iax.conf2|=| 1.90%
    ping2|=| 1.90%
    >2|=| 1.90%
    man1|| 0.95%
    /etc/init.d/asterisk1|| 0.95%
    play1|| 0.95%
    context=default1|| 0.95%
    {XTEN})1|| 0.95%
    {EXTEN})1|| 0.95%
    :q1|| 0.95%
    host=dy1|| 0.95%
    tail1|| 0.95%
    less1|| 0.95%
    kill1|| 0.95%
    ssh1|| 0.95%
    apt-cache1|| 0.95%
    ____
    *) Интервалы неактивности длительностью 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$