/l3/users/oleglevitskiy/lab-nt-voip/aster-3/root :1 :2 :3 :4 :5 :6 :7 |
|
#/usr/lib/gdm3/gdm-simple-slave
gdm-simple-slave[12356]: CRITICAL: No display ID set |
#/usr/lib/gdm3/gdm-simple-slave ^C
|
#ps aux |grep x
root 240 0.0 0.0 0 0 ? S< 08:49 0:00 [ext4-dio-unwrit] 104 2720 0.0 0.0 50920 1048 ? Ss 08:50 0:00 /usr/sbin/exim4 -bd -q30m root 9694 0.0 0.0 23104 1144 pts/1 S+ 09:45 0:00 screen -x root 10437 0.0 0.0 23104 1148 pts/5 Ss+ 11:49 0:00 screen -x colord 12145 0.0 0.0 149988 4700 ? Sl 13:44 0:00 /usr/lib/x86_64-linux-gnu/colord/colord colord 12156 0.0 0.0 314892 8344 ? Sl 13:44 0:00 /usr/lib/x86_64-linux-gnu/colord/colord-sane user 12712 0.0 0.0 15760 988 tty2 S+ 13:53 0:00 xinit user 12718 0.0 0.0 69628 6840 tty2 S 13:53 0:00 xterm -geometry +1+1 -n login root 12763 0.0 0.0 16836 1268 pts/4 R+ 13:53 0:00 ps aux root 12764 0.0 0.0 7836 876 pts/4 S+ 13:53 0:00 grep x |
#kill -9 12712
|
#kill -9 12718
|
#ps aux |gdm
l3script: gdm: command not found |
#ps aux |grep gdm
root 2892 0.0 0.0 83832 3300 ? Sl 08:50 0:00 /usr/sbin/gdm3 root 12334 0.0 0.0 155760 3300 ? Sl 13:50 0:00 /usr/lib/gdm3/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display3 root 12335 0.0 0.0 70164 2860 tty8 Ss+ 13:50 0:00 /usr/bin/Xorg :1 -br -verbose -novtswitch -auth /var/run/gdm3/auth-for-Debian-gdm-bNYMOB/database -nolisten tcp vt8 root 12798 0.0 0.0 7836 876 pts/4 S+ 13:54 0:00 grep gdm |
#kill -9 2892
|
#12334
l3script: 12334: command not found |
#kill -9 12334
|
#kill -9 12335
|
#apt-cache search asterisk sounds
asterisk-core-sounds-en - asterisk PBX sound files - US English asterisk-core-sounds-en-g722 - asterisk PBX sound files - en-us/g722 asterisk-core-sounds-en-gsm - asterisk PBX sound files - en-us/gsm asterisk-core-sounds-en-wav - asterisk PBX sound files - en-us/wav asterisk-core-sounds-es - asterisk PBX sound files - Spanish asterisk-core-sounds-es-g722 - asterisk PBX sound files - es-mx/g722 asterisk-core-sounds-es-gsm - asterisk PBX sound files - es-mx/gsm asterisk-core-sounds-es-wav - asterisk PBX sound files - es-mx/wav asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-fr-g722 - asterisk PBX sound files - fr-ca/g722 asterisk-core-sounds-fr-gsm - asterisk PBX sound files - fr-ca/gsm asterisk-core-sounds-fr-wav - asterisk PBX sound files - fr-ca/wav asterisk-core-sounds-ru - asterisk PBX sound files - Russian asterisk-core-sounds-ru-g722 - asterisk PBX sound files - ru-ru/g722 asterisk-core-sounds-ru-gsm - asterisk PBX sound files - ru-ru/gsm asterisk-core-sounds-ru-wav - asterisk PBX sound files - ru-ru/wav asterisk-prompt-it-menardi - asterisk PBX Italian sound files |
#apt-get istall asterisk-core-sounds-ru-gsm
E: Invalid operation istall |
#apt-get install asterisk-core-sounds-ru-gsm
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-core-sounds-ru The following NEW packages will be installed: asterisk-core-sounds-ru asterisk-core-sounds-ru-gsm 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 2,078 kB of archives. After this operation, 2,263 kB of additional disk space will be used. ... Fetched 2,078 kB in 0s (11.1 MB/s) Selecting previously unselected package asterisk-core-sounds-ru-gsm. (Reading database ... 133518 files and directories currently installed.) Unpacking asterisk-core-sounds-ru-gsm (from .../asterisk-core-sounds-ru-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-ru. Unpacking asterisk-core-sounds-ru (from .../asterisk-core-sounds-ru_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-ru-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-ru (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru (asterisk-prompt-ru) in auto mode update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru_RU (asterisk-prompt-ru-ru) in auto mode |
#apt-get istall asterisk-core-sounds-ru
E: Invalid operation istall |
#apt-get install asterisk-core-sounds-ru
Reading package lists... Done Building dependency tree Reading state information... Done asterisk-core-sounds-ru is already the newest version. asterisk-core-sounds-ru set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#apt-get install asterisk-core-sounds-ru*
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'asterisk-core-sounds-ru-g722' for regex 'asterisk-core-sounds-ru*' Note, selecting 'asterisk-core-sounds-ru-gsm' for regex 'asterisk-core-sounds-ru*' Note, selecting 'asterisk-core-sounds-ru-wav' for regex 'asterisk-core-sounds-ru*' Note, selecting 'asterisk-core-sounds-ru' for regex 'asterisk-core-sounds-ru*' asterisk-core-sounds-ru is already the newest version. asterisk-core-sounds-ru-gsm is already the newest version. The following NEW packages will be installed: ... Get:1 http://192.168.12.254/debian/ wheezy/main asterisk-core-sounds-ru-g722 all 1.4.22-1 [8,705 kB] Get:2 http://192.168.12.254/debian/ wheezy/main asterisk-core-sounds-ru-wav all 1.4.22-1 [16.6 MB] Fetched 25.3 MB in 3s (6,556 kB/s) Selecting previously unselected package asterisk-core-sounds-ru-g722. (Reading database ... 133987 files and directories currently installed.) Unpacking asterisk-core-sounds-ru-g722 (from .../asterisk-core-sounds-ru-g722_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-ru-wav. Unpacking asterisk-core-sounds-ru-wav (from .../asterisk-core-sounds-ru-wav_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-ru-g722 (1.4.22-1) ... Setting up asterisk-core-sounds-ru-wav (1.4.22-1) ... |
#ls /usr/share/asterisk/sounds/
custom en en_US en_US_f_Allison recordings ru ru_RU ru_RU_f_IvrvoiceRU |
#pwd
/etc/asterisk |
#nano sip.conf
--- /tmp/l3-saved-9727.27222.22729 2014-04-24 14:02:14.291273588 +0300 +++ sip.conf 2014-04-24 14:02:50.739273098 +0300 @@ -1,6 +1,7 @@ [general] context=default directmedia=no +language=ru register => berlin:1234@192.168.12.6/frankfurt register => berlin:1234@192.168.12.2/kiev |
#service asterisk reload
Reloading Asterisk PBX configuration files. |
#nano sip.conf
|
#[general]
|
#apt-get install asterisk-prompt-ru
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'asterisk-core-sounds-ru' instead of 'asterisk-prompt-ru' asterisk-core-sounds-ru is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#mc
|
#cd /home/
|
#ls
user |
#wget http://downloads.asterisk.org/pub/telephony/sounds/asteris
--2014-04-24 14:10:56-- http://downloads.asterisk.org/pub/telephony/sounds/asteris Resolving downloads.asterisk.org (downloads.asterisk.org)... 76.164.171.238, 2001:470:e0d4::ee Connecting to downloads.asterisk.org (downloads.asterisk.org)|76.164.171.238|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2014-04-24 14:10:57 ERROR 404: Not Found. |
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk/current.tar.gz
--2014-04-24 14:11:37-- http://downloads.asterisk.org/pub/telephony/sounds/asterisk/current.tar.gz Resolving downloads.asterisk.org (downloads.asterisk.org)... 76.164.171.238, 2001:470:e0d4::ee Connecting to downloads.asterisk.org (downloads.asterisk.org)|76.164.171.238|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2014-04-24 14:11:38 ERROR 404: Not Found. |
#cd /root/
|
#ls
asterisk-core-sounds-ru-wav-current.tar.gz install Mail |
#mkdir ru-sounds
|
#tar -xvf asterisk-core-sounds-ru-wav-current.tar.gz ./ru-sounds/
tar: ./ru-sounds: Not found in archive tar: Exiting with failure status due to previous errors |
#tar -xvf asterisk-core-sounds-ru-wav-current.tar.gz ru-sounds
tar: ru-sounds: Not found in archive tar: Exiting with failure status due to previous errors |
#tar -xvf asterisk-core-sounds-ru-wav-current.tar.gz
CHANGES-asterisk-core-ru-1.4.25 CREDITS-asterisk-core-ru-1.4.25 LICENSE-asterisk-core-ru-1.4.25 agent-alreadyon.wav agent-incorrect.wav agent-loggedoff.wav agent-loginok.wav agent-newlocation.wav agent-pass.wav agent-user.wav ... vm-tohearenv.wav vm-tomakecall.wav vm-tooshort.wav vm-toreply.wav vm-torerecord.wav vm-undelete.wav vm-undeleted.wav vm-unknown-caller.wav vm-whichbox.wav vm-youhave.wav |
#ls
agent-alreadyon.wav Mail vm-intro.wav agent-incorrect.wav minutes.wav vm-invalid-password.wav agent-loggedoff.wav pbx-invalidpark.wav vm-invalidpassword.wav agent-loginok.wav pbx-invalid.wav vm-isonphone.wav agent-newlocation.wav pbx-parkingfailed.wav vm-isunavail.wav agent-pass.wav pbx-transfer.wav vm-last.wav agent-user.wav phonetic vm-leavemsg.wav ascending-2tone.wav phone.wav vm-login.wav asterisk-core-sounds-ru-wav-current.tar.gz privacy-incorrect.wav vm-mailboxfull.wav auth-incorrect.wav privacy-prompt.wav vm-marked-nonurgent.wav ... dir-pls-enter.wav vm-Friends.wav vm-tooshort.wav dir-usingkeypad.wav vm-from-extension.wav vm-toreply.wav dir-welcome.wav vm-from-phonenumber.wav vm-torerecord.wav followme vm-from.wav vm-undeleted.wav hello-world.wav vm-goodbye.wav vm-undelete.wav hours.wav vm-helpexit.wav vm-unknown-caller.wav install vm-INBOX.wav vm-Urgent.wav invalid.wav vm-incorrect-mailbox.wav vm-whichbox.wav letters vm-incorrect.wav vm-Work.wav LICENSE-asterisk-core-ru-1.4.25 vm-instructions.wav vm-youhave.wav |
#mc
|
#cd ru-sounds/
|
#ls
asterisk-core-sounds-ru-wav-current.tar.gz |
#tar -xvf asterisk-core-sounds-ru-wav-current.tar.gz
CHANGES-asterisk-core-ru-1.4.25 CREDITS-asterisk-core-ru-1.4.25 LICENSE-asterisk-core-ru-1.4.25 agent-alreadyon.wav agent-incorrect.wav agent-loggedoff.wav agent-loginok.wav agent-newlocation.wav agent-pass.wav agent-user.wav ... vm-tohearenv.wav vm-tomakecall.wav vm-tooshort.wav vm-toreply.wav vm-torerecord.wav vm-undelete.wav vm-undeleted.wav vm-unknown-caller.wav vm-whichbox.wav vm-youhave.wav |
#ls
agent-alreadyon.wav minutes.wav vm-invalid-password.wav agent-incorrect.wav pbx-invalidpark.wav vm-invalidpassword.wav agent-loggedoff.wav pbx-invalid.wav vm-isonphone.wav agent-loginok.wav pbx-parkingfailed.wav vm-isunavail.wav agent-newlocation.wav pbx-transfer.wav vm-last.wav agent-pass.wav phonetic vm-leavemsg.wav agent-user.wav phone.wav vm-login.wav ascending-2tone.wav privacy-incorrect.wav vm-mailboxfull.wav asterisk-core-sounds-ru-wav-current.tar.gz privacy-prompt.wav vm-marked-nonurgent.wav auth-incorrect.wav privacy-thankyou.wav vm-marked-urgent.wav ... dir-nomore.wav vm-from-extension.wav vm-tooshort.wav dir-pls-enter.wav vm-from-phonenumber.wav vm-toreply.wav dir-usingkeypad.wav vm-from.wav vm-torerecord.wav dir-welcome.wav vm-goodbye.wav vm-undeleted.wav followme vm-helpexit.wav vm-undelete.wav hello-world.wav vm-INBOX.wav vm-unknown-caller.wav hours.wav vm-incorrect-mailbox.wav vm-Urgent.wav invalid.wav vm-incorrect.wav vm-whichbox.wav letters vm-instructions.wav vm-Work.wav LICENSE-asterisk-core-ru-1.4.25 vm-intro.wav vm-youhave.wav |
#cd /etc/asterisk/
|
#nano extensions.conf
--- /tmp/l3-saved-9727.32661.13467 2014-04-24 14:28:31.743252454 +0300 +++ extensions.conf 2014-04-24 14:29:43.007251499 +0300 @@ -17,9 +17,16 @@ exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup + +exten => 8100,1,Answer +exten => 8100,n,Set(CHANNEL(language)=ru) exten => 8100,1,VoiceMailMain() + + + + [macro-outgoingcall] exten => s,1,Answer exten => s,n,Set(CALLFILENAME=${MACRO_EXTEN}-${CALLERID(num)}-${EPOCH}) |
#[internal]
|
#[default]
GNU nano 2.2.6 File: extensions.conf Modified [internal] exten => _80XX,1,Answer exten => _80XX,n,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,2) exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup exten => 8100,1,Answer exten => 8100,n,Set(CHANNEL(language)=ru) exten => 8100,1,VoiceMailMain() exten => s,n,Set(CALLFILENAME=${MACRO_EXTEN}-${CALLERID(num)}-${EPOCH}) exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,Dial(${ARG1}) [macro-localcall] exten => s,1,NoOp(Answering ${MACRO_EXTEN}) exten => s,n,Set(CALLFILENAME=${MACRO_EXTEN}-${CALLERID(num)}-${EPOCH}) exten => s,n,Monitor(wav,${CALLFILENAME},m) ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#apt-get install
Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#asterisk-core-sounds^C
|
#apt-get install asterisk-core-sounds
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds |
#apt-get install asterisk-core-sounds
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds |
#apt-get install asterisk-core-sounds*
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'asterisk-core-sounds-en-wav' for regex 'asterisk-core-sounds*' Note, selecting 'asterisk-core-sounds-ru-g722' for regex 'asterisk-core-sounds*' Note, selecting 'asterisk-core-sounds-fr-g722' for regex 'asterisk-core-sounds*' Note, selecting 'asterisk-core-sounds-es-g722' for regex 'asterisk-core-sounds*' Note, selecting 'asterisk-core-sounds-ru-gsm' for regex 'asterisk-core-sounds*' Note, selecting 'asterisk-core-sounds-es-gsm' for regex 'asterisk-core-sounds*' Note, selecting 'asterisk-core-sounds-ru-wav' for regex 'asterisk-core-sounds*' ... Setting up asterisk-core-sounds-es-wav (1.4.22-1) ... Setting up asterisk-core-sounds-es (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/es_MX_f_Allison to provide /usr/share/asterisk/sounds/es (asterisk-prompt-es) in auto mode update-alternatives: using /usr/share/asterisk/sounds/es_MX_f_Allison to provide /usr/share/asterisk/sounds/es_MX (asterisk-prompt-es-mx) in auto mode Setting up asterisk-core-sounds-fr-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-fr-g722 (1.4.22-1) ... Setting up asterisk-core-sounds-fr-wav (1.4.22-1) ... Setting up asterisk-core-sounds-fr (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr (asterisk-prompt-fr) in auto mode update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr_CA (asterisk-prompt-fr-ca) in auto mode |
#service asterisk resload
Usage: /etc/init.d/asterisk {start|stop|restart|reload|status|debug|logger-reload|extensions-reload|restart-convenient|force-reload} |
#service asterisk reload
Reloading Asterisk PBX configuration files. |
#nano voicemail.conf
|
#[default]
|
#[default]
|
#exten => s-BUSY,1,Busy
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile1 libesd0 libestools2.1 Suggested packages: pidgin-festival festival-freebsoft-utils pulseaudio-esound-compat The following NEW packages will be installed: esound-common festival festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile1 libesd0 libestools2.1 ... Processing triggers for install-info ... Setting up libaudiofile1:amd64 (0.3.4-2) ... Setting up esound-common (0.2.41-10) ... Setting up libesd0:amd64 (0.2.41-10+b1) ... Setting up libestools2.1:amd64 (1:2.1~release-5) ... Setting up festival (1:2.1~release-5.1) ... Processing triggers for sgml-base ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#apt-cache search festival
brltty-flite - Access software for a blind person - Flite speech driver eflite - Festival-Lite based emacspeak speech server festival - General multi-lingual speech synthesis system festival-dev - Development kit for the Festival speech synthesis system 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 ... libgnome-speech7 - GNOME text-to-speech library libperlspeak-perl - Perl Module for text to speech with festival, espeak, cepstral pidgin-festival - pidgin plugin to hear incoming messages using voice synthesis screader - Screen reader using software or hardware speech synthesizer speech-dispatcher-festival - Festival support for Speech Dispatcher speechd-up - Interface between Speech Dispatcher and SpeakUp stardict-plugin-festival - International dictionary - Festival TTS plugin plasma-widget-translatoid - translation widget for KDE Plasma writetype - application designed to help students write more easily yasr - General-purpose console screen reader |
#apt-cache search festvox-ru
festvox-ru - Russian male speaker for Festival |
#apt-cache install festvox-ru
E: Invalid operation install |
#apt-get install festvox-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: festvox-ru 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 196 MB of archives. After this operation, 247 MB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main festvox-ru all 0.5-5 [196 MB] 6% [1 festvox-ru 11.8 MB/196 MB 6%]y Fetched 196 MB in 16s (11.8 MB/s) Selecting previously unselected package festvox-ru. (Reading database ... 139225 files and directories currently installed.) Unpacking festvox-ru (from .../festvox-ru_0.5-5_all.deb) ... Setting up festvox-ru (0.5-5) ... |
#cat > /home/1.txt
Hello from festival. ; ^C |
#cat /home/1.txt
Hello from festival. ; |
#cnano /home/1.txt
l3script: cnano: command not found |
#nano /home/1.txt
--- /tmp/l3-saved-9727.18801.16122 2014-04-24 15:30:27.591202666 +0300 +++ /home/1.txt 2014-04-24 15:30:33.199202594 +0300 @@ -1,2 +1 @@ -Hello from festival. -; +Hello from festival. |
#Hello from festival.
SIOD ERROR: unbound variable : Hello closing a file left open: /home/1.txt |
#cat /home/1.txt | text2wave > /home/1.wav
|
#LANG=C man ls | text2wave > home/2.wav
l3script: home/2.wav: No such file or directory |
#LANG=C man ls | text2wave > /home/2.wav
|
#apt-get install lynx
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: lynx-cur The following NEW packages will be installed: lynx lynx-cur 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 2,472 kB of archives. After this operation, 5,308 kB of additional disk space will be used. ... Unpacking lynx-cur (from .../lynx-cur_2.8.8dev.12-2_amd64.deb) ... Selecting previously unselected package lynx. Unpacking lynx (from .../lynx_2.8.8dev.12-2_all.deb) ... Processing triggers for menu ... Processing triggers for man-db ... Processing triggers for mime-support ... Setting up lynx-cur (2.8.8dev.12-2) ... update-alternatives: using /usr/bin/lynx to provide /usr/bin/www-browser (www-browser) in auto mode Setting up lynx (2.8.8dev.12-2) ... Processing triggers for menu ... |
#.wav
|
#nano /usr/local/bin/asterisk-festival.pl
|
#!/usr/bin/perl
|
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts/
|
#chmod +x /usr/local/bin/asterisk-festival.pl
|
#/usr/local/bin/asterisk-festival.pl проверка
Can't locate Asterisk/AGI.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/local/bin/asterisk-festival.pl line 3. BEGIN failed--compilation aborted at /usr/local/bin/asterisk-festival.pl line 3. |
#nano extensions.conf
|
#exten => 8100,n,Goto(vm)
|
#nano extensions.conf
--- /tmp/l3-saved-9727.17152.4206 2014-04-24 16:20:18.079162604 +0300 +++ extensions.conf 2014-04-24 16:21:38.131161525 +0300 @@ -50,7 +50,9 @@ - +exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl /home/user/belki.txt) +exten => 8102,1,AGI(/usr/local/bin/asterisk-festival.pl /home/user/burunduki.txt) +exten => 8103,1,AGI(/usr/local/bin/asterisk-festival.pl Я рад вас слышать. Добрый день) |
#exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl /home/user/belki.txt)
Reloading Asterisk PBX configuration files. |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX) asterisk-config - Configuration files for Asterisk asterisk-dahdi - DAHDI devices support for the Asterisk PBX asterisk-dbg - Debugging symbols for Asterisk asterisk-dev - Development files for Asterisk asterisk-doc - Source code documentation for Asterisk asterisk-mobile - Bluetooth phone support for the Asterisk PBX asterisk-modules - loadable modules for the Asterisk PBX asterisk-mp3 - MP3 playback support for the Asterisk PBX asterisk-mysql - MySQL database protocol support for the Asterisk PBX ... linphone-dbg - Debugging symbols for linphone and its libraries op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files libsipwitch1 - secure peer-to-peer SIP VoIP server - development files libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files sipwitch - secure peer-to-peer VoIP server for the SIP protocol sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface python-starpy - Asterisk (AMI) protocols for Twisted Python |
#apt-get install libasterisk-agi-perl
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libasterisk-agi-perl 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 42.2 kB of archives. After this operation, 160 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main libasterisk-agi-perl all 1.01-2 [42.2 kB] Fetched 42.2 kB in 0s (3,174 kB/s) Selecting previously unselected package libasterisk-agi-perl. (Reading database ... 141290 files and directories currently installed.) Unpacking libasterisk-agi-perl (from .../libasterisk-agi-perl_1.01-2_all.deb) ... Processing triggers for man-db ... Setting up libasterisk-agi-perl (1.01-2) ... |
#/usr/local/bin/asterisk-festival.pl проверка
^C |
#/usr/local/bin/asterisk-festival.pl проверка
^C |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9727.29727.23123 2014-04-24 16:28:20.187156146 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 16:28:38.291155902 +0300 @@ -50,7 +50,7 @@ -exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl /home/user/belki.txt) +exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl /home/user/belka.txt) exten => 8102,1,AGI(/usr/local/bin/asterisk-festival.pl /home/user/burunduki.txt) exten => 8103,1,AGI(/usr/local/bin/asterisk-festival.pl Я рад вас слышать. Добрый день) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9727.12167.9074 2014-04-24 16:30:42.475154243 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 16:31:12.035153844 +0300 @@ -50,9 +50,9 @@ -exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl /home/user/belka.txt) -exten => 8102,1,AGI(/usr/local/bin/asterisk-festival.pl /home/user/burunduki.txt) -exten => 8103,1,AGI(/usr/local/bin/asterisk-festival.pl Я рад вас слышать. Добрый день) +exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl "/home/user/belka.txt") +exten => 8102,1,AGI(/usr/local/bin/asterisk-festival.pl "/home/user/burunduki.txt") +exten => 8103,1,AGI(/usr/local/bin/asterisk-festival.pl "Я рад вас слышать. Добрый день") |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9727.18210.22716 2014-04-24 16:32:54.479152471 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 16:33:42.079151832 +0300 @@ -50,9 +50,9 @@ -exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl "/home/user/belka.txt") -exten => 8102,1,AGI(/usr/local/bin/asterisk-festival.pl "/home/user/burunduki.txt") -exten => 8103,1,AGI(/usr/local/bin/asterisk-festival.pl "Я рад вас слышать. Добрый день") +exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl,/home/user/belka.txt) +exten => 8102,1,AGI(/usr/local/bin/asterisk-festival.pl,/home/user/burunduki.txt) +exten => 8103,1,AGI(/usr/local/bin/asterisk-festival.pl,Я рад вас слышать. Добрый день) |
#nano /etc/asterisk/extensions.conf
|
#exten => 8100,n,Goto(vm)
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libauthen-sasl-perl libnet-xmpp-perl libxml-stream-perl Suggested packages: libdigest-hmac-perl libgssapi-perl libnet-dns-perl The following NEW packages will be installed: libauthen-sasl-perl libnet-xmpp-perl libxml-stream-perl sendxmpp 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. ... Unpacking libxml-stream-perl (from .../libxml-stream-perl_1.23-2_all.deb) ... Selecting previously unselected package libnet-xmpp-perl. Unpacking libnet-xmpp-perl (from .../libnet-xmpp-perl_1.02-3_all.deb) ... Selecting previously unselected package sendxmpp. Unpacking sendxmpp (from .../sendxmpp_1.22-1_all.deb) ... Processing triggers for man-db ... Setting up libauthen-sasl-perl (2.1500-1) ... Setting up libxml-stream-perl (1.23-2) ... Setting up libnet-xmpp-perl (1.02-3) ... Setting up sendxmpp (1.22-1) ... |
#aster3@lab0.xgu.ru password
|
#exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl,/home/user/belka.txt)
|
#exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl,/home/user/belka.txt)
Reloading Asterisk PBX configuration files. |
#nano extensions.conf
|
#exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl,/home/user/belka.txt)
cannot read /root/.sendxmpprc: No such file or directory |
#cp /var/lib/asterisk/.sendxmpprc /root/
|
#echo "test"| /usr/local/bin/jabber-send user3@lab0.xgu.ru
|
#echo "test"| /usr/local/bin/jabber-send user3@lab0.xgu.ru
|
#su - asterisk
|
#echo "test"| /usr/local/bin/jabber-send user3@lab0.xgu.ru
|
#su asterisk
|
#echo "test"| /usr/local/bin/jabber-send user3@lab0.xgu.ru\
> ^C |
Hello from festival. ;
Время первой команды журнала | 12:51:44 2014- 4-24 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:02:17 2014- 4-24 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.53 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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