/l3/users/maxim/ais-voip-2011-jun/linux2.unix.ais/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#asterisk -r
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 == Spawn extension (gr2, 8200, 1) exited non-zero on 'SIP/1202-0000003e' linux2*CLI> exit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 == Spawn extension (gr2, 8200, 1) exited non-zero on 'SIP/1202-0000003e' linux2*CLI> exit |
#vim extensions.conf
--- /tmp/l3-saved-2226.18276.12790 2011-06-29 12:33:52.000000000 +0400 +++ extensions.conf 2011-06-29 12:45:57.000000000 +0400 @@ -3,13 +3,20 @@ [internal] exten => 8000,1,Playback(welcome) -exten => 8100,1,VoicemailMain() +exten => 8100,1,VoicemailMain() ;In the phone 1201 needs enter 8101, on 1202 enter 8102 ..etc exten => _81XX,1,VoicemailMain(12${EXTEN:2}) -;Record any voice, example for make menu -exten => 8200,1,Record(/var/tmp/asterisk/message00:gsm) +;Record any voice to file, example for make menu +exten => 8200,1,Record(/var/tmp/asterisk/message00:gsm,2) ;2 - posle 2 ces record will stop +;Play file +exten => 8200,n,Playback(/var/tmp/asterisk/message00) + +;Record each voice to each files correspond nomber dial +exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,2) +;Play that file wich correspond dialer extension +exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ;Local [local] |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit |
#~
panic action = /usr/share/samba/panic-action %d ####### Authentication ####### # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # CUPS printing. See also the cupsaddsmb(8) manpage in the # cupsys-client package. ; printing = cups ; printcap name = cups ############ Misc ############ # Using the following line enables you to customise your configuration ... guest ok = yes [asterisk message] [ ] message files comment = Asterisk dials read only =/tmp/asterisk/ locking = no path = /var/spool/asterisk/monitor guest ok = yes unmounted automatically after the connection to the # "/etc/samba/smb.conf" 333L, 12050C записано |
#~
# This minimizes the size of the really used smb.conf file # which, according to the Samba Team, impacts performance # However, use this with caution if your smb.conf file contains nested # "include" statements. See Debian bug #483187 for a case # where using a master file is not a good idea. # #======================= Global Settings ======================= [global] # passdb is changed. unix password sync = yes ... # The next two parameters show how to auto-mount a CD-ROM when the # cdrom share is accesed. For this to work /etc/fstab must contain "/etc/samba/smb.conf" 333L, 12050C записано # The CD-ROM gets unmounted automatically after the connection to the # # If you don't want to use auto-mounting/unmounting make sure the CD # is mounted on /cdrom # ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom |
#vim extensions.conf
--- /tmp/l3-saved-2226.32310.12339 2011-06-29 12:59:15.000000000 +0400 +++ extensions.conf 2011-06-29 13:02:17.000000000 +0400 @@ -9,15 +9,16 @@ exten => _81XX,1,VoicemailMain(12${EXTEN:2}) ;Record any voice to file, example for make menu -exten => 8200,1,Record(/var/tmp/asterisk/message00:gsm,2) ;2 - posle 2 ces record will stop +exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) ;2 - posle 2 ces record will stop ;Play file exten => 8200,n,Playback(/var/tmp/asterisk/message00) ;Record each voice to each files correspond nomber dial -exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,2) -;Play that file wich correspond dialer extension +exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) +;Srazu play last records exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) + ;Local [local] exten => _12XX,1,Answer |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit |
#apt-get install festival
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat Предлагаемые пакеты: pidgin-festival festival-freebsoft-utils НОВЫЕ пакеты, которые будут установлены: alsa-oss festival festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat обновлено 0, установлено 7 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. ... Обрабатываются триггеры для man-db ... Обрабатываются триггеры для install-info ... Настраивается пакет alsa-oss (1.0.17-4) ... Настраивается пакет libestools2.0 (1:2.0.95~beta-2) ... Настраивается пакет oss-compat (0.0.4+nmu3) ... FATAL: Module snd_seq_oss not found. Настраивается пакет festival (1:2.0.95~beta-5.1) ... Настраивается пакет festlex-cmu (1.4.0-6) ... Настраивается пакет festlex-poslex (1.4.0-5) ... Настраивается пакет festvox-kallpc16k (1.4.0-5) ... |
#apt-get install festival
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat Предлагаемые пакеты: pidgin-festival festival-freebsoft-utils НОВЫЕ пакеты, которые будут установлены: alsa-oss festival festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat обновлено 0, установлено 7 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. ... Обрабатываются триггеры для man-db ... Обрабатываются триггеры для install-info ... Настраивается пакет alsa-oss (1.0.17-4) ... Настраивается пакет libestools2.0 (1:2.0.95~beta-2) ... Настраивается пакет oss-compat (0.0.4+nmu3) ... FATAL: Module snd_seq_oss not found. Настраивается пакет festival (1:2.0.95~beta-5.1) ... Настраивается пакет festlex-cmu (1.4.0-6) ... Настраивается пакет festlex-poslex (1.4.0-5) ... Настраивается пакет festvox-kallpc16k (1.4.0-5) ... |
#echo hello from festival | text2wave -o /var/tmp/asterisk/hello-from-festival.wav
|
#echo hello from festival | text2wave -o /var/tmp/asterisk/hello-from-festival.wav
|
#apt-get install festvox-ru
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: festvox-ru обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 196 MБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 256 MB. Получено:1 http://192.168.15.253/debian/ squeeze/main festvox-ru all 0.5-1 [196 MB] 15% [1 festvox-ru 30,5 MB/196 MB 15%] 619 kB/s 4мин 26с^C |
#apt-get install festvox-ru
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: festvox-ru обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 196 MБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 256 MB. Получено:1 http://192.168.15.253/debian/ squeeze/main festvox-ru all 0.5-1 [196 MB] 15% [1 festvox-ru 30,5 MB/196 MB 15%] 619 kB/s 4мин 26с^C |
#text2wave --help
text2wave [options] textfile Convert a textfile to a waveform Options -mode <string> Explicit tts mode. -o ofile File to save waveform (default is stdout). -otype <string> Output waveform type: alaw, ulaw, snd, aiff, riff, nist etc. (default is riff) -F <int> Output frequency. -scale <float> Volume factor -eval <string> File or lisp s-expression to be evaluated before synthesis. |
#text2wave --help
text2wave [options] textfile Convert a textfile to a waveform Options -mode <string> Explicit tts mode. -o ofile File to save waveform (default is stdout). -otype <string> Output waveform type: alaw, ulaw, snd, aiff, riff, nist etc. (default is riff) -F <int> Output frequency. -scale <float> Volume factor -eval <string> File or lisp s-expression to be evaluated before synthesis. |
#cp /usr/share/doc/festival/example/festival.scm /etc/
cp: невозможно выполнить stat для «/usr/share/doc/festival/example/festival.scm»: Нет такого файла или каталога |
#cp /usr/share/doc/festival/example/festival.scm /etc/
cp: невозможно выполнить stat для «/usr/share/doc/festival/example/festival.scm»: Нет такого файла или каталога |
#cp /usr/share/doc/festival/example/festival.scm /etc/
cp: невозможно выполнить stat для «/usr/share/doc/festival/example/festival.scm»: Нет такого файла или каталога |
#cp /usr/share/doc/festival/example/festival.scm /etc/
cp: невозможно выполнить stat для «/usr/share/doc/festival/example/festival.scm»: Нет такого файла или каталога |
#cp /usr/share/doc/festival/example/festival.scm /etc/
cp: невозможно выполнить stat для «/usr/share/doc/festival/example/festival.scm»: Нет такого файла или каталога |
#cp /usr/share/doc/festival/example/festival.scm /etc/
cp: невозможно выполнить stat для «/usr/share/doc/festival/example/festival.scm»: Нет такого файла или каталога |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave > /tmp/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 > /tmp/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 > /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 > /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 |
#vim festival.scm
--- /tmp/l3-saved-2226.24080.8398 2011-06-29 13:43:16.000000000 +0400 +++ festival.scm 2011-06-29 13:46:59.000000000 +0400 @@ -30,4 +30,3 @@ ; Server deny list (hosts) (language_russian) (set! voice_default 'voice_msu_ru_nsh_clunits) - |
#at /tmp/ru-moskva.txt | text2wave > /tmp/ru-moskva.wav
rm /var/tmp/asterisk/ru-moskva.wav |
#at /tmp/ru-moskva.txt | text2wave > /tmp/ru-moskva.wav
rm /var/tmp/asterisk/ru-moskva.wav |
#cat /var/tmp/asterisk/ru-moskva.txt | text2wave > /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 > /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-burunduk.txt | text2wave > /var/tmp/asterisk/ru-bur.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 oo 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for aa 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for ee 3.81208 Duration tree extreme for aa 3.02875 ... 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 ee 3.42543 Duration tree extreme for oo 3.42543 Duration tree extreme for oo 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 Duration tree extreme for oo 3.81208 |
#cat /var/tmp/asterisk/ru-burunduk.txt | text2wave > /var/tmp/asterisk/ru-bur.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 oo 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for aa 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for ee 3.81208 Duration tree extreme for aa 3.02875 ... 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 ee 3.42543 Duration tree extreme for oo 3.42543 Duration tree extreme for oo 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 Duration tree extreme for oo 3.81208 |
#cat /var/tmp/asterisk/ru-burunduk.txt | text2wave > /var/tmp/asterisk/ru-buruduk.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 oo 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for aa 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for ee 3.81208 Duration tree extreme for aa 3.02875 ... 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 ee 3.42543 Duration tree extreme for oo 3.42543 Duration tree extreme for oo 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 Duration tree extreme for oo 3.81208 |
#cat /var/tmp/asterisk/ru-burunduk.txt | text2wave > /var/tmp/asterisk/ru-buruduk.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 oo 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for aa 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for ee 3.81208 Duration tree extreme for aa 3.02875 ... 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 ee 3.42543 Duration tree extreme for oo 3.42543 Duration tree extreme for oo 3.42543 Duration tree extreme for ay 3.12924 Duration tree extreme for ay 3.12924 Duration tree extreme for oo 3.81208 |
#tar xvfz /tmp/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 /tmp/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 && make test && make instal
cp lib/Asterisk/Manager.pm blib/lib/Asterisk/Manager.pm cp lib/Asterisk/Voicemail.pm blib/lib/Asterisk/Voicemail.pm cp lib/Asterisk/Outgoing.pm blib/lib/Asterisk/Outgoing.pm cp lib/Asterisk/QCall.pm blib/lib/Asterisk/QCall.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 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.01 usr 0.01 sys + 0.02 cusr 0.00 csys = 0.04 CPU) Result: PASS make: *** Нет правила для сборки цели `instal'. Останов. |
#make && make test && make instal
cp lib/Asterisk/Manager.pm blib/lib/Asterisk/Manager.pm cp lib/Asterisk/Voicemail.pm blib/lib/Asterisk/Voicemail.pm cp lib/Asterisk/Outgoing.pm blib/lib/Asterisk/Outgoing.pm cp lib/Asterisk/QCall.pm blib/lib/Asterisk/QCall.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 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.01 usr 0.01 sys + 0.02 cusr 0.00 csys = 0.04 CPU) Result: PASS make: *** Нет правила для сборки цели `instal'. Останов. |
#make && make test && make install
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.00 sys + 0.01 cusr 0.01 csys = 0.04 CPU) Result: PASS 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/Outgoing.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/AGI.pm Installing /usr/local/man/man3/Asterisk::Voicemail.3pm Installing /usr/local/man/man3/Asterisk::Outgoing.3pm Installing /usr/local/man/man3/Asterisk::Manager.3pm Installing /usr/local/man/man3/Asterisk::AGI.3pm Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod |
#make && make test && make install
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.00 sys + 0.01 cusr 0.01 csys = 0.04 CPU) Result: PASS 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/Outgoing.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/AGI.pm Installing /usr/local/man/man3/Asterisk::Voicemail.3pm Installing /usr/local/man/man3/Asterisk::Outgoing.3pm Installing /usr/local/man/man3/Asterisk::Manager.3pm Installing /usr/local/man/man3/Asterisk::AGI.3pm Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod |
#No previous regular expression (press RETURN)
#!/usr/bin/perl use Asterisk::AGI; use File::Basename; use Digest::MD5 qw(md5_hex); $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); my ($text)=@ARGV; my ($filename) = $ARGV[0]; my $hash = md5_hex($text); my $sounddir = "/var/lib/asterisk/sounds/tts"; my $wavefile = "$sounddir/"."tts-$hash.wav"; my $t2wp=""; unless (-f $wavefile) { #open(fileOUT, ">$sounddir"."/say-text-$hash.txt"); #print fileOUT "$text"; #close(fileOUT); my $execf=$t2wp."text2wave $filename -F 8000 -o $wavefile"; system($execf); unlink($sounddir."/say-text-$hash.txt"); } $AGI->Exec(Playback, 'tts/'.basename($wavefile,".wav")); |
#No previous regular expression (press RETURN)
#!/usr/bin/perl use Asterisk::AGI; use File::Basename; use Digest::MD5 qw(md5_hex); $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); my ($text)=@ARGV; my ($filename) = $ARGV[0]; my $hash = md5_hex($text); my $sounddir = "/var/lib/asterisk/sounds/tts"; my $wavefile = "$sounddir/"."tts-$hash.wav"; my $t2wp=""; unless (-f $wavefile) { #open(fileOUT, ">$sounddir"."/say-text-$hash.txt"); #print fileOUT "$text"; #close(fileOUT); my $execf=$t2wp."text2wave $filename -F 8000 -o $wavefile"; system($execf); unlink($sounddir."/say-text-$hash.txt"); } $AGI->Exec(Playback, 'tts/'.basename($wavefile,".wav")); |
#tmp/ru-moskva.wav
|
#tmp/ru-moskva.wav
|
#vim extensions.conf
--- /tmp/l3-saved-2226.5842.22062 2011-06-29 15:24:57.000000000 +0400 +++ extensions.conf 2011-06-29 15:26:48.000000000 +0400 @@ -3,6 +3,8 @@ [internal] exten => 8000,1,Playback(welcome) +;add script +exten => 8001,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt) exten => 8100,1,VoicemailMain() ;In the phone 1201 needs enter 8101, on 1202 enter 8102 ..etc |
#asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan re reload remove linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan re reload remove linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit |
#[ ]
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit |
#[ ]
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit |
#[local]
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 linux2*CLI> exit |
#[local]
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 linux2*CLI> exit |
Время первой команды журнала | 10:31:24 2011- 6-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:41:33 2011- 6-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.87 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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