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

Содержание

Журнал

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

/dev/pts/3
11:24:39
#ps aux ~ grep fest
ERROR: Garbage option.
********* simple selection *********  ********* selection by list *********
-A all processes                      -C by command name
-N negate selection                   -G by real group ID (supports names)
-a all w/ tty except session leaders  -U by real user ID (supports names)
-d all except session leaders         -g by session OR by effective group name
-e all processes                      -p by process ID
T  all processes on this terminal     -s processes in the sessions given
a  all w/ tty, including other users  -t by tty
g  OBSOLETE -- DO NOT USE             -u by effective user ID (supports names)
...
-o,o user-defined  -f full            --Group --User --pid --cols --ppid
-j,j job control   s  signal          --group --user --sid --rows --info
-O,O preloaded -o  v  virtual memory  --cumulative --format --deselect
-l,l long          u  user-oriented   --sort --tty --forest --version
-F   extra full    X  registers       --heading --no-heading --context
                    ********* misc options *********
-V,V  show version      L  list format codes  f  ASCII art forest
-m,m,-L,-T,H  threads   S  children in sum    -y change -l format
-M,Z  security data     c  true command name  -c scheduling class
-w,w  wide output       n  numeric WCHAN,UID  -H process hierarchy
/dev/pts/7
11:31:01
#vim /etc/asterisk/extensions.conf
/dev/pts/6
11:31:01
#vim /etc/asterisk/extensions.conf
/dev/pts/8
11:31:01
#vim /etc/asterisk/extensions.conf
/dev/pts/5
11:31:01
#vim /etc/asterisk/extensions.conf
/dev/pts/2
11:31:01
#vim /etc/asterisk/extensions.conf
/dev/pts/4
11:31:01
#vim /etc/asterisk/extensions.conf
/dev/pts/1
11:31:01
#vim /etc/asterisk/extensions.conf
/dev/pts/3
11:31:01
#vim /etc/asterisk/extensions.conf
/dev/pts/7
11:33:42
#-- ВСТАВКА --
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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b7", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 12:36:25] WARNING[22551]: app_festival.c:504 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (gr3, 8402, 1) exited non-zero on 'SIP/2303-000000b7'
[Jun 22 12:36:31] NOTICE[12135]: chan_sip.c:11696 sip_reg_timeout:    -- Registration for 'kiev@192.168.101.1' timed out, trying again (Attempt #2)
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/6
11:33:42
#-- ВСТАВКА --
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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b7", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 12:36:25] WARNING[22551]: app_festival.c:504 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (gr3, 8402, 1) exited non-zero on 'SIP/2303-000000b7'
[Jun 22 12:36:31] NOTICE[12135]: chan_sip.c:11696 sip_reg_timeout:    -- Registration for 'kiev@192.168.101.1' timed out, trying again (Attempt #2)
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/8
11:33:42
#-- ВСТАВКА --
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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b7", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 12:36:25] WARNING[22551]: app_festival.c:504 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (gr3, 8402, 1) exited non-zero on 'SIP/2303-000000b7'
[Jun 22 12:36:31] NOTICE[12135]: chan_sip.c:11696 sip_reg_timeout:    -- Registration for 'kiev@192.168.101.1' timed out, trying again (Attempt #2)
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/5
11:33:42
#-- ВСТАВКА --
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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b7", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 12:36:25] WARNING[22551]: app_festival.c:504 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (gr3, 8402, 1) exited non-zero on 'SIP/2303-000000b7'
[Jun 22 12:36:31] NOTICE[12135]: chan_sip.c:11696 sip_reg_timeout:    -- Registration for 'kiev@192.168.101.1' timed out, trying again (Attempt #2)
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/2
11:33:42
#-- ВСТАВКА --
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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b7", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 12:36:25] WARNING[22551]: app_festival.c:504 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (gr3, 8402, 1) exited non-zero on 'SIP/2303-000000b7'
[Jun 22 12:36:31] NOTICE[12135]: chan_sip.c:11696 sip_reg_timeout:    -- Registration for 'kiev@192.168.101.1' timed out, trying again (Attempt #2)
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/4
11:33:42
#-- ВСТАВКА --
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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b7", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 12:36:25] WARNING[22551]: app_festival.c:504 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (gr3, 8402, 1) exited non-zero on 'SIP/2303-000000b7'
[Jun 22 12:36:31] NOTICE[12135]: chan_sip.c:11696 sip_reg_timeout:    -- Registration for 'kiev@192.168.101.1' timed out, trying again (Attempt #2)
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
11:33:42
#-- ВСТАВКА --
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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b7", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 12:36:25] WARNING[22551]: app_festival.c:504 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (gr3, 8402, 1) exited non-zero on 'SIP/2303-000000b7'
[Jun 22 12:36:31] NOTICE[12135]: chan_sip.c:11696 sip_reg_timeout:    -- Registration for 'kiev@192.168.101.1' timed out, trying again (Attempt #2)
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/3
11:33:42
#-- ВСТАВКА --
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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b7", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 12:36:25] WARNING[22551]: app_festival.c:504 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (gr3, 8402, 1) exited non-zero on 'SIP/2303-000000b7'
[Jun 22 12:36:31] NOTICE[12135]: chan_sip.c:11696 sip_reg_timeout:    -- Registration for 'kiev@192.168.101.1' timed out, trying again (Attempt #2)
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/7
11:37:27
#ps aux | grep festival
festival 22437  0.0  0.4  74716 38648 ?        S    12:24   0:00 /usr/bin/festival --server -b /etc/festival.scm
root     22586  0.0  0.0   7572   892 pts/9    S+   12:37   0:00 grep festival
/dev/pts/6
11:37:27
#ps aux | grep festival
festival 22437  0.0  0.4  74716 38648 ?        S    12:24   0:00 /usr/bin/festival --server -b /etc/festival.scm
root     22586  0.0  0.0   7572   892 pts/9    S+   12:37   0:00 grep festival
/dev/pts/8
11:37:27
#ps aux | grep festival
festival 22437  0.0  0.4  74716 38648 ?        S    12:24   0:00 /usr/bin/festival --server -b /etc/festival.scm
root     22586  0.0  0.0   7572   892 pts/9    S+   12:37   0:00 grep festival
/dev/pts/5
11:37:27
#ps aux | grep festival
festival 22437  0.0  0.4  74716 38648 ?        S    12:24   0:00 /usr/bin/festival --server -b /etc/festival.scm
root     22586  0.0  0.0   7572   892 pts/9    S+   12:37   0:00 grep festival
/dev/pts/2
11:37:27
#ps aux | grep festival
festival 22437  0.0  0.4  74716 38648 ?        S    12:24   0:00 /usr/bin/festival --server -b /etc/festival.scm
root     22586  0.0  0.0   7572   892 pts/9    S+   12:37   0:00 grep festival
/dev/pts/4
11:37:27
#ps aux | grep festival
festival 22437  0.0  0.4  74716 38648 ?        S    12:24   0:00 /usr/bin/festival --server -b /etc/festival.scm
root     22586  0.0  0.0   7572   892 pts/9    S+   12:37   0:00 grep festival
/dev/pts/1
11:37:27
#ps aux | grep festival
festival 22437  0.0  0.4  74716 38648 ?        S    12:24   0:00 /usr/bin/festival --server -b /etc/festival.scm
root     22586  0.0  0.0   7572   892 pts/9    S+   12:37   0:00 grep festival
/dev/pts/3
11:37:27
#ps aux | grep festival
festival 22437  0.0  0.4  74716 38648 ?        S    12:24   0:00 /usr/bin/festival --server -b /etc/festival.scm
root     22586  0.0  0.0   7572   892 pts/9    S+   12:37   0:00 grep festival
/dev/pts/7
11:37:41
#/etc/init.d/festival stop
Stopping Festival server: festival.
/dev/pts/6
11:37:41
#/etc/init.d/festival stop
Stopping Festival server: festival.
/dev/pts/8
11:37:41
#/etc/init.d/festival stop
Stopping Festival server: festival.
/dev/pts/5
11:37:41
#/etc/init.d/festival stop
Stopping Festival server: festival.
/dev/pts/2
11:37:41
#/etc/init.d/festival stop
Stopping Festival server: festival.
/dev/pts/4
11:37:41
#/etc/init.d/festival stop
Stopping Festival server: festival.
/dev/pts/1
11:37:41
#/etc/init.d/festival stop
Stopping Festival server: festival.
/dev/pts/3
11:37:41
#/etc/init.d/festival stop
Stopping Festival server: festival.
/dev/pts/7
11:38:09
#festival --server /etc/festival.scm
Ñ
quit
su -
Завершено
/dev/pts/6
11:38:09
#festival --server /etc/festival.scm
Ñ
quit
su -
Завершено
/dev/pts/8
11:38:09
#festival --server /etc/festival.scm
Ñ
quit
su -
Завершено
/dev/pts/5
11:38:09
#festival --server /etc/festival.scm
Ñ
quit
su -
Завершено
/dev/pts/4
11:38:09
#festival --server /etc/festival.scm
Ñ
quit
su -
Завершено
/dev/pts/13
11:39:58
#cat /etc/asterisk/ext
extconfig.conf          extensions.conf         extensions.lua
extensions.ael          extensions.conf.SAVE    extensions_minivm.conf
/dev/pts/12
11:39:58
#cat /etc/asterisk/ext
extconfig.conf          extensions.conf         extensions.lua
extensions.ael          extensions.conf.SAVE    extensions_minivm.conf
11:39:58
#cat /etc/asterisk/extensions.conf
[default]
;------------------
[internal]
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
exten => 8100,1,VoicemailMain()
exten => _81XX,1,VoicemailMain(11${EXTEN:2}@default)
exten => _82XX,1,Wait(1)
exten => _82XX,n,Playback(please-enter-your&vm-message)
exten => _82XX,n,Wait(1)
...
include => national
[gr3]
include => internal
include => local
include => national
include => international
[gr4]
include => local
include => international
include => national
/dev/pts/13
11:39:58
#cat /etc/asterisk/extensions.conf
[default]
;------------------
[internal]
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
exten => 8100,1,VoicemailMain()
exten => _81XX,1,VoicemailMain(11${EXTEN:2}@default)
exten => _82XX,1,Wait(1)
exten => _82XX,n,Playback(please-enter-your&vm-message)
exten => _82XX,n,Wait(1)
...
include => national
[gr3]
include => internal
include => local
include => national
include => international
[gr4]
include => local
include => international
include => national
/dev/pts/12
11:40:26
#[international]
;
; Festival Configuration
;
[general]
;
; Host which runs the festival server (default : localhost);
;
;host=localhost
;
; Port on host where the festival server runs (default : 1314)
...
;
; Festival command to send to the server.
; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n
; %s is replaced by the desired text to say. The command MUST end with a
; (quit) directive, or the cache handling mechanism will hang. Do not
; forget the \n at the end.
;
;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n
;
;
/dev/pts/13
11:40:26
#[international]
;
; Festival Configuration
;
[general]
;
; Host which runs the festival server (default : localhost);
;
;host=localhost
;
; Port on host where the festival server runs (default : 1314)
...
;
; Festival command to send to the server.
; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n
; %s is replaced by the desired text to say. The command MUST end with a
; (quit) directive, or the cache handling mechanism will hang. Do not
; forget the \n at the end.
;
;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n
;
;
11:40:54
#vim /etc/asterisk/festival.conf
/dev/pts/12
11:40:54
#vim /etc/asterisk/festival.conf
11:44:28
#~
Starting Festival server: festival/usr/bin/festival already running.
/dev/pts/13
11:44:28
#~
Starting Festival server: festival/usr/bin/festival already running.
/dev/pts/12
11:44:50
#echo hello from festival | text2wave > /hame/me/ome/user/Музыка/test-festival.wav

/dev/pts/13
11:44:50
#echo hello from festival | text2wave > /hame/me/ome/user/Музыка/test-festival.wav

/dev/pts/12
11:49:58
#echo hello Yafkrevedko bu ga ga 2wave > /home/user/Музыка/test-festival2.wav

/dev/pts/13
11:49:58
#echo hello Yafkrevedko bu ga ga 2wave > /home/user/Музыка/test-festival2.wav

/dev/pts/12
11:52:12
#krevedko bu ga ga | text2wave > /home/user/Музыка/test-festival2.wav
; If usecache=yes, a directory to store waveform cache files.
[ The ca]he is never cleared (yet), so you must take care of cleaning it
[/etc/as]erisk/festival.conf" 35L, 929C
; yourself (just delete any or all files from the cache).
; THIS DIRECTORY *MUST* EXIST and must be writable from the asterisk process.
; Defaults to /tmp/
;
;cachedir=/var/lib/asterisk/festivalcache/
;
; Festival command to send to the server.
; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n
; %s is replaced by the desired text to say. The command MUST end with a
; (quit) directive, or the cache handling mechanism will hang. Do not
; forget the \n at the end.
;
;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n
;
;
~
~                                                                                3,1          Весь
/dev/pts/13
11:52:12
#krevedko bu ga ga | text2wave > /home/user/Музыка/test-festival2.wav
;
; Festival Configuration
;
[general]
;
; Host which runs the festival server (default : localhost);
;
;host=localhost
;
"/etc/asterisk/festival.conf" 35L, 929C
...
; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n
~
                                                                                 3,1          Весь
; (quit) directive, or the cache handling mechanism will hang. Do not
; forget the \n at the end.
;
;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n
;
;
~
прошло 68 минут
/dev/pts/12
13:00:30
#[ ]
; Server access list (hosts)
(                          )
( Example:                 )
( (set! server_access_)ist '("[^.]+" "127.0.0.1" "localhost.*" "192.168.*"))
(                     )
; Secure default:
;(set! server_passwd "password")+" "127.0.0.1" "localhost"))
(                                                     )
(                                                     )
( Server deny list (hosts)                            )
...
((tts_textasterisk STRING MODE)                            )
Apply tts to STRING. This function is specifically designed for
u(e in server mode so a single)function call may synthesize the string.
"(                            )
This function name may be added to the server safe functions."
(let ((wholeutt (utt.synth (eval (list 'Utterance 'Text string)))))
(utt.wave.resample wholeutt 8000)
(                               )
(                           )
"/etc/festival.scm" 40L, 1443C записано
/dev/pts/13
13:00:30
#[ ]
(set! server_passwd "password")
"/etc/festival.scm" 40L, 1442C
; Log file location
(set! server_log_file "/var/log/festival/festival.log")
; Server access list (hosts)
(                          )
( Example:                 )
( (set! server_access_)ist '("[^.]+" "127.0.0.1" "localhost.*" "192.168.*"))
(                     )
; Secure default:
...
-- ВСТАВ                                                                    21,2      Наверху
(                                                     )
(                                                          )
(                                                          )
 (                            )
"(                            )
(utt.wave.resample wholeutt 8000)
(                               )
(                           )
"/etc/festival.scm" 40L, 1443C записано
/dev/pts/12
13:01:00
#krevedko bu ga ga | text2wave > /home/user/Музыка/test-festival2.wav
                 /etc/init.d/festival restart
Restarting Festival server: festival.
/dev/pts/13
13:01:00
#krevedko bu ga ga | text2wave > /home/user/Музыка/test-festival2.wav
                 /etc/init.d/festival restart
Restarting Festival server: festival.
/dev/pts/12
13:01:11
#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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b9", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 14:01:44] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/13
13:01:11
#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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000b9", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
[Jun 22 14:01:44] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
13:03:09
#cd /tmp/

/dev/pts/12
13:03:09
#cd /tmp/

13:08:36
#tar xvfz asterisk-perl-0.09.tar.gz
asterisk-perl-0.09/
asterisk-perl-0.09/examples/
asterisk-perl-0.09/examples/agi-test.agi
asterisk-perl-0.09/examples/tts-bofh.agi
asterisk-perl-0.09/examples/calleridnamelookup.agi
asterisk-perl-0.09/examples/tts-line.agi
asterisk-perl-0.09/examples/manager-test.pl
asterisk-perl-0.09/examples/agi-enum.agi
asterisk-perl-0.09/examples/tts-ping.agi
asterisk-perl-0.09/examples/directory.agi
...
asterisk-perl-0.09/lib/
asterisk-perl-0.09/lib/Asterisk.pm
asterisk-perl-0.09/lib/Asterisk/
asterisk-perl-0.09/lib/Asterisk/Outgoing.pm
asterisk-perl-0.09/lib/Asterisk/Voicemail.pm
asterisk-perl-0.09/lib/Asterisk/Manager.pm
asterisk-perl-0.09/lib/Asterisk/AGI.pm
asterisk-perl-0.09/lib/Asterisk/QCall.pm
asterisk-perl-0.09/Makefile.PL
asterisk-perl-0.09/LICENSE
/dev/pts/13
13:08:36
#tar xvfz asterisk-perl-0.09.tar.gz
asterisk-perl-0.09/
asterisk-perl-0.09/examples/
asterisk-perl-0.09/examples/agi-test.agi
asterisk-perl-0.09/examples/tts-bofh.agi
asterisk-perl-0.09/examples/calleridnamelookup.agi
asterisk-perl-0.09/examples/tts-line.agi
asterisk-perl-0.09/examples/manager-test.pl
asterisk-perl-0.09/examples/agi-enum.agi
asterisk-perl-0.09/examples/tts-ping.agi
asterisk-perl-0.09/examples/directory.agi
...
asterisk-perl-0.09/lib/
asterisk-perl-0.09/lib/Asterisk.pm
asterisk-perl-0.09/lib/Asterisk/
asterisk-perl-0.09/lib/Asterisk/Outgoing.pm
asterisk-perl-0.09/lib/Asterisk/Voicemail.pm
asterisk-perl-0.09/lib/Asterisk/Manager.pm
asterisk-perl-0.09/lib/Asterisk/AGI.pm
asterisk-perl-0.09/lib/Asterisk/QCall.pm
asterisk-perl-0.09/Makefile.PL
asterisk-perl-0.09/LICENSE
/dev/pts/12
13:08:51
#cd asterisk-perl-0.09

/dev/pts/13
13:08:51
#cd asterisk-perl-0.09

/dev/pts/12
13:09:46
#perl Makefile.PL
Writing Makefile for asterisk-perl
/dev/pts/13
13:09:46
#perl Makefile.PL
Writing Makefile for asterisk-perl
/dev/pts/12
13:10:02
#perl Makefile.PL
Writing Makefile for asterisk-perl
/dev/pts/13
13:10:02
#perl Makefile.PL
Writing Makefile for asterisk-perl
/dev/pts/12
13:10:15
#make
cp lib/Asterisk/Manager.pm blib/lib/Asterisk/Manager.pm
cp lib/Asterisk/Voicemail.pm blib/lib/Asterisk/Voicemail.pm
cp lib/Asterisk/QCall.pm blib/lib/Asterisk/QCall.pm
cp lib/Asterisk/Outgoing.pm blib/lib/Asterisk/Outgoing.pm
cp lib/Asterisk.pm blib/lib/Asterisk.pm
cp lib/Asterisk/AGI.pm blib/lib/Asterisk/AGI.pm
Manifying blib/man3/Asterisk::Voicemail.3pm
Manifying blib/man3/Asterisk::Manager.3pm
Manifying blib/man3/Asterisk::Outgoing.3pm
Manifying blib/man3/Asterisk::AGI.3pm
/dev/pts/13
13:10:15
#make
cp lib/Asterisk/Manager.pm blib/lib/Asterisk/Manager.pm
cp lib/Asterisk/Voicemail.pm blib/lib/Asterisk/Voicemail.pm
cp lib/Asterisk/QCall.pm blib/lib/Asterisk/QCall.pm
cp lib/Asterisk/Outgoing.pm blib/lib/Asterisk/Outgoing.pm
cp lib/Asterisk.pm blib/lib/Asterisk.pm
cp lib/Asterisk/AGI.pm blib/lib/Asterisk/AGI.pm
Manifying blib/man3/Asterisk::Voicemail.3pm
Manifying blib/man3/Asterisk::Manager.3pm
Manifying blib/man3/Asterisk::Outgoing.3pm
Manifying blib/man3/Asterisk::AGI.3pm
/dev/pts/12
13:10:22
#make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/agi.t .. ok
All tests successful.
Files=1, Tests=2,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.02 cusr  0.00 csys =  0.05 CPU)
Result: PASS
/dev/pts/13
13:10:22
#make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/agi.t .. ok
All tests successful.
Files=1, Tests=2,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.02 cusr  0.00 csys =  0.05 CPU)
Result: PASS
/dev/pts/12
13:10:58
#make install
Installing /usr/local/share/perl/5.10.1/Asterisk.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Manager.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/AGI.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Voicemail.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/QCall.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Outgoing.pm
Installing /usr/local/man/man3/Asterisk::Voicemail.3pm
Installing /usr/local/man/man3/Asterisk::AGI.3pm
Installing /usr/local/man/man3/Asterisk::Manager.3pm
Installing /usr/local/man/man3/Asterisk::Outgoing.3pm
Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
/dev/pts/13
13:10:58
#make install
Installing /usr/local/share/perl/5.10.1/Asterisk.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Manager.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/AGI.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Voicemail.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/QCall.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Outgoing.pm
Installing /usr/local/man/man3/Asterisk::Voicemail.3pm
Installing /usr/local/man/man3/Asterisk::AGI.3pm
Installing /usr/local/man/man3/Asterisk::Manager.3pm
Installing /usr/local/man/man3/Asterisk::Outgoing.3pm
Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
/dev/pts/12
13:11:02
#vim /etc/asterisk/extensions.conf
/dev/pts/13
13:11:02
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-22733.30180.9594	2011-06-22 14:12:21.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-22 14:13:54.000000000 +0300
@@ -16,7 +16,8 @@
 exten => _82XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2})
 exten => _83XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
 exten => 8401,1,Playback(/var/tmp/asterisk/theme_of_SSS)
-exten => 8402,1,Festival(Hello from Festival. Welcome to our system)
+;exten => 8402,1,Festival(Hello from Festival. Welcome to our system)
+exten => 8402,1,AGI(/usr/local/bin/festival-script.pl, Hello)
 
 
 [local]
/dev/pts/12
13:13:54
#/etc/init.d/festival restart
Restarting Festival server: festival.
/dev/pts/13
13:13:54
#/etc/init.d/festival restart
Restarting Festival server: festival.
/dev/pts/12
13:14:03
#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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000ba", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/13
13:14:03
#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 linux7 (pid = 12111)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8402@gr3:1] Festival("SIP/2303-000000ba", "Hello from Festival. Welcome to our system") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/12
13:14:34
#/etc/init.d/festival restart
Restarting Festival server: festival.
/dev/pts/13
13:14:34
#/etc/init.d/festival restart
Restarting Festival server: festival.
/dev/pts/12
13:14:35
#vim /etc/asterisk/extensions.conf
/dev/pts/13
13:14:35
#vim /etc/asterisk/extensions.conf
/dev/pts/12
13:15:00
#[ ]

/dev/pts/13
13:15:00
#[ ]

/dev/pts/12
13:15:08
#mkdir /var/lib/asterisk/sounds/tts

/dev/pts/13
13:15:08
#mkdir /var/lib/asterisk/sounds/tts

/dev/pts/12
13:15:36
#chown asterisk /var/lib/asterisk/sounds/tts

/dev/pts/13
13:15:36
#chown asterisk /var/lib/asterisk/sounds/tts

/dev/pts/12
13:18:12
#vim /etc/
/dev/pts/13
13:18:12
#vim /etc/
/dev/pts/12
13:18:12
#vim /usr/local/bin/
/dev/pts/13
13:18:12
#vim /usr/local/bin/
13:18:12
#vim /usr/local/bin/festival-script.pl
--- /tmp/l3-saved-22733.23374.22985	2011-06-22 14:19:23.000000000 +0300
+++ /usr/local/bin/festival-script.pl	2011-06-22 14:19:49.000000000 +0300
@@ -15,7 +15,8 @@
 my $sounddir = "/var/lib/asterisk/sounds/tts";
 my $wavefile = "$sounddir/"."tts-$hash.wav";
 my $t2wp= "/root/www.cstr.ed.ac.uk/download/festival/1.95/festival/bin/";
- 
+my $t2wp=""; 
+
 unless (-f $wavefile) {
         open(fileOUT, ">$sounddir"."/say-text-$hash.txt");
         print fileOUT "$text";
/dev/pts/12
13:18:12
#vim /usr/local/bin/festival-script.pl
13:19:49
#vim /usr/local/bin/festival-script.pl
/dev/pts/13
13:19:49
#vim /usr/local/bin/festival-script.pl
/dev/pts/12
13:22:32
#~

Файлы

  • /etc/asterisk/ext
  • /etc/asterisk/extensions.conf
  • /etc/asterisk/ext
    >
    extconfig.conf          extensions.conf         extensions.lua
    extensions.ael          extensions.conf.SAVE    extensions_minivm.conf
    
    /etc/asterisk/extensions.conf
    >
    [default]
    ;------------------
    [internal]
    exten => 8000,1,Wait(1)
    exten => 8000,n,Playback(demo-congrats)
    exten => 8100,1,VoicemailMain()
    exten => _81XX,1,VoicemailMain(11${EXTEN:2}@default)
    exten => _82XX,1,Wait(1)
    exten => _82XX,n,Playback(please-enter-your&vm-message)
    exten => _82XX,n,Wait(1)
    exten => _82XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm,2)
    exten => _82XX,n,Wait(1)
    exten => _82XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2})
    exten => _83XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
    exten => 8401,1,Playback(/var/tmp/asterisk/theme_of_SSS)
    exten => 8402,1,Festival(Hello from Festival. Welcome to our system)
    [local]
    exten => 2310,1,Dial(SIP/2303&SIP/2304.10)
    exten => _23XX,1,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLERID(num)})
    exten => _23XX,n,Monitor(wav,${MON_FILENAME},m)
    exten => _23XX,n,Dial(SIP/${EXTEN},10)
    exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?voicemail)
    exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?voicemail)
    exten => _23XX,n,Hangup()
    exten => _23XX,n(voicemail),Voicemail(${EXTEN}@default)
    exten => _23XX,n,Hangup()
    [national]
    exten => _24XX,1,Dial(SIP/lvov/${EXTEN},10
    [international]
    exten => _1XXX,1,Dial(SIP/msk/${EXTEN},10)
    exten => _3XXX,1,Dial(SIP/msk/${EXTEN},10)
    exten => _21XX,1,Dial(SIP/msk/${EXTEN},10)
    exten => _22XX,1,Dial(SIP/msk/${EXTEN},10)
    ;-------------------
    [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 => international
    include => national
    

    Статистика

    Время первой команды журнала11:24:39 2011- 6-22
    Время последней команды журнала13:22:32 2011- 6-22
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 7.92
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 0.83
    Количество командных строк в единицу времени, команда/мин 2.04
    Частота использования команд
    vim22|=================| 17.89%
    /etc/init.d/festival12|=========| 9.76%
    ps9|=======| 7.32%
    --8|======| 6.50%
    grep8|======| 6.50%
    test-festival2.wav6|====| 4.88%
    make6|====| 4.88%
    text2wave6|====| 4.88%
    festival5|====| 4.07%
    asterisk4|===| 3.25%
    krevedko4|===| 3.25%
    perl4|===| 3.25%
    cd4|===| 3.25%
    echo4|===| 3.25%
    [4|===| 3.25%
    cat4|===| 3.25%
    ~3|==| 2.44%
    mkdir2|=| 1.63%
    chown2|=| 1.63%
    test-festival.wav2|=| 1.63%
    [international]2|=| 1.63%
    tar2|=| 1.63%
    ____
    *) Интервалы неактивности длительностью 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$