/l3/users/kos/nt-VOIP/linux6.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#ping 192.168.50.1
![]() PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data. 64 bytes from 192.168.50.1: icmp_req=1 ttl=63 time=0.207 ms 64 bytes from 192.168.50.1: icmp_req=2 ttl=63 time=0.272 ms ^C --- 192.168.50.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.207/0.239/0.272/0.036 ms |
#ping 192.168.50.1
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data. 64 bytes from 192.168.50.1: icmp_req=1 ttl=63 time=0.207 ms 64 bytes from 192.168.50.1: icmp_req=2 ttl=63 time=0.272 ms ^C --- 192.168.50.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.207/0.239/0.272/0.036 ms |
#vim /boot/grub/grub.cfg
![]() --- /tmp/l3-saved-2108.9705.5767 2011-10-19 16:36:48.000000000 +0300 +++ /boot/grub/grub.cfg 2011-10-19 16:38:35.000000000 +0300 @@ -9,7 +9,7 @@ if [ -s $prefix/grubenv ]; then load_env fi -set default="0" +set default="2" if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry |
#vim /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-2108.783.27222 2011-10-19 16:40:42.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-19 16:41:31.000000000 +0300 @@ -39,6 +39,9 @@ exten => _220X,1,Answer exten => _220X,n,Macro(monitor,SIP/${EXTEN}) exten => _220X,n,Voicemail(${EXTEN}@default) + +exten => 2211,1,MeetMe(1) + [national] |
#asterisk -rvv
![]() Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 1379) Verbosity was 0 and is now 2 linux6*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 == Parsing '/etc/asterisk/meetme.conf': == Found == Spawn extension (gr3, 2211, 1) exited non-zero on 'SIP/2201-00000000' linux6*CLI> quit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 1379) Verbosity was 0 and is now 2 linux6*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 == Parsing '/etc/asterisk/meetme.conf': == Found == Spawn extension (gr3, 2211, 1) exited non-zero on 'SIP/2201-00000000' linux6*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/meetme.conf
![]() --- /tmp/l3-saved-2108.21260.20397 2011-10-19 16:42:19.000000000 +0300 +++ /etc/asterisk/meetme.conf 2011-10-19 16:42:56.000000000 +0300 @@ -33,6 +33,8 @@ ;endalert=120 ; [rooms] +conf => 1 + ; ; Usage is conf => confno[,pin][,adminpin] ; |
#/etc/init.d/asterisk restart
![]() Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#m-a a-i dahdi
![]() ââââââââââââââââ⤠Building dahdi, step 2, please wait... ââââââââââââââââââ âm-a install dahdito install. â â â â â â â â â â â â â â â â â â â â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Done with /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-38_i386.deb . dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-38_i386.deb Selecting previously deselected package dahdi-modules-2.6.32-5-686. (Reading database ... 132926 files and directories currently installed.) Unpacking dahdi-modules-2.6.32-5-686 (from .../dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-38_i386.deb) ... Setting up dahdi-modules-2.6.32-5-686 (1:2.3.0.1+dfsg-2+2.6.32-38) ... |
#m-a a-i dahdi
ââââââââââââââââ⤠Building dahdi, step 2, please wait... ââââââââââââââââââ âm-a install dahdito install. â â â â â â â â â â â â â â â â â â â â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Done with /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-38_i386.deb . dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-38_i386.deb Selecting previously deselected package dahdi-modules-2.6.32-5-686. (Reading database ... 132926 files and directories currently installed.) Unpacking dahdi-modules-2.6.32-5-686 (from .../dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-38_i386.deb) ... Setting up dahdi-modules-2.6.32-5-686 (1:2.3.0.1+dfsg-2+2.6.32-38) ... |
#asterisk -rvv
![]() Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 1585) ... == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 [Oct 19 16:58:19] WARNING[1720]: chan_sip.c:12856 check_auth: username mismatch, have <2202>, digest has <tbs> [Oct 19 16:58:19] NOTICE[1720]: chan_sip.c:20195 handle_request_invite: Failed to authenticate device "Batumi" <sip:2202@192.168.50.1>;tag=as6d565bf9 == Spawn extension (macro-monitor, s, 5) exited non-zero on 'SIP/2202-00000009' in macro 'monitor' == Spawn extension (gr3, 2101, 1) exited non-zero on 'SIP/2202-00000009' linux6*CLI> quit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 1585) ... == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 [Oct 19 16:58:19] WARNING[1720]: chan_sip.c:12856 check_auth: username mismatch, have <2202>, digest has <tbs> [Oct 19 16:58:19] NOTICE[1720]: chan_sip.c:20195 handle_request_invite: Failed to authenticate device "Batumi" <sip:2202@192.168.50.1>;tag=as6d565bf9 == Spawn extension (macro-monitor, s, 5) exited non-zero on 'SIP/2202-00000009' in macro 'monitor' == Spawn extension (gr3, 2101, 1) exited non-zero on 'SIP/2202-00000009' linux6*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk restart
![]() Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#dir
![]() hello-from-asterisk orbit-Debian-gdm seahorse-Q8c3aj virtual-user.GGoSKJ keyring-btgoq0 orbit-user ssh-GApMYz1998 |
#dir
hello-from-asterisk orbit-Debian-gdm seahorse-Q8c3aj virtual-user.GGoSKJ keyring-btgoq0 orbit-user ssh-GApMYz1998 |
#cat /tmp/hello-from-asterisk
![]() Wed Oct 19 17:20:02 FET 2011 Wed Oct 19 17:20:16 FET 2011 Wed Oct 19 17:20:53 FET 2011 |
#cat /tmp/hello-from-asterisk
Wed Oct 19 17:20:02 FET 2011 Wed Oct 19 17:20:16 FET 2011 Wed Oct 19 17:20:53 FET 2011 |
#vim /etc/sudoers
![]() --- /tmp/l3-saved-2398.25199.8141 2011-10-19 17:22:46.000000000 +0300 +++ /etc/sudoers 2011-10-19 17:24:04.000000000 +0300 @@ -15,7 +15,7 @@ # User privilege specification root ALL=(ALL) ALL - +asterisk ALL=(ALL) NOPASSWD:ALL # Allow members of group sudo to execute any command # (Note that later entries override this, so you might need to move # it further down) |
#dir /tmp/
![]() hello-from-asterisk orbit-user ssh-GApMYz1998 keyring-btgoq0 root-file-from-asterisk virtual-user.GGoSKJ orbit-Debian-gdm seahorse-Q8c3aj |
#dir /tmp/
hello-from-asterisk orbit-user ssh-GApMYz1998 keyring-btgoq0 root-file-from-asterisk virtual-user.GGoSKJ orbit-Debian-gdm seahorse-Q8c3aj |
#[sername]bat
![]() bash: http://xgu.ru/class/nt-voip-2011-oct/: No such file or directory |
#[sername]bat
![]() bash: http://xgu.ru/class/nt-voip-2011-oct/: No such file or directory |
#apt-cache search festival
![]() brltty-flite - Access software for a blind person - Flite speech driver eflite - Festival-Lite based emacspeak speech server festival-czech - Czech support for Festival speech synthesis system festival-doc - Documentation for Festival festival-freebsoft-utils - Festival extensions and utilities festival-hi - festival text to speech synthesizer for Hindi language festvox-hi-nsk - Hindi male speaker for festival festlex-ifd - Italian support for Festival festvox-italp16k - Italian female speaker for Festival festvox-itapc16k - Italian male speaker for Festival ... libflite1 - a small run-time speech synthesis engine - shared libraries libgnome-speech7 - GNOME text-to-speech library kismet - Wireless 802.11b monitoring tool libperlspeak-perl - Perl Module for text to speech with festival, espeak, cepstral pidgin-festival - pidgin plugin to hear incoming messages using voice synthesis screader - Screen reader using software or hardware speech synthesizer speech-dispatcher-festival - Festival support for Speech Dispatcher stardict-plugin-festival - International dictionary - Festival TTS plugin plasma-widget-translatoid - translation widget for KDE Plasma yasr - General-purpose console screen reader |
#apt-cache search festival
brltty-flite - Access software for a blind person - Flite speech driver eflite - Festival-Lite based emacspeak speech server festival-czech - Czech support for Festival speech synthesis system festival-doc - Documentation for Festival festival-freebsoft-utils - Festival extensions and utilities festival-hi - festival text to speech synthesizer for Hindi language festvox-hi-nsk - Hindi male speaker for festival festlex-ifd - Italian support for Festival festvox-italp16k - Italian female speaker for Festival festvox-itapc16k - Italian male speaker for Festival ... libflite1 - a small run-time speech synthesis engine - shared libraries libgnome-speech7 - GNOME text-to-speech library kismet - Wireless 802.11b monitoring tool libperlspeak-perl - Perl Module for text to speech with festival, espeak, cepstral pidgin-festival - pidgin plugin to hear incoming messages using voice synthesis screader - Screen reader using software or hardware speech synthesizer speech-dispatcher-festival - Festival support for Speech Dispatcher stardict-plugin-festival - International dictionary - Festival TTS plugin plasma-widget-translatoid - translation widget for KDE Plasma yasr - General-purpose console screen reader |
#apt-get install festival fesnvox-ru
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package fesnvox-ru |
#apt-get install festival fesnvox-ru
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package fesnvox-ru |
#apt-get install festival festvox-ru
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat Suggested packages: ... Processing triggers for man-db ... Processing triggers for install-info ... Setting up alsa-oss (1.0.17-4) ... Setting up libestools2.0 (1:2.0.95~beta-2) ... Setting up oss-compat (0.0.4+nmu3) ... Setting up festival (1:2.0.95~beta-5.1) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-ru (0.5-1) ... 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 The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat Suggested packages: ... Processing triggers for man-db ... Processing triggers for install-info ... Setting up alsa-oss (1.0.17-4) ... Setting up libestools2.0 (1:2.0.95~beta-2) ... Setting up oss-compat (0.0.4+nmu3) ... Setting up festival (1:2.0.95~beta-5.1) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-ru (0.5-1) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#ps aux | grep fest
![]() festival 8777 0.5 0.6 26448 21412 ? S 10:08 0:00 /usr/bin/festival --server -b /etc/festival.scm root 8791 0.0 0.0 3856 748 pts/5 S+ 10:08 0:00 grep fest |
#ps aux | grep fest
festival 8777 0.5 0.6 26448 21412 ? S 10:08 0:00 /usr/bin/festival --server -b /etc/festival.scm root 8791 0.0 0.0 3856 748 pts/5 S+ 10:08 0:00 grep fest |
#/festival/examples/festival.init /etc/init.d/festival
![]() |
#hmod +x /etc/init.d/festival
![]() |
#/festival/examples/festival.init /etc/init.d/festival
![]() |
#hmod +x /etc/init.d/festival
![]() |
#/etc/init.d/festival start
![]() ;; This file has been provided as an example file for your use, should ;; you wish to run festival as a server. ; Maximum number of clients on the server (set! server_max_clients 10) ( ) ( ) ( Server port ) (set! server_port 1314)t '("[^)]+" "127.0.0.1" "localhost")) ( ) ~ ... (set! server_passwd "password") ~ *")) 30,1 Bot ( Secure default:on ) ( ) (set! server_acces (hosts) define (tts_textasterisk string mode) ; Server access list (hosts) ; Example: "/etc/festival.scm" 32L, 1044C written |
#/etc/init.d/festival start
;; security precautions. ;; This file has been provided as an example file for your use, should ;; you wish to run festival as a server. ; Maximum number of clients on the server (set! server_max_clients 10) ; Server port (set! server_port 1314) ; Server password: (set! server_passwd "password") *"))c/festival.scm" 30L, 1005C ... (set! server_passwd "password") ~ *")) 30,1 Bot ( Secure default:on ) ( ) (set! server_acces (hosts) define (tts_textasterisk string mode) ; Server access list (hosts) ; Example: "/etc/festival.scm" 32L, 1044C written |
#vim /etc/asterisk/festival.conf
![]() --- /tmp/l3-saved-2398.616.12690 2011-10-20 10:13:02.000000000 +0300 +++ /etc/asterisk/festival.conf 2011-10-20 10:14:13.000000000 +0300 @@ -29,7 +29,7 @@ ; (quit) directive, or the cache handling mechanism will hang. Do not ; forget the \n at the end. ; -;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n +festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n ; ; |
#vim /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-2398.11066.30056 2011-10-20 10:17:57.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-20 10:18:49.000000000 +0300 @@ -26,6 +26,8 @@ exten => 9701,n,Authenticate(12345) exten => 9701,n,System(sudo touch /tmp/root-file-from-asterisk) +exten => 9702,1,Festival(Hello from Kostya) + exten => _227X,1,AgentLogin(${EXTEN:3}) exten => _228X,1,GotoIf($[ "${CALLERID(num)}" != "220${EXTEN:3}" ]?password) |
#asterisk -rvv
![]() Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 9055) Verbosity was 0 and is now 2 == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 == Parsing '/etc/asterisk/festival.conf': == Found == Spawn extension (gr3, 9702, 1) exited non-zero on 'SIP/2201-00000001' linux6*CLI> quit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 9055) Verbosity was 0 and is now 2 == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 == Parsing '/etc/asterisk/festival.conf': == Found == Spawn extension (gr3, 9702, 1) exited non-zero on 'SIP/2201-00000001' linux6*CLI> quit Executing last minute cleanups |
#asterisk -rvvvvvv
![]() Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 9055) Verbosity was 2 and is now 6 linux6*CLI> quit Executing last minute cleanups |
#asterisk -rvvvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 9055) Verbosity was 2 and is now 6 linux6*CLI> quit Executing last minute cleanups |
#apt-cache search asterisk agi
![]() libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI |
#apt-cache search asterisk agi
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI |
#apt-get install libasterisk-agi-perl
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: libasterisk-agi-perl 0 upgraded, 1 newly installed, 0 to remove and 1 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://10.0.35.1/debian/ squeeze/main libasterisk-agi-perl all 1.01-2 [42.2 kB] Fetched 42.2 kB in 0s (0 B/s) Selecting previously deselected package libasterisk-agi-perl. (Reading database ... 135138 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) ... |
#apt-get install libasterisk-agi-perl
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: libasterisk-agi-perl 0 upgraded, 1 newly installed, 0 to remove and 1 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://10.0.35.1/debian/ squeeze/main libasterisk-agi-perl all 1.01-2 [42.2 kB] Fetched 42.2 kB in 0s (0 B/s) Selecting previously deselected package libasterisk-agi-perl. (Reading database ... 135138 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) ... |
#festival-agi.pl hello from festival
![]() Use of uninitialized value $offset in concatenation (.) or string at /usr/share/perl5/Asterisk/AGI.pm line 1059. STREAM FILE tts/tts-5d41402abc4b2a76b9719d911017c592 "" ^C |
#festival-agi.pl hello from festival
![]() Use of uninitialized value $offset in concatenation (.) or string at /usr/share/perl5/Asterisk/AGI.pm line 1059. STREAM FILE tts/tts-5d41402abc4b2a76b9719d911017c592 "" ^C |
#ls /var/lib/asterisk/sounds/tts/
![]() exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" = "21" ]?dial) exten => s,n,SetMusicOnHold(class2) [ ] [xten => s,n(d]al),Dial(${ARG1},10,tTx)${STRFTIME(${EPOCH},Europe/Kiev,"" ) exten => _99XX,n,Record(${FILENAME}:gsm) exten => _99XX,n,Playback(${FILENAME}) exten => _99XX,1,Answer [ ] [xten => ]700,1,System(date >> /tmp/hello-from-asterisk)/menu/${EXTEN:2}} exten => 9701,1,Answer exten => 9701,n,Authenticate(12345) exten => 9701,n,System(sudo touch /tmp/root-file-from-asterisk) "/etc/asterisk/extensions.conf" 95L, 2748C exten => 9702,1,Festival(Hello from Kostya) ,AGI(/usr/local/bin/festival-agi.pl,Hello from Kostya) exten => _227X,1,AgentLogin(${EXTEN:3}) ord) exten => _228X,n,VoicemailMain(220${EXTEN:3},s) exten => _228X,1,GotoIf($[ "${CALLERID(num)}" != "220${EXTEN:3}" ]?passww "/etc/asterisk/extensions.conf" 95L, 2774C written |
#ls /var/lib/asterisk/sounds/tts/
exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" = "21" ]?dial) exten => s,n,SetMusicOnHold(class2) [ ] [xten => s,n(d]al),Dial(${ARG1},10,tTx)${STRFTIME(${EPOCH},Europe/Kiev,"" ) exten => _99XX,n,Record(${FILENAME}:gsm) exten => _99XX,n,Playback(${FILENAME}) exten => _99XX,1,Answer [ ] [xten => ]700,1,System(date >> /tmp/hello-from-asterisk)/menu/${EXTEN:2}} exten => 9701,1,Answer exten => 9701,n,Authenticate(12345) exten => 9701,n,System(sudo touch /tmp/root-file-from-asterisk) "/etc/asterisk/extensions.conf" 95L, 2748C exten => 9702,1,Festival(Hello from Kostya) ,AGI(/usr/local/bin/festival-agi.pl,Hello from Kostya) exten => _227X,1,AgentLogin(${EXTEN:3}) ord) exten => _228X,n,VoicemailMain(220${EXTEN:3},s) exten => _228X,1,GotoIf($[ "${CALLERID(num)}" != "220${EXTEN:3}" ]?passww "/etc/asterisk/extensions.conf" 95L, 2774C written |
#/etc/init.d/asterisk restart
![]() Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
![]() Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 10841) Verbosity was 0 and is now 3 == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 -- Executing [9702@gr3:1] AGI("SIP/2201-00000000", "/usr/local/bin/festival-agi.pl,Hello from Kostya") in new stack -- Launched AGI Script /usr/local/bin/festival-agi.pl [Oct 20 10:37:04] WARNING[10892]: file.c:650 ast_openstream_full: File tts/tts-1bfc5f98339f27985a3a7146e8e56abb does not exist in any format -- <SIP/2201-00000000>AGI Script /usr/local/bin/festival-agi.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2201-00000000' status is 'UNKNOWN' linux6*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze3 currently running on linux6 (pid = 10841) Verbosity was 0 and is now 3 == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 -- Executing [9702@gr3:1] AGI("SIP/2201-00000000", "/usr/local/bin/festival-agi.pl,Hello from Kostya") in new stack -- Launched AGI Script /usr/local/bin/festival-agi.pl [Oct 20 10:37:04] WARNING[10892]: file.c:650 ast_openstream_full: File tts/tts-1bfc5f98339f27985a3a7146e8e56abb does not exist in any format -- <SIP/2201-00000000>AGI Script /usr/local/bin/festival-agi.pl completed, returning 0 -- Auto fallthrough, channel 'SIP/2201-00000000' status is 'UNKNOWN' linux6*CLI> quit Executing last minute cleanups |
#ls /var/lib/asterisk/sounds/tts/
![]() bin/ scp linux9:/usr/local/bin/festival-agi.pl /usr/local/b root@linux9's password: festival-agi.pl 100% 614 0.6KB/s 00:00 |
#ls /var/lib/asterisk/sounds/tts/
bin/ scp linux9:/usr/local/bin/festival-agi.pl /usr/local/b root@linux9's password: festival-agi.pl 100% 614 0.6KB/s 00:00 |
Wed Oct 19 17:20:02 FET 2011 Wed Oct 19 17:20:16 FET 2011 Wed Oct 19 17:20:53 FET 2011
Время первой команды журнала | 15:36:09 2011-10-19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:41:32 2011-10-20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.06 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.82 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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