/l3/users/madara/nt-voip-2011-06/linux7.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 |
|
#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 |
#-- ВСТАВКА --
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 |
#-- ВСТАВКА --
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 |
#-- ВСТАВКА --
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 |
#-- ВСТАВКА --
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 |
#-- ВСТАВКА --
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 |
#-- ВСТАВКА --
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 |
#-- ВСТАВКА --
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 |
#-- ВСТАВКА --
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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#cat /etc/asterisk/ext
extconfig.conf extensions.conf extensions.lua extensions.ael extensions.conf.SAVE extensions_minivm.conf |
#cat /etc/asterisk/ext
extconfig.conf extensions.conf extensions.lua extensions.ael extensions.conf.SAVE extensions_minivm.conf |
#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 |
#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 |
#[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 ; ; |
#[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 ; ; |
#vim /etc/asterisk/festival.conf
|
#~
Starting Festival server: festival/usr/bin/festival already running. |
#echo hello from festival | text2wave > /hame/me/ome/user/Музыка/test-festival.wav
|
#echo hello from festival | text2wave > /hame/me/ome/user/Музыка/test-festival.wav
|
#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 Весь |
#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 ; ; ~ |
#[ ]
; 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 записано |
#[ ]
(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 записано |
#krevedko bu ga ga | text2wave > /home/user/Музыка/test-festival2.wav
/etc/init.d/festival restart Restarting Festival server: festival. |
#krevedko bu ga ga | text2wave > /home/user/Музыка/test-festival2.wav
/etc/init.d/festival restart Restarting Festival server: festival. |
#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 |
#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 |
#cd /tmp/
|
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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] |
#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 |
#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 |
#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"; |
#vim /usr/local/bin/festival-script.pl
|
extconfig.conf extensions.conf extensions.lua extensions.ael extensions.conf.SAVE extensions_minivm.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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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