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

Содержание

Журнал

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

/dev/pts/1
13:41:33
#ls /var/lib/asterisk/sounds/tts/

/dev/pts/2
13:41:33
#ls /var/lib/asterisk/sounds/tts/

/dev/pts/1
13:50:40
#rm message00
rm: невозможно удалить «message00»: Нет такого файла или каталога
/dev/pts/2
13:50:40
#rm message00
rm: невозможно удалить «message00»: Нет такого файла или каталога
/dev/pts/1
13:50:55
#rm message00.gsm
rm: невозможно удалить «message00.gsm»: Нет такого файла или каталога
/dev/pts/2
13:50:55
#rm message00.gsm
rm: невозможно удалить «message00.gsm»: Нет такого файла или каталога
/dev/pts/1
13:51:03
#rm /var/tmp/asterisk/ message00.gsm
rm: невозможно удалить «/var/tmp/asterisk/»: Это каталог
rm: невозможно удалить «message00.gsm»: Нет такого файла или каталога
/dev/pts/2
13:51:03
#rm /var/tmp/asterisk/ message00.gsm
rm: невозможно удалить «/var/tmp/asterisk/»: Это каталог
rm: невозможно удалить «message00.gsm»: Нет такого файла или каталога
/dev/pts/1
13:51:20
#rm /var/tmp/asterisk/message00.gsm

/dev/pts/2
13:51:20
#rm /var/tmp/asterisk/message00.gsm

/dev/pts/1
13:51:25
#rm /var/tmp/asterisk/message01.gsm

/dev/pts/2
13:51:25
#rm /var/tmp/asterisk/message01.gsm

/dev/pts/1
13:51:28
#rm /var/tmp/asterisk/message03.gsm

/dev/pts/2
13:51:28
#rm /var/tmp/asterisk/message03.gsm

/dev/pts/1
13:51:33
#rm /var/tmp/asterisk/message01.wav

/dev/pts/2
13:51:33
#rm /var/tmp/asterisk/message01.wav

прошло 43 минуты
/dev/pts/1
14:34:49
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
[Jun 29 16:34:55] WARNING[6692]: config.c:1163 process_text_line: No '=' (equal sign) in line 49 of /etc/asterisk/extensions.conf
[Jun 29 16:34:55] WARNING[6692]: config.c:1163 process_text_line: No '=' (equal sign) in line 51 of /etc/asterisk/extensions.conf
[Jun 29 16:34:55] WARNING[6692]: pbx_config.c:1519 pbx_load_config: No closing parenthesis found? 'AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt' at line 48
[Jun 29 16:34:55] WARNING[6692]: pbx_config.c:1519 pbx_load_config: No closing parenthesis found? 'AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.t' at line 50
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
/dev/pts/2
14:34:49
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
[Jun 29 16:34:55] WARNING[6692]: config.c:1163 process_text_line: No '=' (equal sign) in line 49 of /etc/asterisk/extensions.conf
[Jun 29 16:34:55] WARNING[6692]: config.c:1163 process_text_line: No '=' (equal sign) in line 51 of /etc/asterisk/extensions.conf
[Jun 29 16:34:55] WARNING[6692]: pbx_config.c:1519 pbx_load_config: No closing parenthesis found? 'AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt' at line 48
[Jun 29 16:34:55] WARNING[6692]: pbx_config.c:1519 pbx_load_config: No closing parenthesis found? 'AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.t' at line 50
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
/dev/pts/1
14:35:25
#vim extensions.conf
/dev/pts/2
14:35:25
#vim extensions.conf
--- /tmp/l3-saved-2226.23892.29982	2011-06-29 16:35:28.000000000 +0400
+++ extensions.conf	2011-06-29 16:35:52.000000000 +0400
@@ -45,10 +45,8 @@
 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.t
-xt)
+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 => 9,1,Goto(submenu,s,1)
 exten => 0,1,Goto(menu,s,start)
 
/dev/pts/1
14:35:52
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
linux2*CLI> exit
/dev/pts/2
14:35:52
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
linux2*CLI> exit
/dev/pts/1
14:37:16
#vim extensions.conf
/dev/pts/2
14:37:16
#vim extensions.conf
/dev/pts/1
14:44:58
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
linux2*CLI> exit
/dev/pts/2
14:44:58
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
linux2*CLI> exit
/dev/pts/1
14:45:47
#vim extensions.conf
/dev/pts/2
14:45:47
#vim extensions.conf
--- /tmp/l3-saved-2226.22280.29169	2011-06-29 16:45:49.000000000 +0400
+++ extensions.conf	2011-06-29 16:49:54.000000000 +0400
@@ -52,8 +52,7 @@
 
 [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
/dev/pts/1
14:49:54
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
/dev/pts/2
14:49:54
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
/dev/pts/1
14:49:58
#vim extensions.conf
/dev/pts/2
14:49:58
#vim extensions.conf
/dev/pts/1
14:52:11
#[local]

/dev/pts/2
14:52:11
#[local]

/dev/pts/1
14:52:28
#ls
message01.wav  message03.wav  message05.wav  message07.wav   ru-burunduk.txt  ru-moskva.wav
message02.wav  message04.wav  message06.wav  ru-buruduk.wav  ru-moskva.txt    test.wav
/dev/pts/2
14:52:28
#ls
message01.wav  message03.wav  message05.wav  message07.wav   ru-burunduk.txt  ru-moskva.wav
message02.wav  message04.wav  message06.wav  ru-buruduk.wav  ru-moskva.txt    test.wav
/dev/pts/1
14:52:30
#vim extensions.conf
/dev/pts/2
14:52:30
#vim extensions.conf
/dev/pts/1
14:53:03
#~

/dev/pts/2
14:53:03
#~

/dev/pts/1
14:53:24
#vim extensions.conf
/dev/pts/2
14:53:24
#vim extensions.conf
--- /tmp/l3-saved-2226.6340.7446	2011-06-29 16:53:27.000000000 +0400
+++ extensions.conf	2011-06-29 16:55:51.000000000 +0400
@@ -46,15 +46,21 @@
 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.txt)
+exten => 2,1,Goto(submenu-burunduk,s,1)
 exten => 9,1,Goto(submenu,s,1)
 exten => 0,1,Goto(menu,s,start)
 
 [submenu-moskva]
 
-exten => s,1,Background(/var/tmp/asterisk/ru-moskva)
+exten => s,1,Background(/var/tmp/asterisk/ru-moskva.wav)
 exten => 0,1,Goto(submenu,s,1)
 
+[submenu-burunduk]
+
+exten => s,1,Background(/var/tmp/asterisk/ru-buruduk.wav)
+exten => 0,1,Goto(submenu,s,1)
+
+
 ;Local
 [local]
 exten => _12XX,1,Answer
/dev/pts/1
14:55:51
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
/dev/pts/2
14:55:51
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
/dev/pts/1
14:56:02
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Jun 29 16:56:22] WARNING[6926]: file.c:650 ast_openstream_full: File /var/tmp/asterisk/ru-moskva.wav does not exist in any format
[Jun 29 16:56:22] WARNING[6926]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/ru-moskva.wav (format 0x4 (ulaw)): No such file or directory
[Jun 29 16:56:22] WARNING[6926]: pbx.c:8871 pbx_builtin_background: ast_streamfile failed on SIP/1202-00000058 for /var/tmp/asterisk/ru-moskva.wav
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/2
14:56:02
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Jun 29 16:56:22] WARNING[6926]: file.c:650 ast_openstream_full: File /var/tmp/asterisk/ru-moskva.wav does not exist in any format
[Jun 29 16:56:22] WARNING[6926]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/ru-moskva.wav (format 0x4 (ulaw)): No such file or directory
[Jun 29 16:56:22] WARNING[6926]: pbx.c:8871 pbx_builtin_background: ast_streamfile failed on SIP/1202-00000058 for /var/tmp/asterisk/ru-moskva.wav
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/1
14:57:34
#cd /var/tmp/asterisk

/dev/pts/2
14:57:34
#cd /var/tmp/asterisk

/dev/pts/1
14:57:40
#ls
message01.wav  message03.wav  message05.wav  message07.wav   ru-burunduk.txt  ru-moskva.wav
message02.wav  message04.wav  message06.wav  ru-buruduk.wav  ru-moskva.txt    test.wav
/dev/pts/2
14:57:40
#ls
message01.wav  message03.wav  message05.wav  message07.wav   ru-burunduk.txt  ru-moskva.wav
message02.wav  message04.wav  message06.wav  ru-buruduk.wav  ru-moskva.txt    test.wav
/dev/pts/1
14:57:42
#vim festival.scm
/dev/pts/2
14:57:42
#vim festival.scm
/dev/pts/1
14:57:42
#at /tmp/ru-moskva.txt | text2wave > /tmp/ru-moskva.wav
                             var/tmp/asterisk                           -f 8000 /var/tmp/asterisk/ru-moskva.wav
LTS_Ruleset russian_downcase: no rule matches:
LTS_Ruleset: # R I F F *here* ̜ | #
/dev/pts/2
14:57:42
#at /tmp/ru-moskva.txt | text2wave > /tmp/ru-moskva.wav
                             var/tmp/asterisk                           -f 8000 /var/tmp/asterisk/ru-moskva.wav
LTS_Ruleset russian_downcase: no rule matches:
LTS_Ruleset: # R I F F *here* ̜ | #
/dev/pts/1
14:59:16
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 /var/tmp/asterisk/ru-moskva.wav
LTS_Ruleset russian_downcase: no rule matches:
LTS_Ruleset: # R I F F *here* ̜ | #
/dev/pts/2
14:59:16
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 /var/tmp/asterisk/ru-moskva.wav
LTS_Ruleset russian_downcase: no rule matches:
LTS_Ruleset: # R I F F *here* ̜ | #
/dev/pts/1
15:01:30
#d /var
                               /tmp/asterisk
/dev/pts/2
15:01:30
#d /var
                               /tmp/asterisk
/dev/pts/1
15:01:42
#ls
message01.wav  message03.wav  message05.wav  message07.wav   ru-burunduk.txt  ru-moskva.txt  test.wav
message02.wav  message04.wav  message06.wav  ru-buruduk.wav  ru-burunduk.wav  ru-moskva.wav
/dev/pts/2
15:01:42
#ls
message01.wav  message03.wav  message05.wav  message07.wav   ru-burunduk.txt  ru-moskva.txt  test.wav
message02.wav  message04.wav  message06.wav  ru-buruduk.wav  ru-burunduk.wav  ru-moskva.wav
/dev/pts/1
15:01:46
#rm ru-buruduk
rm: невозможно удалить «ru-buruduk»: Нет такого файла или каталога
/dev/pts/2
15:01:46
#rm ru-buruduk
rm: невозможно удалить «ru-buruduk»: Нет такого файла или каталога
/dev/pts/1
15:01:59
#rm ru-buruduk.wav

/dev/pts/2
15:01:59
#rm ru-buruduk.wav

/dev/pts/1
15:02:06
#rm ru-buruduk
rm: невозможно удалить «ru-buruduk»: Нет такого файла или каталога
/dev/pts/2
15:02:06
#rm ru-buruduk
rm: невозможно удалить «ru-buruduk»: Нет такого файла или каталога
/dev/pts/1
15:02:10
#ls
message01.wav  message03.wav  message05.wav  message07.wav    ru-burunduk.wav  ru-moskva.wav
message02.wav  message04.wav  message06.wav  ru-burunduk.txt  ru-moskva.txt    test.wav
/dev/pts/2
15:02:10
#ls
message01.wav  message03.wav  message05.wav  message07.wav    ru-burunduk.wav  ru-moskva.wav
message02.wav  message04.wav  message06.wav  ru-burunduk.txt  ru-moskva.txt    test.wav
/dev/pts/1
15:02:13
#rm test.wav

/dev/pts/2
15:02:13
#rm test.wav

/dev/pts/1
15:02:22
#cd /etc/asterisk

/dev/pts/2
15:02:22
#cd /etc/asterisk

/dev/pts/1
15:02:30
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
/dev/pts/2
15:02:30
#asterisk -r
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
/dev/pts/1
15:02:38
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/2
15:02:38
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:03:08
#vim extensions.conf
/dev/pts/2
15:03:08
#vim extensions.conf
--- /tmp/l3-saved-2226.15397.18961	2011-06-29 17:03:20.000000000 +0400
+++ extensions.conf	2011-06-29 17:03:42.000000000 +0400
@@ -57,7 +57,7 @@
 
 [submenu-burunduk]
 
-exten => s,1,Background(/var/tmp/asterisk/ru-buruduk.wav)
+exten => s,1,Background(/var/tmp/asterisk/ru-burunduk.wav)
 exten => 0,1,Goto(submenu,s,1)
 
 
/dev/pts/1
15:03:42
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
[Jun 29 17:03:59] WARNING[7106]: file.c:650 ast_openstream_full: File /var/tmp/asterisk/ru-moskva.wav does not exist in any format
[Jun 29 17:03:59] WARNING[7106]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/ru-moskva.wav (format 0x4 (ulaw)): No such file or directory
[Jun 29 17:03:59] WARNING[7106]: pbx.c:8871 pbx_builtin_background: ast_streamfile failed on SIP/1202-00000059 for /var/tmp/asterisk/ru-moskva.wav
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/2
15:03:42
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
[Jun 29 17:03:59] WARNING[7106]: file.c:650 ast_openstream_full: File /var/tmp/asterisk/ru-moskva.wav does not exist in any format
[Jun 29 17:03:59] WARNING[7106]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/ru-moskva.wav (format 0x4 (ulaw)): No such file or directory
[Jun 29 17:03:59] WARNING[7106]: pbx.c:8871 pbx_builtin_background: ast_streamfile failed on SIP/1202-00000059 for /var/tmp/asterisk/ru-moskva.wav
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:04:31
#/var/tmp/asterisk/ru-moskva.wav
                        cd /var/tmp/asterisk
/dev/pts/2
15:04:31
#/var/tmp/asterisk/ru-moskva.wav
                        cd /var/tmp/asterisk
/dev/pts/1
15:04:37
#ls
message01.wav  message03.wav  message05.wav  message07.wav    ru-burunduk.wav  ru-moskva.wav
message02.wav  message04.wav  message06.wav  ru-burunduk.txt  ru-moskva.txt
/dev/pts/2
15:04:37
#ls
message01.wav  message03.wav  message05.wav  message07.wav    ru-burunduk.wav  ru-moskva.wav
message02.wav  message04.wav  message06.wav  ru-burunduk.txt  ru-moskva.txt
/dev/pts/1
15:04:41
#rm ru-moskva.wav

/dev/pts/2
15:04:41
#rm ru-moskva.wav

/dev/pts/1
15:04:51
#ls
message01.wav  message03.wav  message05.wav  message07.wav    ru-burunduk.wav
message02.wav  message04.wav  message06.wav  ru-burunduk.txt  ru-moskva.txt
/dev/pts/2
15:04:51
#ls
message01.wav  message03.wav  message05.wav  message07.wav    ru-burunduk.wav
message02.wav  message04.wav  message06.wav  ru-burunduk.txt  ru-moskva.txt
/dev/pts/1
15:04:53
#moskva.txt | text2wave -F 8000 -o /var/tmp/asterisk/ru-moskva.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
Duration tree extreme for ay 3.12924
Duration tree extreme for aa 3.81208
Duration tree extreme for aa 3.81208
Duration tree extreme for ay 3.12924
Duration tree extreme for aa 3.42543
/dev/pts/2
15:04:53
#moskva.txt | text2wave -F 8000 -o /var/tmp/asterisk/ru-moskva.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
Duration tree extreme for ay 3.12924
Duration tree extreme for aa 3.81208
Duration tree extreme for aa 3.81208
Duration tree extreme for ay 3.12924
Duration tree extreme for aa 3.42543
/dev/pts/1
15:05:12
#ls
                        cd /etc/asterisk
/dev/pts/2
15:05:12
#ls
                        cd /etc/asterisk
/dev/pts/1
15:05:19
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Jun 29 17:05:48] WARNING[7164]: file.c:650 ast_openstream_full: File /var/tmp/asterisk/ru-moskva.wav does not exist in any format
[Jun 29 17:05:48] WARNING[7164]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/ru-moskva.wav (format 0x4 (ulaw)): No such file or directory
[Jun 29 17:05:48] WARNING[7164]: pbx.c:8871 pbx_builtin_background: ast_streamfile failed on SIP/1202-0000005a for /var/tmp/asterisk/ru-moskva.wav
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/2
15:05:19
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Jun 29 17:05:48] WARNING[7164]: file.c:650 ast_openstream_full: File /var/tmp/asterisk/ru-moskva.wav does not exist in any format
[Jun 29 17:05:48] WARNING[7164]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/ru-moskva.wav (format 0x4 (ulaw)): No such file or directory
[Jun 29 17:05:48] WARNING[7164]: pbx.c:8871 pbx_builtin_background: ast_streamfile failed on SIP/1202-0000005a for /var/tmp/asterisk/ru-moskva.wav
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:06:04
#ls
[submenu-moskva]
[              ]
exten => s,1,Background(/var/tmp/asterisk/ru-moskva.wav)
exten => 0,1,Goto(submenu,s,1)
[submenu-burunduk]
[                ]
                       (                         va)
                 (           )
exten => s,1,Background(/var/tmp/asterisk/ru-burunduk.wav)
[                ]
exten => 0,1,Goto(submenu,s,1)
                      d(                            k)
"extensions.conf" 118L, 2787C записано
/dev/pts/2
15:06:04
#ls
exten => 8001,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt)
exten => 8100,1,VoicemailMain()
;In the phone 1201 needs enter 8101, on 1202 enter 8102 ..etc
exten => _81XX,1,VoicemailMain(12${EXTEN:2})
;Record any voice to file, example for make menu
exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) ;2 - posle 2 ces record will stop
;Play file
exten => 8200,n,Playback(/var/tmp/asterisk/message00)
;Record each voice to each files correspond nomber dial
[submenu-moskva]
...
exten => 0,1,Goto(submenu,s,1)
[submenu-burunduk]
[                ]
                       (                         va)
                 (           )
exten => s,1,Background(/var/tmp/asterisk/ru-burunduk.wav)
[                ]
exten => 0,1,Goto(submenu,s,1)
                      d(                            k)
"extensions.conf" 118L, 2787C записано
/dev/pts/1
15:06:31
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
[Jun 29 17:07:07] WARNING[7191]: pbx.c:4415 __ast_pbx_run: Invalid extension '9', but no rule 'i' in context 'submenu-burunduk'
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/2
15:06:31
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
[Jun 29 17:07:07] WARNING[7191]: pbx.c:4415 __ast_pbx_run: Invalid extension '9', but no rule 'i' in context 'submenu-burunduk'
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/1
15:07:19
#vim extensions.conf
/dev/pts/2
15:07:19
#vim extensions.conf
--- /tmp/l3-saved-2226.18162.28017	2011-06-29 17:07:51.000000000 +0400
+++ extensions.conf	2011-06-29 17:09:32.000000000 +0400
@@ -27,13 +27,13 @@
 [menu]
 
 exten => s,1,Answer
-exten => s,n,Background(/var/tmp/asterisk/message01)
+exten => s,n,Background(/var/tmp/asterisk/message01,m)
 
-exten => s,n(start),Background(/var/tmp/asterisk/message02)
+exten => s,n(start),Background(/var/tmp/asterisk/message02,m)
 exten => s,n,WaitExten(2)
-exten => s,n,Background(/var/tmp/asterisk/message04)
+exten => s,n,Background(/var/tmp/asterisk/message04,m)
 exten => s,n,WaitExten(2)
-exten => s,n,Background(/var/tmp/asterisk/message05)
+exten => s,n,Background(/var/tmp/asterisk/message05,m)
 exten => s,n,Hangup
 
 exten => 1,1,Goto(submenu,s,1)
@@ -43,7 +43,7 @@
 [submenu]
 
 exten => s,1,Answer
-exten => s,n,Background(/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)
@@ -52,12 +52,12 @@
 
 [submenu-moskva]
 
-exten => s,1,Background(/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(/var/tmp/asterisk/ru-burunduk)
+exten => s,1,Background(/var/tmp/asterisk/ru-burunduk,m)
 exten => 0,1,Goto(submenu,s,1)
 
 
/dev/pts/1
15:09:32
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313)
Verbosity is at least 2
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
  == Spawn extension (menu, s, 5) exited non-zero on 'SIP/1202-0000005c'
linux2*CLI> exit
Executing last minute cleanups

Статистика

Время первой команды журнала13:41:33 2011- 6-29
Время последней команды журнала15:09:32 2011- 6-29
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %11.88
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.75
Количество командных строк в единицу времени, команда/мин 2.26
Частота использования команд
rm24|======================| 22.02%
asterisk23|=====================| 21.10%
ls18|================| 16.51%
vim18|================| 16.51%
text2wave6|=====| 5.50%
ru-moskva.wav4|===| 3.67%
cd4|===| 3.67%
moskva.txt2|=| 1.83%
at2|=| 1.83%
cat2|=| 1.83%
~2|=| 1.83%
[local]2|=| 1.83%
d2|=| 1.83%
____
*) Интервалы неактивности длительностью 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$