/l3/users/2014-11-nt-voip/nt-voip/debian3/root :1 :2 :3 :4 :5 |
|
#{EXTEN})
[general] context=default qualify=yes ;include "/etc/asterisk/sip.conf.kiev" register => minsk:1234@192.168.60.1/brest register => minsk:1234@192.168.10.1/kiev [phone](!) type=friend host=dynamic qualify=yes ... username=minsk context=gr4 ;minsk-kiev [kiev] type=friend secret=1234 host=dynamic directmedia=no username=minsk context=gr4 |
#less /var/log/asterisk/messages
|
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-6019.16681.7876 2014-11-26 11:41:37.178766052 +0200 +++ /etc/asterisk/voicemail.conf 2014-11-26 11:41:56.214766454 +0200 @@ -382,8 +382,7 @@ [default] ; была пропущена запятая 1301 =>1234,User 1 (1301),user@localhost - - +1302 =>1234,User 1 (1302),user@localhost 1234 => 4242,Example Mailbox,root@localhost |
#su - user
4 kept, 0 deleted. user@debian3:~$ exit logout |
#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 ... asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-it - dummy transitional package asterisk-prompt-it-menardi - asterisk PBX Italian sound files asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts asterisk-prompt-se - Swedish voice prompts for Asterisk libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI |
#vim /etc/asterisk/sip.conf
|
#tar xfz asterisk-core-sounds-ru-gsm-current.tar.gz -C /usr/share/asterisk/sounds/ru/
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3542.28746.25513 2014-11-26 12:11:07.142803268 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 12:13:41.914806523 +0200 @@ -2,6 +2,8 @@ [internal] exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) +exten => _81XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2}) + exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) exten => _83XX,1,VoiceMailMain(13${EXTEN:2}@default) ; сюда добавляйте голосовую почту |
#vim /etc/asterisk/extensions.conf
|
#[local]
Display all 101 possibilities? (y or n) |
#vim /etc/asterisk/ext
--- /tmp/l3-saved-3517.23115.12169 2014-11-26 13:13:22.502349303 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 13:17:23.370352154 +0200 @@ -9,11 +9,14 @@ ; сюда добавляйте голосовую почту [local] -exten =>_13XX,1,Dial(SIP/${EXTEN},5) + +exten => _13XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) +exten => _13XX,n,Monitor(wav,${CALLFILENAME},m) +exten => _13XX,n,Dial(SIP/${EXTEN},5) ; скобки не было ; и 13 забыли ; здесь нужно использовать VoiceMail а не VoiceMailMain -exten =>_13XX,n,VoiceMail(13${EXTEN:2}@default) +exten => _13XX,n,VoiceMail(13${EXTEN:2}@default) [national] exten =>_23XX,1,Dial(SIP/brest/${EXTEN}) |
#vim /etc/asterisk/extension
|
#vim /etc/asterisk/extensions
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3517.13089.30922 2014-11-26 13:53:00.038377441 +0200 +++ /etc/asterisk/musiconhold.conf 2014-11-26 13:53:14.378377614 +0200 @@ -44,7 +44,7 @@ [default] mode=files -directory=moh +directory=/var/lib/asterisk/moh/ ; ;[native-random] ;mode=files |
#ls /var/spool/asterisk/monitor/
1301-1302-2014-11-26-13:17:44.wav |
#ls /var/spool/asterisk/monitor/
1301-1302-2014-11-26-13:17:44.wav 1302-1301-2014-11-26-13:23:27.wav 1301-1302-2014-11-26-13:24:29.wav |
#ls /var/spool/asterisk/monitor/
1301-1302-2014-11-26-13:17:44.wav 1302-1301-2014-11-26-13:23:27.wav 1301-1302-2014-11-26-13:24:29.wav 1302-1301-2014-11-26-13:25:17.wav |
#ls /var/spool/asterisk/monitor/
1301-1302-2014-11-26-13:17:44.wav 1302-1301-2014-11-26-13:25:17.wav 1301-1302-2014-11-26-13:24:29.wav 1302-1301-2014-11-26-13:27:04.wav 1302-1301-2014-11-26-13:23:27.wav |
#mpg123 -w /tmp/adele.wav /home/user/Downloads/maks_korzh_-_zhit_v_kayf_(zaycev.net).mp3
bash: syntax error near unexpected token `(' |
#pl
pl2pm play plipconfig plog |
#play /tmp/music.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/music.gsm: File Size: 283k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:44.03 [00:00:00.00] Out:352k [!=====|=====!] Hd:0.0 Clip:0 Aborted. |
#cp /tmp/ maks_korzh_-_zhit_v_kayf_(zaycev.net).mp3
bash: syntax error near unexpected token `(' |
#cp /tmp/music.gsm /var/lib/asterisk/moh/
|
#vim /etc/asterisk/musiconhold.conf
|
#[ ]
; without transcoding (same as Playback would do in the dialplan). ; Files can be present in as many formats as you wish, and the ; 'best' format will be chosen at playback time. ; ; The path specified can be either an absolute path (starts with '/'), ; or a relative path; relative paths are interpreted as being relative ; to the 'astdatalibdir' in asterisk.conf, which defaults to ; /var/lib/asterisk. ; ; NOTE: ... ; this, res_musiconhold will skip the files it is not able to ; understand when it loads. ; [default] [ ] [ode=fil]s ; ;[native-random] =/var/lib/asterisk/moh/ "/etc/asterisk/musiconhold.conf" 84L, 2741C written |
#vim /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-3517.26294.22960 2014-11-26 14:15:19.182393290 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 14:18:34.570395601 +0200 @@ -6,6 +6,9 @@ exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) exten => _83XX,1,VoiceMailMain(13${EXTEN:2}@default) +exten => _801X,1,MeetMe(10${EXTEN:3}) + + ; сюда добавляйте голосовую почту [local] @@ -13,6 +16,9 @@ exten => _13XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) exten => _13XX,n,Monitor(wav,${CALLFILENAME},m) exten => _13XX,n,Dial(SIP/${EXTEN},5) + + + ; скобки не было ; и 13 забыли ; здесь нужно использовать VoiceMail а не VoiceMailMain |
#m-a = module-assistant
Starting the Dialog UI... |
#modprobe dahdi
|
#lsmod | grep dahdi
dahdi 191056 0 crc_ccitt 12347 1 dahdi |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/asterisk/meetme.conf
bash: /etc/asterisk/meetme.conf: Permission denied |
#vim /etc/asterisk/meetme.conf
|
#apt-get install asterisk-dahdi
Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libgadu3 Use 'apt-get autoremove' to remove it. The following extra packages will be installed: libopenr2-3 libpri1.4 libss7-1 The following NEW packages will be installed: asterisk-dahdi libopenr2-3 libpri1.4 libss7-1 ... Selecting previously unselected package libpri1.4. Unpacking libpri1.4 (from .../libpri1.4_1.4.12-2_amd64.deb) ... Selecting previously unselected package libss7-1. Unpacking libss7-1 (from .../libss7-1_1.0.2-3_amd64.deb) ... Selecting previously unselected package asterisk-dahdi. Unpacking asterisk-dahdi (from .../asterisk-dahdi_1%3a1.8.13.1~dfsg1-3+deb7u3_amd64.deb) ... Setting up libopenr2-3 (1.3.2-1.1) ... Setting up libpri1.4 (1.4.12-2) ... Setting up libss7-1 (1.0.2-3) ... Setting up asterisk-dahdi (1:1.8.13.1~dfsg1-3+deb7u3) ... |
#vi /etc/asterisk/features.conf
|
#vi /etc/asterisk/features.conf
--- /tmp/l3-saved-3517.22959.4850 2014-11-26 15:50:26.230460836 +0200 +++ /etc/asterisk/features.conf 2014-11-26 15:52:05.098462011 +0200 @@ -80,7 +80,7 @@ ; (default is 3 seconds) ;xfersound = beep ; to indicate an attended transfer is complete ;xferfailsound = beeperr ; to indicate a failed transfer -pickupexten = *1 ; Configure the pickup extension. (default is *8) +pickupexten = *8 ; Configure the pickup extension. (default is *8) ;pickupsound = beep ; to indicate a successful pickup (default: no sound) ;pickupfailsound = beeperr ; to indicate that the pickup failed (default: no sound) ;featuredigittimeout = 1000 ; Max time (ms) between digits for |
#vi /etc/asterisk/features.conf
|
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-3517.15206.2715 2014-11-26 16:06:04.930471947 +0200 +++ /etc/asterisk/features.conf 2014-11-26 16:08:04.182473359 +0200 @@ -119,10 +119,10 @@ [featuremap] -;blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;disconnect => *0 ; Disconnect (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call! ;automon => *1 ; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call! -;atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call! ;automixmon => *3 ; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call! |
#vi /etc/asterisk/features.conf
|
#asterisk -rvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian3 (pid = 10884) ... -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001553 sec -- Time to restore hints and swap in new dialplan: 0.000006 sec -- Time to delete the old dialplan: 0.000142 sec -- Total time merge_contexts_delete: 0.001701 sec debian3*CLI> features reload debian3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3517.21124.10680 2014-11-26 16:42:36.606497890 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 16:43:10.578498290 +0200 @@ -12,6 +12,8 @@ ; сюда добавляйте голосовую почту exten => _801X,1,MeetMe(10${EXTEN:3}) +include => parkedcalls + [local] exten => _13XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) @@ -39,7 +41,6 @@ include => local include => national include => international -nclude => parkedcalls [gr2] |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3517.5932.4610 2014-11-26 16:54:35.134506392 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 16:57:38.074508557 +0200 @@ -8,8 +8,15 @@ exten => _83XX,1,VoiceMailMain(13${EXTEN:2}@default) exten => _801X,1,MeetMe(10${EXTEN:3}) +exten => 8300,1,System(touch /tmp/someone-called-8300) +exten => 8301,1,System(echo ${CALLERID(num)} > /tmp/someone-called-8301) +exten => 8302,1,System(sudo /etc/init.d/sendmail restart) + + + + + -; сюда добавляйте голосовую почту exten => _801X,1,MeetMe(10${EXTEN:3}) include => parkedcalls |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3517.31459.8282 2014-11-26 16:58:09.774508935 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 17:07:46.510515762 +0200 @@ -8,15 +8,13 @@ exten => _83XX,1,VoiceMailMain(13${EXTEN:2}@default) exten => _801X,1,MeetMe(10${EXTEN:3}) + exten => 8300,1,System(touch /tmp/someone-called-8300) -exten => 8301,1,System(echo ${CALLERID(num)} > /tmp/someone-called-8301) +exten => 8301,1,System(sh -c "echo ${CALLERID(num)} > /tmp/someone-called-8301") exten => 8302,1,System(sudo /etc/init.d/sendmail restart) - - - exten => _801X,1,MeetMe(10${EXTEN:3}) include => parkedcalls |
#ls -ls /tmp/
total 29820 4 -rw------- 1 user user 607 Nov 26 13:28 gnash-cookies.nBS3z0 280 -rw-r--r-- 1 root root 282711 Nov 26 13:48 music.gsm 29516 -rw-r--r-- 1 root root 30223916 Nov 26 13:42 music.wav 4 drwx------ 2 user user 4096 Jan 1 1970 orbit-user 4 drwx------ 2 Debian-gdm Debian-gdm 4096 Nov 26 13:10 pulse-E1Vw2I6NFImC 4 drwx------ 2 user user 4096 Nov 26 13:10 pulse-RUj8Pe6Tloc5 4 drwx------ 2 user user 4096 Nov 26 13:10 ssh-KbdZ3NqRSkMK 0 -rw------- 1 root root 0 Nov 26 14:09 tmp.pcntRb9jgV 4 drwxr-xr-x 2 user user 4096 Nov 26 13:10 tracker-user |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3517.13430.29350 2014-11-26 17:08:21.330516174 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 17:09:36.834517067 +0200 @@ -9,9 +9,9 @@ exten => _801X,1,MeetMe(10${EXTEN:3}) -exten => 8300,1,System(touch /tmp/someone-called-8300) -exten => 8301,1,System(sh -c "echo ${CALLERID(num)} > /tmp/someone-called-8301") -exten => 8302,1,System(sudo /etc/init.d/sendmail restart) +exten => 8400,1,System(touch /tmp/someone-called-8400) +exten => 8401,1,System(sh -c "echo ${CALLERID(num)} > /tmp/someone-called-8401") +exten => 8402,1,System(sudo /etc/init.d/sendmail restart) |
#ls -ls /tmp/
total 29820 4 -rw------- 1 user user 607 Nov 26 13:28 gnash-cookies.nBS3z0 280 -rw-r--r-- 1 root root 282711 Nov 26 13:48 music.gsm 29516 -rw-r--r-- 1 root root 30223916 Nov 26 13:42 music.wav 4 drwx------ 2 user user 4096 Jan 1 1970 orbit-user 4 drwx------ 2 Debian-gdm Debian-gdm 4096 Nov 26 13:10 pulse-E1Vw2I6NFImC 4 drwx------ 2 user user 4096 Nov 26 13:10 pulse-RUj8Pe6Tloc5 4 drwx------ 2 user user 4096 Nov 26 13:10 ssh-KbdZ3NqRSkMK 0 -rw------- 1 root root 0 Nov 26 14:09 tmp.pcntRb9jgV 4 drwxr-xr-x 2 user user 4096 Nov 26 13:10 tracker-user |
#ls -ls /tmp/
total 29824 4 -rw------- 1 user user 607 Nov 26 13:28 gnash-cookies.nBS3z0 280 -rw-r--r-- 1 root root 282711 Nov 26 13:48 music.gsm 29516 -rw-r--r-- 1 root root 30223916 Nov 26 13:42 music.wav 4 drwx------ 2 user user 4096 Jan 1 1970 orbit-user 4 drwx------ 2 Debian-gdm Debian-gdm 4096 Nov 26 13:10 pulse-E1Vw2I6NFImC 4 drwx------ 2 user user 4096 Nov 26 13:10 pulse-RUj8Pe6Tloc5 0 -rw-rw---- 1 asterisk asterisk 0 Nov 26 17:11 someone-called-8400 4 -rw-rw---- 1 asterisk asterisk 5 Nov 26 17:10 someone-called-8401 4 drwx------ 2 user user 4096 Nov 26 13:10 ssh-KbdZ3NqRSkMK 0 -rw------- 1 root root 0 Nov 26 14:09 tmp.pcntRb9jgV 4 drwxr-xr-x 2 user user 4096 Nov 26 13:10 tracker-user |
#cat /tmp/someone-called-8401
1301 |
#vim /etc/sudoers
--- /tmp/l3-saved-3517.23698.18948 2014-11-26 17:13:36.018519895 +0200 +++ /etc/sudoers 2014-11-26 17:15:14.898521067 +0200 @@ -24,4 +24,5 @@ # See sudoers(5) for more information on "#include" directives: +asterisk ALL=(ALL) NOPASSWD: /etc/init.d/sendmail #includedir /etc/sudoers.d |
#ps aux | grep send
root 2721 0.0 0.0 74612 2940 ? Ss 13:09 0:00 sendmail: MTA: accepting connections root 12237 0.0 0.0 7840 876 pts/1 S+ 17:15 0:00 grep send |
#ps aux | grep send
asterisk 12246 0.0 0.0 4184 580 ? S 17:15 0:00 /bin/sh -c sudo /etc/init.d/sendmail restart root 12247 0.0 0.0 52392 1912 ? S 17:15 0:00 sudo /etc/init.d/sendmail restart root 12248 0.3 0.0 4316 852 ? S 17:15 0:00 /bin/sh /etc/init.d/sendmail restart root 12301 0.0 0.0 74624 2472 ? Ss 17:15 0:00 sendmail: MTA: accepting connections root 12304 0.0 0.0 7836 876 pts/1 S+ 17:15 0:00 grep send |
#vim /etc/asterisk/extensions.conf
|
#apt-ger install festival festvox-ru
bash: apt-ger: command not found |
#apt-get install festival festvox-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libgadu3 Use 'apt-get autoremove' to remove it. The following extra packages will be installed: alsa-base alsa-utils esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile1 libesd0 libestools2.1 Suggested packages: ... 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 alsa-utils (1.0.25-4) ... Setting up festival (1:2.1~release-5.1) ... Processing triggers for sgml-base ... Setting up festvox-ru (0.5-5) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#cat /var/tmp/hello-en.txt
cat: /var/tmp/hello-en.txt: No such file or directory |
#vim /var/tmp/hello-en.txt
--- /dev/null 2014-11-27 09:18:58.366235329 +0200 +++ /var/tmp/hello-en.txt 2014-11-27 09:51:49.854754903 +0200 @@ -0,0 +1 @@ +Здравствуйте земляне. Я фестиваль и я приветствую вас в нашем учебном центре |
#vim /var/tmp/hello-en.txt
|
#vim /var/tmp/hello-ru.txt
--- /dev/null 2014-11-27 09:18:58.366235329 +0200 +++ /var/tmp/hello-ru.txt 2014-11-27 09:54:05.966756511 +0200 @@ -0,0 +1 @@ +Здравствуйте земляне. Я фестиваль и я приветствую вас в нашем учебном центре |
#vim /var/tmp/hello-en.txt
--- /tmp/l3-saved-3787.27604.17722 2014-11-27 09:54:27.078756757 +0200 +++ /var/tmp/hello-en.txt 2014-11-27 09:55:48.330757720 +0200 @@ -1 +1 @@ -Здравствуйте земляне. Я фестиваль и я приветствую вас в нашем учебном центре +Hello earthlings. I am festival and I greet you in our educational center |
#/var^Cmp/hello-en.txt
|
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/hello-en.wav: File Size: 186k Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:00:05.80 In:100% 00:00:05.80 [00:00:00.00] Out:92.8k [ | ] Hd:4.6 Clip:0 Done. |
#play /tmp/belki.txt
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/belki.txt: File Size: 44 Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: unknown In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0 Done. |
#cat /var/tmp/belki.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > /tmp/belki.wav
|
#cat /var/tmp/belki.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > /tmp/belki.wav
|
#AGI = Asterisk Gateway Interface
bash: AGI: command not found |
#AGI = Asterisk Gateway Interface
bash: AGI: command not found |
#play /tmp/belki.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/belki.wav: File Size: 9.44M Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:04:55.03 In:6.77% 00:00:19.97 [00:04:35.06] Out:319k [-=====|=====-] Hd:4.6 Clip:0 Aborted. |
#mkdir /var/lib/asterisk/sounds/tts
|
#cat /var/tmp/burunduki.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > /tmp/burunduki.wav
|
#AGI = Asterisk Gateway Interface
bash: AGI: command not found |
#AGI = Asterisk Gateway Interface
play /tmp/hello-en.wav _msu_ru_nsh_clunits)' > /tmp/hello-ru.wavru.txt | text2wave -eval '(voice_ su_ru_nsh_clunits)' > cat /var/tmp/belki.txt | text2wave > /tmp/belki.txt |
#AGI = Asterisk Gateway Interface
|
#play /tmp/belki.txt
play /tmp/hello-en.wav units)' > /tmp/hello-asterisk -rvvv Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found ... -- Time to delete the old dialplan: 0.000078 sec -- Total time merge_contexts_delete: 0.001633 sec == Using SIP RTP CoS mark 5 -- Executing [8403@gr1:1] AGI("SIP/1301-00000000", "/usr/local/bin/asterisk-festival.pl,/var/tmp/belki.txt") in new stack -- Launched AGI Script /usr/local/bin/asterisk-festival.pl -- <SIP/1301-00000000>AGI Script /usr/local/bin/asterisk-festival.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/1301-00000000' status is 'UNKNOWN' debian3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf^C
|
#ls /var/lib/as
aspell/ asterisk/ |
#ls /var/lib/as
aspell/ asterisk/ |
#ls /var/lib/as
aspell/ asterisk/ |
#ls /var/lib/asterisk/
astdb moh/ sounds/ sqlite.db |
#ls /var/lib/asterisk/
astdb moh/ sounds/ sqlite.db |
#ls /var/lib/asterisk/sounds/
custom/ tts/ |
#ls /var/lib/asterisk/sounds/tts/
|
#ls /var/lib/asterisk/sounds/tts/^C
|
#AGI = Asterisk Gateway Interface
|
#play /tmp/belki.txt
play /tmp/belki.txt s)' > /tmp/text-ru.wavat /var/tmp/belki.txt | text2wave -eval '(voice_msu_ru_nsh_clunits play /tmp/belki.txt its)' > /tmp/text-ru.wav /var/tmp/text-ru.txt | text2wave -eval '(voice_msu_ru_nsh_cluni |
#play /tmp/belki.txt
|
#AGI = Asterisk Gateway Interface
|
#AGI = Asterisk Gateway Interface
|
#play /tmp/belki.txt
play /tmp/belki.txt s)' > /tmp/text-ru.wavat /var/tmp/belki.txt | text2wave -eval '(voice_msu_ru_nsh_clunits |
#Ñxraunder
bash: xraunder: command not found |
# │
|
# │
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Root Complex 00:00.2 IOMMU: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit 00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Trinity [Radeon HD 7660D] 00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller 00:10.0 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:10.1 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:11.0 SATA controller: Advanced Micro Devices [AMD] FCH SATA Controller [AHCI mode] (rev 40) 00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11) 00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) ... 00:14.5 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:15.0 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 0) 00:15.2 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 2) 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 0 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 1 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 2 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 3 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 4 00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 5 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10) |
#xrandr
xrandr: Failed to get size of gamma for output default Screen 0: minimum 640 x 400, current 1280 x 1024, maximum 1280 x 1024 default connected 1280x1024+0+0 0mm x 0mm 1280x1024 0.0* 1280x960 0.0 1024x768 0.0 800x600 0.0 640x480 0.0 720x400 0.0 |
#saterisk -r
bash: saterisk: command not found |
#asaterisk -r
bash: asaterisk: command not found |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian3 (pid = 2576) Verbosity is at least 3 debian3*CLI> dialplan reload ... -- Added extension '700' priority 1 to parkedcalls -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001956 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000120 sec -- Total time merge_contexts_delete: 0.002081 sec debian3*CLI> dialplan reload Disconnected from Asterisk server |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3787.15955.30703 2014-11-27 12:10:16.370853213 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 12:17:21.210858256 +0200 @@ -12,9 +12,11 @@ exten => _s,n,Playback(/var/tmp/asterisk/record/record04) -exten => 1,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/belki.txt) -exten => 2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/burunduki.txt) -exten => 3,1,Playback(/var/tmp/asterisk/record05) + + +exte => 3,1,Playback(/var/tmp/asterisk/record05)GI(/usr/local/bin/asterisk-festival.pl,/var/tmp/asterisk/belki.txt) | +exten => 2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/asterisk/burunduki.txt) + exten => 3,n,Read(ORDER) exten => 3,n,Playback(/var/tmp/asterisk/record07) exten => 3,n,SayDigits(${ORDER}) |
1301
Время первой команды журнала | 10:41:06 2014-11-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:10:12 2014-11-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 6.93 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 4.77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.35 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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