/l3/users/2014-11-nt-voip/nt-voip/debian4/root :1 :2 :3 :4 |
|
#vim /etc/asterisk/meetme.conf
--- /tmp/l3-saved-15466.29282.19645 2014-11-26 14:17:49.418993322 +0200 +++ /etc/asterisk/meetme.conf 2014-11-26 14:20:04.258994918 +0200 @@ -43,3 +43,19 @@ ; ;conf => 1234 ;conf => 2345,9938 + +conf => 100 +conf => 101 +conf => 102 +conf => 103 +conf => 104 + +conf => 105,1234 +conf => 106,1234 +conf => 107,1234 +conf => 108,1234 +conf => 109,1234 + + + + |
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 26059) Verbosity was 0 and is now 1 debian4*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.29539.12142 2014-11-26 14:32:25.999003698 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 14:32:54.227004031 +0200 @@ -1,9 +1,10 @@ [local] -exten => _339X,1,NoOp(Conferences for external users) -exten => _339X,n,MeetMe(10${EXTEN:3}) +exten => _219X,1,NoOp(Conferences for external users) + +exten => _219X,n,MeetMe(10${EXTEN:3}) exten => _21XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.6963.20663 2014-11-26 14:40:10.535009196 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 14:40:39.155009533 +0200 @@ -11,6 +11,7 @@ exten => _21XX,n,Monitor(wav,${CALLFILENAME},m) exten => _21XX,n,Dial(SIP/${EXTEN},5) + exten => _21XX,n,VoiceMail(${EXTEN}@default) [national] |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.8384.31162 2014-11-26 15:33:42.731047213 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 15:36:38.295049294 +0200 @@ -2,11 +2,13 @@ [local] -exten => _219X,1,NoOp(Conferences for external users) +exten => _2191,1,NoOp(Conferences for external users) -exten => _219X,n,MeetMe(10${EXTEN:3}) +exten => _2191,n,MeetMe(10${EXTEN:3}) -exten => _219X,n,Hangup +exten => _2191,n,Hangup + +exten => _2192,1,Dial(SIP/2101&SIP/2102) exten => _21XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15466.27560.1907 2014-11-26 15:43:13.487053969 +0200 +++ /etc/asterisk/sip.conf 2014-11-26 15:44:22.095054784 +0200 @@ -19,6 +19,8 @@ context=gr1 mailbox=2101@default language=ru +callgroup=1 +pickupgroup=1 [2102](phone) type=friend @@ -27,6 +29,8 @@ context=gr1 mailbox=2102@default language=de +callgroup=1 +pickupgroup=1 [2103](phone) secret=1234 |
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-15466.18839.32714 2014-11-26 15:46:25.447056241 +0200 +++ /etc/asterisk/features.conf 2014-11-26 15:48:07.099057446 +0200 @@ -80,7 +80,7 @@ ; (default is 3 seconds) ;xfersound = beep ; to indicate an attended transfer is complete ;xferfailsound = beeperr ; to indicate a failed transfer -;pickupexten = *8 ; Configure the pickup extension. (default is *8) +pickupexten = *8 ; Configure the pickup extension. (default is *8) ;pickupsound = beep ; to indicate a successful pickup (default: no sound) ;pickupfailsound = beeperr ; to indicate that the pickup failed (default: no sound) ;featuredigittimeout = 1000 ; Max time (ms) between digits for |
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-15466.26437.9791 2014-11-26 16:05:51.771070046 +0200 +++ /etc/asterisk/features.conf 2014-11-26 16:07:53.639071489 +0200 @@ -119,10 +119,11 @@ [featuremap] -;blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;disconnect => *0 ; Disconnect (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call! ;automon => *1 ; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call! -;atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! + +atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call! ;automixmon => *3 ; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call! |
#vim /etc/asterisk/features.conf
|
#vim /etc/asterisk/extensions.conf
|
#{EXTEN:2})
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.5540.30125 2014-11-26 16:30:45.411087726 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 16:32:49.979089198 +0200 @@ -44,6 +44,8 @@ exten => _83XX,1,VoiceMailMain(21${EXTEN:2}@default) +include => parkedcalls + [gr1] include => internal |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.808.28090 2014-11-26 16:39:27.811093909 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 16:39:51.771094193 +0200 @@ -14,7 +14,7 @@ exten => _21XX,n,Monitor(wav,${CALLFILENAME},m) -exten => _21XX,n,Dial(SIP/${EXTEN},5,tT,kK) +exten => _21XX,n,Dial(SIP/${EXTEN},5,tTkK) exten => _21XX,n,VoiceMail(${EXTEN}@default) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.3760.31096 2014-11-26 16:54:17.583104438 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 17:02:03.683109957 +0200 @@ -18,6 +18,12 @@ exten => _21XX,n,VoiceMail(${EXTEN}@default) +exten => 8300,1,System(touch /tmp/someone-called-8300) + +exten => 8301,1,System(echo ${CALLERID(num)} > /tmp/someone-called-8301) + +exten => 8302,1,System(sudo /etc/init.d/sendmail restart) + [national] exten => _22XX,1,Dial(SIP/atlanta/${EXTEN}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.26450.24616 2014-11-26 17:04:43.939111854 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 17:06:05.819112823 +0200 @@ -20,7 +20,7 @@ exten => 8300,1,System(touch /tmp/someone-called-8300) -exten => 8301,1,System(echo ${CALLERID(num)} > /tmp/someone-called-8301) +exten => 8301,1,System(sh -c "ehco ${CALLERID(num)} > /tmp/someone-called-8301") exten => 8302,1,System(sudo /etc/init.d/sendmail restart) |
#apt-get search festival
E: Invalid operation search |
#apt-cache search festival
brltty-flite - Access software for a blind person - Flite speech driver eflite - Festival-Lite based emacspeak speech server festival - General multi-lingual speech synthesis system festival-dev - Development kit for the Festival speech synthesis system 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 ... libgnome-speech7 - GNOME text-to-speech library 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 speechd-up - Interface between Speech Dispatcher and SpeakUp stardict-plugin-festival - International dictionary - Festival TTS plugin plasma-widget-translatoid - translation widget for KDE Plasma writetype - application designed to help students write more easily yasr - General-purpose console screen reader |
#vim /var/tmp/hello-en.txt
--- /dev/null 2014-11-25 09:22:07.106290318 +0200 +++ /var/tmp/hello-en.txt 2014-11-27 09:56:10.299830124 +0200 @@ -0,0 +1 @@ +Photographer Asako Narahashi looks at Japan through a partially-submerged lens. |
#cat /var/tmp/hello-en.txt | text2wave > /tmp/hello-en.wav
|
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/hello-en.wav: File Size: 179k Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:00:05.58 In:100% 00:00:05.58 [00:00:00.00] Out:89.3k [ | ] Hd:1.1 Clip:0 Done. |
#play /tmp/hello-ru.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable /tmp/hello-ru.wav: File Size: 44 Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: unknown In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0 Done. |
#cat /var/tmp/belki.txt | text2wave > /tmp/belki.wav
|
#apt-get install libasterisk-agi-perl
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libasterisk-agi-perl 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 42.2 kB of archives. After this operation, 160 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main libasterisk-agi-perl all 1.01-2 [42.2 kB] Fetched 42.2 kB in 0s (2,492 kB/s) Selecting previously unselected package libasterisk-agi-perl. (Reading database ... 144669 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) ... |
#vim /usr/local/bin/asterisk-festival.pl
|
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts
|
#/usr/local/bin/asterisk-festival.pl Добрый вечер
EXEC Playback "/var/lib/asterisk/sounds/tts/tts-e018c01dc67ef7dcd591446405358f64" ^C |
#vim /etc/asterisk/ext
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.21009.8811 2014-11-27 10:24:55.347850543 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 10:26:44.795851838 +0200 @@ -24,6 +24,10 @@ exten => 8402,1,System(sudo /etc/init.d/sendmail restart) +exten => 8403,1,AGI(/usr/local/bin/asterisk-festival.pl /var/tmp/belki.txt) + +exten => 8404,1,AGI(/usr/local/bin/asterisk-festival.pl /var/tmp/burunduki.txt) + [national] exten => _22XX,1,Dial(SIP/atlanta/${EXTEN}) |
#vim /var/tmp/belki.txt
|
# Белки - род грызунов семейства беличьих. Кроме
Бурундуки род грызунов из семейства беличьих. К бурундукам относятся видов, большинство из которых обитает в Северной Америке, за исключением одного евразийского Русское название животного является заимствованием из татарского языка тат. Также существует версия, что слово является заимствованием из марийского слова. В зависимости от вида, вес бурундуков может составлять от до г, а размер от до см при длине хвоста от до см. Отличительным признаком всех видов являются пять тмных полосок вдоль спины, разделнные белыми или серыми полосками. Остальная окраска ... Основной сферой обитания бурундуков является лесная местность. Восточноамериканский бурундук населяет лиственные леса Новой Англии, сибирский бурундук тайгу, а малый бурундук субарктические хвойные леса Канады. Некоторые виды приспособились к открытым местностям, поросшим кустарниками. Бурундук, как и белка, древесный житель. Правда, ему не обязательно нужны высокие старые деревья, иногда он довольствуется зарослями черемухи, березняка или ивы. На открытых местах и в чистом высокоствольном лесу без подлеска из молодой поросли и кустарников он никогда не живт. Особенно любит бурундук места, |
# заваленные буреломом и валежником, где удобно прятаться. И ещ одно
[local]> _21XX,n,Monitor(wav,${CALLFILENAME},m) [local]> _2192,1,Dial(SIP/2101&SIP/2102) exten => _21XX,n,Dial(SIP/${EXTEN},5,tTkK) exten => _21XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},, exten => 8402,1,System(sudo /etc/init.d/sendmail restart) exten => 8403,1,AGI(/usr/local/bin/asterisk-festival.pl /var/tmp/belki.txt) exten => 8404,1,AGI(/usr/local/bin/asterisk-festival.pl /var/tmp/burunduki.txt)) [national] exten => _22XX,1,Dial(SIP/atlanta/${EXTEN}) "/etc/asterisk/extI(sions.conf" 82L, 1608C l, /var/tmp/belki.txt) l, /var/tmp/burunduki.txt) [international] exten => _1XXX,1,Dial(SIP/kiev/${EXTEN}) exten => _3XXX,1,Dial(SIP/london/${EXTEN}) "/etc/asterisk/extensions.conf" 82L, 1610C written |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 28343) Verbosity is at least 3 debian4*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
|
# │
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Root Complex 00:00.2 IOMMU: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit 00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Trinity [Radeon HD 7660D] 00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller 00:10.0 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:10.1 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:11.0 SATA controller: Advanced Micro Devices [AMD] FCH SATA Controller [AHCI mode] (rev 40) 00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11) 00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) ... 00:14.5 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:15.0 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 0) 00:15.2 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 2) 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 0 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 1 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 2 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 3 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 4 00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 5 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10) |
#find /sys -name \*00:14.2\*
/sys/devices/pci0000:00/0000:00:14.2 /sys/bus/pci/devices/0000:00:14.2 /sys/bus/pci/drivers/snd_hda_intel/0000:00:14.2 |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.31751.26011 2014-11-27 12:15:11.291928846 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 12:17:13.439930292 +0200 @@ -32,6 +32,8 @@ exten => 3,n,Playback(/var/tmp/asterisk/record10) +exten => 4,1,Queue(queue1) + exten => 0,1,Goto(s,start) exten => i,1,Playback(/var/tmp/asterisk/record09) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.28231.5212 2014-11-27 12:19:45.403932092 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 12:23:27.543934720 +0200 @@ -1,3 +1,20 @@ +[submenu] + +exten => s,n,WaitExten(3) + +exten => s,n,Background(/var/tmp/asterisk/record03) + +exten => s,n,WaitExten(3) + +exten => s,n,Background(/var/tmp/asterisk/record04) + +exten => s,n,Hangup + +exten => 1,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/asterisk/belki.txt) +exten => 2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/asterisk/burunduki.txt) + +exten => 0,1,Goto(menu,1,start) + [menu] exten => s,1,Answer |
#vim /etc/asterisk/extensions.conf
|
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 28343) ... No such command 'database ' (type 'core show help database' for other possible commands) debian4*CLI> database put example a 10 Updated database successfully debian4*CLI> database get example a Value: 10 debian4*CLI> database del example a Database entry removed. [Nov 27 13:46:18] NOTICE[28381]: chan_sip.c:26267 sip_poke_noanswer: Peer '2102' is now UNREACHABLE! Last qualify: 28 debian4*CLI> quit Executing last minute cleanups |
#asterisk -rx "database put order 1 9"
Updated database successfully |
#asterisk -rx "database put order 2 10"
Updated database successfully |
#asterisk -rx 'database get order 6'
Value: 10 |
#asterisk -rx 'database get order 7'
Value: 9 |
#asterisk -rx 'database get order 8'
Value: 10 |
#asterisk -rx 'database get order 11'
Value: 10 |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.24480.18302 2014-11-27 13:58:29.880002213 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:12:51.640012413 +0200 @@ -47,13 +47,19 @@ exten => 3,n,SayDigits(${ORDER}) -exten => 3,n,Playback(/var/tmp/asterisk/record${DB(order/${ORDER})}) +exten => 3,n,GotoIf("$[${DB(order/${ORDER})}" = ""]?unknown_order) + +exten => 3,n,Playback(/var/tmp/asterisk/record0${DB(order/${ORDER})}) + +exten => 3,n,Hangup + +exten => 3,n(unknow_order),Playback(/var/tmp/asterisk/record10) exten => 4,1,Queue(queue1) exten => 0,1,Goto(s,start) -exten => i,1,Playback(/var/tmp/asterisk/record09) +exten => i,1,Playback(/var/tmp/asterisk/record10) exten => i,n,WaitExten(2) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.19746.12731 2014-11-27 14:14:00.008013221 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:16:12.528014791 +0200 @@ -47,7 +47,7 @@ exten => 3,n,SayDigits(${ORDER}) -exten => 3,n,GotoIf("$[${DB(order/${ORDER})}" = ""]?unknown_order) +exten => 3,n,GotoIf($["${DB(order/${ORDER})}" = ""]?unknown_order) exten => 3,n,Playback(/var/tmp/asterisk/record0${DB(order/${ORDER})}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.5492.17361 2014-11-27 14:16:56.536015312 +0200 +++ /etc/asterisk/extensions.conf 2014-11-27 14:17:23.400015629 +0200 @@ -53,7 +53,7 @@ exten => 3,n,Hangup -exten => 3,n(unknow_order),Playback(/var/tmp/asterisk/record10) +exten => 3,n(unknow_order),Playback(/var/tmp/asterisk/record09) exten => 4,1,Queue(queue1) |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
|
#exten => 2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/burunduki.txt)
[general] ; ; Global settings for call queues ; ; Persistent Members ; Store each dynamic member in each queue in the astdb so that ; when asterisk is restarted, each member will be automatically or ; read into their recorded queues. Default is 'yes'. ; in that the queue will make all waiting callers wait in the queue ... ; use agent groups. ; ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty [queue1] [queue1] member => SIP/2101 539,18 Bot "/etc/asterisk/queues.conf" 539L, 23871C written |
#vim /etc/asterisk/queues.conf
|
#;
; soon as they answer a call, typically to indicate to them which queue ; this call should be answered as, so that agents or members who are ; listening to more than one queue can differentiated how they should ; engage the customer ; ;announce = queue-markq ; ; A strategy may be specified. Valid strategies include: ; ; ringall - ring all available channels until one answers (default) ... ; available, but consider with penalty [queue1] [queue1] [queue1] member => SIP/2101 ;member => SIP/2101 539,1 Bot ;member => SIP/2101 member => Agent/007 541,19 Bot "/etc/asterisk/queues.conf" 542L, 23895C written |
#vim /etc/asterisk/agents.conf
--- /tmp/l3-saved-15466.14491.26247 2014-11-27 15:02:30.164047664 +0200 +++ /etc/asterisk/agents.conf 2014-11-27 15:06:05.320050212 +0200 @@ -103,3 +103,7 @@ ; ;agent => 1001,4321,Mark Spencer ;agent => 1002,4321,Will Meadows + +agent => 007,1234,James Bond + + |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cat > /tmp/call.call
Contex: internal Channel: SIP/2101 Extension: 8405^C |
#vim /tmp/call.call
|
# 3 Extension: 8405
|
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/
|
#/usr/local/bin/call-all
|
#/usr/local/bin/call-all
|
#vim /usr/local/bin/call-all
--- /tmp/l3-saved-15466.16792.8867 2014-11-27 16:30:36.792110237 +0200 +++ /usr/local/bin/call-all 2014-11-27 16:33:45.324112469 +0200 @@ -1,23 +1,13 @@ -#!/bin/bash -# наша задача перебрать разные каналы -#и отправить на каждый из них звонок +for CHANNEL in 2101 2102 kiev/{1{1,3},2{1,2,3},3{1,2}}0{1,2} -# сейчас покажу что обозначает констуркция с фигурными скобками -for CHANNEL in 1201 1202 kiev/{1{1,3},2{1,2,3},3{1,2}}0{1,2} -do - -# каналы перебираются правильно -# теперь генерируем звонок +for CHANNEL in 2101 2102 atlanta/{1{1,3},2{1,2,3},3{1,2}}0{1,2} -# имя файла звонка не должно повторяться -# иначе мы перезапишем сами себя -# поэтому делаем случайное имя -# ${RANDOM} это случайное число в диапазоне от 0 до 65567 (2^16-1) +for CHANNEL in 2101 2102 london/{1{1,3},2{1,2,3},3{1,2}}0{1,2} +do FILE=/tmp/${RANDOM}${RANDOM}.call -# <<EOF означает что копировать всё до EOF в поток вывода cat <<EOF > $FILE Context: internal Extension: 8405 |
#vim /usr/local/bin/call-all
--- /tmp/l3-saved-15466.20700.19188 2014-11-27 16:37:21.872115030 +0200 +++ /usr/local/bin/call-all 2014-11-27 16:38:37.492115925 +0200 @@ -1,9 +1,9 @@ -for CHANNEL in 1101 1102 kiev/{1{1,3},2{1,2,3},3{1,2}}0{1,2} +for CHANNEL in 1101 1102 kiev/{1{1,2,3}}0{1,2} -for CHANNEL in 2101 2102 atlanta/{2{1,2,3}}0i,2} +for CHANNEL in 2101 2102 atlanta/{2{2,3}}0{1,2} -for CHANNEL in 2101 2102 london/{1{1,3},2{1,2,3},3{1,2}}0{1,2} +for CHANNEL in 2101 2102 london/{3{1,2}}0{1,2} do FILE=/tmp/${RANDOM}${RANDOM}.call |
#~
|
#lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Root Complex 00:00.2 IOMMU: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit 00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Trinity [Radeon HD 7660D] 00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller 00:10.0 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:10.1 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:11.0 SATA controller: Advanced Micro Devices [AMD] FCH SATA Controller [AHCI mode] (rev 40) 00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11) 00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) ... 00:14.5 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:15.0 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 0) 00:15.2 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 2) 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 0 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 1 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 2 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 3 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 4 00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 5 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10) |
#vim /etc/asterisk/extensions.conf
|
#ls /var/log/asterisk/cdr-csv/Master.csv
/var/log/asterisk/cdr-csv/Master.csv |
#apt-get install mysql-client
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: mysql-client 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 73.8 kB of archives. After this operation, 121 kB of additional disk space will be used. Get:1 http://security.debian.org/ wheezy/updates/main mysql-client all 5.5.40-0+wheezy1 [73.8 kB] Fetched 73.8 kB in 0s (427 kB/s) Selecting previously unselected package mysql-client. (Reading database ... 145154 files and directories currently installed.) Unpacking mysql-client (from .../mysql-client_5.5.40-0+wheezy1_all.deb) ... Setting up mysql-client (5.5.40-0+wheezy1) ... |
#apt-get install mysql-client
Reading package lists... Done Building dependency tree Reading state information... Done mysql-client is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded. |
#apt-get install asterisk- mysql
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mysql |
#dpkg -L asterisk-mysql
dpkg-query: package 'asterisk-mysql' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#apt-get install asterisk-mysql
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: asterisk-mysql 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 658 kB of archives. After this operation, 783 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main asterisk-mysql amd64 1:1.8.13.1~dfsg1-3+deb7u3 [658 kB] Fetched 658 kB in 0s (18.0 MB/s) Selecting previously unselected package asterisk-mysql. (Reading database ... 145159 files and directories currently installed.) Unpacking asterisk-mysql (from .../asterisk-mysql_1%3a1.8.13.1~dfsg1-3+deb7u3_amd64.deb) ... Setting up asterisk-mysql (1:1.8.13.1~dfsg1-3+deb7u3) ... |
#cat /tmp/1.sql
drop database asterisk; create database asterisk; use asterisk; CREATE TABLE cdr ( calldate datetime NOT NULL default '0000-00-00 00:00:00', clid varchar(80) NOT NULL default '', src varchar(80) NOT NULL default '', dst varchar(80) NOT NULL default '', dcontext varchar(80) NOT NULL default '', channel varchar(80) NOT NULL default '', ... billsec int(11) NOT NULL default '0', disposition varchar(45) NOT NULL default '', amaflags int(11) NOT NULL default '0', accountcode varchar(20) NOT NULL default '', userfield varchar(255) NOT NULL default '', uniqueid varchar(32) NOT NULL default '' ); ALTER TABLE cdr ADD INDEX ( calldate ); ALTER TABLE cdr ADD INDEX ( dst ); ALTER TABLE cdr ADD INDEX ( uniqueid ); |
#cat /tmp/1.sql
drop database asterisk; create database asterisk; use asterisk; CREATE TABLE cdr ( calldate datetime NOT NULL default '0000-00-00 00:00:00', clid varchar(80) NOT NULL default '', src varchar(80) NOT NULL default '', dst varchar(80) NOT NULL default '', dcontext varchar(80) NOT NULL default '', channel varchar(80) NOT NULL default '', ... billsec int(11) NOT NULL default '0', disposition varchar(45) NOT NULL default '', amaflags int(11) NOT NULL default '0', accountcode varchar(20) NOT NULL default '', userfield varchar(255) NOT NULL default '', uniqueid varchar(32) NOT NULL default '' ); ALTER TABLE cdr ADD INDEX ( calldate ); ALTER TABLE cdr ADD INDEX ( dst ); ALTER TABLE cdr ADD INDEX ( uniqueid ); |
#cat /tmp/1.sql
drop database asterisk; create database asterisk; use asterisk; CREATE TABLE cdr ( calldate datetime NOT NULL default '0000-00-00 00:00:00', clid varchar(80) NOT NULL default '', src varchar(80) NOT NULL default '', dst varchar(80) NOT NULL default '', dcontext varchar(80) NOT NULL default '', channel varchar(80) NOT NULL default '', ... billsec int(11) NOT NULL default '0', disposition varchar(45) NOT NULL default '', amaflags int(11) NOT NULL default '0', accountcode varchar(20) NOT NULL default '', userfield varchar(255) NOT NULL default '', uniqueid varchar(32) NOT NULL default '' ); ALTER TABLE cdr ADD INDEX ( calldate ); ALTER TABLE cdr ADD INDEX ( dst ); ALTER TABLE cdr ADD INDEX ( uniqueid ); |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 2664) Verbosity is at least 3 debian4*CLI> quit Executing last minute cleanups |
#cat /tmp/1.sql
drop database asterisk; create database asterisk; use asterisk; CREATE TABLE cdr ( calldate datetime NOT NULL default '0000-00-00 00:00:00', clid varchar(80) NOT NULL default '', src varchar(80) NOT NULL default '', dst varchar(80) NOT NULL default '', dcontext varchar(80) NOT NULL default '', channel varchar(80) NOT NULL default '', ... billsec int(11) NOT NULL default '0', disposition varchar(45) NOT NULL default '', amaflags int(11) NOT NULL default '0', accountcode varchar(20) NOT NULL default '', userfield varchar(255) NOT NULL default '', uniqueid varchar(32) NOT NULL default '' ); ALTER TABLE cdr ADD INDEX ( calldate ); ALTER TABLE cdr ADD INDEX ( dst ); ALTER TABLE cdr ADD INDEX ( uniqueid ); |
#mysql -u root -p < /tmp/1.sql
Enter password: ERROR 1008 (HY000) at line 2: Can't drop database 'asterisk'; database doesn't exist |
#mysql -u root -p < /tmp/1.sql
Enter password: ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exist asterisk' at line 1 |
#mysql -u root -p < /tmp/1.sql
Enter password: |
#netstat -lnp | grep mysql
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 9432/mysqld unix 2 [ ACC ] STREAM LISTENING 34675 9432/mysqld /var/run/mysqld/mysqld.sock |
#vim /var/run/mysql/mysql.sock
|
#~
|
#^C
|
#mysql -u root -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 49 Server version: 5.5.40-0+wheezy1 (Debian) Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> SET PASSWORD FOR 'asterisk'@'localhost' = PASSWORD('password'); Query OK, 0 rows affected (0.00 sec) mysql> bye -> ^CCtrl-C -- exit! Aborted |
#mysql -u root -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 50 Server version: 5.5.40-0+wheezy1 (Debian) Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> ^CCtrl-C -- exit! Aborted |
#~
bash: Z: command not found |
#/etc/asterisk/init.d/restart
bash: /etc/asterisk/init.d/restart: No such file or directory |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 10594) ... [Nov 28 15:28:02] WARNING[10646]: pbx_config.c:1498 pbx_load_config: Can't use 'next' priority on the first entry at line 9 of extensions.conf! [Nov 28 15:28:02] WARNING[10646]: pbx_config.c:1498 pbx_load_config: Can't use 'next' priority on the first entry at line 11 of extensions.conf! == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Spawn extension (gr4, 2101, 3) exited non-zero on 'SIP/atlanta-00000000' == Using SIP RTP CoS mark 5 == Spawn extension (menu, s, 4) exited non-zero on 'SIP/2101-00000002' debian4*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 10594) Verbosity was 2 and is now 3 debian4*CLI> debian4*CLI> debian4*CLI> debian4*CLI> == Using SIP RTP CoS mark 5 -- Executing [8401@gr1:1] System("SIP/2101-00000003", "sh -c "ehco 2101 > /tmp/someone-called-8401"") in new stack [Nov 28 15:29:10] WARNING[10664]: app_system.c:138 system_exec_helper: Unable to execute 'sh -c "ehco 2101 > /tmp/someone-called-8401"' == Spawn extension (gr1, 8401, 1) exited non-zero on 'SIP/2101-00000003' debian4*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/cdr.conf
--- /tmp/l3-saved-3915.25787.13209 2014-11-28 15:32:38.776143322 +0200 +++ /etc/asterisk/cdr.conf 2014-11-28 15:32:44.388143438 +0200 @@ -11,7 +11,7 @@ ; Define whether or not to use CDR logging. Setting this to "no" will override ; any loading of backend CDR modules. Default is "yes". -;enable=yes +enable=yes ; Define whether or not to log unanswered calls. Setting this to "yes" will ; report every attempt to ring a phone in dialing attempts, when it was not |
#mysql -u root -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 57 Server version: 5.5.40-0+wheezy1 (Debian) Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use asterisk; ... +---------------------+------+------+------+----------+-------------------+---------------------+---------+-----------------+----------+---------+-------------+----------+-------------+-----------+--------------+ | 2014-11-28 15:33:31 | 2101 | 2101 | 3101 | gr1 | SIP/2101-00000001 | SIP/london-00000002 | Dial | SIP/london/3101 | 6 | 2 | ANSWERED | 3 | | | 1417181611.1 | +---------------------+------+------+------+----------+-------------------+---------------------+---------+-----------------+----------+---------+-------------+----------+-------------+-----------+--------------+ 1 row in set (0.00 sec) mysql> use asterisk; Database changed mysql> use asterisk; Database changed mysql> ^CCtrl-C -- exit! Aborted |
#asterisk -v
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#http://192.168.12.254/asterisk-13-current.tar.gz
bash: http://192.168.12.254/asterisk-13-current.tar.gz: No such file or directory |
#./configure
bash: ./configure: No such file or directory |
drop database asterisk; create database asterisk; use asterisk; CREATE TABLE cdr ( calldate datetime NOT NULL default '0000-00-00 00:00:00', clid varchar(80) NOT NULL default '', src varchar(80) NOT NULL default '', dst varchar(80) NOT NULL default '', dcontext varchar(80) NOT NULL default '', channel varchar(80) NOT NULL default '', dstchannel varchar(80) NOT NULL default '', lastapp varchar(80) NOT NULL default '', lastdata varchar(80) NOT NULL default '', duration int(11) NOT NULL default '0', billsec int(11) NOT NULL default '0', disposition varchar(45) NOT NULL default '', amaflags int(11) NOT NULL default '0', accountcode varchar(20) NOT NULL default '', userfield varchar(255) NOT NULL default '', uniqueid varchar(32) NOT NULL default '' ); ALTER TABLE cdr ADD INDEX ( calldate ); ALTER TABLE cdr ADD INDEX ( dst ); ALTER TABLE cdr ADD INDEX ( uniqueid );
Contex: internal Channel: SIP/2101 Extension: 8405^C
Время первой команды журнала | 13:17:41 2014-11-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:43:46 2014-11-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 7.49 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.22 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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