/l3/users/sdg/asterisk/linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) 03:00.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) 03:01.0 Ethernet controller: Digium, Inc. Wildcard TDM800P 8-port analog card (rev 11) |
#ф
|
#alsamixer
![]() aa Playback [Capture] Front Mic Boost lqqk lqqk lqqk lqqk lqqk x x x x xaa x x x xaa x x x xaa x x x xaa x x x xaa aa ... xaax aa aa xaax aa aa Mic Mic xaax xaax xaax mqqj mqqj mqqj mqqj mqqj 68 68 71<>71 71<>71 67<>67 Center LFE Line CD Mic Mic Boos IEC958 IEC958 D PC Speak <Channel > aa 3 3<>3 3<>3 aa aa |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3502.20286.27788 2010-03-18 09:53:23.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-18 09:57:37.000000000 +0200 @@ -18,6 +18,10 @@ exten => 4000,n,Playback(demo-congrats) exten => 4000,n,Hangup +exten => _41XX,1,Answer +exten => _41XX,n,Wait(1) +exten => _41XX,n,Record(/tmp/message${EXTEN:2}:gsm,2) + exten => 4700,1,VoicemailMain() exten => _40XXXXX,1,Answer |
#less /etc/asterisk/sip.conf
|
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux2 (pid = 2641) Verbosity was 0 and is now 1 linux2*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- <SIP/201-081bac68> Playing 'vm-onefor' (language 'ru') == Spawn extension (group3, 4700, 1) exited non-zero on 'SIP/201-081bac68' [Mar 18 10:07:01] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 linux2*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/sip_notify.conf': Found linux2*CLI> quit Executing last minute cleanups |
#ls -l /tmp/message*
-rw-r----- 1 asterisk asterisk 6534 Мар 18 10:00 /tmp/message01.gsm -rw-r----- 1 asterisk asterisk 7557 Мар 18 09:59 /tmp/message02.gsm -rw-r----- 1 asterisk asterisk 7194 Мар 18 10:03 /tmp/message99.gsm |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-3502.32590.16014 2010-03-18 10:08:26.000000000 +0200 +++ /etc/asterisk/sip.conf 2010-03-18 10:08:33.000000000 +0200 @@ -26,7 +26,7 @@ allow=gsm ; GSM consumes far less bandwidth than ulaw allow=ulaw allow=alaw -mailbox=021@default +mailbox=201@default [202] |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [4700@group3:1] VoiceMailMain("SIP/201-081bac68", "") in new stack -- <SIP/201-081bac68> Playing 'vm-login' (language 'ru') [Mar 18 10:10:01] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 -- <SIP/201-081bac68> Playing 'vm-password' (language 'ru') -- <SIP/201-081bac68> Playing 'vm-youhave' (language 'ru') linux2*CLI> -- <SIP/201-081bac68> Playing 'digits/odno' (language 'ru') -- <SIP/201-081bac68> Playing 'vm-novoe' (language 'ru') linux2*CLI> quit Executing last minute cleanups |
#rlwrap asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- <SIP/201-081bac68> Playing 'digits/p-m' (language 'ru') -- <SIP/201-081bac68> Playing '/var/spool/asterisk/voicemail/default/201/INBOX/msg0000' (language 'ru') linux2*CLI> linux2*CLI> -- <SIP/201-081bac68> Playing 'vm-advopts' (language 'ru') -- <SIP/201-081bac68> Playing 'vm-repeat' (language 'ru') == Spawn extension (group3, 4700, 1) exited non-zero on 'SIP/201-081bac68' linux2*CLI> linux2*CLI> quit Executing last minute cleanups |
#ls -l /tmp/
итого 344 -rw-r----- 1 asterisk asterisk 144044 Мар 18 10:17 02-NaVM-in.wav -rw-r----- 1 asterisk asterisk 143084 Мар 18 10:17 02-NaVM-out.wav drwx------ 3 user2 user2 4096 Мар 18 09:46 gconfd-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 keyring-MbUn47 -rw-r--r-- 1 root root 2219 Мар 18 10:16 l3-saved-3129.9305.6505 -rw-r--r-- 1 root root 2032 Мар 18 10:14 l3-saved-4468.13289.8530 srwxr-xr-x 1 user2 user2 0 Мар 18 09:46 mapping-user2 -rw-r----- 1 asterisk asterisk 6534 Мар 18 10:00 message01.gsm -rw-r----- 1 asterisk asterisk 7557 Мар 18 09:59 message02.gsm -rw-r----- 1 asterisk asterisk 7194 Мар 18 10:03 message99.gsm drwx------ 2 user2 user2 4096 Мар 18 09:51 orbit-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 seahorse-BTDBIo drwx------ 2 user2 user2 4096 Мар 18 09:46 virtual-user2.dwvWFy |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Mar 18 11:52:05] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 [Mar 18 11:55:05] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 [Mar 18 11:58:05] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 [Mar 18 12:01:06] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 [Mar 18 12:04:06] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 [Mar 18 12:07:06] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 [Mar 18 12:10:06] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 [Mar 18 12:13:06] NOTICE[2685]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 203 linux2*CLI> quit Executing last minute cleanups |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-4468.13289.8530 2010-03-18 10:14:16.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-18 11:26:30.000000000 +0200 @@ -3,6 +3,8 @@ exten => _2XX,1,Answer exten => _2XX,n,Set(ENV(CALLERID)=${CALLERID(all)}) exten => _2XX,n,System(/usr/local/bin/notify ${EXTEN}) +exten => _2XX,n,Set(CALLFILENAME=${EXTEN:1}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) +exten => _2XX,n,Monitor(wav,/tmp/${CALLFILENAME},m) exten => _2XX,n,Dial(SIP/${EXTEN},10) exten => _2XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail) exten => _2XX,n(busy),Playback(vm-isunavail) @@ -18,12 +20,26 @@ exten => 4000,n,Playback(demo-congrats) exten => 4000,n,Hangup +exten => 4001,1,Answer +exten => 4001,n,Wait(1) +;exten => 4001,n,Festival(Host is down) +exten => 4001,n,Festival(Hello from Festival welcome onboard we glad to see you) +exten => 4001,n,Hangup + +exten => 4002,1,Answer +exten => 4002,n,Wait(1) +exten => 4002,n,Festival("sysinfo(loadavg)") +exten => 4002,n,Hangup + exten => _41XX,1,Answer exten => _41XX,n,Wait(1) exten => _41XX,n,Record(/tmp/message${EXTEN:2}:gsm,2) exten => _41XX,n,Playback(/tmp/message${EXTEN:2}) exten => _41XX,n,Hangup +exten => _42XX,n,Dial(SIP/${EXTEN:1}) +exten => _42XX,n,Congestion + exten => 4700,1,VoicemailMain() exten => _40XXXXX,1,Answer |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3129.9305.6505 2010-03-18 10:16:12.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-18 10:17:10.000000000 +0200 @@ -3,7 +3,7 @@ exten => _2XX,1,Answer exten => _2XX,n,Set(ENV(CALLERID)=${CALLERID(all)}) exten => _2XX,n,System(/usr/local/bin/notify ${EXTEN}) -exten => _2XX,n,SetVar(CALLFILENAME=${EXTEN:1}-${STRFTIME(,,NaVM)}) +exten => _2XX,n,Set(CALLFILENAME=${EXTEN:1}-${STRFTIME(,,NaVM)}) exten => _2XX,n,Monitor(wav,/tmp/${CALLFILENAME},m) exten => _2XX,n,Dial(SIP/${EXTEN},10) exten => _2XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail) |
#mplayer /tmp/02-NaVM-in.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /tmp/02-NaVM-in.wav. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... Volume: 100 % A: 7.9 (07.8) of 9.0 (09.0) 0.2% A: 8.9 (08.8) of 9.0 (09.0) 0.2% Exiting... (End of file) |
#mplayer /tmp/02-NaVM-out.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /tmp/02-NaVM-out.wav. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 8.8 (08.7) of 8.0 (08.0) 0.2% Exiting... (End of file) |
#mplayer /tmp/01-NaVM-in.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /tmp/01-NaVM-in.wav. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 6.7 (06.7) of 6.0 (06.0) 0.2% Exiting... (End of file) |
#mplayer /tmp/01-NaVM-out.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /tmp/01-NaVM-out.wav. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 6.7 (06.7) of 6.0 (06.0) 0.2% Exiting... (End of file) |
#alsa
![]() alsa alsaconf alsactl alsamixer |
#alsamixer
Capture [All] Front [dB gain=-3.00, -3.00] +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ :: |::| |::| | | | | | | | | | | | | | | | | | | | | | | | | | | | | :: |::| |::| |::| | | | | | | | | | | | | | | | | | | | | |::| | | | | |::| |::| | | | | | | | | | | | | | | | | | | | | | | |::| | | | | |::| |::| | | | | | | | | | | | | | | | | | | | | | | |::| | | | | |::| |::| | | | | | | | | | | | | | | | | | | | | | | |::| | | | | ... 33<>33 |::| |::| |::| | | | | | | | | | | | | |::| | | | | | | |::| |::| |::| |::| |::| |::| | | | | | | | | | | | | |::| | | | | | | |::| |::| |::| |::| |::| |::| | | | | | | | | | | | | |::| | | | | | | |::| |::| |::| |::| |::| |::| | | | | | | | | | | | | |::| | | | | | | |::| |::| |::| |::| |::| |::| | | | | | | | | | | | | |::| | | | | | | |::| |::| |::| |::| |::| |::| | | | | | | | | | | | | |::| | | | | | | |::| |::| |::| |::| |::| |::| | | | | | | | | | | | | |::| | | | | | | |::| |::| |::| +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ +--+ 2ch +--+ Mic Mic |OO| |OO| |OO| |MM| |MM| |MM| |MM| |MM| |OO| |MM| |MM| |OO| |MM| |
#ls -l /tmp/
итого 556 -rw-r----- 1 asterisk asterisk 103724 Мар 18 10:21 01-NaVM-in.wav -rw-r----- 1 asterisk asterisk 102764 Мар 18 10:21 01-NaVM-out.wav -rw-r----- 1 asterisk asterisk 144044 Мар 18 10:17 02-NaVM-in.wav -rw-r----- 1 asterisk asterisk 143084 Мар 18 10:17 02-NaVM-out.wav drwx------ 3 user2 user2 4096 Мар 18 09:46 gconfd-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 keyring-MbUn47 -rw-r--r-- 1 root root 2032 Мар 18 10:14 l3-saved-4468.13289.8530 srwxr-xr-x 1 user2 user2 0 Мар 18 09:46 mapping-user2 -rw-r----- 1 asterisk asterisk 6534 Мар 18 10:00 message01.gsm -rw-r----- 1 asterisk asterisk 7557 Мар 18 09:59 message02.gsm -rw-r----- 1 asterisk asterisk 7194 Мар 18 10:03 message99.gsm drwx------ 2 user2 user2 4096 Мар 18 09:51 orbit-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 seahorse-BTDBIo drwx------ 2 user2 user2 4096 Мар 18 09:46 virtual-user2.dwvWFy |
#mplayer /tmp/01-NaVM-out.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /tmp/01-NaVM-out.wav. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 6.3 (06.2) of 6.0 (06.0) 0.6% Exiting... (End of file) |
#mplayer /tmp/01-NaVM-in.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /tmp/01-NaVM-in.wav. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 6.3 (06.3) of 6.0 (06.0) 0.3% Exiting... (End of file) |
#ls -l /tmp/
итого 540 -rw-r----- 1 asterisk asterisk 96364 Мар 18 10:26 01-NaVM-in.wav -rw-r----- 1 asterisk asterisk 95084 Мар 18 10:26 01-NaVM-out.wav -rw-r----- 1 asterisk asterisk 144044 Мар 18 10:17 02-NaVM-in.wav -rw-r----- 1 asterisk asterisk 143084 Мар 18 10:17 02-NaVM-out.wav drwx------ 3 user2 user2 4096 Мар 18 09:46 gconfd-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 keyring-MbUn47 -rw-r--r-- 1 root root 2032 Мар 18 10:14 l3-saved-4468.13289.8530 srwxr-xr-x 1 user2 user2 0 Мар 18 09:46 mapping-user2 -rw-r----- 1 asterisk asterisk 6534 Мар 18 10:00 message01.gsm -rw-r----- 1 asterisk asterisk 7557 Мар 18 09:59 message02.gsm -rw-r----- 1 asterisk asterisk 7194 Мар 18 10:03 message99.gsm drwx------ 2 user2 user2 4096 Мар 18 10:23 orbit-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 seahorse-BTDBIo drwx------ 2 user2 user2 4096 Мар 18 09:46 virtual-user2.dwvWFy |
#mplayer /tmp/01-NaVM-in.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /tmp/01-NaVM-in.wav. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 5.9 (05.8) of 6.0 (06.0) 0.2% Exiting... (End of file) |
#cat /etc/asterisk/festival.conf
![]() ; ; Festival Configuration ; [general] ; ; Host which runs the festival server (default : localhost); ; ;host=localhost ; ; Port on host where the festival server runs (default : 1314) ... ; ; Festival command to send to the server. ; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n ; %s is replaced by the desired text to say. The command MUST end with a ; (quit) directive, or the cache handling mechanism will hang. Do not ; forget the \n at the end. ; ;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n ; ; |
#cat /etc/asterisk/festival.conf
; ; Festival Configuration ; [general] ; ; Host which runs the festival server (default : localhost); ; ;host=localhost ; ; Port on host where the festival server runs (default : 1314) ... ; ; Festival command to send to the server. ; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n ; %s is replaced by the desired text to say. The command MUST end with a ; (quit) directive, or the cache handling mechanism will hang. Do not ; forget the \n at the end. ; ;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n ; ; |
#ls -l /tmp/
итого 1000 -rw-r----- 1 asterisk asterisk 19244 Мар 18 10:30 01-2010-03-18-10:30:27-in.wav -rw-r----- 1 asterisk asterisk 18924 Мар 18 10:30 01-2010-03-18-10:30:27-out.wav -rw-r----- 1 asterisk asterisk 59564 Мар 18 10:30 01-2010-03-18-10:30:29-in.wav -rw-r----- 1 asterisk asterisk 58284 Мар 18 10:30 01-2010-03-18-10:30:29-out.wav -rw-r----- 1 asterisk asterisk 23404 Мар 18 10:30 01-2010-03-18-10:30:35-in.wav -rw-r----- 1 asterisk asterisk 23724 Мар 18 10:30 01-2010-03-18-10:30:35-out.wav -rw-r----- 1 asterisk asterisk 117164 Мар 18 10:28 01-2010-03-18-in.wav -rw-r----- 1 asterisk asterisk 116204 Мар 18 10:28 01-2010-03-18-out.wav -rw-r----- 1 asterisk asterisk 96364 Мар 18 10:26 01-NaVM-in.wav ... drwx------ 2 user2 user2 4096 Мар 18 09:46 keyring-MbUn47 -rw-r--r-- 1 root root 2250 Мар 18 10:29 l3-saved-3129.10709.13750 -rw-r--r-- 1 root root 2032 Мар 18 10:14 l3-saved-4468.13289.8530 srwxr-xr-x 1 user2 user2 0 Мар 18 09:46 mapping-user2 -rw-r----- 1 asterisk asterisk 6534 Мар 18 10:00 message01.gsm -rw-r----- 1 asterisk asterisk 7557 Мар 18 09:59 message02.gsm -rw-r----- 1 asterisk asterisk 7194 Мар 18 10:03 message99.gsm drwx------ 2 user2 user2 4096 Мар 18 10:23 orbit-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 seahorse-BTDBIo drwx------ 2 user2 user2 4096 Мар 18 09:46 virtual-user2.dwvWFy |
#ls -l /tmp/
итого 1176 -rw-r----- 1 asterisk asterisk 19244 Мар 18 10:30 01-2010-03-18-10:30:27-in.wav -rw-r----- 1 asterisk asterisk 18924 Мар 18 10:30 01-2010-03-18-10:30:27-out.wav -rw-r----- 1 asterisk asterisk 59564 Мар 18 10:30 01-2010-03-18-10:30:29-in.wav -rw-r----- 1 asterisk asterisk 58284 Мар 18 10:30 01-2010-03-18-10:30:29-out.wav -rw-r----- 1 asterisk asterisk 109164 Мар 18 10:30 01-2010-03-18-10:30:35-in.wav -rw-r----- 1 asterisk asterisk 108204 Мар 18 10:30 01-2010-03-18-10:30:35-out.wav -rw-r----- 1 asterisk asterisk 117164 Мар 18 10:28 01-2010-03-18-in.wav -rw-r----- 1 asterisk asterisk 116204 Мар 18 10:28 01-2010-03-18-out.wav -rw-r----- 1 asterisk asterisk 96364 Мар 18 10:26 01-NaVM-in.wav ... drwx------ 2 user2 user2 4096 Мар 18 09:46 keyring-MbUn47 -rw-r--r-- 1 root root 2250 Мар 18 10:29 l3-saved-3129.10709.13750 -rw-r--r-- 1 root root 2032 Мар 18 10:14 l3-saved-4468.13289.8530 srwxr-xr-x 1 user2 user2 0 Мар 18 09:46 mapping-user2 -rw-r----- 1 asterisk asterisk 6534 Мар 18 10:00 message01.gsm -rw-r----- 1 asterisk asterisk 7557 Мар 18 09:59 message02.gsm -rw-r----- 1 asterisk asterisk 7194 Мар 18 10:03 message99.gsm drwx------ 2 user2 user2 4096 Мар 18 10:23 orbit-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 seahorse-BTDBIo drwx------ 2 user2 user2 4096 Мар 18 09:46 virtual-user2.dwvWFy |
#sox
![]() bash: sox: команда не найдена |
#[local]
[local] exten => _2XX,1,Answer exten => _2XX,n,Set(ENV(CALLERID)=${CALLERID(all)}) exten => _2XX,n,System(/usr/local/bin/notify ${EXTEN}) exten => _2XX,n,Set(CALLFILENAME=${EXTEN:1}-${STRFTIME(${EPOCH},Euro exten => _2XX,n,Monitor(wav,/tmp/${CALLFILENAME},m) exten => _2XX,n,Dial(SIP/${EXTEN},10) [root@linux2:~]# ls -l /tmp/ итого 1176 -rw-r----- 1 asterisk asterisk 19244 Мар 18 10:30 01-2010-03-18-10: ... Выбор ранее не выбранного пакета libsox-fmt-base. Распаковывается пакет libsox-fmt-base (из файла .../libsox-fmt-base_ Выбор ранее не выбранного пакета sox. linux2 18 10:33 0$ asterisk 1-&$ bash 2*&@$bash Распаковывается пакет sox (из файла .../sox_14.0.1-2+b1_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет libsox0 (14.0.1-2+b1) ... Настраивается пакет libsox-fmt-alsa (14.0.1-2+b1) ... Настраивается пакет libsox-fmt-base (14.0.1-2+b1) ... Настраивается пакет sox (14.0.1-2+b1) ... |
#apt-get install sox
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: libsox-fmt-alsa libsox-fmt-base libsox0 Предлагаемые пакеты: libsox-fmt-all НОВЫЕ пакеты, которые будут установлены: libsox-fmt-alsa libsox-fmt-base libsox0 sox обновлено 0, установлено 4 новых пакетов, для удаления отмечено 0 пакетов, и 1 пакетов не обновлено. ... Распаковывается пакет libsox-fmt-alsa (из файла .../libsox-fmt-alsa_14.0.1-2+b1_i386.deb)... Выбор ранее не выбранного пакета libsox-fmt-base. Распаковывается пакет libsox-fmt-base (из файла .../libsox-fmt-base_14.0.1-2+b1_i386.deb)... Выбор ранее не выбранного пакета sox. Распаковывается пакет sox (из файла .../sox_14.0.1-2+b1_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет libsox0 (14.0.1-2+b1) ... Настраивается пакет libsox-fmt-alsa (14.0.1-2+b1) ... Настраивается пакет libsox-fmt-base (14.0.1-2+b1) ... Настраивается пакет sox (14.0.1-2+b1) ... |
#ls -l /tmp/
итого 1376 -rw-r----- 1 asterisk asterisk 19244 Мар 18 10:30 01-2010-03-18-10:30:27-in.wav -rw-r----- 1 asterisk asterisk 18924 Мар 18 10:30 01-2010-03-18-10:30:27-out.wav -rw-r----- 1 asterisk asterisk 59564 Мар 18 10:30 01-2010-03-18-10:30:29-in.wav -rw-r----- 1 asterisk asterisk 58284 Мар 18 10:30 01-2010-03-18-10:30:29-out.wav -rw-r----- 1 asterisk asterisk 109164 Мар 18 10:30 01-2010-03-18-10:30:35-in.wav -rw-r----- 1 asterisk asterisk 108204 Мар 18 10:30 01-2010-03-18-10:30:35-out.wav -rw-rw---- 1 asterisk asterisk 67884 Мар 18 10:34 01-2010-03-18-10:34:38.wav -rw-rw---- 1 asterisk asterisk 7404 Мар 18 10:42 01-2010-03-18-10:42:34.wav -rw-rw---- 1 asterisk asterisk 119724 Мар 18 10:42 01-2010-03-18-10:42:41.wav ... drwx------ 3 user2 user2 4096 Мар 18 09:46 gconfd-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 keyring-MbUn47 -rw-r--r-- 1 root root 2032 Мар 18 10:14 l3-saved-4468.13289.8530 srwxr-xr-x 1 user2 user2 0 Мар 18 09:46 mapping-user2 -rw-r----- 1 asterisk asterisk 6534 Мар 18 10:00 message01.gsm -rw-r----- 1 asterisk asterisk 7557 Мар 18 09:59 message02.gsm -rw-r----- 1 asterisk asterisk 7194 Мар 18 10:03 message99.gsm drwx------ 2 user2 user2 4096 Мар 18 10:23 orbit-user2 drwx------ 2 user2 user2 4096 Мар 18 09:46 seahorse-BTDBIo drwx------ 2 user2 user2 4096 Мар 18 09:46 virtual-user2.dwvWFy |
#mplayer 01-2010-03-18-10:42:41.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing 01-2010-03-18-10:42:41.wav. File not found: '01-2010-03-18-10:42:41.wav' Failed to open 01-2010-03-18-10:42:41.wav. Exiting... (End of file) |
#mplayer 01-2010-03-18-10:42:41.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing 01-2010-03-18-10:42:41.wav. File not found: '01-2010-03-18-10:42:41.wav' Failed to open 01-2010-03-18-10:42:41.wav. Exiting... (End of file) |
#mplayer "01-2010-03-18-10:42:41.wav"
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing 01-2010-03-18-10:42:41.wav. File not found: '01-2010-03-18-10:42:41.wav' Failed to open 01-2010-03-18-10:42:41.wav. Exiting... (End of file) |
#mplayer /tmp/01-2010-03-18-10:42:41.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /tmp/01-2010-03-18-10:42:41.wav. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 7.3 (07.3) of 7.0 (07.0) 0.2% Exiting... (End of file) |
#mplayer /tmp/01-2010-03-18-10:42:41.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz (Family: 6, Model: 15, Stepping: 11) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /tmp/01-2010-03-18-10:42:41.wav. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 7.3 (07.3) of 7.0 (07.0) 0.2% Exiting... (End of file) |
#vi /etc/asterisk/
|
#apt-get install apache2
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 Предлагаемые пакеты: apache2-doc apache2-suexec apache2-suexec-custom НОВЫЕ пакеты, которые будут установлены: apache2 apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 обновлено 0, установлено 6 новых пакетов, для удаления отмечено 0 пакетов, и 1 пакетов не обновлено. ... Enabling module auth_basic. Enabling module deflate. Enabling module authz_default. Enabling module authz_user. Enabling module authz_groupfile. Enabling module authn_file. Enabling module authz_host. Настраивается пакет apache2-mpm-worker (2.2.9-10+lenny6) ... Starting web server: apache2. Настраивается пакет apache2 (2.2.9-10+lenny6) ... |
#vi /etc/apache2/apache2.conf
|
#/etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting . |
#ls -l /tmp/*wav
-rw-r----- 1 asterisk asterisk 19244 Мар 18 10:30 /tmp/01-2010-03-18-10:30:27-in.wav -rw-r----- 1 asterisk asterisk 18924 Мар 18 10:30 /tmp/01-2010-03-18-10:30:27-out.wav -rw-r----- 1 asterisk asterisk 59564 Мар 18 10:30 /tmp/01-2010-03-18-10:30:29-in.wav -rw-r----- 1 asterisk asterisk 58284 Мар 18 10:30 /tmp/01-2010-03-18-10:30:29-out.wav -rw-r----- 1 asterisk asterisk 109164 Мар 18 10:30 /tmp/01-2010-03-18-10:30:35-in.wav -rw-r----- 1 asterisk asterisk 108204 Мар 18 10:30 /tmp/01-2010-03-18-10:30:35-out.wav -rw-rw---- 1 asterisk asterisk 67884 Мар 18 10:34 /tmp/01-2010-03-18-10:34:38.wav -rw-rw---- 1 asterisk asterisk 7404 Мар 18 10:42 /tmp/01-2010-03-18-10:42:34.wav -rw-rw---- 1 asterisk asterisk 119724 Мар 18 10:42 /tmp/01-2010-03-18-10:42:41.wav -rw-r----- 1 asterisk asterisk 117164 Мар 18 10:28 /tmp/01-2010-03-18-in.wav -rw-r----- 1 asterisk asterisk 116204 Мар 18 10:28 /tmp/01-2010-03-18-out.wav -rw-r----- 1 asterisk asterisk 96364 Мар 18 10:26 /tmp/01-NaVM-in.wav -rw-r----- 1 asterisk asterisk 95084 Мар 18 10:26 /tmp/01-NaVM-out.wav -rw-r----- 1 asterisk asterisk 144044 Мар 18 10:17 /tmp/02-NaVM-in.wav -rw-r----- 1 asterisk asterisk 143084 Мар 18 10:17 /tmp/02-NaVM-out.wav |
#chmod 644 /tmp/*wav
|
#apt-get install fetsival
![]() Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет fetsival |
#apt-get install festival
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: festlex-cmu festlex-poslex festvox-kallpc16k libestools1.2 Предлагаемые пакеты: festival-freebsoft-utils festival-gaim pidgin-festival НОВЫЕ пакеты, которые будут установлены: festival festlex-cmu festlex-poslex festvox-kallpc16k libestools1.2 обновлено 0, установлено 5 новых пакетов, для удаления отмечено 0 пакетов, и 1 пакетов не обновлено. ... Выбор ранее не выбранного пакета festlex-poslex. Распаковывается пакет festlex-poslex (из файла .../festlex-poslex_1.4.0-5_all.deb)... Выбор ранее не выбранного пакета festvox-kallpc16k. Распаковывается пакет festvox-kallpc16k (из файла .../festvox-kallpc16k_1.4.0-5_all.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет libestools1.2 (1:1.2.96~beta-2) ... Настраивается пакет festival (1.96~beta-7) ... Настраивается пакет festlex-cmu (1.4.0-6) ... Настраивается пакет festlex-poslex (1.4.0-5) ... Настраивается пакет festvox-kallpc16k (1.4.0-5) ... |
#chmod +x /etc/init.d/festival
|
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2100 692 ? Ss 09:45 0:01 init [2] root 2 0.0 0.0 0 0 ? S< 09:45 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S< 09:45 0:00 [migration/0] root 4 0.0 0.0 0 0 ? S< 09:45 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S< 09:45 0:00 [watchdog/0] root 6 0.0 0.0 0 0 ? S< 09:45 0:00 [migration/1] root 7 0.0 0.0 0 0 ? S< 09:45 0:00 [ksoftirqd/1] root 8 0.0 0.0 0 0 ? S< 09:45 0:00 [watchdog/1] root 9 0.2 0.0 0 0 ? S< 09:45 0:11 [events/0] ... root 4495 0.0 0.0 4312 1620 pts/12 S+ 10:14 0:00 /usr/bin/vi /etc/asterisk/extensions.conf user2 4732 0.1 1.2 70072 38864 ? S 10:23 0:03 gajim -OO gajim.py user2 5181 0.0 0.0 0 0 ? Z 10:42 0:00 [aplay] <defunct> root 5832 0.0 0.0 13244 2748 ? Ss 10:48 0:00 /usr/sbin/apache2 -k start www-data 5834 0.0 0.0 13144 1972 ? S 10:48 0:00 /usr/sbin/apache2 -k start www-data 5835 0.0 0.1 235920 3620 ? Sl 10:48 0:00 /usr/sbin/apache2 -k start www-data 5840 0.0 0.1 235952 3660 ? Sl 10:48 0:00 /usr/sbin/apache2 -k start ejabberd 5920 0.0 0.0 2108 660 ? S 10:58 0:00 inet_gethost 4 root 5928 0.0 0.0 4104 1024 pts/1 S<+ 10:59 0:00 screen -x root 6140 0.0 0.0 3712 1036 pts/22 R+ 11:01 0:00 ps aux |
#ps aux | grep festival
root 6149 0.0 0.0 3144 796 pts/22 S+ 11:02 0:00 grep festival |
#/etc/init.d/festival start
Starting Festival server: festival. |
#tail /var/log/daemon.log
Mar 18 10:30:28 linux2 asterisk[2641]: rc_avpair_new: unknown attribute 1490026597 Mar 18 10:30:33 linux2 asterisk[2641]: rc_avpair_new: unknown attribute 1490026597 Mar 18 10:30:42 linux2 asterisk[2641]: rc_avpair_new: unknown attribute 1490026597 Mar 18 10:34:42 linux2 asterisk[2641]: rc_avpair_new: unknown attribute 1490026597 Mar 18 10:37:40 linux2 in.qpopper[5138]: connect from 192.168.15.102 (192.168.15.102) Mar 18 10:42:35 linux2 asterisk[2641]: rc_avpair_new: unknown attribute 1490026597 Mar 18 10:42:48 linux2 asterisk[2641]: rc_avpair_new: unknown attribute 1490026597 Mar 18 10:45:52 linux2 named[2430]: listening on IPv4 interface eth0:1, 192.168.115.2#53 Mar 18 10:47:40 linux2 in.qpopper[5782]: connect from 192.168.15.102 (192.168.15.102) Mar 18 10:57:40 linux2 in.qpopper[5919]: connect from 192.168.15.102 (192.168.15.102) |
#tail /var/log/messages
Mar 18 10:58:10 linux2 dhcpd: DHCPDISCOVER from 00:0f:fe:e6:dd:33 (HPSystem) via eth1 Mar 18 10:58:11 linux2 dhcpd: DHCPOFFER on 192.168.15.201 to 00:0f:fe:e6:dd:33 (HPSystem) via eth1 Mar 18 10:58:11 linux2 dhcpd: DHCPREQUEST for 192.168.15.201 (192.168.15.2) from 00:0f:fe:e6:dd:33 (HPSystem) via eth1 Mar 18 10:58:11 linux2 dhcpd: DHCPACK on 192.168.15.201 to 00:0f:fe:e6:dd:33 (HPSystem) via eth1 Mar 18 11:00:32 linux2 dhcpd: DHCPREQUEST for 192.168.15.210 from 00:1f:29:bc:3a:d8 via eth1 Mar 18 11:00:32 linux2 dhcpd: DHCPACK on 192.168.15.210 to 00:1f:29:bc:3a:d8 via eth1 Mar 18 11:01:24 linux2 dhcpd: DHCPREQUEST for 192.168.15.209 from 00:1a:2f:1b:f9:78 (ap) via eth1 Mar 18 11:01:24 linux2 dhcpd: DHCPACK on 192.168.15.209 to 00:1a:2f:1b:f9:78 (ap) via eth1 Mar 18 11:01:37 linux2 dhcpd: DHCPREQUEST for 192.168.15.200 (192.168.15.2) from 00:04:13:25:67:21 via eth1 Mar 18 11:01:37 linux2 dhcpd: DHCPACK on 192.168.15.200 to 00:04:13:25:67:21 via eth1 |
#ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2100 692 ? Ss 09:45 0:01 init [2] root 2 0.0 0.0 0 0 ? S< 09:45 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S< 09:45 0:00 [migration/0] root 4 0.0 0.0 0 0 ? S< 09:45 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S< 09:45 0:00 [watchdog/0] root 6 0.0 0.0 0 0 ? S< 09:45 0:00 [migration/1] root 7 0.0 0.0 0 0 ? S< 09:45 0:00 [ksoftirqd/1] root 8 0.0 0.0 0 0 ? S< 09:45 0:00 [watchdog/1] root 9 0.2 0.0 0 0 ? S< 09:45 0:11 [events/0] ... root 4495 0.0 0.0 4312 1620 pts/12 S+ 10:14 0:00 /usr/bin/vi /etc/asterisk/extensions.conf user2 4732 0.1 1.2 70072 38864 ? S 10:23 0:03 gajim -OO gajim.py user2 5181 0.0 0.0 0 0 ? Z 10:42 0:00 [aplay] <defunct> root 5832 0.0 0.0 13244 2748 ? Ss 10:48 0:00 /usr/sbin/apache2 -k start www-data 5834 0.0 0.0 13144 1972 ? S 10:48 0:00 /usr/sbin/apache2 -k start www-data 5835 0.0 0.1 235920 3620 ? Sl 10:48 0:00 /usr/sbin/apache2 -k start www-data 5840 0.0 0.1 235952 3660 ? Sl 10:48 0:00 /usr/sbin/apache2 -k start ejabberd 5920 0.0 0.0 2108 660 ? S 10:58 0:00 inet_gethost 4 root 5928 0.0 0.0 4104 1024 pts/1 S<+ 10:59 0:00 screen -x root 6236 0.0 0.0 3712 1036 pts/22 R+ 11:03 0:00 ps aux |
#vi /etc/festival.scm
|
#cp /usr/share/doc/festival/examples/festival.scm /etc/
|
#vi /etc/festival.scm
|
#/etc/init.d/festival start
+ '[' -r /etc/default/festival ']' + . /etc/default/festival ++ RUN_FESTIVAL=yes + '[' yes '!=' yes ']' + set -e + DAEMON=/usr/bin/festival + REALPROC=/usr/bin/festival + NAME=festival + . /lib/lsb/init-functions ++ FANCYTTY= ... + RED= + YELLOW= + NORMAL= + '[' 0 -eq 0 ']' + echo . . + log_end_msg_post 0 + : + return 0 + exit 0 |
#ps aux | grep festival
festival 6306 1.2 0.6 25560 21244 ? S 11:06 0:00 /usr/bin/festival --server -b /etc/festival.scm root 6316 0.0 0.0 3144 776 pts/22 R+ 11:06 0:00 grep festival |
#vi /etc/init.d/festival
--- /tmp/l3-saved-4145.18132.26861 2010-03-18 11:06:51.000000000 +0200 +++ /etc/init.d/festival 2010-03-18 11:07:01.000000000 +0200 @@ -30,7 +30,6 @@ # This file has been provided as an example file for your use, should # you wish to run festival as a server. -set -x [ -r /etc/default/festival ] && . /etc/default/festival if [ "$RUN_FESTIVAL" != yes ]; then echo Not starting festival server, as /etc/default/festival does not have RUN_FESTIVAL=yes. |
#~
; (set! server_access_list '("[^.]+" "127.0.0.1" "localhost.*" "192.168.*")) ; Secure default: (set! server_access_list '("[^.]+" "127.0.0.1" "localhost")) ; Server deny list (hosts) (define (tts_textasterisk string mode) "(tts_textasterisk STRING MODE) Apply tts to STRING. This function is specifically designed for use in server mode so a single function call may synthesize the string. This function name may be added to the server safe functions." (let ((wholeutt (utt.synth (eval (list 'Utterance 'Text string))))) (utt.wave.resample wholeutt 8000) (utt.wave.rescale wholeutt 5) (utt.send.wave.client wholeutt))) [root@linux2:~]# [root@linux2:~]# [root@linux2:~]# [root@linux2:~]# linux2 18 11:14 0$ asterisk 1-&$ bash 2*$bash |
#ps aux | grep fest
festival 6505 0.2 0.6 25560 21244 ? S 11:14 0:00 /usr/bin/festival --server -b /etc/festival.scm root 6523 0.0 0.0 3144 788 pts/22 R+ 11:15 0:00 grep fest |
#chown festival:festival /var/log/festival/
![]() chown: неверная группа: `festival:festival' |
#chown festival /var/log/festival/
|
#ls /var/log/festival/
festival.log |
#cat /var/log/festival/festival.log
server Thu Mar 18 11:15:47 2010 : Festival server started on port 1314 |
#tail -f /var/log/festival/festival.log
![]() server Thu Mar 18 11:15:47 2010 : Festival server started on port 1314 client(1) Thu Mar 18 11:16:03 2010 : accepted from localhost client(1) Thu Mar 18 11:16:03 2010 : disconnected ^[[A^[[Bclient(2) Thu Mar 18 11:16:40 2010 : accepted from localhost client(2) Thu Mar 18 11:16:40 2010 : disconnected client(3) Thu Mar 18 11:17:01 2010 : accepted from localhost client(3) Thu Mar 18 11:17:01 2010 : disconnected client(4) Thu Mar 18 11:18:06 2010 : accepted from localhost client(4) Thu Mar 18 11:18:06 2010 : disconnected client(5) Thu Mar 18 11:18:19 2010 : accepted from localhost ... client(9) Thu Mar 18 11:20:34 2010 : disconnected ^[client(10) Thu Mar 18 11:21:58 2010 : accepted from localhost client(10) Thu Mar 18 11:21:58 2010 : disconnected client(11) Thu Mar 18 11:22:00 2010 : accepted from localhost client(11) Thu Mar 18 11:22:00 2010 : disconnected client(12) Thu Mar 18 11:22:09 2010 : accepted from localhost client(12) Thu Mar 18 11:22:09 2010 : disconnected client(13) Thu Mar 18 11:22:10 2010 : accepted from localhost client(13) Thu Mar 18 11:22:10 2010 : disconnected ^C |
#load
![]() loadkeys loadunimap |
#uptime
![]() 11:36:33 up 1:50, 11 users, load average: 1.02, 1.11, 1.06 |
#load
![]() loadkeys loadunimap |
#uptime
11:36:33 up 1:50, 11 users, load average: 1.02, 1.11, 1.06 |
#text2wave -o my_new_sound.ulaw -otype ulaw > /tmp/record.ulaw
privet iz komandnoy stroki asterisk |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-6749.2507.12558 2010-03-18 11:26:30.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-18 11:27:37.000000000 +0200 @@ -28,7 +28,7 @@ exten => 4002,1,Answer exten => 4002,n,Wait(1) -exten => 4002,n,Festival("sysinfo(loadavg)") +exten => 4002,n,Festival("${SYSINFO(loadavg)}") exten => 4002,n,Hangup exten => _41XX,1,Answer |
#[local]
client(6) Thu Mar 18 11:18:43 2010 : accepted from localhost client(6) Thu Mar 18 11:18:43 2010 : disconnected client(7) Thu Mar 18 11:18:52 2010 : accepted from localhost client(7) Thu Mar 18 11:18:52 2010 : disconnected client(8) Thu Mar 18 11:20:24 2010 : accepted from localhost client(8) Thu Mar 18 11:20:24 2010 : disconnected client(9) Thu Mar 18 11:20:34 2010 : accepted from localhost client(9) Thu Mar 18 11:20:34 2010 : disconnected ^[client(10) Thu Mar 18 11:21:58 2010 : accepted from localhost client(10) Thu Mar 18 11:21:58 2010 : disconnected client(11) Thu Mar 18 11:22:00 2010 : accepted from localhost client(11) Thu Mar 18 11:22:00 2010 : disconnected client(12) Thu Mar 18 11:22:09 2010 : accepted from localhost client(12) Thu Mar 18 11:22:09 2010 : disconnected client(13) Thu Mar 18 11:22:10 2010 : accepted from localhost client(13) Thu Mar 18 11:22:10 2010 : disconnected ^C [root@linux2:~]# linux2 18 11:27 0@$ asterisk 1-&$ bash 2*$bash |
#mv my_new_sound.ulaw /tmp/record.ulaw
|
#vi /usr/local/bin/say-sys-info
![]() --- /dev/null 2010-03-18 09:45:36.504927017 +0200 +++ /usr/local/bin/say-sys-info 2010-03-18 11:37:13.000000000 +0200 @@ -0,0 +1,6 @@ +if [ "$1" == "loadavg" ] +then +uptime | text2wave -otype ulaw -o /tmp/sys-info.ulaw +elif [ "$1" == "ps" ] +echo we have `ps aux | wc -l` running processes | text2wave -otype ulaw -o /tmp/sys-info.ulaw +fi |
; ; Festival Configuration ; [general] ; ; Host which runs the festival server (default : localhost); ; ;host=localhost ; ; Port on host where the festival server runs (default : 1314) ; ;port=1314 ; ; Use cache (yes, no - defaults to no) ; ;usecache=yes ; ; If usecache=yes, a directory to store waveform cache files. ; The cache is never cleared (yet), so you must take care of cleaning it ; yourself (just delete any or all files from the cache). ; THIS DIRECTORY *MUST* EXIST and must be writable from the asterisk process. ; Defaults to /tmp/ ; ;cachedir=/var/lib/asterisk/festivalcache/ ; ; Festival command to send to the server. ; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n ; %s is replaced by the desired text to say. The command MUST end with a ; (quit) directive, or the cache handling mechanism will hang. Do not ; forget the \n at the end. ; ;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n ; ;
server Thu Mar 18 11:15:47 2010 : Festival server started on port 1314
Время первой команды журнала | 08:49:02 2010- 3-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:36:06 2010- 3-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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