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

Содержание

Журнал

Среда (06/22/11)

/dev/tty2
13:26:34
#vim /usr/local/bin/festival-script.pl
/dev/tty1
13:29:16
#asterisk -rvvvvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 16403)
...
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- <SIP/2201-00000002>AGI Script /usr/local/bin/festival-script.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-00000002' status is 'UNKNOWN'
[Jun 22 14:31:15] NOTICE[16447]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty3
13:32:40
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12586.20299.7390	2011-06-22 14:33:46.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-22 14:34:20.000000000 +0300
@@ -38,7 +38,7 @@
 
 exten => 8400,1,Playback(/var/tmp/asterisk/melody)
 
-exten => 8500,1,AGI(/usr/local/bin/check-script.pl)
+exten => 8500,1,AGI(/usr/local/bin/check-stream.pl)
 
 
 ;-----------------------
/dev/tty2
13:32:45
#cd /usr/local/bin/

/dev/tty1
13:32:45
#asterisk -rvvvvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 16571)
...
[Jun 22 14:32:50] WARNING[16620]: res_agi.c:885 launch_script: Failed to execute '/usr/local/bin/check-script.pl': File does not exist.
    -- Auto fallthrough, channel 'SIP/2201-00000000' status is 'UNKNOWN'
    -- Unregistered SIP '2203'
       > Saved useragent "Asterisk PBX 1.6.2.9-2+squeeze2" for peer ny
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
13:33:32
#ls
check-stream.pl  festival-script.pl  l3-agent  l3-config  l3script
13:33:33
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty1
13:34:22
#asterisk -rvvvvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 16776)
...
  == Using SIP RTP CoS mark 5
    -- Executing [8500@gr3:1] AGI("SIP/2201-00000002", "/usr/local/bin/check-stream.pl") in new stack
    -- Launched AGI Script /usr/local/bin/check-stream.pl
    -- AGI Script Executing Application: (Playback) Options: (/usr/share/asterisk/sounds/en/hello-world)
    -- <SIP/2201-00000002> Playing '/usr/share/asterisk/sounds/en/hello-world.gsm' (language 'ru')
    -- <SIP/2201-00000002>AGI Script /usr/local/bin/check-stream.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-00000002' status is 'UNKNOWN'
       > Saved useragent "Asterisk PBX 1.6.2.9-2+squeeze2" for peer ny
linux6*CLI> quit
Executing last minute cleanups
/dev/tty2
13:36:20
#~
#!/usr/bin/perl
#make a tts dir inside your sounds dir (as specified below)
#adjust the t2wp variable to point to your festival bin directory
use Asterisk::AGI;
use File::Basename;
use Digest::MD5 qw(md5_hex);
$AGI = new Asterisk::AGI;
        open(fileOUT, ">$sounddir"."/say-text-$hash.txt");
        print fileOUT "$text";
#my %in close(fileOUT);Parse();
my ($te my $execf=$t2wp."text2wave $sounddir/say-text-$hash.txt -F 8000 -o $wavefile";
        system($execf);
my $ha unlink($sounddir."/say-text-$hash.txt");
}y $sounddir = "/var/lib/asterisk/sounds/tts";
#$AGI->stream_file('tts/'.basename($wavefile,".wav"));
@wavefile =~ s/.wav$//;str.ed.ac.uk/download/festival/1.95/festival/bin/";
$AGI ->stream_file($wavwfile);
unless (-f $wavefile) {
"/usr/local/bin/festival-script.pl" 32L, 913C
/dev/tty1
13:37:00
#asterisk -rvvvvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 16776)
...
    -- AGI Script Executing Application: (Playback) Options: (/usr/share/asterisk/sounds/en/hello-world)
    -- <SIP/2201-00000003> Playing '/usr/share/asterisk/sounds/en/hello-world.gsm' (language 'ru')
    -- <SIP/2201-00000003>AGI Script /usr/local/bin/check-stream.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-00000003' status is 'UNKNOWN'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
13:37:49
#asterisk -rvvvvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 17196)
Verbosity was 0 and is now 6
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
13:38:35
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty3
13:39:58
#[
[default]
[internal]
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
[local]
exten => _22XX,1,Answer
;------Vicemail----------------ME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-to${EXTEN}-from${CALLERID(num)})
exten => _22XX,n,Monitor(wav,${MON_FILENAME},m)
exten => 8100,1,Voicemailmain()EN},10)
exten => _81XX,1,Voicemailmain(22${EXTEN:2}@default)
...
"extensions.conf" 77L, 1591C записано
exten => _1XXX,1,Dial(SIP/ny/${EXTEN},10)
exten => _3XXX,1,Dial(SIP/ny/${EXTEN},10)
exten => _23XX,1,Dial(SIP/ny/${EXTEN},10)
exten => _24XX,1,Dial(SIP/ny/${EXTEN},10)
;---------------------------------
[gr1]
include => internal
include => local
[gr2]
13:40:40
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12586.30328.3433	2011-06-22 14:50:50.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-22 14:51:10.000000000 +0300
@@ -38,7 +38,7 @@
 
 exten => 8400,1,Playback(/var/tmp/asterisk/melody)
 
-exten => 8500,1,AGI(/usr/local/bin/festival-script.pl, Welcome to the asterisk voice script.)
+exten => 8500,1,AGI(/usr/local/bin/festival-script.pl)
 
 
 ;-----------------------
/dev/tty2
13:48:52
#AGI->ReadParse();
#!/usr/bin/perl
#make a tts dir inside your sounds dir (as specified below)
#adjust the t2wp variable to point to your festival bin directory
use Asterisk::AGI;
use File::Basename;
use Digest::MD5 qw(md5_hex);
$AGI = new Asterisk::AGI;
#my %input = $AGI->ReadParse();
my ($text)=@ARGV;
my $hash = md5_hex($text);
...
~
~
~
~
~
~
~
~
~
-- ВИЗУАР                                                                                                                                                                                 4,1          Весь
/dev/tty1
13:50:29
#asterisk -rvvvvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 17459)
...
    -- <SIP/2201-00000001> Playing '/var/lib/asterisk/sounds/tts/tts-d41d8cd98f00b204e9800998ecf8427e.slin' (language 'ru')
    -- <SIP/2201-00000001>AGI Script /usr/local/bin/festival-script.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-00000001' status is 'UNKNOWN'
       > Saved useragent "Asterisk PBX 1.6.2.9-2+squeeze2" for peer ny
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
13:51:12
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty1
13:53:32
#asterisk -rvvvvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 17554)
...
[Jun 22 15:01:30] NOTICE[17598]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- <SIP/2201-00000002>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
[Jun 22 15:04:33] NOTICE[17598]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 22 15:07:36] NOTICE[17598]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
14:03:12
#[
;; WARNING: It is inherently insecure to run a festival instance as a
;; server, mainly because it exposes the whole system to exploits which
;; can be easily used by attackers to gain access to your
;; computer. This is because of the inherent design of the festival
;; server. Please use it only in a situation where you are sure that
;; you will not be subjected to such an attack, or have adequate
;; security precautions.
;; This file has been provided as an example file for your use, should
;; you wish to run festival as a server.
; Maximum number of clients on the server
...
~
~
~
~
~
~
~
~
~
"/etc/festival.scm" 44L, 1485C записано
14:05:18
#vim /etc/festival.scm
--- /tmp/l3-saved-2115.27352.18075	2011-06-22 15:06:58.000000000 +0300
+++ /etc/festival.scm	2011-06-22 15:08:43.000000000 +0300
@@ -28,7 +28,7 @@
 ; Secure default:
 (set! server_access_list '("[^.]+" "127.0.0.1" "localhost"))
 (language_russian)
-;(set! voice_default
+(set! voice_default 'voise_msu_ru_nsh_clunits)
 
 ; Server deny list (hosts)
 
/dev/pts/4
14:05:58
#dpkg -L festvox-ru | less
14:06:25
#less /usr/share/doc/festvox-ru/README
/dev/tty1
14:08:47
#cd ..

14:09:58
#cd ..

14:09:59
#cd ..

14:10:00
#cd ..

14:10:00
#cd ..

14:10:01
#cd /tmp/

14:10:03
#echo пырпырпыр | Ðtext2wave 1.wav
SIOD ERROR: unbound variable : voise_msu_ru_nsh_clunits
BACKTRACE:
   0: (voise_msu_ru_nsh_clunits)
   1: (eval (list voice_default))
   2: (load (path-append datadir "init.scm"))
   3: (load "/usr/bin/text2wave")
14:10:39
#echo пырпырпыр | text2wave
SIOD ERROR: unbound variable : voise_msu_ru_nsh_clunits
BACKTRACE:
   0: (voise_msu_ru_nsh_clunits)
   1: (eval (list voice_default))
   2: (load (path-append datadir "init.scm"))
   3: (load "/usr/bin/text2wave")
14:11:12
#echo пырпырпыр | text2wave 1.wav
SIOD ERROR: could not open file 1.wav
BACKTRACE:
   0: (f (car l2))
   1: (cons (f (car l2)) r)
   2: (set! r (cons (f (car l2)) r))
   3: (while l2 (set! r (cons (f (car l2)) r)) (set! l2 (cdr l2)))
   4: (mapcar
    (lambda
     (f)
     (...))
    text_files)
   5: (main)
   6: (load "/usr/bin/text2wave")
14:12:12
#echo пырпырпыр | text2wave -o 1.wav

14:12:22
#cp 1.wav /home/

14:12:45
#cp 1.wav /home/1.wav

14:13:03
#ls
1.wav                            asterisk-perl-0.09         asterisk-sounds-ru-gsm-2010-04-28.tar.gz  kiev.txt                  mutt-linux6-1000-6418-21585692393abb6114:q  reel_around_the_sun.mp3  splash.mp3
784BBB3010FFCB635E2B6077229E3F1  asterisk-perl-0.09.tar.gz  kiev-ru.txt                               l3-saved-7142.1940.17560  mutt-linux6-1000-6418-71bddf7a93d79815e?    sound
14:13:14
#cp 1.wav /home/user/

14:13:27
#echo пыcatÑkiev-ru.txt | text2wave -o kiev.wav
LTS_Ruleset russian_downcase: no rule matches:
LTS_Ruleset: # К и *here* ́ е в #
14:14:31
#cat kiev-ru.txt | text2wave -o kiev.wav
LTS_Ruleset russian_downcase: no rule matches:
LTS_Ruleset: # *here* — #
14:15:03
#cat kiev-ru.txt | text2wave -o kiev.wav
Duration tree extreme for ay 3.12924
Duration tree extreme for ay 3.12924
LTS_Ruleset russian_downcase: no rule matches:
LTS_Ruleset: # т ы с *here* . ч #
14:15:58
#ls
1.wav                            asterisk-perl-0.09.tar.gz                 est_18139_00001  l3-saved-7142.1940.17560                    reel_around_the_sun.mp3
784BBB3010FFCB635E2B6077229E3F1  asterisk-sounds-ru-gsm-2010-04-28.tar.gz  kiev-ru.txt      mutt-linux6-1000-6418-21585692393abb6114:q  sound
asterisk-perl-0.09               est_18139_00000                           kiev.txt         mutt-linux6-1000-6418-71bddf7a93d79815e?    splash.mp3
14:16:13
#cat kiev-ru.txt | text2wave -o kiev.wav
Duration tree extreme for ay 3.12924
Duration tree extreme for ay 3.12924
LTS_Ruleset russian_downcase: no rule matches:
LTS_Ruleset: # т ы с *here* . ч #
14:16:22
#cat kiev-ru.txt | text2wave -o kiev.wav
Duration tree extreme for ay 3.12924
Duration tree extreme for ay 3.12924
Duration tree extreme for ay 3.12924
Duration tree extreme for ay 3.12924
Duration tree extreme for ay 3.12924
Duration tree extreme for ay 3.12924
Duration tree extreme for ay 3.12924
14:16:37
#ls
1.wav                            asterisk-perl-0.09.tar.gz                 est_18139_00001  kiev-ru.txt  l3-saved-7142.1940.17560                    reel_around_the_sun.mp3
784BBB3010FFCB635E2B6077229E3F1  asterisk-sounds-ru-gsm-2010-04-28.tar.gz  est_18156_00000  kiev.txt     mutt-linux6-1000-6418-21585692393abb6114:q  sound
asterisk-perl-0.09               est_18139_00000                           est_18156_00001  kiev.wav     mutt-linux6-1000-6418-71bddf7a93d79815e?    splash.mp3
14:16:39
#cp kiev.wav /home/user/

/dev/tty3
14:18:35
#[
#make a tts dir inside your sounds dir (as specified below)
"   Sorted by      name
use Asterisk::AGI;
use File::Basename;
use Digest::MD5 qw(md5_hex);
c
$AGI = new Asterisk::AGI;
#my %input = $AGI->ReadParse();
lib/
my $text = `cat /tmp/kiev-ru.txt`;
...
~
~
~
~
~
~
~
~
~
"/usr/local/bin/festival-script.pl" 38L, 1047C записано
прошло 24 минуты
/dev/tty1
14:42:51
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 1614)
...
[Jun 22 15:47:31] NOTICE[1736]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
  == Spawn extension (gr2, 2201, 4) exited non-zero on 'SIP/2203-00000004'
  == Using SIP RTP CoS mark 5
[Jun 22 15:47:59] NOTICE[1736]: chan_sip.c:20281 handle_request_invite: Call from '2203' to extension '2304' rejected because extension not found in context 'gr2'.
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
14:48:19
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1996.29802.4007	2011-06-22 15:48:30.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-22 15:48:54.000000000 +0300
@@ -33,7 +33,7 @@
 host=dynamic
 user=2203
 callerid="SoftPhone <2203>"
-context=gr2
+context=gr333
 
 [ny]
 type=friend
14:48:54
#servise asterisk restart
bash: servise: команда не найдена
14:49:01
#servise asterisk restart
bash: servise: команда не найдена
14:49:02
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:49:05
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty1
14:49:05
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2076)
Verbosity was 0 and is now 3
  == Using SIP RTP CoS mark 5
[Jun 22 15:49:19] NOTICE[2120]: chan_sip.c:20281 handle_request_invite: Call from '2203' to extension '2304' rejected because extension not found in context 'gr333'.
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
14:49:27
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2235)
...
[Jun 22 16:05:44] NOTICE[2279]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 22 16:08:47] NOTICE[2279]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 22 16:11:50] NOTICE[2279]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 22 16:14:53] NOTICE[2279]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
14:49:41
#apt-cache search kill
and - Auto Nice Daemon
asr-manpages - alt.sysadmin.recovery manual pages
backupninja - lightweight, extensible meta-backup system
convirt - A graphical Xen management tool
dbconfig-common - common framework for packaging database applications
junior-typing - Debian Jr. typing
docbook-simple - simplified DocBook XML Doctype and css stylesheets
dsniff - Various tools to sniff network traffic for cleartext insecurities
emacs-goodies-el - Miscellaneous add-ons for Emacs
libethos-1.0-0 - GObject library for application plugins - shared libraries
...
xsoldier - shoot 'em up game with the "not shooting" bonus
junior-system - Утилиты для Debian Jr. System
procps - утилиты для файловой системы /proc
pslist - инструмент контроля за процессами и их наследниками
psmisc - утилиты, использующие файловую систему proc
sysvinit-utils - аналоги утилит System-V
viruskiller - игра про нашествие вирусов на ваш компьютер
x11-utils - утилиты X11
spip - website engine for publishing
tinyproxy - A lightweight, non-caching, optionally anonymizing http proxy
прошло 10 минут
15:00:14
#apt-cache search verkill
docbook-simple - simplified DocBook XML Doctype and css stylesheets
flexbackup - Flexible backup tool for small to medium sized installations
libdata-dumper-concise-perl - module for more shorter Data::Dumper-like output
tinyproxy - A lightweight, non-caching, optionally anonymizing http proxy
15:00:28
#vim /etc/asterisk/extensions.conf
/dev/tty4
15:02:24
#ssh user@192.168.106.253
~
~
~
~
~
~
~
~
~
~
...
ru-burunduk.txt                                                     100% 5021     4.9KB/s   00:00
ru-burunduk.txt                                                     100% 5021     4.9KB/s   00:00
[root@linux0:tmp]# ssh linux1 ls /usr/local/bin/
check-stream.pl
festival-script.pl
l3-agent
l3-config
l3script
[root@linux0:tmp]# scp linux1:/usr/local/bin/
------------------------------------------------------------------------------------------------------
/dev/tty2
15:07:39
#[local]
texi2dvi   texi2pdf   texindex   text2wave
15:07:39
#text2wave -o null /tmp/.
./         ../        .ICE-unix/ .X11-unix/
15:07:39
#ls
sent
15:08:22
#cd tmp
bash: cd: tmp: Нет такого файла или каталога
15:08:25
#cd ..

15:08:27
#cd ..

15:08:27
#cd tmp

15:08:31
#ls
ru-asterisk.txt
15:08:32
#vim /etc/asterisk/extensions.conf
15:11:50
#[local]
[default]
[internal]
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
[local]
exten => _22XX,1,Answer
;------Vicemail----------------ME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-to${EXTEN}-from${CALLERID(num)})
exten => _22XX,n,Monitor(wav,${MON_FILENAME},m)
exten => 8100,1,Voicemailmain()EN},10)
exten => _81XX,1,Voicemailmain(22${EXTEN:2}@default)
...
exten => _1XXX,1,Dial(SIP/ny/${EXTEN},10)
exten => _3XXX,1,Dial(SIP/ny/${EXTEN},10)
exten => _23XX,1,Dial(SIP/ny/${EXTEN},10)
exten => _24XX,1,Dial(SIP/ny/${EXTEN},10)
;---------------------------------
[gr1]
include => internal
include => local
[gr2]
                                                                                                                                                                                                7,0-1     Наверху
15:12:04
#[local]
[xten => ]81XX,1,Voicemailmain(22${EXTEN:2}@default)
[
;-----golos menu---------2202&SIP/2203,10)
[local]
[local]> _82XX,1,Wait(1)
exten => _82XX,n,Playback(please-enter-your&vm-message)
exten => _82XX,n,Wait(1)
exten => 8400,1,Playback(/var/tmp/asterisk/melody)EXTEN:2}:gsm,2)
exten => _82XX,n,Playback(beep)
exten => 8500,1,AGI(/usr/local/bin/festival-script.pl)
...
           03,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-burunduki.txt)
exten => _23XX,1,Dial(SIP/ny/${EXTEN},10)
exten => _24XX,1,Dial(SIP/ny/${EXTEN},10)
;---------------------------------
[gr1]
include => internal
include => local
include => internal
include => local
"/etc/asterisk/extensions.conf" 80L, 1807C записано
15:15:29
#cd /var/tmp/

/dev/tty1
15:15:29
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2693)
...
    -- <SIP/2201-0000000a>AGI Script /usr/local/bin/festival-script.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-0000000a' status is 'UNKNOWN'
[Jun 22 16:17:56] NOTICE[2737]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 22 16:20:59] NOTICE[2737]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
15:17:46
#ls
asterisk  grub.swp  ru-asterisk.txt  ru-belka.txt  ru-burunduk.txt  ru-kiev.txt
/dev/tty1
15:22:39
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2868)
...
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-26a0d669af6c62d47102532b5e0791af)
    -- <SIP/2201-00000011> Playing '/var/lib/asterisk/sounds/tts/tts-26a0d669af6c62d47102532b5e0791af.slin' (language 'ru')
    -- <SIP/2201-00000011>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
[Jun 22 16:37:13] NOTICE[2912]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
15:32:32
#[local]
asterisk  grub.swp  ru-asterisk.txt  ru-belka.txt  ru-burunduk.txt  ru-kiev.txt
15:32:33
#cd /var/tmp

15:32:52
#ls
asterisk  grub.swp  ru-asterisk.txt  ru-belka.txt  ru-burunduk.txt  ru-kiev.txt
15:32:54
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1996.23556.11208	2011-06-22 16:37:05.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-22 16:37:20.000000000 +0300
@@ -39,7 +39,7 @@
 exten => 8400,1,Playback(/var/tmp/asterisk/melody)
 
 exten => 8500,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-kiev.txt)
-exten => 8501,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-belko.txt)
+exten => 8501,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-belka.txt)
 exten => 8502,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-asterisk.txt)
 exten => 8503,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-burunduk.txt)
 
/dev/tty1
15:37:24
#cd /var/tmp

15:43:09
#cd /var/tmp/
asterisk/        grub.swp         ru-asterisk.txt  ru-belka.txt     ru-burunduk.txt  ru-kiev.txt
15:43:09
#cd /var/tmp/asterisk/

15:43:15
#ls
melody.gsm  record01.gsm  record03.gsm  record05.gsm  record07.gsm  record09.gsm  record1.gsm              splash.gsm
melody.mp3  record02.gsm  record04.gsm  record06.gsm  record08.gsm  record11.gsm  reel_around_the_sun.gsm
15:43:16
#cd /var/tmp/asterisk/

прошло 10 минут
15:53:35
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 3215)
Verbosity was 0 and is now 3
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
15:53:43
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 3320)
Verbosity was 0 and is now 3
  == Using SIP RTP CoS mark 5
    -- Executing [8500@gr3:1] Goto("SIP/2201-00000001", "Menu,s,1") in new stack
    -- Goto (Menu,s,1)
[Jun 22 16:53:59] WARNING[3370]: pbx.c:4369 __ast_pbx_run: Channel 'SIP/2201-00000001' sent into invalid extension 's' in context 'Menu', but no invalid handler
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
15:54:48
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 3417)
...
    -- Executing [8500@gr3:1] Goto("SIP/2201-00000000", "Menu,s,1") in new stack
    -- Goto (Menu,s,1)
[Jun 22 16:54:54] WARNING[3466]: pbx.c:4369 __ast_pbx_run: Channel 'SIP/2201-00000000' sent into invalid extension 's' in context 'Menu', but no invalid handler
[Jun 22 16:55:31] NOTICE[3461]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
15:55:33
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 3512)
...
    -- Timeout on SIP/2201-00000007, continuing...
    -- Executing [s@menu:8] BackGround("SIP/2201-00000007", "/var/tmp/asterisk/record09") in new stack
    -- <SIP/2201-00000007> Playing '/var/tmp/asterisk/record09.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/2201-00000007' status is 'UNKNOWN'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
16:01:27
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 3886)
Verbosity was 0 and is now 3
    -- <SIP/2201-00000001>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
16:02:17
#vim /var/loc
16:02:17
#vim /var/lo
16:02:17
#vim /var/lo
16:02:17
#vim /var/loc
16:02:17
#vim /var/local/bin
16:06:36
#vim /usr/local/bin/
прошло 10 минут
16:16:45
#include => local
[default]
[internal]
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
[local]
exten => _22XX,1,Answer
exten => _22XX,n,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-to${EXTEN}-from${CALLERID(num)})
exten => _22XX,n,Monitor(wav,${MON_FILENAME},m)
exten => _22XX,n,Dial(SIP/${EXTEN},10)
                                                                        ; glavnoe menu
...
exten => s,n,WaitExten(60)
exten => s,n,Goto(menu,s,start-menu)
[        ]
[submenu]
exten => 9,n,Goto(menu,s,start-menu)
[       ]
[
;------Vicemail----------------
"/etc/asterisk/extensions.conf" 120L, 2981C записано
exten => _81XX,1,Voicemailmain(22${EXTEN:2}@default)
/dev/tty1
16:17:25
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 4007)
...
[Jun 22 17:18:17] NOTICE[4066]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.106.200
    -- <SIP/2201-00000002>AGI Script /usr/local/bin/festival-script.pl completed, returning 0
    -- Executing [s@kievmenu:2] WaitExten("SIP/2201-00000002", "60") in new stack
[Jun 22 17:18:29] WARNING[4066]: pbx.c:4415 __ast_pbx_run: Invalid extension '9', but no rule 'i' in context 'kievmenu'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
16:18:52
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 4114)
...
    -- Goto (menu,s,4)
    -- Executing [s@menu:4] BackGround("SIP/2201-00000000", "/var/tmp/asterisk/record02") in new stack
    -- <SIP/2201-00000000> Playing '/var/tmp/asterisk/record02.gsm' (language 'ru')
  == Spawn extension (menu, s, 4) exited non-zero on 'SIP/2201-00000000'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
16:19:41
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 4211)
...
    -- Timeout on SIP/2201-00000003, continuing...
    -- Executing [s@menu:8] BackGround("SIP/2201-00000003", "/var/tmp/asterisk/record09") in new stack
    -- <SIP/2201-00000003> Playing '/var/tmp/asterisk/record09.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/2201-00000003' status is 'UNKNOWN'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
16:22:57
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 4339)
...
  == Using SIP RTP CoS mark 5
[Jun 22 17:27:50] WARNING[4420]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/2203-00000001' status is 'CHANUNAVAIL'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
16:24:18
#{EXTEN:2}
Срд Июн 22 17:24:21 EEST 2011
16:24:21
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1996.31672.7225	2011-06-22 17:27:56.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-22 17:28:19.000000000 +0300
@@ -38,7 +38,7 @@
 exten => 2,1,Goto(submenu,s,1)
 exten => 3,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/ru-asterisk.txt)
 exten => 4,1,Playback(/var/tmp/asterisk/record06)
-exten => 4,n,Dial(SIP/2202)
+exten => 4,n,Dial(SIP/2201)
 exten => 5,1,Goto(system-menu,s,1)
 exten => 9,1,Goto(menu,s,start-menu)
 exten => 0,1,Playback(/var/tmp/asterisk/record04)
/dev/tty1
16:28:23
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 4467)
...
    -- SIP/2201-00000005 is ringing
  == Spawn extension (menu, 4, 2) exited non-zero on 'SIP/2203-00000004'
[Jun 22 17:31:44] NOTICE[4511]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 22 17:34:47] NOTICE[4511]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
16:35:35
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 4757)
...
    -- <SIP/2201-00000000> Playing '/var/tmp/asterisk/record03.gsm' (language 'ru')
[Jun 22 17:42:14] NOTICE[4806]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.106.200
[Jun 22 17:42:17] WARNING[4806]: pbx.c:4415 __ast_pbx_run: Invalid extension '1', but no rule 'i' in context 'animalmenu'
[Jun 22 17:42:19] NOTICE[4801]: chan_sip.c:11696 sip_reg_timeout:    -- Registration for 'la@192.168.105.1' timed out, trying again (Attempt #1)
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups

Статистика

Время первой команды журнала13:26:34 2011- 6-22
Время последней команды журнала16:35:35 2011- 6-22
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 1.98
Процент синтаксически неверно набранных команд, % 1.98
Суммарное время работы с терминалом *, час 3.15
Количество командных строк в единицу времени, команда/мин 0.53
Частота использования команд
asterisk23|====================| 20.35%
cd17|===============| 15.04%
vim15|=============| 13.27%
ls9|=======| 7.96%
text2wave9|=======| 7.96%
service5|====| 4.42%
echo5|====| 4.42%
[local]4|===| 3.54%
cp4|===| 3.54%
cat4|===| 3.54%
[3|==| 2.65%
less2|=| 1.77%
servise2|=| 1.77%
apt-cache2|=| 1.77%
dpkg1|| 0.88%
{EXTEN:2}1|| 0.88%
AGI->1|| 0.88%
ReadParse()1|| 0.88%
Ðtext2wave1|| 0.88%
~1|| 0.88%
local1|| 0.88%
ssh1|| 0.88%
include1|| 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$