/l3/users/2014-11-nt-voip/nt-voip/debian2/root :1 :2 :3 :4 :5 :6 :7 |
|
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-13021.13608.6739 2014-11-26 15:44:59.313910535 +0200 +++ /etc/asterisk/sip.conf 2014-11-26 15:45:48.789911122 +0200 @@ -10,6 +10,7 @@ context=gr1 mailbox=1201@default language=ru +callgroup=1 pickupgroup=1 [1202] @@ -19,6 +20,7 @@ context=gr1 language=de mailbox=1202@default +callgroup=1 pickupgroup=1 |
#vi /etc/asterisk/features.conf
--- /tmp/l3-saved-13021.6781.14618 2014-11-26 15:46:10.565911384 +0200 +++ /etc/asterisk/features.conf 2014-11-26 15:48:24.597912965 +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 = *8 ; 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/sip.conf
|
#include=>international
[ был]пробел после подчёркивания [ ] [xten => ]83XX,1,VoiceMailMain(12${EXTEN:2}@default) [ ] exten => _801X,1,MeetMe(10${EXTEN:3}) Y-%m-%d-%H:%M:%S")}) exten => _12XX,n,Monitor(wav,${CALLFILENAME},m) exten => _12XX,n,Dial(SIP/${EXTEN},5) exten => _12XX,n,VoiceMail(${EXTEN}@default) exten => _1291,1,NoOp(Conferences for external users) exten => _1291,n,MeetMe(10${EXTEN:3}) [national]risk/extensions.conf" 55L, 1207C exten=> _11XX,1,Dial(SIP/kiev/${EXTEN}) exten => _12XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%% [international] exten=> _[123][123]XX,1,Dial(SIP/kiev/${EXTEN}) [gr1] include=>internal include=>local include=>national include=>international 15,0-1 Top |
#[local]
include=>national include=>international [gr2] include=>internal include=>local include=>national [gr3] include=>internal include=>local [gr4] include => internal include => local include => national include => international |
#~
[ ] [xten => ]83XX,1,VoiceMailMain(12${EXTEN:2}@default) [ ] exten => _801X,1,MeetMe(10${EXTEN:3}) Y-%m-%d-%H:%M:%S")}) exten => _12XX,n,Monitor(wav,${CALLFILENAME},m) exten => _12XX,n,Dial(SIP/${EXTEN},5) [local]> _12XX,n,VoiceMail(${EXTEN}@default) [local] exten => _1291,1,NoOp(Conferences for external users) exten => _1291,n,MeetMe(10${EXTEN:3}) [national]risk/extensions.conf" 55L, 1207C exten=> _11XX,1,Dial(SIP/kiev/${EXTEN}) exten => _12XX,1,Setl(ALLF${EXTEN},30) [international] exten=> _[123][123]XX,1,Dial(SIP/kiev/${EXTEN}) [gr1] include=>internal include=>local include=>national "/etc/asterisk/extensions.conf" 55L, 1208C written |
#vim /etc/asterisk/extensions.conf
|
#include=>international
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 debian2 (pid = 22881) ... -- <SIP/1201-000000b6> Playing 'digits/5.gsm' (language 'ru') -- Executing [3@menu:5] Playback("SIP/1201-000000b6", "/var/tmp/asterisk/record10") in new stack -- <SIP/1201-000000b6> Playing '/var/tmp/asterisk/record10.gsm' (language 'ru') -- Auto fallthrough, channel 'SIP/1201-000000b6' status is 'UNKNOWN' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes debian2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi /etc/asterisk/features.conf
|
#;comebacktoorigin = yes ; Setting this option configures the behavior of call parking
; ; (Note: Leading '0's and any non-numerical characters on parkpos extensions ; will be ignored. Parkext on the other hand can be any string.) ; ;[parkinglot_edvina] ;context => edvinapark ;parkext => 799 ;parkpos => 800-850 ;findslot => next ; Note that the DTMF features listed below only work when two channels have answered and are bb ... or k option in the Dial() app call!ark call (one step parking) -- Make sure to set the K and// the X and/or x option in the Dial() or Queue() app call! Touch MixMonitor -- Make sure to sett [applicationmap] ; Note that the DYNAMIC_FEATURES channel variable must be set to use the features ; defined here. The value of DYNAMIC_FEATURES should be the names of the features ; to allow the channel to use separated by '#'. For example: 128,0-1 61% ; ; Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3) ; ; (Note: The two leading underscores allow these feature settings to be set on |
#[ ]
; ; Sample Call Features (parking, transfer, etc) configuration ; [general] ; ; Sample Call Features (parking, transfer, etc) configuration ; ; will only access this parking lot. (default is no) [general] parkpos => 701-720 ; These need to be numeric, as Asterisk starts from the start position ... ; defined here. The value of DYNAMIC_FEATURES should be the names of the features ; to allow the channel to use separated by '#'. For example:#) -- Make sure to set the T and/or t option in the Dial() or Queue() app caa ; "/etc/asterisk/features.conf" 202L, 13690C written ; Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3) ; ; (Note: The two leading underscores allow these feature settings to be set on ; on the outbound channels, as well. Otherwise, only the original channel ; will have access to these features.) ; |
#vi /etc/asterisk/features.conf
|
#vi /etc/asterisk/extensions.conf
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-13021.18755.7208 2014-11-26 16:39:03.297948932 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 16:39:45.441949434 +0200 @@ -24,7 +24,7 @@ exten => _12XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) exten => _12XX,n,Monitor(wav,${CALLFILENAME},m) -exten => _12XX,n,Dial(SIP/${EXTEN},30,tT) +exten => _12XX,n,Dial(SIP/${EXTEN},30,tTkK) exten => _12XX,n,VoiceMail(${EXTEN}@default) |
#vi /etc/asterisk/extensions.conf
|
#vi /etc/asterisk/extensions.conf
|
#recording
^[[B^[[B^[[B^[[B quit ^[^[exit ^[quit ^C |
#ls /tmp/
music.gsm orbit-user pulse-z41qPVTxaHtG someone-called-8301 tracker-user music.wav pulse-c82mH4n1Tooo someone-called-8300 ssh-PYMiyoHJvHiw |
#ls /tmp/someone-called-8301
/tmp/someone-called-8301 |
#{EXTEN})
|
#ps aux | grep send
root 10572 0.0 0.0 74624 2968 ? Ss Nov25 0:02 sendmail: MTA: accepting connections root 25082 0.0 0.0 7840 868 pts/7 S+ 17:18 0:00 grep send |
#ps aux | grep send
root 25146 0.0 0.0 74616 2540 ? Ss 17:19 0:00 sendmail: MTA: accepting connections root 25159 0.0 0.0 7836 872 pts/7 S+ 17:19 0:00 grep send |
#[ ]
Reading package lists... Done Building dependency tree Reading state information... Done 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: alsa-oss oss-compat pidgin-festival festival-freebsoft-utils pulseaudio-esound-compat The following NEW packages will be installed: alsa-base alsa-utils esound-common festival festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile1 ... 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 alsa-utils (1.0.25-4) ... 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-get install festival festvox-ru
Reading package lists... Done Building dependency tree Reading state information... Done festival is already the newest version. 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. Do you want to continue [Y/n]? y Get:1 http://192.168.12.254/debian/ wheezy/main festvox-ru all 0.5-5 [196 MB] Fetched 196 MB in 1min 29s (2,175 kB/s) Selecting previously unselected package festvox-ru. (Reading database ... 142702 files and directories currently installed.) Unpacking festvox-ru (from .../festvox-ru_0.5-5_all.deb) ... Setting up festvox-ru (0.5-5) ... |
#cat /var/tmp/hello-en.txt
cat: /var/tmp/hello-en.txt: No such file or directory |
#vi /var/tmp/hello-en.txt
|
#cpall /var/tmp/burunduki.txt /var/tmp/
bash: cpall: command not found |
#cat /var/tmp/text-en.txt | text2wave > /tmp/text-en.wav
cat: /var/tmp/text-en.txt: No such file or directory |
#play /tmp/text-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/text-en.wav: 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/text-ru.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > /tmp/text-ru.wav
cat: /var/tmp/text-ru.txt: No such file or directory |
#play /tmp/
.ICE-unix/ orbit-user/ pulse-z41qPVTxaHtG/ ssh-PYMiyoHJvHiw/ tracker-user/ music.gsm plugtmp/ someone-called-8300 text-en.wav .X0-lock music.wav pulse-c82mH4n1Tooo/ someone-called-8301 text-ru.wav .X11-unix/ |
#play /tmp/
.ICE-unix/ orbit-user/ pulse-z41qPVTxaHtG/ ssh-PYMiyoHJvHiw/ tracker-user/ music.gsm plugtmp/ someone-called-8300 text-en.wav .X0-lock music.wav pulse-c82mH4n1Tooo/ someone-called-8301 text-ru.wav .X11-unix/ |
#play /tmp/text-ru
play WARN alsa: can't encode 0-bit Unknown or not applicable play FAIL formats: can't open input file `/tmp/text-ru': No such file or directory |
#play /tmp/text-ru.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/text-ru.wav: 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. |
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/hello-en.wav: File Size: 427k Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:00:13.34 In:100% 00:00:13.34 [00:00:00.00] Out:213k [ | ] Hd:1.1 Clip:0 Done. |
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/hello-en.wav: File Size: 427k Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:00:13.34 In:100% 00:00:13.34 [00:00:00.00] Out:213k [ | ] Hd:1.1 Clip:0 Done. |
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/hello-en.wav: File Size: 427k Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:00:13.34 In:100% 00:00:13.34 [00:00:00.00] Out:213k [ | ] Hd:1.1 Clip:0 Done. |
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/hello-en.wav: File Size: 427k Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:00:13.34 In:100% 00:00:13.34 [00:00:00.00] Out:213k [ | ] Hd:1.1 Clip:0 Done. |
#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 (2,554 kB/s) Selecting previously unselected package libasterisk-agi-perl. (Reading database ... 144668 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) ... |
#mkdir /var/lib/asterisk/sounds/tts
|
#chown asterisk:asterisk /var lib/asterisk/sounds/tts
chown: cannot access `lib/asterisk/sounds/tts': No such file or directory |
#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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian2 (pid = 22881) ... == Using SIP RTP CoS mark 5 -- Executing [8404@gr1:1] AGI("SIP/1201-000000a7", "/usr/local/bin/asterisk-festival.pl,/var/tmp/burunduki.txt") in new stack -- Launched AGI Script /usr/local/bin/asterisk-festival.pl -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-7726ca6e8145e83a1ac38cadb9e05613) -- <SIP/1201-000000a7> Playing '/var/lib/asterisk/sounds/tts/tts-7726ca6e8145e83a1ac38cadb9e05613.slin' (language 'ru') -- <SIP/1201-000000a7>AGI Script /usr/local/bin/asterisk-festival.pl completed, returning 4 == Spawn extension (gr1, 8404, 1) exited non-zero on 'SIP/1201-000000a7' debian2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#cd /tmp/
|
#ls -la
total 35272 drwxrwxrwt 10 root root 4096 Nov 27 11:00 . drwxr-xr-x 23 root root 4096 Nov 23 12:15 .. -rw-r--r-- 1 root root 426936 Nov 27 10:05 hello-en.wav drwxrwxrwt 2 root root 4096 Nov 25 09:25 .ICE-unix -rw-r--r-- 1 root root 330165 Nov 26 13:38 music.gsm -rw-r--r-- 1 root root 35297324 Nov 26 13:38 music.wav drwx------ 2 user user 4096 Jan 1 1970 orbit-user drwx------ 2 user user 4096 Nov 27 09:57 plugtmp drwx------ 2 user user 4096 Nov 25 09:25 pulse-c82mH4n1Tooo drwx------ 2 Debian-gdm Debian-gdm 4096 Nov 25 09:25 pulse-z41qPVTxaHtG -rw-rw---- 1 asterisk asterisk 0 Nov 26 17:06 someone-called-8300 -rw-rw---- 1 asterisk asterisk 5 Nov 26 17:06 someone-called-8301 drwx------ 2 user user 4096 Nov 25 09:25 ssh-PYMiyoHJvHiw -rw-r--r-- 1 root root 44 Nov 27 10:02 text-en.wav -rw-r--r-- 1 root root 44 Nov 27 10:04 text-ru.wav drwxr-xr-x 2 user user 4096 Nov 25 09:25 tracker-user -r--r--r-- 1 root root 11 Nov 25 09:19 .X0-lock drwxrwxrwt 2 root root 4096 Nov 25 09:19 .X11-unix |
#play t
text-en.wav text-ru.wav tracker-user/ |
#play text-
text-en.wav text-ru.wav |
#play text-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable text-en.wav: 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. |
#lspci
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 RAID bus controller: Advanced Micro Devices [AMD] FCH SATA Controller [RAID 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) |
#lsmod
Module Size Used by dahdi 191056 0 crc_ccitt 12347 1 dahdi bnep 17567 2 rfcomm 33700 0 bluetooth 119455 10 rfcomm,bnep binfmt_misc 12957 1 nfsd 216181 2 nfs 308353 0 nfs_acl 12511 2 nfs,nfsd ... ahci 24997 3 libahci 22941 1 ahci ehci_hcd 40249 0 tg3 119064 0 libphy 19057 1 tg3 xhci_hcd 73413 0 libata 140630 2 libahci,ahci scsi_mod 162321 4 libata,sr_mod,sd_mod,sg usbcore 128741 5 xhci_hcd,ehci_hcd,ohci_hcd,usbhid usb_common 12354 1 usbcore |
#vi /etc/asterisk/extensions.conf
|
# │
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 RAID bus controller: Advanced Micro Devices [AMD] FCH SATA Controller [RAID 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) |
#{EXTEN}@default)
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 |
#lsmod | grep snd
snd_hda_codec_hdmi 30824 1 snd_hda_intel 43205 1 snd_hda_codec 78031 2 snd_hda_intel,snd_hda_codec_hdmi snd_hwdep 13186 1 snd_hda_codec snd_pcm 68083 3 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi snd_page_alloc 13003 2 snd_pcm,snd_hda_intel snd_timer 22917 1 snd_pcm snd 52893 6 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi soundcore 13065 1 snd |
#rmmod snd_hda_intel
Error: Module snd_hda_intel is in use |
#rmmod snd_hda_hdmi
Error: Module snd_hda_hdmi is not currently loaded |
#rmmod snd_hda_code_hdmi
Error: Module snd_hda_code_hdmi is not currently loaded |
#rmmod snd_hda_codec_hdmi
Error: Module snd_hda_codec_hdmi is in use |
#alsamixer
|
#alsamixer
cannot open mixer: No such file or directory |
#less /var/log/messages
|
## azx_acquire
|
#lspci | grep Audio
00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller 00:14.2 Audio device: Advanced Micro Devices [AMD] FCH Azalia Controller (rev 01) |
#uptime
11:28:09 up 2 days, 2:11, 8 users, load average: 2.14, 2.58, 2.59 |
#grep Record /etc/asterisk/extensions.conf
exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) |
#less /var/log/messages
|
#play /tmp/music.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable play FAIL formats: can't open input file `/tmp/music.gsm': No such file or directory |
#play
.aptitude/ asterisk-core-sounds-ru-gsm-current.tar.gz .asterisk_history .bash_history .bash_profile .bashrc .cache/ .config/ .dbus/ .gconf/ .l3rc .lilalo/ Mail/ .profile .pulse/ .pulse-cookie .rnd .ssh/ .viminfo |
#play
.aptitude/ asterisk-core-sounds-ru-gsm-current.tar.gz .asterisk_history .bash_history .bash_profile .bashrc .cache/ .config/ .dbus/ .gconf/ .l3rc .lilalo/ Mail/ .profile .pulse/ .pulse-cookie .rnd .ssh/ .viminfo |
#play /path/to/a/gsm/file/gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable play FAIL formats: can't open input file `/path/to/a/gsm/file/gsm': No such file or directory |
#play /tmp/
.ICE-unix/ pulse-s5QBhARxCeYi/ .X0-lock pulse-Eev3SbdyUVjS/ ssh-jh7YzsOiBnnv/ .X11-unix/ pulse-PKdhtXMmr18n/ tracker-user/ |
#play /var/
backups/ games/ local/ log/ opt/ spool/ cache/ lib/ lock/ mail/ run/ tmp/ |
#play /var/tmp/
asterisk/ belki.txt burunduki.txt hello-en.txt hello-ru.txt |
#play /var/tmp/asterisk/record
record01.gsm record03.gsm record05.gsm record07.gsm record09.gsm record02.gsm record04.gsm record06.gsm record08.gsm record10.gsm |
#play /var/tmp/asterisk/record01.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record01.gsm: File Size: 8.25k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:05.00 [00:00:00.00] Out:40.0k [ | ] Clip:0 Done. |
#play /var/tmp/asterisk/record01.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record01.gsm: File Size: 8.25k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:05.00 [00:00:00.00] Out:40.0k [ | ] Clip:0 Done. |
#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 debian2 (pid = 2691) ... No such command 'databaseget example a' (type 'core show help databaseget example' for other possible commands) debian2*CLI> dat data database debian2*CLI> data No such command 'data' (type 'core show help data' for other possible commands) debian2*CLI> file /var/lib/asterisk/astdb No such command 'file /var/lib/asterisk/astdb' (type 'core show help file /var/lib/asterisk/astdb' for other possible commands) debian2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rx "database order 10
> > ^C |
#asterisk -rx "database put order 1 9"
Updated database successfully |
#asterisk -rx "database order 2 10"
No such command 'database order 2 10' (type 'core show help database order 2' for other possible commands) |
#asterisk -rx "database order 10
> ^C |
#asterisk -rx "database order 2 10"
No such command 'database order 2 10' (type 'core show help database order 2' for other possible commands) |
#asterisk -rx "database order 2 10"
No such command 'database order 2 10' (type 'core show help database order 2' for other possible commands) |
#asterisk -rx "database put order 2 10"
Updated database successfully |
#asterisk -rx 'database get order 6'
Database entry not found. |
#asterisk -rx 'database get order 6'
Value: 9 |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3989.28024.1676 2014-11-27 14:04:37.423227401 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:13:14.039238260 +0200 @@ -20,8 +20,12 @@ exten => 3,n,Playback(/var/tmp/asterisk/record07) exten => 3,n,SayDigits(${ORDER}) +exten => 3,n,GotoIf($[${DB(order/${ORDER})} = ""]?unknown_order) exten => 3,n,Playback(/var/tmp/asterisk/record${DB(order/${ORDER})}) +exten => 3,n,Hangup | +exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record10) + exten => 4,1,Queue(queue1) exten => 0,1,Goto(s,start) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3989.26291.32700 2014-11-27 14:16:14.231242053 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:17:32.951243709 +0200 @@ -20,7 +20,7 @@ exten => 3,n,Playback(/var/tmp/asterisk/record07) exten => 3,n,SayDigits(${ORDER}) -exten => 3,n,GotoIf($[${DB(order/${ORDER})} = ""]?unknown_order) +exten => 3,n,GotoIf($["${DB(order/${ORDER})}" = ""]?unknown_order) exten => 3,n,Playback(/var/tmp/asterisk/record${DB(order/${ORDER})}) exten => 3,n,Hangup | exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record10) |
#vim /etc/asterisk/extensions.conf
|
#asterisk -rx 'database get order 6'
[menu] exten => s,1,Answer exten => s,n,Background(/var/tmp/asterisk/record01) exten => s,n,WaitExten(1) exten => s,n,Background(/var/tmp/asterisk/record02) exten => s,n,WaitExten(3) exten => s,n,Background(/var/tmp/asterisk/record03) exten => s,n,WaitExten(3) exten => s,n,Background(/var/tmp/asterisk/record04) exten => s,n,Hangup ... [internal],1,Playback(/var/tmp/asterisk/record06) include=>parkedcallsen(2) exten => i,n,Goto(s,start)B(order/${ORDER})}" = ""]?unknown_order) exten => 3,n,Playback(/var/tmp/asterisk/record${DB(order/${ORDER})}) exten => 3,n,Hangup | exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) [ ] [xten =>]_81XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2}) exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) 2,1 Top |
#[menu]
vvv 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 ... -- Executing [3@menu:4] SayDigits("SIP/1201-00000013", "4") in new stack -- <SIP/1201-00000013> Playing 'digits/4.gsm' (language 'ru') -- Executing [3@menu:5] GotoIf("SIP/1201-00000013", "0?unknown_order") in new stack -- Executing [3@menu:6] Playback("SIP/1201-00000013", "/var/tmp/asterisk/record10") in new stack -- <SIP/1201-00000013> Playing '/var/tmp/asterisk/record10.gsm' (language 'ru') [Nov 27 14:27:33] WARNING[5377]: pbx.c:4466 pbx_extension_helper: No application 'Hangup |' for extension (menu, 3, 7) == Spawn extension (menu, 3, 7) exited non-zero on 'SIP/1201-00000013' debian2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
|
Время первой команды журнала | 14:43:03 2014-11-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:28:46 2014-11-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 4.53 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.37 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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