/l3/users/konva/ais-voip-2011-jun/linux3/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 |
|
#;; can be easily used by attackers to gain access to your
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 ^[[B^[[B^[[D^[[D^[[A EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#;; can be easily used by attackers to gain access to your
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 ^[[B^[[B^[[D^[[D^[[A EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#perl /usr/local/bin/festival-script.pl /var/tmp/asterisk/ru-moskva.txt
EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#perl /usr/local/bin/festival-script.pl /var/tmp/asterisk/ru-moskva.txt
EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#perl /usr/local/bin/festival-script.pl /var/tmp/asterisk/ru-moskva.txt
EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#perl /usr/local/bin/festival-script.pl /var/tmp/asterisk/ru-moskva.txt
EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#perl /usr/local/bin/festival-script.pl /var/tmp/asterisk/ru-moskva.txt
EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#perl /usr/local/bin/festival-script.pl /var/tmp/asterisk/ru-moskva.txt
EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#perl /usr/local/bin/festival-script.pl /var/tmp/asterisk/ru-moskva.txt
EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#perl /usr/local/bin/festival-script.pl /var/tmp/asterisk/ru-moskva.txt
EXEC Playback /var/lib/asterisk/sounds/tts/tts-c26a35d5b774b143a7833640ecc32f5d |
#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 linux3 (pid = 7737) ... -- Executing [8002@gr3:1] AGI("SIP/2102-000000a3", "/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) [Jun 29 15:49:42] WARNING[17137]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 does not exist in any format [Jun 29 15:49:42] WARNING[17137]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 (format 0x4 (ulaw)): No such file or directory [Jun 29 15:49:42] WARNING[17137]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2102-000000a3 for /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 -- <SIP/2102-000000a3>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2102-000000a3' status is 'UNKNOWN' linux3*CLI> quit Executing last minute cleanups |
#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 linux3 (pid = 7737) ... -- Executing [8002@gr3:1] AGI("SIP/2102-000000a3", "/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) [Jun 29 15:49:42] WARNING[17137]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 does not exist in any format [Jun 29 15:49:42] WARNING[17137]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 (format 0x4 (ulaw)): No such file or directory [Jun 29 15:49:42] WARNING[17137]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2102-000000a3 for /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 -- <SIP/2102-000000a3>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2102-000000a3' status is 'UNKNOWN' linux3*CLI> quit Executing last minute cleanups |
#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 linux3 (pid = 7737) ... -- Executing [8002@gr3:1] AGI("SIP/2102-000000a3", "/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) [Jun 29 15:49:42] WARNING[17137]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 does not exist in any format [Jun 29 15:49:42] WARNING[17137]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 (format 0x4 (ulaw)): No such file or directory [Jun 29 15:49:42] WARNING[17137]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2102-000000a3 for /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 -- <SIP/2102-000000a3>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2102-000000a3' status is 'UNKNOWN' linux3*CLI> quit Executing last minute cleanups |
#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 linux3 (pid = 7737) ... -- Executing [8002@gr3:1] AGI("SIP/2102-000000a3", "/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) [Jun 29 15:49:42] WARNING[17137]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 does not exist in any format [Jun 29 15:49:42] WARNING[17137]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 (format 0x4 (ulaw)): No such file or directory [Jun 29 15:49:42] WARNING[17137]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2102-000000a3 for /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 -- <SIP/2102-000000a3>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2102-000000a3' status is 'UNKNOWN' linux3*CLI> quit Executing last minute cleanups |
#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 linux3 (pid = 7737) ... -- Executing [8002@gr3:1] AGI("SIP/2102-000000a3", "/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) [Jun 29 15:49:42] WARNING[17137]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 does not exist in any format [Jun 29 15:49:42] WARNING[17137]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 (format 0x4 (ulaw)): No such file or directory [Jun 29 15:49:42] WARNING[17137]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2102-000000a3 for /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 -- <SIP/2102-000000a3>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2102-000000a3' status is 'UNKNOWN' linux3*CLI> quit Executing last minute cleanups |
#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 linux3 (pid = 7737) ... -- Executing [8002@gr3:1] AGI("SIP/2102-000000a3", "/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) [Jun 29 15:49:42] WARNING[17137]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 does not exist in any format [Jun 29 15:49:42] WARNING[17137]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 (format 0x4 (ulaw)): No such file or directory [Jun 29 15:49:42] WARNING[17137]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2102-000000a3 for /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 -- <SIP/2102-000000a3>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2102-000000a3' status is 'UNKNOWN' linux3*CLI> quit Executing last minute cleanups |
#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 linux3 (pid = 7737) ... -- Executing [8002@gr3:1] AGI("SIP/2102-000000a3", "/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) [Jun 29 15:49:42] WARNING[17137]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 does not exist in any format [Jun 29 15:49:42] WARNING[17137]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 (format 0x4 (ulaw)): No such file or directory [Jun 29 15:49:42] WARNING[17137]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2102-000000a3 for /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 -- <SIP/2102-000000a3>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2102-000000a3' status is 'UNKNOWN' linux3*CLI> quit Executing last minute cleanups |
#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 linux3 (pid = 7737) ... -- Executing [8002@gr3:1] AGI("SIP/2102-000000a3", "/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) [Jun 29 15:49:42] WARNING[17137]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 does not exist in any format [Jun 29 15:49:42] WARNING[17137]: file.c:953 ast_streamfile: Unable to open /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 (format 0x4 (ulaw)): No such file or directory [Jun 29 15:49:42] WARNING[17137]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/2102-000000a3 for /var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68 -- <SIP/2102-000000a3>AGI Script /usr/local/bin/festival-script.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2102-000000a3' status is 'UNKNOWN' linux3*CLI> quit Executing last minute cleanups |
#ls -ld /var/lib/asterisk/sounds/tts/
drwxr-xr-x 2 root root 4096 Июн 29 15:41 /var/lib/asterisk/sounds/tts/ |
#ls -ld /var/lib/asterisk/sounds/tts/
drwxr-xr-x 2 root root 4096 Июн 29 15:41 /var/lib/asterisk/sounds/tts/ |
#ls -ld /var/lib/asterisk/sounds/tts/
drwxr-xr-x 2 root root 4096 Июн 29 15:41 /var/lib/asterisk/sounds/tts/ |
#ls -ld /var/lib/asterisk/sounds/tts/
drwxr-xr-x 2 root root 4096 Июн 29 15:41 /var/lib/asterisk/sounds/tts/ |
#ls -ld /var/lib/asterisk/sounds/tts/
drwxr-xr-x 2 root root 4096 Июн 29 15:41 /var/lib/asterisk/sounds/tts/ |
#ls -ld /var/lib/asterisk/sounds/tts/
drwxr-xr-x 2 root root 4096 Июн 29 15:41 /var/lib/asterisk/sounds/tts/ |
#ls -ld /var/lib/asterisk/sounds/tts/
drwxr-xr-x 2 root root 4096 Июн 29 15:41 /var/lib/asterisk/sounds/tts/ |
#ls -ld /var/lib/asterisk/sounds/tts/
drwxr-xr-x 2 root root 4096 Июн 29 15:41 /var/lib/asterisk/sounds/tts/ |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12504.7288.10559 2011-06-29 16:36:49.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-06-29 16:38:14.000000000 +0400 @@ -19,7 +19,7 @@ [menu] -exten => s,1,Ansver +exten => s,1,Answer 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,Hangup exten => 1,1,Goto(submenu,s,1) exten => 9,1,Goto(menu,s,start) [submenu] [ ] exten => s,1,Ansver exten => s,n,Background(/var/tmp/asterisk/message03) exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) 40,1 19% |
#[ ]
exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) exten => 9,1,Goto(menu,s,start) [submenu] [ ] exten => s,1,Ansver exten => s,n,Background(/var/tmp/asterisk/message03) exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) 40,1 19% |
#[ ]
exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) exten => 9,1,Goto(menu,s,start) [submenu] [ ] exten => s,1,Ansver exten => s,n,Background(/var/tmp/asterisk/message03) exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) 40,1 19% |
#[ ]
exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) exten => 9,1,Goto(menu,s,start) [submenu] [ ] exten => s,1,Ansver exten => s,n,Background(/var/tmp/asterisk/message03) exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) 40,1 19% |
#[ ]
exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) exten => 9,1,Goto(menu,s,start) [submenu] [ ] exten => s,1,Ansver exten => s,n,Background(/var/tmp/asterisk/message03) exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) 40,1 19% |
#[ ]
exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) exten => 9,1,Goto(menu,s,start) [submenu] [ ] exten => s,1,Ansver exten => s,n,Background(/var/tmp/asterisk/message03) exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) 40,1 19% |
#[ ]
exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) exten => 9,1,Goto(menu,s,start) [submenu] [ ] exten => s,1,Ansver exten => s,n,Background(/var/tmp/asterisk/message03) exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) 40,1 19% |
#[ ]
[menu] [menu]=> s,1,Answer [ ] exten => s,n,Background(/var/tmp/asterisk/message01) exten => s,n(start),Background(/var/tmp/asterisk/message02) exten => s,n,Background(/var/tmp/asterisk/message04) exten => s,n,WaitExten(2) exten => s,n,Background(/var/tmp/asterisk/message05) exten => s,n,Hangup 30,0-1 6% exten => 1,1,Goto(submenu,s,1) exten => 9,1,Goto(menu,s,start) [submenu] [ ] exten => s,1,Ansver exten => s,n,Background(/var/tmp/asterisk/message03) exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) 40,1 19% |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12504.18641.14086 2011-06-29 16:41:32.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-06-29 17:06:23.000000000 +0400 @@ -8,7 +8,7 @@ exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) -exten => 8200,1,Playback(/var/tmp/asterisk/message00) +exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) @@ -32,22 +32,35 @@ exten => 9,1,Goto(menu,s,start) +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,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,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 => 0,1,Goto(submenu,s,1) + +[submenu-burunduk] + +exten => s,1,Background(/var/tmp/asterisk/ru-burunduk) +exten => 0,1,Goto(submenu,s,1) + + + [local] exten => _21XX,1,Answer -exten => _21XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y- -%m-%d-%H-%M-%S")}) +exten => _21XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")}) exten => _21XX,n,Monitor(wav,${CALLFILENAME},m) exten => _21XX,n,Dial(SIP/${EXTEN},10) exten => _21XX,n,Noop($[${DIALSTATUS}]) |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 >/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 |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 >/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 |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 >/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 |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 >/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 |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 >/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 |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 >/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 |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 >/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 |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave -F 8000 >/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 |
#cat /etc/asterisk/extensions.conf
[default] [internal] exten => 8000,1,Playback(welcome) exten => 8001,1,VoicemailMain() exten => 8002,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ... include => national [gr3] include => internal include => local include => national include => international [gr4] include => local include => national include => international |
#cat /etc/asterisk/extensions.conf
[default] [internal] exten => 8000,1,Playback(welcome) exten => 8001,1,VoicemailMain() exten => 8002,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ... include => national [gr3] include => internal include => local include => national include => international [gr4] include => local include => national include => international |
#cat /etc/asterisk/extensions.conf
[default] [internal] exten => 8000,1,Playback(welcome) exten => 8001,1,VoicemailMain() exten => 8002,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ... include => national [gr3] include => internal include => local include => national include => international [gr4] include => local include => national include => international |
#cat /etc/asterisk/extensions.conf
[default] [internal] exten => 8000,1,Playback(welcome) exten => 8001,1,VoicemailMain() exten => 8002,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ... include => national [gr3] include => internal include => local include => national include => international [gr4] include => local include => national include => international |
#cat /etc/asterisk/extensions.conf
[default] [internal] exten => 8000,1,Playback(welcome) exten => 8001,1,VoicemailMain() exten => 8002,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ... include => national [gr3] include => internal include => local include => national include => international [gr4] include => local include => national include => international |
#cat /etc/asterisk/extensions.conf
[default] [internal] exten => 8000,1,Playback(welcome) exten => 8001,1,VoicemailMain() exten => 8002,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ... include => national [gr3] include => internal include => local include => national include => international [gr4] include => local include => national include => international |
#cat /etc/asterisk/extensions.conf
[default] [internal] exten => 8000,1,Playback(welcome) exten => 8001,1,VoicemailMain() exten => 8002,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ... include => national [gr3] include => internal include => local include => national include => international [gr4] include => local include => national include => international |
#cat /etc/asterisk/extensions.conf
[default] [internal] exten => 8000,1,Playback(welcome) exten => 8001,1,VoicemailMain() exten => 8002,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ... include => national [gr3] include => internal include => local include => national include => international [gr4] include => local include => national include => international |
[default] [internal] exten => 8000,1,Playback(welcome) exten => 8001,1,VoicemailMain() exten => 8002,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => _81XX,1,VoicemailMain(21${EXTEN:2}) exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) exten => 8200,n,Playback(/var/tmp/asterisk/message00) exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _83XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => 8400,1,Goto(menu,s,1) [menu] exten => s,1,Answer 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) exten => s,n,WaitExten(2) exten => s,n,Background(/var/tmp/asterisk/message05) exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) exten => 2,1,Dial(SIP/2101) exten => 9,1,Goto(menu,s,start) 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,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 => 0,1,Goto(submenu,s,1) [submenu-burunduk] exten => s,1,Background(/var/tmp/asterisk/ru-burunduk) exten => 0,1,Goto(submenu,s,1) [local] exten => _21XX,1,Answer exten => _21XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")}) exten => _21XX,n,Monitor(wav,${CALLFILENAME},m) exten => _21XX,n,Dial(SIP/${EXTEN},10) exten => _21XX,n,Noop($[${DIALSTATUS}]) exten => _21XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"])?voicemail) exten => _21XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"])?voicemail) exten => _21XX,n,GotoIf($["${DIALSTATUS}" = "DONTCALL"])?voicemail) exten => _21XX,n,GotoIf($["${DIALSTATUS}" = "CONGESTION"])?voicemail) exten => _21XX,n,Hangup exten => _21XX,n(voicemail),Voicemail(${EXTEN}@default) exten => _21XX,n,Hangup [national] exten => _22XX,1,Dial(SIP/gr/${EXTEN}) [international] exten => _11XX,1,Dial(SIP/msk/${EXTEN}) exten => _12XX,1,Dial(SIP/msk/${EXTEN}) exten => _32XX,1,Dial(SIP/ny/${EXTEN}) exten => _31XX,1,Dial(SIP/ny/${EXTEN}) [gr1] include => internal include => local [gr2] include => internal include => local include => national [gr3] include => internal include => local include => national include => international [gr4] include => local include => national include => international
Время первой команды журнала | 13:40:54 2011- 6-29 | |||||||||||||||||||||||||||||||||
Время последней команды журнала | 08:33:00 2011- 6-30 | |||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 31.68 | |||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.86 | |||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.95 | |||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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