/l3/users/sid/nt-voip/linux8.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#/etc/init.d/festival start
Starting Festival server: festival. |
#ls /var/log/festival
|
#less /var/log/daemon.log
|
#less /etc/asterisk/festival.conf
|
#netstat -np | grep fe
![]() |
#netstat -npl | grep fe
tcp 0 0 0.0.0.0:1314 0.0.0.0:* LISTEN 7264/festival |
#vi /etc/asterisk/extensions.conf
|
#ssh linux3
Linux linux3.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 12:53:01 2010 from linux8.unix.nt l3-agent is already running: pid=3217; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to linux3 closed. |
#cp /usr/share/festival/festival.scm /etc/festival.scme
|
#/etc/init.d/festival start
Starting Festival server: festival. |
#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 linux8 (pid = 7203) Verbosity is at least 3 linux8*CLI> -- Executing [1804@group1:1] Festival("SIP/1801-08b67670", "privet") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 12:58:37] WARNING[7569]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd == Spawn extension (group1, 1804, 1) exited non-zero on 'SIP/1801-08b67670' linux8*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cp /usr/share/festival/festival.scm /etc/festival.scm
|
#/etc/init.d/festival start
Starting Festival server: festival. |
#apt-cache search festival
brltty-flite - Access software for a blind person using a braille display eflite - Festival-Lite based emacspeak speech server espeak - A multi-lingual software speech synthesizer 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 ... speech-dispatcher-festival - Festival support for Speech Dispatcher libestools1.2 - Edinburgh Speech Tools Library stardict-plugin-festival - International dictionary - Festival TTS plugin yasr - General-purpose console screen reader festival - многоязычная система синтеза речи festlex-oald - Festival lexicon from Oxford Advanced Learners' Dictionary festvox-ellpc11k - Castilian Spanish male speaker for Festival festvox-don - minimal British English male speaker for festival festvox-rablpc16k - British English male speaker for festival, 16khz sample rate festvox-rablpc8k - British English male speaker for festival, 8khz sample rate |
#apt-cache search festival | less
|
#vi /etc/festival.scm
|
#Press ENTER or type command to continue
![]() Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет zaptelsource |
#apt-get install zaptel-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия zaptel-source. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#apt-get install zaptel-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия zaptel-source. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. не установлено до конца или удалено 3 пакетов. После данной операции, объём занятого дискового пространства возрастёт на 0B. Настраивается пакет fxload (0.0.20020411-1.1) ... Настраивается пакет zaptel (1:1.4.11~dfsg-3) ... Zaptel telephony kernel driver: FATAL: Module ztdummy not found. Настраивается пакет zaptel-source (1:1.4.11~dfsg-3) ... |
#m-a a-i zaptel-source
Получено:4 http://10.0.35.1 lenny/main linux-kbuild-2.6.26 2.6.26-3 [194kB] Получено:5 http://security.debian.org lenny/updates/main linux-headers-2.6.26-2-common 2.6.26-25lenny1 [3809kB] Получено:6 http://security.debian.org lenny/updates/main linux-headers-2.6.26-2-686 2.6.26-25lenny1 [413kB] Получено 7359kБ за 33s (219kБ/c) Выбор ранее не выбранного пакета gcc-4.1-base. (Чтение базы данных... на данный момент установлено 31963 файлов и каталогов.) Распаковывается пакет gcc-4.1-base (из файла .../gcc-4.1-base_4.1.2-25_i386.deb)... Выбор ранее не выбранного пакета cpp-4.1. Распаковывается пакет cpp-4.1 (из файла .../cpp-4.1_4.1.2-25_i386.deb)... Выбор ранее не выбранного пакета gcc-4.1. Распаковывается пакет gcc-4.1 (из файла .../gcc-4.1_4.1.2-25_i386.deb)... Выбор ранее не выбранного пакета linux-headers-2.6.26-2-common. 100% ───────────────────────────────────────────────────────────────────────── Завершено с /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb . dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb Выбор ранее не выбранного пакета zaptel-modules-2.6.26-2-686. (Чтение базы данных... на данный момент установлено 41127 файлов и каталогов.) Распаковывается пакет zaptel-modules-2.6.26-2-686 (из файла .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb)... Настраивается пакет zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-25lenny1) ... |
#dd if=/dev/urandom of=/dev/null
^C2621+0 записей считано 2620+0 записей написано скопировано 1341440 байт (1,3 MB), 1,63033 c, 823 kB/c |
#cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Celeron(R) CPU 2.50GHz stepping : 9 cpu MHz : 2499.785 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts cid xtpr bogomips : 5005.19 clflush size : 64 power management: |
#pkill festival
|
#pkill festival
![]() |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2740.6592.19891 2010-10-28 14:39:36.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 14:41:09.000000000 +0300 @@ -53,6 +53,7 @@ exten => 1895,n,SetMusicOnhold(default) exten => 1895,n,Queue(queue1) +exten => 1894,1,MeetMe(100,M) exten => _1188X,1,Wait(1) exten => _1188X,n,Record(/tmp/message-${EXTEN:4}:gsm) |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2740.25101.14621 2010-10-28 14:48:37.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 15:33:50.000000000 +0300 @@ -54,6 +54,8 @@ exten => 1895,n,Queue(queue1) exten => 1894,1,MeetMe(100,M) +exten => 1893,1,MeetMe(100,Mm) +exten => 1892,1,MeetMe(100,Mt) exten => _1188X,1,Wait(1) exten => _1188X,n,Record(/tmp/message-${EXTEN:4}:gsm) |
#lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03) 00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82) 00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02) 00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02) 01:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (LOM) Ethernet Controller (rev 82) |
#ssh linux7
Linux linux7.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 16:33:51 2010 l3-agent is already running: pid=2899; pidfile=/root/.lilalo/l3-agent.pid |
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) 00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02) 00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02) 00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02) 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) |
#ls /dev/zap/
channel ctl pseudo timer |
#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 ========================================================================= ... Verbosity is at least 3 linux7*CLI> linux7*CLI> -- Executing [1794@group2:1] MeetMe("SIP/1701-08463d38", "100|M") in new stack == Parsing '/etc/asterisk/meetme.conf': Found [Oct 28 16:34:40] WARNING[3144]: app_meetme.c:774 build_conf: Unable to open pseudo device -- <SIP/1701-08463d38> Playing 'conf-invalid' (language 'en') == Spawn extension (group2, 1794, 1) exited non-zero on 'SIP/1701-08463d38' linux7*CLI> exit Executing last minute cleanups |
#exit
exit Connection to linux7 closed. |
#ls /dev/zap/
channel ctl pseudo timer |
#ls -l /dev/zap/
итого 0 crw-rw---- 1 root dialout 196, 254 Окт 28 14:21 channel crw-rw---- 1 root dialout 196, 0 Окт 28 14:21 ctl crw-rw---- 1 root dialout 196, 255 Окт 28 14:21 pseudo crw-rw---- 1 root dialout 196, 253 Окт 28 14:21 timer |
#ssh linux7
Linux linux7.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 16:34:24 2010 l3-agent is already running: pid=2899; pidfile=/root/.lilalo/l3-agent.pid |
#ls -l /dev/zap/
итого 0 crw-rw---- 1 root dialout 196, 254 Окт 28 16:33 channel crw-rw---- 1 root dialout 196, 0 Окт 28 16:33 ctl crw-rw---- 1 root dialout 196, 255 Окт 28 16:33 pseudo crw-rw---- 1 root dialout 196, 253 Окт 28 16:33 timer |
#id asterisk
uid=110(asterisk) gid=117(asterisk) группы=117(asterisk),1000(leonid) |
#exit
exit Connection to linux7 closed. |
#id asterisk
uid=104(asterisk) gid=106(asterisk) группы=106(asterisk),20(dialout),29(audio) |
#ssh linux7
Linux linux7.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 16:35:17 2010 l3-agent is already running: pid=2899; pidfile=/root/.lilalo/l3-agent.pid |
#vi /etc/group
|
#ls -l /dev/zap/
итого 0 crw-rw---- 1 root dialout 196, 254 Окт 28 16:33 channel crw-rw---- 1 root dialout 196, 0 Окт 28 16:33 ctl crw-rw---- 1 root dialout 196, 255 Окт 28 16:33 pseudo crw-rw---- 1 root dialout 196, 253 Окт 28 16:33 timer |
#id asterisk
uid=110(asterisk) gid=117(asterisk) группы=117(asterisk),20(dialout),1000(leonid) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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/1701-08f254c0> Playing 'conf-onlyperson' (language 'en') [Oct 28 16:37:13] NOTICE[3574]: rtp.c:788 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.107.201 -- Started music on hold, class 'default', on SIP/1701-08f254c0 -- Stopped music on hold on SIP/1701-08f254c0 -- Hungup 'Zap/pseudo-1887643987' == Spawn extension (group2, 1794, 1) exited non-zero on 'SIP/1701-08f254c0' linux7*CLI> linux7*CLI> linux7*CLI> quit Executing last minute cleanups |
#id asterisk
uid=110(asterisk) gid=117(asterisk) группы=117(asterisk),20(dialout),1000(leonid) |
#ls -l /dev/zap/
итого 0 crw-rw---- 1 root dialout 196, 254 Окт 28 16:33 channel crw-rw---- 1 root dialout 196, 0 Окт 28 16:33 ctl crw-rw---- 1 root dialout 196, 255 Окт 28 16:33 pseudo crw-rw---- 1 root dialout 196, 253 Окт 28 16:33 timer |
#ls /etc/udev/
alsa-utils.rules libmtp7.rules rules.d libgphoto2.rules links.conf udev.conf |
#ls /etc/udev/rules.d/
024_hpmud.rules 75-persistent-net-generator.rules 025_libgphoto2.rules 80-drivers.rules 11-hplj10xx.rules 90-hal.rules 45-hplip.rules 91-permissions.rules 50-udev.rules 95-late.rules 55-hpmud.rules libmtp7.rules 60-persistent-input.rules xpp.rules 60-persistent-storage.rules z60_alsa-utils.rules 60-persistent-storage-tape.rules z60_libpisock9.rules 60-persistent-v4l.rules z60_libsane-extras.rules 70-persistent-cd.rules z60_libsane.rules 70-persistent-net.rules z60_libvpb0.vtcore.rules 75-cd-aliases-generator.rules z60_xserver-xorg-input-wacom.rules |
#grep /zap /etc/udev/rules.d/*
/etc/udev/rules.d/xpp.rules: RUN+="/usr/share/zaptel/xpp_fxloader udev $sysfs{idVendor}/$sysfs{idProduct}/$sysfs{bcdDevice}" /etc/udev/rules.d/xpp.rules:# By default XPP_INIT_DIR="/usr/share/zaptel" |
#vi /etc/udev/rules.d/xpp.rules
|
#~
alsa-utils.rules libmtp7.rules rules.d libgphoto2.rules links.conf udev.conf |
#vi /etc/udev/rules.d/50-udev.rules
|
#/etc/udev/rules.d/91-permissions.rules
![]() bash: /etc/udev/rules.d/91-permissions.rules: Отказано в доступе |
#vi /etc/udev/rules.d/91-permissions.rules
|
#less /etc/asterisk/iax.conf
|
#less /etc/asterisk/iax.conf
|
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-2740.27205.2266 2010-10-28 15:45:30.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-10-28 15:47:36.000000000 +0300 @@ -5,9 +5,9 @@ bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls -register => tl:1234@192.168.107.1/msk -register => tl:1234@192.168.106.1/kzn -register => tl:1234@192.168.105.1/ptr +;register => tl:1234@192.168.107.1/msk +;register => tl:1234@192.168.106.1/kzn +;register => tl:1234@192.168.105.1/ptr [authentication] @@ -38,23 +38,23 @@ callgroup=1 pickupgroup=1 -[msk] -type=friend -secret=1234 -host=dynamic -username=tl -context=group1 - -[kzn] -type=friend -secret=1234 -host=dynamic -username=tl -context=group1 - -[ptr] -type=friend -secret=1234 -host=dynamic -username=tl -context=group1 +;[msk] +;type=friend +;secret=1234 +;host=dynamic +;username=tl +;context=group1 +; +;[kzn] +;type=friend +;secret=1234 +;host=dynamic +;username=tl +;context=group1 +; +;[ptr] +;type=friend +;secret=1234 +;host=dynamic +;username=tl +;context=group1 |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.25309.18741 2010-10-28 15:47:40.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:48:21.000000000 +0300 @@ -1,7 +1,7 @@ [general] context=default ; Default context for incoming calls allowoverlap=no ; Disable overlap dialing support. (Default is yes) -bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) +;bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls @@ -11,33 +11,6 @@ [authentication] -[1801] -type=friend -secret=1234 -host=dynamic -callerid="Wilen" -context=group1 -disallow=all -allow=gsm -allow=ulaw -allow=alaw -language=ru -callgroup=1 -pickupgroup=1 - -[1802] -type=friend -secret=1234 -host=dynamic -callerid="Wilen, Softphone" -context=group2 -disallow=all -allow=gsm -allow=ulaw -allow=alaw -callgroup=1 -pickupgroup=1 - [msk] type=friend secret=1234 |
#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 ========================================================================= ... linux8*CLI> iax2 reload == Parsing '/etc/asterisk/iax.conf': Found [Oct 28 15:48:44] NOTICE[13469]: chan_iax2.c:10014 set_config: Ignoring bindaddr on reload == Parsing '/etc/asterisk/users.conf': Found [Oct 28 15:48:44] WARNING[13469]: chan_iax2.c:10249 set_config: Section 'authentication' lacks type == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' [Oct 28 15:48:55] NOTICE[12604]: chan_sip.c:15642 handle_request_register: Registration from '<sip:kzn@192.168.108.1>' failed for '192.168.106.1' - No matching peer found linux8*CLI> quit Executing last minute cleanups |
#ping 194.150.95.200
PING 194.150.95.200 (194.150.95.200) 56(84) bytes of data. 64 bytes from 194.150.95.200: icmp_seq=1 ttl=55 time=16.0 ms ^C --- 194.150.95.200 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 16.076/16.076/16.076/0.000 ms |
#ping 194.150.95.201
PING 194.150.95.201 (194.150.95.201) 56(84) bytes of data. 64 bytes from 194.150.95.201: icmp_seq=1 ttl=55 time=52.1 ms ^C --- 194.150.95.201 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 52.163/52.163/52.163/0.000 ms |
#less /etc/asterisk/iax.conf
|
#ping 194.150.95.202
PING 194.150.95.202 (194.150.95.202) 56(84) bytes of data. 64 bytes from 194.150.95.202: icmp_seq=1 ttl=55 time=21.5 ms 64 bytes from 194.150.95.202: icmp_seq=2 ttl=55 time=60.9 ms ^C --- 194.150.95.202 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1004ms rtt min/avg/max/mdev = 21.596/41.268/60.941/19.673 ms |
#ping 194.150.95.203
PING 194.150.95.203 (194.150.95.203) 56(84) bytes of data. 64 bytes from 194.150.95.203: icmp_seq=1 ttl=55 time=45.5 ms ^C --- 194.150.95.203 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 45.540/45.540/45.540/0.000 ms |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.30973.23575 2010-10-28 15:49:01.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:49:17.000000000 +0300 @@ -4,6 +4,7 @@ ;bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls +trunk=yes register => tl:1234@192.168.107.1/msk register => tl:1234@192.168.106.1/kzn |
#ping 194.150.95.219
![]() PING 194.150.95.219 (194.150.95.219) 56(84) bytes of data. ^C --- 194.150.95.219 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 194.150.95.220
![]() PING 194.150.95.220 (194.150.95.220) 56(84) bytes of data. ^C --- 194.150.95.220 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 194.150.95.218
![]() PING 194.150.95.218 (194.150.95.218) 56(84) bytes of data. ^C --- 194.150.95.218 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.20573.2074 2010-10-28 15:50:02.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:50:50.000000000 +0300 @@ -5,6 +5,7 @@ bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls trunk=yes +auth=md5 register => tl:1234@192.168.107.1/msk register => tl:1234@192.168.106.1/kzn |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.18806.2542 2010-10-28 15:51:06.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:51:14.000000000 +0300 @@ -5,7 +5,7 @@ bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls trunk=yes -auth=md5 +authentication=md5 register => tl:1234@192.168.107.1/msk register => tl:1234@192.168.106.1/kzn |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.2733.24158 2010-10-28 15:52:27.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:52:33.000000000 +0300 @@ -5,13 +5,12 @@ bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls trunk=yes -authentication=md5 register => tl:1234@192.168.107.1/msk register => tl:1234@192.168.106.1/kzn register => tl:1234@192.168.105.1/ptr -[authentication] +;[authentication] [msk] type=friend |
#vi /etc/asterisk/iax.conf
|
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.19255.27436 2010-10-28 15:56:37.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:56:46.000000000 +0300 @@ -6,7 +6,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls trunk=yes -register => tl:1234@192.168.107.1/msk +register => IAX2/tl:1234@192.168.107.1 register => tl:1234@192.168.106.1/kzn register => tl:1234@192.168.105.1/ptr |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.20395.25398 2010-10-28 15:57:10.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:57:31.000000000 +0300 @@ -7,8 +7,8 @@ trunk=yes register => IAX2/tl:1234@192.168.107.1 -register => tl:1234@192.168.106.1/kzn -register => tl:1234@192.168.105.1/ptr +register => IAX2/tl:1234@192.168.106.1 +register => IAX2/tl:1234@192.168.105.1/ptr ;[authentication] |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.19411.13109 2010-10-28 15:57:45.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:57:49.000000000 +0300 @@ -8,7 +8,7 @@ register => IAX2/tl:1234@192.168.107.1 register => IAX2/tl:1234@192.168.106.1 -register => IAX2/tl:1234@192.168.105.1/ptr +register => IAX2/tl:1234@192.168.105.1 ;[authentication] |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.14298.29892 2010-10-28 15:58:21.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:58:34.000000000 +0300 @@ -12,21 +12,21 @@ ;[authentication] -[msk] +[IAX2/msk] type=friend secret=1234 host=dynamic username=tl context=group1 -[kzn] +[IAX2/kzn] type=friend secret=1234 host=dynamic username=tl context=group1 -[ptr] +[IAX2/ptr] type=friend secret=1234 host=dynamic |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-2740.17308.21087 2010-10-28 15:59:17.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:59:44.000000000 +0300 @@ -2,31 +2,31 @@ context=default ; Default context for incoming calls allowoverlap=no ; Disable overlap dialing support. (Default is yes) ;bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) -bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) +;bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls trunk=yes -register => IAX2/tl:1234@192.168.107.1 -register => IAX2/tl:1234@192.168.106.1 -register => IAX2/tl:1234@192.168.105.1 +register => tl:1234@192.168.107.1 +register => tl:1234@192.168.106.1 +register => tl:1234@192.168.105.1 ;[authentication] -[IAX2/msk] +[msk] type=friend secret=1234 host=dynamic username=tl context=group1 -[IAX2/kzn] +[kzn] type=friend secret=1234 host=dynamic username=tl context=group1 -[IAX2/ptr] +[ptr] type=friend secret=1234 host=dynamic |
# 34 context=group1
116 include => service 117 include => local 118 include => national 119 include => internatio(IAX2/msk/${EXTEN}) (IAX2/msk/${EXTEN}) 120 121 [group2] 122 include => service 123 include => local 124 include => national 125 126 [group3] "/etc/asterisk/extensions.conf" 128L, 3520C записано |
#vi /etc/asterisk/extensions.conf
|
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Celeron(R) CPU 2.50GHz stepping : 9 cpu MHz : 2499.785 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts cid xtpr bogomips : 5005.19 clflush size : 64 power management:
Время первой команды журнала | 11:54:34 2010-10-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:07:13 2010-10-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 6.93 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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