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

Содержание

Журнал

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

/dev/pts/1
10:07:57
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.22503.19102	2011-06-29 12:08:00.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 12:08:18.000000000 +0400
@@ -10,9 +10,8 @@
 
 [local]
 exten => _22XX,1,Answer
-exten => _22XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-
-%m-%d-%H:%M:%S")})
-exten => _22XX,n,Monitor(wav,"${CALLFILENAME}", m)
+exten => _22XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H:%M:%S")})
+exten => _22XX,n,Monitor(wav,${CALLFILENAME},m)
 
 exten => _22XX,n,Dial(SIP/${EXTEN},10)
 exten => _22XX,n,GotoIf(i$["${DIALSTATUS}" = "BUSY"]?voicemail)
10:09:06
#apt-get install samba
account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0
Importing account for nobody...ok
Importing account for user...ok
Добавляется группа «sambashare» (GID 115) ...
Готово.
update-alternatives: используется `/usr/bin/smbstatus.samba3' для предоставления `/usr/bin/smbstatus' (smbstatus) в автоматический режим.
Starting Samba daemons: nmbd smbd.
Настраивается пакет samba-common-bin (2:3.5.6~dfsg-3squeeze4) ...
update-alternatives: используется `/usr/bin/nmblookup.samba3' для предоставления `/usr/bin/nmblookup' (nmblookup) в автоматический режим.
update-alternatives: используется `/usr/bin/net.samba3' для предоставления `/usr/bin/net' (net) в автоматический режим.
update-alternatives: используется `/usr/bin/testparm.samba3' для предоставления `/usr/bin/testparm' (testparm) в автоматический режим.
10:10:10
#smbpasswd -a user
New SMB password:
Retype new SMB password:
10:10:56
#vim /etc/samba/smb.conf
--- /tmp/l3-saved-2394.4764.5496	2011-06-29 12:12:03.000000000 +0400
+++ /etc/samba/smb.conf	2011-06-29 12:14:08.000000000 +0400
@@ -302,12 +302,13 @@
 ;   write list = root, @lpadmin
 
 # A sample share for sharing your CD-ROM with others.
-;[cdrom]
-;   comment = Samba server's CD-ROM
-;   read only = yes
-;   locking = no
-;   path = /cdrom
-;   guest ok = yes
+ [asterisk]
+
+   comment = Asterisk monitor files
+   read only = yes
+   locking = no
+   path = /var/spool/asterisk/monitor
+   guest ok = yes
 
 # The next two parameters show how to auto-mount a CD-ROM when the
 #	cdrom share is accesed. For this to work /etc/fstab must contain
10:14:08
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
прошло 13 минут
10:27:13
#mkdir /var/tmp/asterisk/

10:27:51
#chown asterisk:asterisk /var/tmp/asterisk

10:30:07
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.14951.24279	2011-06-29 12:31:00.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 12:31:15.000000000 +0400
@@ -6,7 +6,7 @@
 exten => 8100,1,VoicemailMain()
 exten => _81XX,1,VoicemailMain(22${EXTEN:2})
 
-exten => 8200,1,Record(/var/tmp/asterisk/message00:gsm)
+exten => 8200,1,Record(/var/tmp/asterisk/message00:gsm,2)
 
 
 
10:33:08
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.6410.12350	2011-06-29 12:33:11.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 12:33:51.000000000 +0400
@@ -7,6 +7,7 @@
 exten => _81XX,1,VoicemailMain(22${EXTEN:2})
 
 exten => 8200,1,Record(/var/tmp/asterisk/message00:gsm,2)
+exten => 8200,n,Playback(/var/tmp/asterisk/message00)
 
 
 
10:33:56
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.3940.19073	2011-06-29 12:34:39.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 12:35:24.000000000 +0400
@@ -8,6 +8,8 @@
 
 exten => 8200,1,Record(/var/tmp/asterisk/message00:gsm,2)
 exten => 8200,n,Playback(/var/tmp/asterisk/message00)
+exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,2)
+exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2})
 
 
 
прошло 23 минуты
10:57:13
#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 linux4 (pid = 5583)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8201@gr3:1] Record("SIP/2201-00000074", "/var/tmp/asterisk/message01:gsm,2") in new stack
    -- <SIP/2201-00000074> Playing 'beep.gsm' (language 'ru')
    -- Executing [8201@gr3:2] Playback("SIP/2201-00000074", "/var/tmp/asterisk/message01") in new stack
    -- <SIP/2201-00000074> Playing '/var/tmp/asterisk/message01.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/2201-00000074' status is 'UNKNOWN'
linux4*CLI> exit
Executing last minute cleanups
11:04:25
#apt-get install festival
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat
Предлагаемые пакеты:
  pidgin-festival festival-freebsoft-utils
НОВЫЕ пакеты, которые будут установлены:
  alsa-oss festival festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat
обновлено 0, установлено 7 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
...
Обрабатываются триггеры для man-db ...
Обрабатываются триггеры для install-info ...
Настраивается пакет alsa-oss (1.0.17-4) ...
Настраивается пакет libestools2.0 (1:2.0.95~beta-2) ...
Настраивается пакет oss-compat (0.0.4+nmu3) ...
FATAL: Module snd_seq_oss not found.
Настраивается пакет festival (1:2.0.95~beta-5.1) ...
Настраивается пакет festlex-cmu (1.4.0-6) ...
Настраивается пакет festlex-poslex (1.4.0-5) ...
Настраивается пакет festvox-kallpc16k (1.4.0-5) ...
11:04:58
#echo hello from festival | text2wave -o /var/tmp/asterisk/hello-fr

11:06:23
#echo hello from festival | text2wave -o /var/tmp/asterisk/hello-fr

11:06:59
#apt-get install festvox-ru
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
НОВЫЕ пакеты, которые будут установлены:
  festvox-ru
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 196 MБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 256 MB.
ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать!
  festvox-ru
Установить эти пакеты без проверки [y/N]? y
Получено:1 http://192.168.15.253/debian/ squeeze/main festvox-ru all 0.5-1 [196 MB]
Получено:2 http://192.168.15.253/debian/ squeeze/main festvox-ru all 0.5-1 [196 MB]
прошло 13 минут
11:20:49
#cp /usr/share/doc/festival/examples/festival.scm /etc/

прошло 11 минут
11:32:31
#vim /etc/festival.scm
--- /tmp/l3-saved-2394.6232.27861	2011-06-29 13:34:09.000000000 +0400
+++ /etc/festival.scm	2011-06-29 13:36:08.000000000 +0400
@@ -16,7 +16,7 @@
 (set! server_port 1314)
 
 ; Server password:
-(set! server_passwd "password")
+;  (set! server_passwd "password")
 
 ; Log file location
 (set! server_log_file "/var/log/festival/festival.log")
@@ -27,4 +27,6 @@
 ; Secure default:
 (set! server_access_list '("[^.]+" "127.0.0.1" "localhost"))
 
+(language_russian)
+(set! voice_default 'voice_msu_ru_nsh_clunits)
 ; Server deny list (hosts)
прошло 74 минуты
12:46:58
#k

прошло 23 минуты
13:10:14
#[ ]

13:12:02
#cd tmp
bash: cd: tmp: Нет такого файла или каталога
13:12:10
#cd /tmp

13:12:21
#tar xvfz asterisk-perl-0.09.tar.gz
asterisk-perl-0.09/
asterisk-perl-0.09/examples/
asterisk-perl-0.09/examples/agi-test.agi
asterisk-perl-0.09/examples/tts-bofh.agi
asterisk-perl-0.09/examples/calleridnamelookup.agi
asterisk-perl-0.09/examples/tts-line.agi
asterisk-perl-0.09/examples/manager-test.pl
asterisk-perl-0.09/examples/agi-enum.agi
asterisk-perl-0.09/examples/tts-ping.agi
asterisk-perl-0.09/examples/directory.agi
...
asterisk-perl-0.09/lib/
asterisk-perl-0.09/lib/Asterisk.pm
asterisk-perl-0.09/lib/Asterisk/
asterisk-perl-0.09/lib/Asterisk/Outgoing.pm
asterisk-perl-0.09/lib/Asterisk/Voicemail.pm
asterisk-perl-0.09/lib/Asterisk/Manager.pm
asterisk-perl-0.09/lib/Asterisk/AGI.pm
asterisk-perl-0.09/lib/Asterisk/QCall.pm
asterisk-perl-0.09/Makefile.PL
asterisk-perl-0.09/LICENSE
13:13:22
#dir
asterisk-perl-0.09                        keyring-nIJhem    seahorse-F8DIUW
asterisk-perl-0.09.tar.gz                 orbit-Debian-gdm  ssh-dDNvdb1626
asterisk-sounds-ru-gsm-2010-04-28.tar.gz  orbit-user        virtual-user.8bIjPb
install                                   ru
13:13:44
#cd asterisk-perl-0.09

13:13:54
#perl Makefile.PL
Writing Makefile for asterisk-perl
13:14:19
#make && make test && make install
cp lib/Asterisk/Voicemail.pm blib/lib/Asterisk/Voicemail.pm
cp lib/Asterisk/Manager.pm blib/lib/Asterisk/Manager.pm
cp lib/Asterisk/Outgoing.pm blib/lib/Asterisk/Outgoing.pm
cp lib/Asterisk/QCall.pm blib/lib/Asterisk/QCall.pm
cp lib/Asterisk.pm blib/lib/Asterisk.pm
cp lib/Asterisk/AGI.pm blib/lib/Asterisk/AGI.pm
Manifying blib/man3/Asterisk::Manager.3pm
Manifying blib/man3/Asterisk::Voicemail.3pm
Manifying blib/man3/Asterisk::Outgoing.3pm
Manifying blib/man3/Asterisk::AGI.3pm
...
Installing /usr/local/share/perl/5.10.1/Asterisk/Voicemail.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Outgoing.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/QCall.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/AGI.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Manager.pm
Installing /usr/local/man/man3/Asterisk::AGI.3pm
Installing /usr/local/man/man3/Asterisk::Outgoing.3pm
Installing /usr/local/man/man3/Asterisk::Voicemail.3pm
Installing /usr/local/man/man3/Asterisk::Manager.3pm
Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
13:14:40
#chmod +x /usr/local/bin/festival-script.pl

13:18:44
#ls -l /usr/local/bin/festival-script.pl
-rwxr-xr-x 1 root staff 668 Июн 29 14:57 /usr/local/bin/festival-script.pl
13:19:03
#cat /usr/local/bin/festival-script.pl
#!/usr/bin/perl
use Asterisk::AGI;
use File::Basename;
use Digest::MD5 qw(md5_hex);
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
my ($text)=@ARGV;
my ($filename) = $ARGV[0];
my $hash = md5_hex($text);
my $sounddir = "/var/lib/asterisk/sounds/tts";
my $wavefile = "$sounddir/"."tts-$hash.wav";
my $t2wp="";
unless (-f $wavefile) {
        #open(fileOUT, ">$sounddir"."/say-text-$hash.txt");
        #print fileOUT "$text";
        #close(fileOUT);
        my $execf=$t2wp."text2wave $filename -F 8000 -o $wavefile";
        system($execf);
       unlink($sounddir."/say-text-$hash.txt");
}
$AGI->Exec(Playback, 'tts/'.basename($wavefile,".wav"));
13:20:03
#mkdir /var/lib/asterisk/sounds/tts

13:22:06
#chown asterisk:asterisk /var/lib/asterisk/sounds/

13:22:21
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts

13:25:53
#k

13:25:53
#vim /etc/festival.scm
13:25:53
#apt-get install festival
                                   sterisk -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
...
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x7fa4cc0a7ce0)
    -- Registered extension context 'parkedcalls' (0x2167360) in local table 0x2167e40; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_config
    -- Added extension '700' priority 1 to parkedcalls (0x2167360)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000286 sec
    -- Time to restore hints and swap in new dialplan: 0.000000 sec
    -- Time to delete the old dialplan: 0.000040 sec
    -- Total time merge_contexts_delete: 0.000326 sec
linux4*CLI> exit
Executing last minute cleanups
13:26:14
#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 linux4 (pid = 5583)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8001@gr3:1] AGI("SIP/2201-00000076", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- <SIP/2201-00000076>AGI Script /usr/local/bin/festival-script.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-00000076' status is 'UNKNOWN'
linux4*CLI> exit
Executing last minute cleanups
13:26:51
#ls /var/lib/asterisk/sounds/tts/
tts-5d947ab11881ba44dc12254f56faae68.wav
13:27:45
#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 linux4 (pid = 5583)
...
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- <SIP/2201-00000078>AGI Script /usr/local/bin/festival-script.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-00000078' status is 'UNKNOWN'
  == Using SIP RTP CoS mark 5
    -- Executing [8001@gr3:1] AGI("SIP/2201-00000079", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- <SIP/2201-00000079>AGI Script /usr/local/bin/festival-script.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-00000079' status is 'UNKNOWN'
linux4*CLI> exit
Executing last minute cleanups
13:30:33
#ls /var/lib/asterisk/sounds/tts/
tts-5d947ab11881ba44dc12254f56faae68.wav
13:34:23
#ls /var/lib/asterisk/sounds/tts/
                                  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
...
[Jun 29 15:39:28] WARNING[16825]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2201-0000007c for /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68.wav
    -- <SIP/2201-0000007c>AGI Script /usr/local/bin/festival-script.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-0000007c' status is 'UNKNOWN'
  == Using SIP RTP CoS mark 5
    -- Executing [8001@gr3:1] AGI("SIP/2201-0000007d", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68)
    -- <SIP/2201-0000007d> Playing '/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68.slin' (language 'ru')
linux4*CLI> exit
Executing last minute cleanups
13:41:04
#ls /var/lib/asterisk/sounds/tts/
                                  cat  /usr/local/bin/festival-script.pl
#!/usr/bin/perl
use Asterisk::AGI;
use File::Basename;
use Digest::MD5 qw(md5_hex);
$AGI = new Asterisk::AGI;
#my %input = $AGI->ReadParse();
my ($text)=@ARGV;
my ($filename) = $ARGV[0];
my $hash = md5_hex($text);
...
unless (-f $wavefile) {
        #open(fileOUT, ">$sounddir"."/say-text-$hash.txt");
        #print fileOUT "$text";
        #close(fileOUT);
        my $execf=$t2wp."text2wave $filename -F 8000 -o $wavefile";
        system($execf);
       unlink($sounddir."/say-text-$hash.txt");
}
$wavefile =~ s/.wav$//;
$AGI->exec(Playback, $wavefile);
13:41:14
#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 linux4 (pid = 5583)
Verbosity is at least 3
    -- <SIP/2201-0000007d>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
linux4*CLI> exit
Executing last minute cleanups
13:49:14
#ls /var/lib/asterisk/sounds/tts/
exten => 8200,n,Playback(/var/tmp/asterisk/message00)
exten => 8400,1,Goto(menu,s,1)
[menu]
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message01)
exten => 9,1,Goto(menu,s,start)                                           29,1           8%
[submenu]
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message03)
exten => 0,1,Goto(menu,s,start)                                           15,1          17%
exten => 9,1,Goto(menu,s,start)
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message03)
exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.t
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-m39,1          19%
exten => 9,1,Goto(submenu,s,1)
exten => 0,1,Goto(menu,s,start)
[local]
exten => _22XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%MM
@
"/etc/asterisk/extensions.conf" 104L, 2330C записано
прошло 42 минуты
14:32:08
#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 linux4 (pid = 5583)
...
    -- Executing [2@submenu:1] AGI("SIP/2201-0000008b", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.t") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-6183c77bfd936dd8b6880693837eaafc)
[Jun 29 16:34:50] WARNING[17038]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-6183c77bfd936dd8b6880693837eaafc does not exist in any format
[Jun 29 16:34:50] WARNING[17038]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-6183c77bfd936dd8b6880693837eaafc (format 0x4 (ulaw)): No such file or directory
[Jun 29 16:34:50] WARNING[17038]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2201-0000008b for /var/lib/asterisk/sounds/tts/tts-6183c77bfd936dd8b6880693837eaafc
    -- <SIP/2201-0000008b>AGI Script /usr/local/bin/festival-script.pl completed, returning 0
    -- Auto fallthrough, channel 'SIP/2201-0000008b' status is 'UNKNOWN'
linux4*CLI> exit
Executing last minute cleanups
14:35:26
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.8198.15022	2011-06-29 16:35:31.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 16:35:56.000000000 +0400
@@ -38,8 +38,7 @@
 
 exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt
 )
-exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.t
-xt)
+exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.txt)
 exten => 9,1,Goto(submenu,s,1)
 exten => 0,1,Goto(menu,s,start)
 
14:35:56
#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 linux4 (pid = 5583)
...
    -- Executing [s@submenu:1] Answer("SIP/2201-0000008e", "") in new stack
    -- Executing [s@submenu:2] BackGround("SIP/2201-0000008e", "/var/tmp/asterisk/message03") in new stack
    -- <SIP/2201-0000008e> Playing '/var/tmp/asterisk/message03.slin' (language 'ru')
    -- Executing [2@submenu:1] AGI("SIP/2201-0000008e", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-463d7473837cfbe9fc8bc7e987fa2d73)
    -- <SIP/2201-0000008e> Playing '/var/lib/asterisk/sounds/tts/tts-463d7473837cfbe9fc8bc7e987fa2d73.slin' (language 'ru')
    -- <SIP/2201-0000008e>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
linux4*CLI> exit
Executing last minute cleanups
14:38:21
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.12596.2989	2011-06-29 16:38:23.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 16:46:22.000000000 +0400
@@ -31,17 +31,27 @@
 
 exten => 9,1,Goto(menu,s,start)
 
+exten => 0,1,Playblack(/var/tmp/asterisk/message00)
+exten => 0,n,Hangup
+
+
 [submenu]
 
 exten => s,1,Answer
 exten => s,n,Background(/var/tmp/asterisk/message03)
 
-exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt
-)
-exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.txt)
+exten => 1,1,Goto(submenu-moskva,s,1)
+exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.t
+xt)
 exten => 9,1,Goto(submenu,s,1)
 exten => 0,1,Goto(menu,s,start)
 
+[submenu-moskva]
+
+exten => s,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt
+)
+
+exten => 0,1,Goto(submenu,s,1)
 
 
 
14:46:22
#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 linux4 (pid = 5583)
...
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x21741b0) in local table 0x2153200; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x21741b0)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000320 sec
    -- Time to restore hints and swap in new dialplan: 0.000000 sec
    -- Time to delete the old dialplan: 0.000053 sec
    -- Total time merge_contexts_delete: 0.000373 sec
linux4*CLI> exit
Executing last minute cleanups
14:46:41
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.17777.11350	2011-06-29 16:46:44.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 16:48:50.000000000 +0400
@@ -31,7 +31,7 @@
 
 exten => 9,1,Goto(menu,s,start)
 
-exten => 0,1,Playblack(/var/tmp/asterisk/message00)
+exten => 0,1,Playback(/var/tmp/asterisk/message00)
 exten => 0,n,Hangup
 
 
@@ -48,13 +48,14 @@
 
 [submenu-moskva]
 
-exten => s,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt
-)
 
+exten => s,1,Background(/var/tmp/asterisk/ru-moskva)
 exten => 0,1,Goto(submenu,s,1)
 
 
 
+
+
 
 [local]
 exten => _22XX,1,Answer
14:48:50
#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 linux4 (pid = 5583)
...
    -- Executing [1@submenu:1] Goto("SIP/2201-0000008f", "submenu-moskva,s,1") in new stack
    -- Goto (submenu-moskva,s,1)
    -- Executing [s@submenu-moskva:1] BackGround("SIP/2201-0000008f", "/var/tmp/asterisk/ru-moskva") in new stack
[Jun 29 16:49:08] WARNING[17187]: format_wav.c:139 check_header: Unexpected frequency 16000
[Jun 29 16:49:08] WARNING[17187]: file.c:370 fn_wrapper: Unable to open format wav
[Jun 29 16:49:08] WARNING[17187]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/ru-moskva (format 0x4 (ulaw)): No such file or directory
[Jun 29 16:49:08] WARNING[17187]: pbx.c:8871 pbx_builtin_background: ast_streamfile failed on SIP/2201-0000008f for /var/tmp/asterisk/ru-moskva
    -- Auto fallthrough, channel 'SIP/2201-0000008f' status is 'UNKNOWN'
linux4*CLI> exit
Executing last minute cleanups
14:49:33
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.795.15620	2011-06-29 16:49:35.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 16:53:31.000000000 +0400
@@ -34,15 +34,13 @@
 exten => 0,1,Playback(/var/tmp/asterisk/message00)
 exten => 0,n,Hangup
 
-
 [submenu]
 
 exten => s,1,Answer
 exten => s,n,Background(/var/tmp/asterisk/message03)
 
 exten => 1,1,Goto(submenu-moskva,s,1)
-exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.t
-xt)
+exten => 2,1,Goto(submenu-burunduk,s,1)
 exten => 9,1,Goto(submenu,s,1)
 exten => 0,1,Goto(menu,s,start)
 
@@ -52,6 +50,10 @@
 exten => s,1,Background(/var/tmp/asterisk/ru-moskva)
 exten => 0,1,Goto(submenu,s,1)
 
+[submenu-burunduk]
+
+exten => s,1,Background(/var/tmp/asterisk/ru-burunduk)
+exten => 0,1,Goto(submenu,s,1)
 
 
 
14:53:31
#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 linux4 (pid = 5583)
...
    -- Executing [2@submenu:1] Goto("SIP/2201-00000091", "submenu-burunduk,s,1") in new stack
    -- Goto (submenu-burunduk,s,1)
    -- Executing [s@submenu-burunduk:1] BackGround("SIP/2201-00000091", "/var/tmp/asterisk/ru-burunduk") in new stack
[Jun 29 16:54:10] WARNING[17222]: format_wav.c:139 check_header: Unexpected frequency 16000
[Jun 29 16:54:10] WARNING[17222]: file.c:370 fn_wrapper: Unable to open format wav
[Jun 29 16:54:10] WARNING[17222]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/ru-burunduk (format 0x4 (ulaw)): No such file or directory
[Jun 29 16:54:10] WARNING[17222]: pbx.c:8871 pbx_builtin_background: ast_streamfile failed on SIP/2201-00000091 for /var/tmp/asterisk/ru-burunduk
    -- Auto fallthrough, channel 'SIP/2201-00000091' status is 'UNKNOWN'
linux4*CLI> exit
Executing last minute cleanups
14:54:27
#vim /etc/asterisk/extensions.conf
14:57:25
#less /usr/local/bin/
14:57:25
#less /usr/local/bin/
14:57:25
#less /usr/local/bin/festival-script.pl
14:57:39
#ls /var/lib/asterisk/sounds/tts/

14:58:52
#burunduk.txt | text2wave -F 8000
[submenu-burunduk]
[                ]
exten => s,1,Background(/var/tmp/asterisk/ru-burunduk)
exten => 0,1,Goto(subnd,n(/var/tmp/asterisk/ru-burunduk)
                                                                          61,0-1        40%
"/etc/asterisk/extensions.conf" 116L, 2531C записано
15:01:21
#burunduk.txt | text2wave -F 8000
                                  less /usr/local/bin/festival-script.pl
> /var/tmp/asterisk/ru-burunduk.waasterisk -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
...
    -- Time to delete the old dialplan: 0.000074 sec
    -- Total time merge_contexts_delete: 0.000553 sec
  == Using SIP RTP CoS mark 5
    -- Executing [8400@gr3:1] Goto("SIP/2201-00000096", "menu,s,1") in new stack
    -- Goto (menu,s,1)
    -- Executing [s@menu:1] Answer("SIP/2201-00000096", "") in new stack
[Jun 29 17:01:34] WARNING[17339]: pbx.c:3680 pbx_extension_helper: No application 'Background,n' for extension (menu, s, 2)
  == Spawn extension (menu, s, 2) exited non-zero on 'SIP/2201-00000096'
linux4*CLI> exit
Executing last minute cleanups
15:01:48
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.27423.6270	2011-06-29 17:01:52.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 17:03:51.000000000 +0400
@@ -19,12 +19,12 @@
 [menu]
 
 exten => s,1,Answer
-exten => s,n,Background,n(/var/tmp/asterisk/message01)
-exten => s,n(start),Background,n(/var/tmp/asterisk/message02)
+exten => s,n,Background(/var/tmp/asterisk/message01,m)
+exten => s,n(start),Background(/var/tmp/asterisk/message02,m)
 exten => s,n,WaitExten(2)
-exten => s,n,Background,n(/var/tmp/asterisk/message04)
+exten => s,n,Background(/var/tmp/asterisk/message04,m)
 exten => s,n,WaitExten(2)
-exten => s,n,Background,n(/var/tmp/asterisk/message05)
+exten => s,n,Background(/var/tmp/asterisk/message05,m)
 exten => s,n,Hangup
 
 exten => 1,1,Goto(submenu,s,1)
@@ -37,7 +37,7 @@
 [submenu]
 
 exten => s,1,Answer
-exten => s,n,Background,n(/var/tmp/asterisk/message03)
+exten => s,n,Background(/var/tmp/asterisk/message03,m)
 
 exten => 1,1,Goto(submenu-moskva,s,1)
 exten => 2,1,Goto(submenu-burunduk,s,1)
@@ -47,12 +47,12 @@
 [submenu-moskva]
 
 
-exten => s,1,Background,n(/var/tmp/asterisk/ru-moskva)
+exten => s,1,Background(/var/tmp/asterisk/ru-moskva,m)
 exten => 0,1,Goto(submenu,s,1)
 
 [submenu-burunduk]
 
-exten => s,1,Background,n(/var/tmp/asterisk/ru-burunduk)
+exten => s,1,Background,n(/var/tmp/asterisk/ru-burundu,mk)
 exten => 0,1,Goto(submenu,s,1)
 
 
15:03: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 linux4 (pid = 5583)
...
    -- Goto (submenu,s,1)
    -- Executing [s@submenu:1] Answer("SIP/2201-00000098", "") in new stack
    -- Executing [s@submenu:2] BackGround("SIP/2201-00000098", "/var/tmp/asterisk/message03,m") in new stack
    -- <SIP/2201-00000098> Playing '/var/tmp/asterisk/message03.slin' (language 'ru')
    -- Executing [2@submenu:1] Goto("SIP/2201-00000098", "submenu-burunduk,s,1") in new stack
    -- Goto (submenu-burunduk,s,1)
[Jun 29 17:04:54] WARNING[17371]: pbx.c:3680 pbx_extension_helper: No application 'Background,n' for extension (submenu-burunduk, s, 1)
  == Spawn extension (submenu-burunduk, s, 1) exited non-zero on 'SIP/2201-00000098'
linux4*CLI> exit
Executing last minute cleanups
15:05:06
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.8880.5588	2011-06-29 17:05:13.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 17:05:51.000000000 +0400
@@ -52,7 +52,7 @@
 
 [submenu-burunduk]
 
-exten => s,1,Background,n(/var/tmp/asterisk/ru-burundu,mk)
+exten => s,1,Background(/var/tmp/asterisk/ru-burunduk,m)
 exten => 0,1,Goto(submenu,s,1)
 
 
15:05: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 linux4 (pid = 5583)
...
    -- Executing [s@menu:5] BackGround("SIP/2201-00000099", "/var/tmp/asterisk/message04,m") in new stack
    -- <SIP/2201-00000099> Playing '/var/tmp/asterisk/message04.slin' (language 'ru')
    -- Executing [s@menu:6] WaitExten("SIP/2201-00000099", "2") in new stack
    -- Timeout on SIP/2201-00000099, continuing...
    -- Executing [s@menu:7] BackGround("SIP/2201-00000099", "/var/tmp/asterisk/message05,m") in new stack
    -- <SIP/2201-00000099> Playing '/var/tmp/asterisk/message05.slin' (language 'ru')
    -- Executing [s@menu:8] Hangup("SIP/2201-00000099", "") in new stack
  == Spawn extension (menu, s, 8) exited non-zero on 'SIP/2201-00000099'
linux4*CLI> exit
Executing last minute cleanups
15:07:03
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2394.20565.18548	2011-06-29 17:07:05.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 17:15:04.000000000 +0400
@@ -19,21 +19,24 @@
 [menu]
 
 exten => s,1,Answer
-exten => s,n,Background(/var/tmp/asterisk/message01,m)
-exten => s,n(start),Background(/var/tmp/asterisk/message02,m)
+exten => s,n,Background(/var/tmp/asterisk/message01)
+
+exten => s,n(start),Background(/var/tmp/asterisk/message02)
 exten => s,n,WaitExten(2)
-exten => s,n,Background(/var/tmp/asterisk/message04,m)
+exten => s,n,Background(/var/tmp/asterisk/message04)
 exten => s,n,WaitExten(2)
-exten => s,n,Background(/var/tmp/asterisk/message05,m)
+exten => s,n,Background(/var/tmp/asterisk/message05)
 exten => s,n,Hangup
 
 exten => 1,1,Goto(submenu,s,1)
+exten => 2,1,Dial(SIP/2202)
 
 exten => 9,1,Goto(menu,s,start)
 
 exten => 0,1,Playback(/var/tmp/asterisk/message00)
 exten => 0,n,Hangup
 
+
 [submenu]
 
 exten => s,1,Answer
15:15:04
#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 linux4 (pid = 5583)
...
    -- <SIP/2201-000000a0> Playing '/var/tmp/asterisk/message01.slin' (language 'ru')
    -- Executing [s@menu:3] BackGround("SIP/2201-000000a0", "/var/tmp/asterisk/message02") in new stack
    -- <SIP/2201-000000a0> Playing '/var/tmp/asterisk/message02.slin' (language 'ru')
    -- Executing [s@menu:4] WaitExten("SIP/2201-000000a0", "2") in new stack
    -- Timeout on SIP/2201-000000a0, continuing...
    -- Executing [s@menu:5] BackGround("SIP/2201-000000a0", "/var/tmp/asterisk/message04") in new stack
    -- <SIP/2201-000000a0> Playing '/var/tmp/asterisk/message04.slin' (language 'ru')
[Jun 29 17:16:43] WARNING[17439]: pbx.c:4415 __ast_pbx_run: Invalid extension '7', but no rule 'i' in context 'menu'
linux4*CLI> exit
Executing last minute cleanups
15:19:06
#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 linux4 (pid = 5583)
Verbosity is at least 3
linux4*CLI> exit
Executing last minute cleanups

Четверг (06/30/11)

/dev/pts/3
08:31:32
#touch .hushlogin

08:32:04
#lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 10)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 3 (rev 01)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
04:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03)
05:08.0 Communication controller: Digium, Inc. Wildcard TE220 dual-span T1/E1/J1 card 3.3V (PCI-Express) (5th gen) (rev 02)
08:32:46
## zapata

08:33:16
## dahdi

08:33:18
#apt-cache search dahdi source
dahdi-source - DAHDI telephony interface - source code for kernel driver
08:34:12
#apt-get install dahdi-source
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
НОВЫЕ пакеты, которые будут установлены:
  dahdi-source
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 912 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 1 044 kB.
ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать!
  dahdi-source
Установить эти пакеты без проверки [y/N]? Y
Получено:1 http://192.168.15.253/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB]
Получено 912 kБ за 1с (730 kБ/c)
Выбор ранее не выбранного пакета dahdi-source.
(Чтение базы данных ... на данный момент установлено 113304 файла и каталога.)
Распаковывается пакет dahdi-source (из файла .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb)...
Настраивается пакет dahdi-source (1:2.3.0.1+dfsg-2) ...
08:34:29
#m-a a-i dahdi
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                100%                                     │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
Завершено с /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-35_amd64.deb .
dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-35_amd64.deb
Выбор ранее не выбранного пакета dahdi-modules-2.6.32-5-amd64.
(Чтение базы данных ... на данный момент установлено 120909 файлов и каталогов.)
Распаковывается пакет dahdi-modules-2.6.32-5-amd64 (из файла .../dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-35_amd64.deb)...
Настраивается пакет dahdi-modules-2.6.32-5-amd64 (1:2.3.0.1+dfsg-2+2.6.32-35) ...
08:36:06
##m-a a-i dahdi

08:36:52
#dahdi_genconf
Empty configuration -- no spans
Empty configuration -- no spans
08:38:05
#modprobe dahdi
dahdi                dahdi_echocan_jpah   dahdi_echocan_sec2
dahdi_dynamic        dahdi_echocan_kb1    dahdi_transcode
dahdi_dynamic_eth    dahdi_echocan_mg2    dahdi_voicebus
dahdi_dynamic_ethmf  dahdi_echocan_oslec
dahdi_dynamic_loc    dahdi_echocan_sec
08:38:05
#modprobe dahdi
dahdi                dahdi_echocan_jpah   dahdi_echocan_sec2
dahdi_dynamic        dahdi_echocan_kb1    dahdi_transcode
dahdi_dynamic_eth    dahdi_echocan_mg2    dahdi_voicebus
dahdi_dynamic_ethmf  dahdi_echocan_oslec
dahdi_dynamic_loc    dahdi_echocan_sec
08:38:05
#modprobe dahdi

08:38:35
#dahdi_genconf
Empty configuration -- no spans
Empty configuration -- no spans
08:38:37
#cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Thu Jun 30 10:38:37 2011
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Global data
loadzone        = us
defaultzone     = us
08:38:44
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.3.0.1
Echo Canceller(s):
Configuration
======================
0 channels to configure.
08:39:01
#less /var/log/messages
08:39:28
#reboot

/dev/pts/3
08:41:26
#^C

08:41:28
#dahdi_genconf

08:41:34
#lsmod | less
08:42:39
##m-a a-i dahdi

08:46:20
#modinfo wct4xxp | less
08:47:07
#lspci -n
00:00.0 0600: 8086:29c0 (rev 10)
00:01.0 0604: 8086:29c1 (rev 10)
00:02.0 0300: 8086:29c2 (rev 10)
00:1b.0 0403: 8086:27d8 (rev 01)
00:1c.0 0604: 8086:27d0 (rev 01)
00:1c.1 0604: 8086:27d2 (rev 01)
00:1c.2 0604: 8086:27d4 (rev 01)
00:1d.0 0c03: 8086:27c8 (rev 01)
00:1d.1 0c03: 8086:27c9 (rev 01)
00:1d.2 0c03: 8086:27ca (rev 01)
00:1d.3 0c03: 8086:27cb (rev 01)
00:1d.7 0c03: 8086:27cc (rev 01)
00:1e.0 0604: 8086:244e (rev e1)
00:1f.0 0601: 8086:27b8 (rev 01)
00:1f.1 0101: 8086:27df (rev 01)
00:1f.2 0101: 8086:27c0 (rev 01)
00:1f.3 0c05: 8086:27da (rev 01)
03:00.0 0200: 10ec:8168 (rev 01)
04:00.0 0604: 104c:8231 (rev 03)
05:08.0 0780: d161:1220 (rev 02)
08:47:31
#grep d161.*1220 /lib/modules/2.6.32-5-amd64/modules.
modules.alias        modules.dep.bin      modules.softdep
modules.alias.bin    modules.devname      modules.symbols
modules.dep          modules.order        modules.symbols.bin
08:47:31
#grep d161.*1220 /lib/modules/2.6.32-5-amd64/
build/               modules.dep          modules.symbols
dahdi/               modules.dep.bin      modules.symbols.bin
kernel/              modules.devname      source/
modules.alias        modules.order        staging/
modules.alias.bin    modules.softdep
08:48:29
#less /lib/modules/2.6.32-5-amd64/modules.dep
08:48:40
#less /lib/modules/2.6.32-5-amd64/
08:48:40
#less /lib/modules/2.6.32-5-amd64/dahdi/
08:48:40
#less /lib/modules/2.6.32-5-amd64/
08:49:30
#grep d161.*1220 /lib/modules/2.6.32-5-amd64/modules.alias

08:49:44
#grep d161.*1220 /lib/modules/2.6.32-5-amd64/*

08:50:27
#grep -i d161.*1220 /lib/modules/2.6.32-5-amd64/modules.alias
alias pci:v0000D161d00001220sv00000005sd*bc*sc*i* wct4xxp
08:50:52
#dahdi_genconf

08:51:30
#ls -l /etc/dahdi/system.conf
-rw-r--r-- 1 root root 611 Июн 30 10:51 /etc/dahdi/system.conf
08:52:01
#ls -l /etc/asterisk/dahdi-channels.conf
-rw-r--r-- 1 root root 742 Июн 30 10:51 /etc/asterisk/dahdi-channels.conf

Файлы

  • /etc/dahdi/system.conf
  • /usr/local/bin/festival-script.pl
  • /etc/dahdi/system.conf
    >
    # Autogenerated by /usr/sbin/dahdi_genconf on Thu Jun 30 10:38:37 2011
    # If you edit this file and execute /usr/sbin/dahdi_genconf again,
    # your manual changes will be LOST.
    # Dahdi Configuration File
    #
    # This file is parsed by the Dahdi Configurator, dahdi_cfg
    #
    # Global data
    loadzone        = us
    defaultzone     = us
    
    /usr/local/bin/festival-script.pl
    >
    #!/usr/bin/perl
    use Asterisk::AGI;
    use File::Basename;
    use Digest::MD5 qw(md5_hex);
    $AGI = new Asterisk::AGI;
    my %input = $AGI->ReadParse();
    my ($text)=@ARGV;
    my ($filename) = $ARGV[0];
    my $hash = md5_hex($text);
    my $sounddir = "/var/lib/asterisk/sounds/tts";
    my $wavefile = "$sounddir/"."tts-$hash.wav";
    my $t2wp="";
    unless (-f $wavefile) {
            #open(fileOUT, ">$sounddir"."/say-text-$hash.txt");
            #print fileOUT "$text";
            #close(fileOUT);
            my $execf=$t2wp."text2wave $filename -F 8000 -o $wavefile";
            system($execf);
           unlink($sounddir."/say-text-$hash.txt");
    }
    $AGI->Exec(Playback, 'tts/'.basename($wavefile,".wav"));
    

    Статистика

    Время первой команды журнала10:07:57 2011- 6-29
    Время последней команды журнала08:52:01 2011- 6-30
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 2.97
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 3.57
    Количество командных строк в единицу времени, команда/мин 0.47
    Частота использования команд
    vim15|=============| 13.89%
    asterisk13|============| 12.04%
    less10|=========| 9.26%
    ls9|========| 8.33%
    apt-get5|====| 4.63%
    grep5|====| 4.63%
    dahdi_genconf4|===| 3.70%
    text2wave4|===| 3.70%
    cd3|==| 2.78%
    chown3|==| 2.78%
    modprobe3|==| 2.78%
    mkdir2|=| 1.85%
    #2|=| 1.85%
    echo2|=| 1.85%
    cat2|=| 1.85%
    burunduk.txt2|=| 1.85%
    lspci2|=| 1.85%
    k2|=| 1.85%
    #m-a2|=| 1.85%
    smbpasswd1|| 0.93%
    m-a1|| 0.93%
    &1|| 0.93%
    perl1|| 0.93%
    chmod1|| 0.93%
    cp1|| 0.93%
    reboot1|| 0.93%
    make1|| 0.93%
    [1|| 0.93%
    dir1|| 0.93%
    lsmod1|| 0.93%
    tar1|| 0.93%
    touch1|| 0.93%
    modinfo1|| 0.93%
    /etc/init.d/samba1|| 0.93%
    dahdi_cfg1|| 0.93%
    ^C1|| 0.93%
    apt-cache1|| 0.93%
    ____
    *) Интервалы неактивности длительностью 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$