/l3/users/maxim/ais-voip-2011-jun/linux2.unix.ais/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#rm message00.gsm
rm: невозможно удалить «message00.gsm»: Нет такого файла или каталога |
#rm message00.gsm
rm: невозможно удалить «message00.gsm»: Нет такого файла или каталога |
#rm /var/tmp/asterisk/ message00.gsm
rm: невозможно удалить «/var/tmp/asterisk/»: Это каталог rm: невозможно удалить «message00.gsm»: Нет такого файла или каталога |
#rm /var/tmp/asterisk/ message00.gsm
rm: невозможно удалить «/var/tmp/asterisk/»: Это каталог rm: невозможно удалить «message00.gsm»: Нет такого файла или каталога |
#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 |
#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 |
#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) |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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* ̜ | # |
#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* ̜ | # |
#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* ̜ | # |
#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* ̜ | # |
#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 |
#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 |
#rm ru-buruduk
rm: невозможно удалить «ru-buruduk»: Нет такого файла или каталога |
#rm ru-buruduk
rm: невозможно удалить «ru-buruduk»: Нет такого файла или каталога |
#rm ru-buruduk
rm: невозможно удалить «ru-buruduk»: Нет такого файла или каталога |
#rm ru-buruduk
rm: невозможно удалить «ru-buruduk»: Нет такого файла или каталога |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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) |
#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 |
#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 |
#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 |
#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 |
#ls
message01.wav message03.wav message05.wav message07.wav ru-burunduk.wav message02.wav message04.wav message06.wav ru-burunduk.txt ru-moskva.txt |
#ls
message01.wav message03.wav message05.wav message07.wav ru-burunduk.wav message02.wav message04.wav message06.wav ru-burunduk.txt ru-moskva.txt |
#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 |
#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 |
#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 |
#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 |
#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 записано |
#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 записано |
#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 |
#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 |
#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) |
#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 | |||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008