/l3/users/Ive/asterisk/linux4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#vi /tmp/asterisk/extensions.conf
--- /tmp/l3-saved-2127.18142.3019 2010-05-27 14:57:50.000000000 +0300 +++ /tmp/asterisk/extensions.conf 2010-05-27 15:01:50.000000000 +0300 @@ -49,6 +49,9 @@ exten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) exten => 803,1,VoicemailMain() +exten => 804,1,Wait(1) +exten => 804,n,MeetMe(8888,dM) + ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-21026.7486.15963 2010-05-27 14:58:15.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-27 14:59:07.000000000 +0300 @@ -48,6 +48,8 @@ exten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) exten => 803,1,VoicemailMain() +exten => 804,1,Wait(1) +exten => 804,n,MeetMe(8888,M) ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) |
#screen -x
|
#ls
Russian-Tamara-2.0.2-ulaw s,1,Answer Yoki.wav Russian-Tamara-2.0.2-ulaw.tar.gz Yoki.mp3 |
#vim exte
|
#vim ex
|
#cd /etc/asterisk/
|
#vim extensions.conf
--- /tmp/l3-saved-21026.26315.31601 2010-05-27 15:00:28.000000000 +0300 +++ extensions.conf 2010-05-27 15:09:56.000000000 +0300 @@ -48,8 +48,10 @@ exten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) exten => 803,1,VoicemailMain() + exten => 804,1,Wait(1) -exten => 804,n,MeetMe(8888,M) +exten => 804,n,MeetMe(8888,dM) +exten => 805,1,MeetMe(8888,tdM) ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) |
#:q
[general] context=default ; Default context for incoming calls language=ru register => kharkov:password@192.168.1.1/dnepr ;register => kharkov:password@192.168.2.1/kiev register => kharkov:password@192.168.5.1/crimea register => 0028770061:ujdyjctnm@212.53.40.40/0028770061 "sip.conf" 82L, 1226C [general] context=default ; Default context for incoming calls ... ;host=dynamic host=192.168.2.1 username=kharkov ;call-limit=1 type=friend secret=password host=192.168.3.1 username=kharkov context=group1 "sip.conf" 82L, 1227C written |
#vim extensions.conf
|
#;exten => s,1,Dial(sip/402)
; ; Configuration file for MeetMe simple conference rooms for Asterisk of course. ; ; This configuration file is read every time you call app meetme() ; when feeding audio frames from non-Zap channels ; into the conference; larger numbers will allow ; for the conference to 'de-jitter' audio that arrives [general] ; at different timing than the conference's timing ; source, but can also allow for latency in hearing ;audiobuffers=32 ; the audio from the speaker. Minimum value is 2, ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "meetme.conf" 26L, 924C written |
#vim meetme.conf
|
#vim extensions.conf
--- /tmp/l3-saved-21026.2229.794 2010-05-27 15:20:32.000000000 +0300 +++ extensions.conf 2010-05-27 15:20:45.000000000 +0300 @@ -50,7 +50,7 @@ exten => 803,1,VoicemailMain() exten => 804,1,Wait(1) -exten => 804,n,MeetMe(8888) +exten => 804,n,MeetMe(8888,D) exten => 805,1,MeetMe(8888,tM) ;exten => _4XX,1,Dial(SIP/${EXTEN}) |
#"extensions.conf" line 54 of 94 --57%-- col 28
/etc/asterisk |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#fg
bash: fg: current: no such job |
#vim extensions.conf
--- /tmp/l3-saved-21026.6691.16807 2010-05-27 15:21:58.000000000 +0300 +++ extensions.conf 2010-05-27 15:23:05.000000000 +0300 @@ -50,8 +50,8 @@ exten => 803,1,VoicemailMain() exten => 804,1,Wait(1) -exten => 804,n,MeetMe(8888,D) -exten => 805,1,MeetMe(8888,tM) +exten => 804,n,MeetMe(111,D) +exten => 805,1,MeetMe(111,tM) ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) |
#vim meetme.conf
--- /tmp/l3-saved-21026.11493.709 2010-05-27 15:23:09.000000000 +0300 +++ meetme.conf 2010-05-27 15:23:19.000000000 +0300 @@ -23,4 +23,4 @@ ; the new pin number. ; ;conf => 1234 -conf => 8888,111 +conf => 111,111 |
#conf =>
|
#vim meetme.conf
|
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#apt-cache search festival
brltty-flite - Access software for a blind person using a braille display eflite - Festival-Lite based emacspeak speech server espeak - A multi-lingual software speech synthesizer festival-czech - Czech support for Festival speech synthesis system festival-doc - Documentation for Festival festival-freebsoft-utils - Festival extensions and utilities festival-hi - festival text to speech synthesizer for Hindi language festvox-hi-nsk - Hindi male speaker for festival festlex-ifd - Italian support for Festival festvox-italp16k - Italian female speaker for Festival ... kttsd - a Text-to-Speech system for KDE kismet - Wireless 802.11b monitoring tool libperlspeak-perl - Perl Module for text to speech with festival, espeak, cepstral pidgin-festival - pidgin plugin to hear incoming messages using voice synthesis raccess4vbox3 - DTMF support and utilities for vbox3 screader - Screen reader using software or hardware speech synthesizer speech-dispatcher-festival - Festival support for Speech Dispatcher libestools1.2 - Edinburgh Speech Tools Library stardict-plugin-festival - International dictionary - Festival TTS plugin yasr - General-purpose console screen reader |
#ls -la
total 68 drwxr-xr-x 8 root root 4096 2010-05-27 14:39 . drwxr-xr-x 21 root root 4096 2010-05-25 14:52 .. drwx------ 2 root root 4096 2010-05-25 15:52 .aptitude -rw------- 1 root root 283 2010-05-26 20:09 .asterisk_history -rw------- 1 root root 3942 2010-05-27 13:50 .bash_history -rw-r--r-- 1 root root 22 2010-05-25 18:54 .bash_profile -rw-r--r-- 1 root root 450 2010-05-25 18:54 .bashrc drwxr-xr-x 2 root root 4096 2010-05-25 16:08 .debtags drwx------ 2 root root 4096 2010-05-25 16:08 .gconf drwx------ 2 root root 4096 2010-05-25 16:08 .gconfd -rw-r--r-- 1 root root 69 2010-05-25 18:53 .l3rc drwxr-xr-x 2 root root 12288 2010-05-27 15:38 .lilalo -rw-r--r-- 1 root root 140 2007-11-19 19:57 .profile -rw------- 1 root root 1024 2010-05-27 14:40 .rnd drwx------ 2 root root 4096 2010-05-26 12:46 .ssh |
#ls /etc/asterisk/
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.SAVE amd.conf extensions.conf.SAVE misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#ls
|
#ls -la
total 68 drwxr-xr-x 8 root root 4096 2010-05-27 14:39 . drwxr-xr-x 21 root root 4096 2010-05-25 14:52 .. drwx------ 2 root root 4096 2010-05-25 15:52 .aptitude -rw------- 1 root root 283 2010-05-26 20:09 .asterisk_history -rw------- 1 root root 3942 2010-05-27 13:50 .bash_history -rw-r--r-- 1 root root 22 2010-05-25 18:54 .bash_profile -rw-r--r-- 1 root root 450 2010-05-25 18:54 .bashrc drwxr-xr-x 2 root root 4096 2010-05-25 16:08 .debtags drwx------ 2 root root 4096 2010-05-25 16:08 .gconf drwx------ 2 root root 4096 2010-05-25 16:08 .gconfd -rw-r--r-- 1 root root 69 2010-05-25 18:53 .l3rc drwxr-xr-x 2 root root 12288 2010-05-27 15:38 .lilalo -rw-r--r-- 1 root root 140 2007-11-19 19:57 .profile -rw------- 1 root root 1024 2010-05-27 14:40 .rnd drwx------ 2 root root 4096 2010-05-26 12:46 .ssh |
#ls -la /usr/
total 132 drwxr-xr-x 11 root root 4096 2010-05-25 15:58 . drwxr-xr-x 21 root root 4096 2010-05-25 14:52 .. drwxr-xr-x 2 root root 36864 2010-05-27 14:39 bin drwxr-xr-x 2 root root 4096 2010-05-25 16:01 games drwxr-xr-x 34 root root 4096 2010-05-25 18:56 include drwxr-xr-x 142 root root 45056 2010-05-27 14:39 lib drwxrwsr-x 10 root staff 4096 2010-05-25 14:50 local drwxr-xr-x 2 root root 12288 2010-05-27 15:00 sbin drwxr-xr-x 259 root root 12288 2010-05-27 14:39 share drwxrwsr-x 2 root src 4096 2010-05-25 18:56 src drwxr-xr-x 2 root root 4096 2010-05-25 15:58 X11R6 |
#ls -la /home/user/
total 44 drwxr-xr-x 3 user user 4096 2010-05-27 14:55 . drwxr-xr-x 3 root root 4096 2010-05-25 16:35 .. -rw------- 1 user user 60 2010-05-27 15:17 .bash_history -rw-r--r-- 1 user user 220 2010-05-25 16:35 .bash_logout -rw-r--r-- 1 user root 10 2010-05-25 18:53 .bash_profile -rw-r--r-- 1 user user 3181 2010-05-25 18:53 .bashrc -rw-r--r-- 1 user root 69 2010-05-25 18:53 .l3rc drwxr-xr-x 2 user root 4096 2010-05-27 14:55 .lilalo -rw------- 1 user user 6943 2010-05-27 15:13 mbox -rw-r--r-- 1 user user 675 2010-05-25 16:35 .profile |
#find / -name Russ*
/tmp/Russian-Tamara-2.0.2-ulaw.tar.gz /tmp/Russian-Tamara-2.0.2-ulaw |
#exit
Connection to 192.168.15.6 closed. |
#apt-get install festival
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: esound-clients esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile0 libesd0 libestools1.2 sgml-base Suggested packages: festival-freebsoft-utils festival-gaim pidgin-festival esound sgml-base-doc The following NEW packages will be installed: esound-clients esound-common festival festlex-cmu festlex-poslex festvox-kallpc16k ... Setting up libaudiofile0 (0.2.6-7+lenny1) ... Setting up esound-common (0.2.36-3) ... Setting up libesd0 (0.2.36-3) ... Setting up esound-clients (0.2.36-3) ... Setting up libestools1.2 (1:1.2.96~beta-2) ... Setting up sgml-base (1.26) ... Setting up festival (1.96~beta-7) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#:q
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package fetsival |
#apt-get install festival
Reading package lists... Done Building dependency tree Reading state information... Done festival is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#ls /usr/share/festival/
apml_f2bf0lr.scm f2bf0lr.scm mettree.scm singing-mode.scm apml_kaldurtreeZ.scm festdoc.scm module_description.scm siod.scm apml.scm festival.scm mrpa_allophones.scm siteinit.scm cart_aux.scm festtest.scm mrpa_durs.scm soleml-mode.scm clunits_build.scm fringe.scm mrpa_phones.scm synthesis.scm clunits.scm gswdurtreeZ.scm ogimarkup-mode.scm tilt.scm cmusphinx2_phones.scm holmes_phones.scm pauses.scm tobi_rules.scm cslush.scm hts.scm phoneset.scm tobi.scm cstr.scm init.scm phrase.scm tokenpos.scm darpa_phones.scm intonation.scm pos.scm token.scm dicts java.scm postlex.scm tts.scm display.scm klatt_durs.scm radio_phones.scm unilex_phones.scm duration.scm languages.scm sable-mode.scm voices email-mode.scm lexicons.scm scfg.scm voices.scm engmorph.scm lts_build.scm scfg_wsj_wp20.gram web.scm engmorphsyn.scm lts.scm sec.B.hept.ngrambin f2bdurtreeZ.scm mbrola.scm sec.ts20.quad.ngrambin |
#ls /usr/share/festival/
apml_f2bf0lr.scm f2bf0lr.scm mettree.scm singing-mode.scm apml_kaldurtreeZ.scm festdoc.scm module_description.scm siod.scm apml.scm festival.scm mrpa_allophones.scm siteinit.scm cart_aux.scm festtest.scm mrpa_durs.scm soleml-mode.scm clunits_build.scm fringe.scm mrpa_phones.scm synthesis.scm clunits.scm gswdurtreeZ.scm ogimarkup-mode.scm tilt.scm cmusphinx2_phones.scm holmes_phones.scm pauses.scm tobi_rules.scm cslush.scm hts.scm phoneset.scm tobi.scm cstr.scm init.scm phrase.scm tokenpos.scm darpa_phones.scm intonation.scm pos.scm token.scm dicts java.scm postlex.scm tts.scm display.scm klatt_durs.scm radio_phones.scm unilex_phones.scm duration.scm languages.scm sable-mode.scm voices email-mode.scm lexicons.scm scfg.scm voices.scm engmorph.scm lts_build.scm scfg_wsj_wp20.gram web.scm engmorphsyn.scm lts.scm sec.B.hept.ngrambin f2bdurtreeZ.scm mbrola.scm sec.ts20.quad.ngrambin |
#less /usr/share/festival/festival.scm
|
#cat /etc/festival.scm
;; Enable access to localhost (needed by debian users) (set! server_access_list '("localhost\\.localdomain" "localhost")) ;;; Command for Asterisk begin (define (tts_textasterisk string mode) "(tts_textasterisk STRING MODE) Apply tts to STRING. This function is specifically designed for use 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) (utt.wave.rescale wholeutt 5) (utt.send.wave.client wholeutt))) |
#cp /usr/share/doc/festival/examples/festival.init /etc/init.d/festival
|
#less /etc/init.d/festival
|
#cat /etc/default/festival
RUN_FESTIVAL=yes |
#apt-cache search ez
abraca - A simple and powerful graphical client for XMMS2 apel - portable library for emacsen apsfilter - Magic print filter with automatic file type recognition arc - Archive utility based on the MSDOS ARC program asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins bclock - Bezier Clock bioperl - Perl tools for computational molecular biology bluez-gnome - Bluetooth utilities for GNOME bluez-hcidump - Analyses Bluetooth HCI packets libbluetooth-dev - Development files for using the BlueZ Linux Bluetooth library ... tz-brasil - timezone autoconfiguration for Brazil xfce4-weather-plugin - weather information plugin for the Xfce4 panel yorick-yao - a Yorick-based adaptive optics system simulator libtonezone-dev - tonezone library (development) libtonezone1 - tonezone library (runtime) ice32-services - Services bundled into ZeroC Ice ice32-translators - Slice translators to several languages libfreeze32 - Libraries implementing a persistence framework for ZeroC Ice ziproxy - compressing HTTP proxy server libc6-i686 - GNU C Library: Shared libraries [i686 optimized] |
#apt-cache search ezj
|
#apt-cache search jabber
abiword - efficient, featureful word processor with collaboration ayttm - Universal instant messaging client bitlbee-dev - An IRC to other chat networks gateway bitlbee - An IRC to other chat networks gateway cabber - Easy and basic jabber console client centerim-common - A text-mode multi-protocol instant messenger client (data files) centerim-fribidi - A text-mode multi-protocol instant messenger client (Hebrew) centerim-utf8 - A text-mode multi-protocol instant messenger client centerim - A text-mode multi-protocol instant messenger client emacs-jabber - Jabber client for Emacsen ... telepathy-salut - Link-local XMPP connection manager for the Telepathy framework tkabber-plugins - standard plugins for Tkabber, an XMPP (Jabber) client tkabber - GUI client for XMPP (Jabber) instant messaging protocol python-twisted-words - Chat and Instant Messaging barnowl - A curses-based tty Jabber and Zephyr client barnowl-irc - Provide IRC support for the BarnOwl Zephyr client ejabberd - Distributed, fault-tolerant Jabber/XMPP server written in Erlang finch - text-based multi-protocol instant messaging client libpurple0 - multi-protocol instant messaging library pidgin - graphical multi-protocol instant messaging client for X |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#apt-cache search asterisk
|
#ls /etc/init.d/
acpid hwclockfirst.sh networking skeleton asterisk hwclock.sh nfs-common ssh atd ifupdown openbsd-inetd stop-bootlogd bind9 ifupdown-clean portmap stop-bootlogd-single bootlogd keymap.sh procps sudo bootmisc.sh killprocs rc udev checkfs.sh lwresd rc.local udev-mtab checkroot.sh module-init-tools rcS umountfs console-screen.sh mountall-bootclean.sh README umountnfs.sh cron mountall.sh reboot umountroot dhcp3-server mountdevsubfs.sh rmnologin urandom exim4 mountkernfs.sh rsyslog x11-common festival mountnfs-bootclean.sh screen-cleanup zaptel glibc.sh mountnfs.sh sendmail halt mountoverflowtmp sendsigs hostname.sh mtab.sh single |
#ls /etc/init.d/festival
/etc/init.d/festival |
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps aux | grep fest
festival 4214 1.2 0.6 25564 21256 ? S 16:02 0:00 /usr/bin/festival --server -b /etc/festival.scm root 4223 0.0 0.0 3116 728 pts/9 S+ 16:02 0:00 grep fest |
#vim extensions.conf
--- /tmp/l3-saved-21026.29511.32665 2010-05-27 16:03:16.000000000 +0300 +++ extensions.conf 2010-05-27 16:03:45.000000000 +0300 @@ -53,6 +53,8 @@ exten => 804,n,MeetMe(111,M) exten => 805,1,MeetMe(111,tM) +exten => 806,1,Festival("Hello world") + ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) |
# ,1,MeetMe(111,tM)
; ; Use cache (yes, no - defaults to no) ; ;usecache=yes ; ; If usecache=yes, a directory to store waveform cache files. ; The cache is never cleared (yet), so you must take care of cleaning it ; 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/ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |
#scp /usr/share/festival/festival.scm 192.168.5.1:/usr/share/festival/
The authenticity of host '192.168.5.1 (192.168.5.1)' can't be established. RSA key fingerprint is 95:9e:2c:1f:7b:eb:a2:b6:f0:48:a1:90:62:4c:e1:ea. Are you sure you want to continue connecting (yes/no)? eys Please type 'yes' or 'no': yes Warning: Permanently added '192.168.5.1' (RSA) to the list of known hosts. root@192.168.5.1's password: festival.scm 100% 24KB 23.7KB/s 00:00 |
#vim extensions.conf
--- /tmp/l3-saved-21026.18987.26130 2010-05-27 16:05:59.000000000 +0300 +++ extensions.conf 2010-05-27 16:10:10.000000000 +0300 @@ -53,7 +53,7 @@ exten => 804,n,MeetMe(111,M) exten => 805,1,MeetMe(111,tM) -exten => 806,1,Festival("Hello world") +exten => 806,1,Festival('Hello world. This is test for russian support only - Русский язык') ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) |
#~
;; Enable access to localhost (needed by debian users) (set! server_access_list '("localhost\\.localdomain" "localhost")) ;;; Command for Asterisk begin (define (tts_textasterisk string mode) "(tts_textasterisk STRING MODE) Apply tts to STRING. This function is specifically designed for use 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) (utt.wave.rescale wholeutt 5) (utt.send.wave.client wholeutt))) |
#ssh 192.168.1.1
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established. RSA key fingerprint is f8:e7:42:95:33:de:22:74:f4:cc:f9:20:d4:67:49:d7. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts. root@192.168.1.1's password: Permission denied, please try again. root@192.168.1.1's password: Linux linux1 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu May 27 12:52:04 2010 l3-agent is already running: pid=21416; pidfile=/root/.lilalo/l3-agent.pid |
#less /etc/festival.scm
|
#scp 192.168.4.1:/etc/festival.scm /etc/
root@192.168.4.1's password: festival.scm 100% 592 0.6KB/s 00:00 |
#/etc/init.d/festival.init restart
Restarting Festival server: festival/usr/bin/festival already running. |
#/etc/init.d/festival.init stop
Stopping Festival server: festival. |
#/etc/init.d/festival.init start
Starting Festival server: festival/usr/bin/festival already running. |
#ps aux | grep fest
root 28880 0.1 0.6 25696 21324 pts/2 T 16:12 0:00 festival root 29012 0.0 0.0 3144 784 pts/12 R+ 16:13 0:00 grep fest |
#kill 28880
|
#/etc/init.d/festival.init start
Starting Festival server: festival/usr/bin/festival already running. |
#ps aux | grep fest
root 29054 0.0 0.0 3144 776 pts/12 R+ 16:14 0:00 grep fest |
#/etc/init.d/festival.init start
Starting Festival server: festival. |
#exit
exit Connection to 192.168.1.1 closed. |
#"extensions.conf" 96L, 2710C written
;; Enable access to localhost (needed by debian users) (set! server_access_list '("localhost\\.localdomain" "localhost")) ;;; Command for Asterisk begin (define (tts_textasterisk string mode) "(tts_textasterisk STRING MODE) Apply tts to STRING. This function is specifically designed for use 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) (utt.wave.rescale wholeutt 5) (utt.send.wave.client wholeutt))) "/etc/festival.scm" 15L, 592C |
#~
[default] [local] exten => 800,1,Answer exten => 800,n,Wait(1) exten => 800,n,Playback(/var/tmp/Yoki) exten => 801,1,Answer exten => 801,n,Wait(1) exten => 801,n,Record(/var/tmp/busy:gsm) [menu] [submenu] ... exten => 823,1,Record(/var/tmp/bye:gsm) ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) [corp] [corp] -- INSERT -- -- INSERT -- 11,1,System(logger "It work's") "extensions.conf" 127L, 3422C written [1]+ Stopped /usr/bin/vim "$@" |
#apt-cache search festival female
festvox-italp16k - Italian female speaker for Festival festvox-suopuhe-lj - Finnish female speaker for Festival |
#dpkg -l | grep festival
ii festival 1.96~beta-7 General multi-lingual speech synthesis system ii festvox-kallpc16k 1.4.0-5 American English male speaker for festival, 16khz sample rate |
#fg
exten => 1,1,Dial(SIP/dnepr/701) exten => 2,1,Dial(SIP/kiev/201) exten => 3,1,Dial(SIP/odessa/301) exten => 5,1,Dial(SIP/crimea/501) exten => 0,1,Goto(s,1) exten => i,1,Background(/var/tmp/wrong) exten => i,n,Goto(start) exten => t,1,WaitExten(5) exten => t,n,Playback(/var/tmp/vybor) exten => t,n,WaitExten(2) ... exten => 806,1,Festival('Hello world. This is test for russian support only - Русский язык exten => 810,1,Goto(submenu,s,1) exten => 811,1,System(logger "It work's") exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) exten => 823,1,Record(/var/tmp/bye:gsm) ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) [1]+ Stopped /usr/bin/vim "$@" |
#fg
[macro-test] exten => s,1,Answer exten => s,n,SayNumber(${ARG1}) exten => s,n,SayNumber(${ARG4}) exten => s,n,SayNumber(${ARG5}) exten => s,n,SayNumber(${ARG6}) exten => s,n,SayNumber(${ARG7}) exten => s,n,SayNumber(${ARG8}) exten => s,n,SayNumber(${ARG9}) exten => 801,1,Answer ... exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) include => local include => corp [group3] include => local include => corp include => world [sipnet-in] ;exten => s,1,Dial(sip/402) exten => 0028770061,1,Dial(sip/401) |
#ls /var/tmp/
busy.gsm bye.gsm kharkov-hello.gsm submenu.gsm vybor.gsm wrong.gsm Yoki.gsm |
#ls /var/tmp/
|
#fg
exten => 2,1,Dial(SIP/kiev/201) exten => 3,1,Dial(SIP/odessa/301) exten => 5,1,Dial(SIP/crimea/501) exten => 0,1,Goto(s,1) exten => i,1,Background(/var/tmp/wrong) exten => i,n,Goto(start) [command] exten => s,1,Background(/var/tmp/password) exten => s,n,WaitExten(10) exten => _XXXXXX,1,GotoIf($[${EXTEN}=${DB(password/master)}]?we ... exten => 804,n,MeetMe(111,M) exten => 805,1,MeetMe(111,tM) exten => 806,1,Festival('Hello world. This is test for russian support only - Русский язык exten => 810,1,Goto(submenu,s,1) exten => 811,1,System(logger "It work's") exten => 820,1,Record(/var/tmp/password:gsm) exten => 821,1,Record(/var/tmp/goaway-stranger:gsm) exten => 822,1,Record(/var/tmp/welcome-master:gsm) exten => 823,1,Record(/var/tmp/bye:gsm) ;exten => _4XX,1,Dial(SIP/${EXTEN}) |
#cat /tmp/ma
|
#fg
bash: fg: current: no such job |
#vim extensions.conf
--- /tmp/l3-saved-21026.28822.19684 2010-05-27 17:50:52.000000000 +0300 +++ extensions.conf 2010-05-27 17:51:13.000000000 +0300 @@ -63,7 +63,7 @@ exten => _XXXXXX,n(goaway),Playback(/var/tmp/goaway-stranger) exten => _XXXXXX,n,Hangup exten => _XXXXXX,n(welcome),Playback(/var/tmp/welcome-master) -exten => _XXXXXX,n,System(date >> /tmp/master-was-here) +exten => _XXXXXX,n,System(touch /tmp/master-was-here) exten => _XXXXXX,n,Hangup |
#ls -la /tmp/
total 10597 drwxrwxrwt 8 root root 1024 2010-05-27 17:51 . drwxr-xr-x 21 root root 1024 2010-05-25 10:51 .. drwxr-xr-x 3 root root 3072 2010-05-27 16:44 asterisk drwxrwxrwt 2 root root 1024 2010-05-25 11:10 .ICE-unix -rw-r--r-- 1 root root 5226 2010-05-25 12:03 install drwx------ 2 root root 12288 2010-05-25 10:47 lost+found -rw-rw---- 1 asterisk asterisk 0 2010-05-27 17:51 master-was-here -rw-r--r-- 1 root root 3596956 2010-05-27 14:22 music.mp3 -rw-r--r-- 1 root root 7180971 2010-05-27 12:43 Russian-Tamara-2.0.2-ulaw.tar.gz drwx------ 2 root root 1024 2010-05-27 14:52 ssh-tEBvOM1672 drwx------ 2 root root 1024 2010-05-27 16:52 v973155 drwxrwxrwt 2 root root 1024 2010-05-25 11:10 .X11-unix |
#ls -la /tmp/master-was-here
-rw-rw---- 1 asterisk asterisk 0 2010-05-27 17:51 /tmp/master-was-here |
#fg
exten => _XXXXXX,n,Hangup exten => _XXXXXX,n,System(touch /tmp/master-was-here) [default]_XXXXXX,n,Hangup [local] exten => 800,1,Answer exten => 800,n,Wait(1) exten => 800,n,Playback(/var/tmp/Yoki) exten => 801,1,Answer exten => 801,n,Wait(1) ') ... exten => 822,1,Record(/var/tmp/welcome-master:gsm) exten => _3XXX,1,Macro(caller,${CALLERID(number)},odessa) "extensions.conf" 138L, 3778C written exten => 806,1,Festival('Hello world. This is test for russian support only - Русский язык ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2XXX,1,Macro(caller,${CALLERID(number)},kiev) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) |
#asterisk -rxvvv
No such command 'vvv' (type 'help vvv' for other possible commands) |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux4 (pid = 28133) Verbosity is at least 8 [May 27 21:28:13] NOTICE[28156]: chan_sip.c:14441 handle_request_invite: Call from 'kharkov' to extension '401' rejected because extension not found. linux4*CLI> quit Executing last minute cleanups |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-5847.5515.5833 2010-05-27 21:28:26.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-05-27 21:28:55.000000000 +0300 @@ -31,6 +31,7 @@ username=kharkov limitonpeers=yes ;call-limit=1 +context=group3 [kiev] type=friend |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-5847.22322.26887 2010-05-27 21:29:16.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-05-27 21:29:32.000000000 +0300 @@ -29,7 +29,7 @@ secret=password host=dynamic username=kharkov -limitonpeers=yes +;limitonpeers=yes ;call-limit=1 context=group3 |
#vi /etc/asterisk/extensions.conf
|
RUN_FESTIVAL=yes
;; Enable access to localhost (needed by debian users) (set! server_access_list '("localhost\\.localdomain" "localhost")) ;;; Command for Asterisk begin (define (tts_textasterisk string mode) "(tts_textasterisk STRING MODE) Apply tts to STRING. This function is specifically designed for use 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) (utt.wave.rescale wholeutt 5) (utt.send.wave.client wholeutt)))
Время первой команды журнала | 13:53:50 2010- 5-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 20:29:32 2010- 5-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.89 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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