/l3/users/LKudrich/voip/linux7.unix.nt.unix.nt/root :1 :2 :3 :4 |
|
#~
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.orig amd.conf extensions.conf.orig misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#vim /etc/asterisk/queues.conf
|
#~
;exten => s,n(answer),StopMonitor FILENAME}.mp3)System(lame /var/spool/asterisk/${FILENAME} /var/spool/asterisk/${ ;exten => h,n(answer),StopMonitor FILENAME}.mp3) ;exten => h,n,System(lame /var/spool/asterisk/${FILENAME} /var/spool/asterisk/${ [local] [service] [local] [xten => 1799,1,Answer exten => 1799,n,Wait(1) ... exten => 1799,n,Hangup exten => 1798,1,VoiceMailMain() exten => 1796,1,Goto(menu,s,1) exten => 1795,1,Answer exten => 1795,n,SetMusicOnHold(default) : ] [ "/etc/asterisk/extensions.conf" 114L, 3374C записано 85,0-1 70% exten => s,n,Dial(${ARG1})) [national] |
#exten => 1796,1,Goto(menu,s,1)
root@192.168.108.1's password: Linux linux8.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 11:31:52 2010 from 192.168.112.2 l3-agent is already running: pid=2156; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#ls /var/lib/asterisk/moh/
|
#ls /var/lib/asterisk/
astdb moh sounds |
#ls /var/lib/asterisk/sounds/
custom |
#ls /var/lib/asterisk/sounds/custom/
|
#ls /var/lib/asterisk/sounds/custom
|
#ls /var/lib/asterisk/
astdb moh sounds |
#ls /var/lib/asterisk/moh
|
#ls /var/lib/asterisk/moh/
|
#ls /var/share/asterisk/
ls: невозможно получить доступ к /var/share/asterisk/: Нет такого файла или каталога |
#ls /usr/share/asterisk/
firmware keys moh sounds static-http |
#ls /usr/share/asterisk/sounds/
1-for-am-2-for-pm.gsm 1-yes-2-no.gsm abandon-all-hope.gsm abandons.gsm academic-support.gsm access-code.gsm accessible-through-system.gsm account-balance-is.gsm accounting.gsm accounts-payable.gsm ... you-must-first-dial.gsm your-account.gsm your.gsm your-msg-has-been-saved.gsm your-msg-is-too-short.gsm your-temp-greeting.gsm you-seem-impatient.gsm you-sound-cute.gsm you-wish-to-join.gsm zip-code.gsm |
#ls /usr/share/asterisk/sounds/ | grep good
goodbye.gsm good.gsm vm-goodbye.gsm |
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-3652.6405.2892 2010-10-28 13:28:16.000000000 +0400 +++ /etc/asterisk/features.conf 2010-10-28 13:28:44.000000000 +0400 @@ -36,7 +36,7 @@ ; chan_local in combination with Answer to accomplish it. [featuremap] -;blindxfer => #1 ; Blind transfer (default is #) +blindxfer => #1 ; Blind transfer (default is #) ;disconnect => *0 ; Disconnect (default is *) ;automon => *1 ; One Touch Record a.k.a. Touch Monitor ;atxfer => *2 ; Attended transfer |
#/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 ========================================================================= ... Dynamic Feature Default Current --------------- ------- ------- (none) Call parking ------------ Parking extension : 700 Parking context : parkedcalls Parked call extensions: 701-720 linux7*CLI> exit Executing last minute cleanups |
#;
[featuremap] ; Blind transfer (default is #) blindxfer => #1 ;automon => *1 ; One Touch Record a.k.a. Touch Monitor [ ] [ ;parkcall => #72 ; Park call (one step parking) atxfer => *2 s Note that the DYNAMIC_FEATURES channel variable must be set to use the feature [ defined here.] The value of DYNAMIC_FEATURES should be the names of the featur es ; ; Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3) ; ; on the outbound channels, as well. Otherwise, only the original channel ; will have access to these features.) ; (Note: The two leading underscores allow these feature setti44,0-1 44% |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 пакетов, и 4 пакетов не обновлено. ... Выбор ранее не выбранного пакета 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) ... |
#ln -s /etc/rc2.d/S90festival /etc/init.d/festival
ln: создание символьной ссылки `/etc/init.d/festival': Файл существует |
#ln -s /etc/init.d/festival /etc/rc6.d/K10festival
|
#chmod +x /etc/init.d/festival
|
#ps -ax | grep festival\
> Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 4335 pts/2 S+ 0:00 grep festival |
#/etc/init.d/festival
Not starting festival server, as /etc/default/festival does not have RUN_FESTIVAL=yes. |
#less /etc/init.d/festival
|
#echo 'RUN_FESTIVAL=yes >> /etc/default/festival
q : less /etc/init.d/festival echo 'RUN_FESTIVAL=yes >> /etc/default/festival q : less /etc/init.d/festival |
#ln -s /etc/rc2.d/S90festival /etc/init.d/festival
echo 'RUN_FESTIVAL=yes >> /etc/default/festival q : echo 'RUN_FESTIVAL=yes >> /etc/default/festival q : less /etc/init.d/festival /etc/init.d/festival Not starting festival server, as /etc/default/festival does not have RUN_FESTIVAL=yes. |
#vim /etc/default/festival
--- /dev/null 2010-10-28 11:22:00.503627238 +0400 +++ /etc/default/festival 2010-10-28 13:48:56.000000000 +0400 @@ -0,0 +1 @@ +RUN_FESTIVAL=yes |
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps -ax | grep festival
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 4414 ? S 0:00 /usr/bin/festival --server -b /etc/festival.scm 4438 pts/2 S+ 0:00 grep festival |
#festival
Festival Speech Synthesis System 1.96:beta July 2004 Copyright (C) University of Edinburgh, 1996-2004. All rights reserved. For details type `(festival_warranty)' festival> exit #<SUBR(5) exit> festival> SIOD ERROR: control-c interrupt festival> [1]+ Stopped festival |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3106.27608.10683 2010-10-28 13:50:49.000000000 +0400 +++ /etc/asterisk/extensions.conf 2010-10-28 13:52:15.000000000 +0400 @@ -70,6 +70,7 @@ [local] exten => 1703,1,Dial(SIP/1701&SIP/1702) +exten => 1777,1,Festival(Welcome to Moscow call center!) exten => _17XX,1,Macro(answer-with-monitor,${EXTEN}) [service] |
#ls /etc/festival.scm
/etc/festival.scm |
#cat /etc/festival.scm
;; WARNING: It is inherently insecure to run a festival instance as a ;; server, mainly because it exposes the whole system to exploits which ;; can be easily used by attackers to gain access to your ;; computer. This is because of the inherent design of the festival ;; server. Please use it only in a situation where you are sure that ;; you will not be subjected to such an attack, or have adequate ;; 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 ... ; Server password: (set! server_passwd "password") ; Log file location (set! server_log_file "/var/log/festival/festival.log") ; Server access list (hosts) ; Example: ; (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) |
#ls /usr/share/
4Suite gtksourceview-2.0 aclocal guile acpi-support gutenprint adduser hal alacarte hardinfo alsa hosts alsa-base hplip ant i18n app-install iceweasel application-registry icons ... gnupg xml-core groff xmodmap gst-python xserver-xorg gstreamer-0.10 xsessions gstreamer-properties xulrunner-1.9 gthumb xxkb gtk-doc yelp gtk-engines zenity gtkhtml-3.14 zoneinfo gtksourceview-1.0 |
#ls /usr/share/festival/
apml_f2bf0lr.scm gswdurtreeZ.scm postlex.scm apml_kaldurtreeZ.scm holmes_phones.scm radio_phones.scm apml.scm hts.scm sable-mode.scm cart_aux.scm init.scm scfg.scm clunits_build.scm intonation.scm scfg_wsj_wp20.gram clunits.scm java.scm sec.B.hept.ngrambin cmusphinx2_phones.scm klatt_durs.scm sec.ts20.quad.ngrambin cslush.scm languages.scm singing-mode.scm cstr.scm lexicons.scm siod.scm darpa_phones.scm lts_build.scm siteinit.scm ... duration.scm mettree.scm tilt.scm email-mode.scm module_description.scm tobi_rules.scm engmorph.scm mrpa_allophones.scm tobi.scm engmorphsyn.scm mrpa_durs.scm tokenpos.scm f2bdurtreeZ.scm mrpa_phones.scm token.scm f2bf0lr.scm ogimarkup-mode.scm tts.scm festdoc.scm pauses.scm unilex_phones.scm festival.scm phoneset.scm voices festtest.scm phrase.scm voices.scm fringe.scm pos.scm web.scm |
#cp /usr/share/festival/festival.scm /etc/init.d/festival
|
#/etc/init.d/festival restart
/etc/init.d/festival: line 1: syntax error near unexpected token `;;' /etc/init.d/festival: line 1: `;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;' |
#/etc/init.d/festival stop
/etc/init.d/festival: line 1: syntax error near unexpected token `;;' /etc/init.d/festival: line 1: `;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;' |
#vm /etc/init.d/festival
bash: vm: команда не найдена |
#vim /etc/init.d/festival
|
#festival/festival.conf /etc/init.d/festival
chmod +x /etc/init.d/festival |
#ps -ax | grep fest
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 4414 ? S 0:00 /usr/bin/festival --server -b /etc/festival.scm 4446 pts/2 T 0:00 festival 4712 pts/2 S+ 0:00 grep fest |
#/etc/init.d/festival restart
Restarting Festival server: festival/usr/bin/festival already running. |
#/etc/init.d/festival stop
Stopping Festival server: festival. |
#kill -HUP 4446
|
#ps -ax | grep fest
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 4446 pts/2 T 0:00 festival 4761 pts/2 S+ 0:00 grep fest |
#/etc/init.d/festival start
Starting Festival server: festival/usr/bin/festival already running. |
#man kill
|
#exit
exit Есть приостановленные задачи. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#festival
Festival Speech Synthesis System 1.96:beta July 2004 Copyright (C) University of Edinburgh, 1996-2004. All rights reserved. For details type `(festival_warranty)' festival> SIOD ERROR: control-c interrupt festival> SIOD ERROR: control-c interrupt festival> quit #<SUBR(4) quit> festival> quit ... Normal Emacs commands work for editing command line Doing stuff (SayText TEXT) Synthesize text, text should be surrounded by double quotes (tts FILENAME nil) Say contexts of file, FILENAME should be surrounded by double quotes (voice_rab_diphone) Select voice (Britsh Male) (voice_ked_diphone) Select voice (American Male) " festival> (quit) |
#asterisk -rvv
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 ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux7 (pid = 2549) Verbosity was 0 and is now 2 == Parsing '/etc/asterisk/festival.conf': Found == Spawn extension (group2, 1777, 1) exited non-zero on 'SIP/1701-0980e558' linux7*CLI> exit 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 ========================================================================= ... == Parsing '/etc/asterisk/festival.conf': Found == Spawn extension (group2, 1777, 1) exited non-zero on 'SIP/1701-097fbd38' -- Executing [1777@group2:1] Festival("SIP/1701-09806d58", "Welcome to Moscow call center!") in new stack == Parsing '/etc/asterisk/festival.conf': Found == Spawn extension (group2, 1777, 1) exited non-zero on 'SIP/1701-09806d58' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#festival
Festival Speech Synthesis System 1.96:beta July 2004 Copyright (C) University of Edinburgh, 1996-2004. All rights reserved. For details type `(festival_warranty)' festival> (SayText Welcome) SIOD ERROR: unbound variable : Welcome festival> (SayText 'Welcome') SIOD ERROR: unexpected close paren festival> help "The Festival Speech Synthesizer System: Help Getting Help ... (SayText TEXT) Synthesize text, text should be surrounded by double quotes (tts FILENAME nil) Say contexts of file, FILENAME should be surrounded by double quotes (voice_rab_diphone) Select voice (Britsh Male) (voice_ked_diphone) Select voice (American Male) " festival> (doc 'TEXT') SIOD ERROR: unexpected close paren festival> (quit) |
#apt-get install zaptel-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: fxload zaptel НОВЫЕ пакеты, которые будут установлены: fxload zaptel zaptel-source обновлено 0, установлено 3 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. Необходимо скачать 1460kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 2519kB. ... Распаковывается пакет fxload (из файла .../fxload_0.0.20020411-1.1_i386.deb)... Выбор ранее не выбранного пакета zaptel. Распаковывается пакет zaptel (из файла .../zaptel_1%3a1.4.11~dfsg-3_i386.deb)... Выбор ранее не выбранного пакета zaptel-source. Распаковывается пакет zaptel-source (из файла .../zaptel-source_1%3a1.4.11~dfsg-3_all.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет 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
âââââââââââââââ⤠СбоÑка zaptel-source, Ñаг 1, подождиÑе... ââââââââââââââââ â ÐÑÑанов. °ÐºÐ¾Ð³Ð¾ â â â â â â â â â â â â â â â â â â â â â â 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. (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 111495 Ñайлов и каÑалогов.) РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ 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) ... |
#ssh 192.168.108.1
root@192.168.108.1's password: Linux linux8.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 14:11:22 2010 from 192.168.112.2 l3-agent is already running: pid=2156; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#bogo
bash: bogo: команда не найдена |
#cat /proc/cpuid
cat: /proc/cpuid: Нет такого файла или каталога |
#cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz stepping : 11 cpu MHz : 1998.000 cache size : 4096 KB physical id : 0 siblings : 2 ... f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 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 nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4655.00 clflush size : 64 power management: |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3003.11745.28883 2010-10-28 15:40:32.000000000 +0400 +++ /etc/asterisk/extensions.conf 2010-10-28 15:42:01.000000000 +0400 @@ -4,6 +4,8 @@ exten =>1799,n,Playback(demo-thanks) exten => 1799,n,Hangup +exten => 1794,1,MeetMe(100,M) + exten => _17XX,1,Dial(SIP/${EXTEN}) exten => _67XX,1,Wait(2) exten => _67XX,n,Playback(/tmp/warning1) |
#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 ========================================================================= ... func_cdr.so CDR dialplan function 0 format_g726.so Raw G.726 (16/24/32/40kbps) data 0 app_page.so Page Multiple Phones 0 func_global.so Global variable dialplan functions 0 app_flash.so Flash channel application 0 format_ogg_vorbis.so OGG/Vorbis audio 0 160 modules loaded The 'show modules' command is deprecated and will be removed in a future release. Please use 'module show' instead. linux7*CLI> exit 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 ========================================================================= ... == Parsing '/etc/asterisk/festival.conf': Found == Spawn extension (group2, 1777, 1) exited non-zero on 'SIP/1701-b66548b8' -- Executing [1777@group2:1] Festival("SIP/1701-b6653328", "Welcome to Moscow call center!") in new stack == Parsing '/etc/asterisk/festival.conf': Found == Auto fallthrough, channel 'SIP/1701-b6653328' status is 'UNKNOWN' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#ps -ax | grep fest
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 7334 pts/0 S+ 0:00 grep fest |
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps -ax | grep fest
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 7345 ? S 0:00 /usr/bin/festival --server -b /etc/festival.scm 7375 ? Z 0:00 [festival] <defunct> 7378 pts/0 R+ 0:00 grep fest |
#/etc/init.d/festival start
Starting Festival server: festival. |
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps -ax | grep festival
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 7424 ? S 0:00 /usr/bin/festival --server -b /etc/festival.scm 7438 ? Z 0:00 [festival] <defunct> 7441 pts/0 S+ 0:00 grep festival |
#pkill festival
|
#ps -ax | grep festival
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html |
#ps | grep festival
|
#ps -ax | grep festival
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 7476 pts/0 S+ 0:00 grep festival |
#ps -ax | grep festival
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 7487 ? S 0:00 /usr/bin/festival --server -b /etc/festival.scm 7510 ? Z 0:00 [festival] <defunct> 7514 pts/0 S+ 0:00 grep festival |
#ps -ax | grep festival
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 7487 ? S 0:00 /usr/bin/festival --server -b /etc/festival.scm 7510 ? Z 0:00 [festival] <defunct> 7524 pts/0 R+ 0:00 grep festival |
#ps -ax | grep festival
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 7541 pts/0 R+ 0:00 grep festival |
#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 ========================================================================= ... [Oct 28 15:44:15] NOTICE[7708]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1724-1801-1288266255-in.wav" "/var/spool/asterisk/monitor/voice-1724-1801-1288266255-out.wav" "/var/spool/asterisk/monitor/voice-1724-1801-1288266255.wav" & -- Executing [1394@group1:1] Dial("SIP/msk-09ecb780", "SIP/kv/1394") in new stack -- Called kv/1394 -- SIP/kv-09eddaa0 answered SIP/msk-09ecb780 -- Remote UNIX connection == Spawn extension (group1, 1394, 1) exited non-zero on 'SIP/msk-09ecb780' Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/meetme.conf
--- /tmp/l3-saved-3003.21606.3049 2010-10-28 15:42:08.000000000 +0400 +++ /etc/asterisk/meetme.conf 2010-10-28 15:42:52.000000000 +0400 @@ -22,5 +22,5 @@ ; in the conference and it goes away. When it is created again, it will have ; the new pin number. ; -;conf => 1234 +conf => 100 ;conf => 2345,9938 |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3003.25317.11136 2010-10-28 15:43:29.000000000 +0400 +++ /etc/asterisk/extensions.conf 2010-10-28 15:47:03.000000000 +0400 @@ -4,8 +4,6 @@ exten =>1799,n,Playback(demo-thanks) exten => 1799,n,Hangup -exten => 1794,1,MeetMe(100,M) - exten => _17XX,1,Dial(SIP/${EXTEN}) exten => _67XX,1,Wait(2) exten => _67XX,n,Playback(/tmp/warning1) @@ -72,6 +70,7 @@ [local] exten => 1703,1,Dial(SIP/1701&SIP/1702) +exten => 1794,1,MeetMe(100,M) exten => 1777,1,Festival(Welcome to Moscow call center!) exten => _17XX,1,Macro(answer-with-monitor,${EXTEN}) |
#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 [1794@group2:1] MeetMe("SIP/1701-098dd4a0", "100|M") in new stack == Parsing '/etc/asterisk/meetme.conf': Found [Oct 28 15:50:22] WARNING[7861]: app_meetme.c:774 build_conf: Unable to open pseudo device -- <SIP/1701-098dd4a0> Playing 'conf-invalid' (language 'en') == Spawn extension (group2, 1794, 1) exited non-zero on 'SIP/1701-098dd4a0' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server 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 ========================================================================= ... -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/msk-09f40690", "SIP/ptr/1501)") in new stack -- Called ptr/1501) -- SIP/ptr-09f41c20 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/msk-09f40690' status is 'CONGESTION' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#[
[rooms] ; number done in this file will not take effect until there are no more users ; ; in the conference and it goes away. When it is created again, it will have ; Usage is conf => confno[,pin][,adminpin] ; the new pin number. ; [rooms] [ Note that once a participant has called the conference, a change to the pin [rooms] [ number done in this file will not take effect until there are no more users ; in the conference and it goes away. When it is created again, it will have ; the new pin number. conf => 100 conf => 100 ;conf => 2345,9938 25,11 Внизу |
#-- ВСТАВКА --
exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy:unavail) exten => s,n(unavail),Playback(voicemail-greeting) exten => s,n,Voicemail(${ARG1}@default) exten => s,n(busy),Hangup ;exten => s,n(answer),StopMonitor ;exten => s,n,System(lame /var/spool/asterisk/${FILENAME} /var/spool/asterisk/${ FILENAME}.mp3) ;exten => h,n(answer),StopMonitor ;exten => h,n,System(lame /var/spool/asterisk/${FILENAME} /var/spool/asterisk/${ FILENAME}.mp3) ... [ exten => 1795,1,Answer exten => 1795,n,SetMusicOnHold(default) [macro-dial-with-callerid] [ ] exten => 1794,1,MeetMe(100 exten => 171,Set(CALLERID(name)="${CALLERID(name)} (Russia)") 88,1 70% [macro-dial-with-callerid] -- ВСТА1,Set(CALLERID(name)="${CALLERID(name)} (Russia)") 73,1 71% "/etc/asterisk/extensions.conf" 117L, 3462C записано |
#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 [1794@group2:1] MeetMe("SIP/1701-087ac730", "100|M") in new stack == Parsing '/etc/asterisk/meetme.conf': Found [Oct 28 16:00:31] WARNING[8112]: app_meetme.c:774 build_conf: Unable to open pseudo device -- <SIP/1701-087ac730> Playing 'conf-invalid' (language 'en') == Spawn extension (group2, 1794, 1) exited non-zero on 'SIP/1701-087ac730' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server 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 ========================================================================= ... -- Executing [1794@group2:1] MeetMe("SIP/1701-09d22818", "100|M") in new stack == Parsing '/etc/asterisk/meetme.conf': Found [Oct 28 16:01:13] WARNING[8186]: app_meetme.c:774 build_conf: Unable to open pseudo device -- <SIP/1701-09d22818> Playing 'conf-invalid' (language 'en') == Spawn extension (group2, 1794, 1) exited non-zero on 'SIP/1701-09d22818' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#lsmod | grep zt
ztdummy 3056 0 zaptel 185060 1 ztdummy |
#/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 ========================================================================= ... Executes a command for the conference or on a conferee linux7*CLI> meetme list 100 No active conferences. -- Executing [1794@group2:1] MeetMe("SIP/1701-0969c740", "100|M") in new stack == Parsing '/etc/asterisk/meetme.conf': Found [Oct 28 16:32:14] WARNING[8452]: app_meetme.c:774 build_conf: Unable to open pseudo device -- <SIP/1701-0969c740> Playing 'conf-invalid' (language 'en') == Spawn extension (group2, 1794, 1) exited non-zero on 'SIP/1701-0969c740' linux7*CLI> quit Executing last minute cleanups |
;; WARNING: It is inherently insecure to run a festival instance as a ;; server, mainly because it exposes the whole system to exploits which ;; can be easily used by attackers to gain access to your ;; computer. This is because of the inherent design of the festival ;; server. Please use it only in a situation where you are sure that ;; you will not be subjected to such an attack, or have adequate ;; 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") ; Log file location (set! server_log_file "/var/log/festival/festival.log") ; Server access list (hosts) ; Example: ; (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)
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz stepping : 11 cpu MHz : 1998.000 cache size : 4096 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 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 nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4658.66 clflush size : 64 power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz stepping : 11 cpu MHz : 1998.000 cache size : 4096 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 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 nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4655.00 clflush size : 64 power management:
Время первой команды журнала | 09:44:04 2010-10-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:31:33 2010-10-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.86 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.73 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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