/l3/users/mvi/asterisk/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#ls -l ~/.lilalo/
total 44348 -rw-r--r-- 1 root root 302 2010-03-15 17:40 11369259401357331213-1268660105_1268667602_root_.bashrc.diff -rw-r--r-- 1 root root 5050 2010-03-15 17:40 11369259401357331213-1268660105.info -rw-r--r-- 1 root root 730495 2010-03-15 17:40 11369259401357331213-1268660105.script -rw-r--r-- 1 root root 5756 2010-03-15 15:33 1165912459107616586-1268659669.info -rw-r--r-- 1 root root 6967 2010-03-15 15:33 1165912459107616586-1268659669.script -rw-r--r-- 1 root root 8012 2010-03-15 17:42 1172720032585014097-1268667772.info -rw-r--r-- 1 root root 151 2010-03-15 17:42 1172720032585014097-1268667772.script -rw-r--r-- 1 root root 277 2010-03-18 18:10 1184209361527622245-1268923607_1268928571_etc_asterisk_extensions.conf.diff -rw-r--r-- 1 root root 0 2010-03-18 18:11 1184209361527622245-1268923607_1268928711_etc_asterisk_extensions.conf.diff ... -rw-r--r-- 1 root root 320927 2010-03-16 18:36 887220275242553292-1268731809.script -rw-r--r-- 1 root root 763 2010-03-18 16:25 951517352414315649-1268921263_1268921314_etc_asterisk_extensions.conf.diff -rw-r--r-- 1 root root 283 2010-03-18 16:28 951517352414315649-1268921263_1268922330_etc_asterisk_sip.conf.diff -rw-r--r-- 1 root root 380 2010-03-18 16:34 951517352414315649-1268921263_1268922489_etc_asterisk_extensions.conf.diff -rw-r--r-- 1 root root 0 2010-03-18 16:45 951517352414315649-1268921263_1268923486_etc_zaptel.conf.diff -rw-r--r-- 1 root root 17223 2010-03-18 16:45 951517352414315649-1268921263.info -rw-r--r-- 1 root root 298034 2010-03-18 16:45 951517352414315649-1268921263.script -rw-r--r-- 1 root root 4 2010-03-18 16:46 l3-agent.pid -rw-r--r-- 1 root root 7709 2010-03-15 14:32 l3bashrc -rwxr-xr-x 1 root root 234 2010-03-15 14:32 l3prompt |
#ls -l ~/.lilalo/ | less
|
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#date
Fri Mar 19 09:16:51 EET 2010 |
# 2 [||||||||||||||||||||||||||||||||||||||||||||||||100.0%] Load average: 0.97 1.08 1.08
|
#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 [839125@world:1] Answer("SIP/602-081828c8", "") in new stack -- Executing [839125@world:2] Dial("SIP/602-081828c8", "SIP/khr/9125|30") in new stack -- Called khr/9125 -- SIP/khr-0819f0e0 is making progress passing it to SIP/602-081828c8 == Spawn extension (world, 839125, 2) exited non-zero on 'SIP/602-081828c8' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#{EXTEN}@default) ; оставляем голосовое сообщение
; ; Configuration file for MeetMe simple conference rooms for Asterisk of course. ; ; This configuration file is read every time you call app meetme() ; when feeding audio frames from non-Zap channels ; into the conference; larger numbers will allow ; for the conference to 'de-jitter' audio that arrives [general] ; at different timing than the conference's timing ; source, but can also allow for latency in hearing ;audiobuffers=32 ; the audio from the speaker. Minimum value is 2, ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/meetme.conf" 27L, 938C 5,0-1 All |
#[ ]
exten => 4002,n,Playback(/tmp/sys-info) exten => 4002,n,Hangup exten => 4003,1,Answer exten => 4003,n,Wait(1)ns.conf" 151L, 4354C exten => 4003,n,System(/usr/local/bin/say-sys-info df) exten => 4003,n,Wait(1) exten => 4003,n,Playback(/tmp/sys-info) exten => 4003,n,Hangup exten => _41XX,1,Answer exten => _41XX,n,Wait(1) ... exten => _41XX,n,Hangup() exten => _6XX,1,Answer exten => _6XX,n,Set(ENV(CALLERID)=${CALLERID(all)}) exten => _6XX,n,Dial(SIP/${EXTEN},30,m) ; позвонить exten => _6XX,n,System(/usr/local/bin/notify ${EXTEN}) ; выполнить скрипт exten => _6XX,n,GotoIf($["{DIALSTATUS}" == "BUSY"]?busy:unavail) ; если занято то exten => _6XX,n,Set(CALLERFNAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%H:%M:%S)}) ; уставновить переменную exten => _6XX,n,(busy),Playback(vm-isunavail) ; ложим трубку если нет ;exten => _6XX,n,Monitor(wav,/tmp/${CALLERFNAME},m) ; пишем.разговор(отключил потомучто не было musiconhold) exten => _6XX,n,Hangup() ; то |
#{EXTEN}@default) ; оставляем голосовое сообщение
exten => _3XX,1,Answer ;------------- exten => _3XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)") ; exten => _3XX,n,Dial(SIP/khr/${EXTEN},30) ; харьков exten => _3XX,n,Playback(vm-isunavail) ;------------- exten => _4XX,1,Answer ;------------- exten => _4XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)") ; exten => _4XX,n,Dial(SIP/kv/${EXTEN},30) ; киев [world] include => local include => company ... exten => 9,1,Goto(,s,1) [secretar] [ ] exten => s,1,Answer exten => s,n,Background(/menu/secretar.info.menu) exten => 0,1,Goto(Menu,s,bigmenu) exten => 9,1,Goto(,s,1) exten => 2,n,Goto(,s,1) 150,0-1 99% exten => 0,1,Goto(Menu,s,bigmenu) exten => 9,1,Goto(,s,1) |
#reboot
Broadcast message from root@linux2 (pts/12) (Fri Mar 19 09:38:31 2010): The system is going down for reboot NOW! |
#exit
exit Connection to 192.168.15.2 closed by remote host. Connection to 192.168.15.2 closed. |
#ssh
ssh ssh-add ssh-agent ssh-argv0 ssh-copy-id sshd ssh-keygen ssh-keyscan ssh-vulnkey |
#ssh 192.168.15.2
root@192.168.15.2's password: Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17: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: Fri Mar 19 09:40:26 2010 from 192.168.16.3 l3-agent is already running: pid=3120; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#reboot
Broadcast message from root@linux2 (pts/3) (Fri Mar 19 09:44:46 2010): The system is going down for reboot NOW! |
#ssh 192.168.15.2
root@192.168.15.2's password: Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17: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: Fri Mar 19 09:46:32 2010 from 192.168.16.3 l3-agent is already running: pid=3180; pidfile=/root/.lilalo/l3-agent.pid |
#lsmod | grep zap
zaptel 185060 3 wctdm24xxp crc_ccitt 2080 1 zaptel |
#screen -x
|
#ssh 192.168.15.2
root@192.168.15.2's password: Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17: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: Fri Mar 19 09:51:44 2010 from 192.168.17.4 Removing stale pidfile |
#screen -x
|
#apt-get install minicom
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: lrzsz The following NEW packages will be installed: lrzsz minicom 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 417kB of archives. After this operation, 1434kB of additional disk space will be used. ... Get:2 http://ftp.ua.debian.org lenny/main minicom 2.3-1 [317kB] Fetched 417kB in 0s (717kB/s) Selecting previously deselected package lrzsz. (Reading database ... 48728 files and directories currently installed.) Unpacking lrzsz (from .../lrzsz_0.12.21-4.1_i386.deb) ... Selecting previously deselected package minicom. Unpacking minicom (from .../minicom_2.3-1_i386.deb) ... Processing triggers for man-db ... Setting up lrzsz (0.12.21-4.1) ... Setting up minicom (2.3-1) ... |
#ssh 192.168.16.3
The authenticity of host '192.168.16.3 (192.168.16.3)' can't be established. RSA key fingerprint is 3d:ee:d1:8b:9b:a1:a7:d9:a9:c1:8a:52:ea:e4:ca:e4. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.3' (RSA) to the list of known hosts. root@192.168.16.3's password: Linux linux3.unix.nt 2.6.26-2-686 #1 SMP Tue Mar 9 17: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: Fri Mar 19 11:36:41 2010 from linux2.unix.nt l3-agent is already running: pid=6043; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#ssh 192.168.16.3
root@192.168.16.3's password: Linux linux3.unix.nt 2.6.26-2-686 #1 SMP Tue Mar 9 17: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: Fri Mar 19 12:51:17 2010 from linux2.unix.nt l3-agent is already running: pid=2796; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#lsmod | grep z
Module Size Used by ztdummy 3056 0 zaptel 185060 3 ztdummy crc_ccitt 2080 1 zaptel |
#rmmod ztdummy
|
#lsmod | grep z
Module Size Used by zaptel 185060 2 crc_ccitt 2080 1 zaptel |
#vim /etc/zaptel.conf
|
#vim /etc/zaptel.conf
|
#vim /etc/zaptel.conf
|
#ps aux| grep "zaptel.conf"
root 9004 0.0 0.1 34636 6412 pts/5 Tl 14:08 0:00 /usr/bin/vim /etc/zaptel.conf root 9050 0.0 0.0 3116 724 pts/5 R+ 14:10 0:00 grep zaptel.conf |
#kill 9004
|
#ps aux| grep "zaptel.conf"
root 9004 0.0 0.1 34636 6412 pts/5 Tl 14:08 0:00 /usr/bin/vim /etc/zaptel.conf root 9066 0.0 0.0 3116 736 pts/5 S+ 14:10 0:00 grep zaptel.conf |
#kill -9 9004
[2]+ Killed /usr/bin/vim "$@" |
#ps axw | grep vi
8725 pts/5 Tl 0:00 /usr/bin/vim /etc/asterisk/extensions.conf 9089 pts/5 R+ 0:00 grep vi |
#who
root tty1 2010-03-18 16:46 root tty2 2010-03-18 16:47 root tty3 2010-03-19 11:36 root pts/2 2010-03-18 18:12 (:pts/0:S.0) root pts/4 2010-03-18 18:12 (:pts/0:S.1) root pts/6 2010-03-18 18:42 (:pts/0:S.2) root pts/8 2010-03-19 10:21 (192.168.15.210) root pts/10 2010-03-19 10:21 (192.168.17.4) root pts/12 2010-03-19 10:21 (linux2.unix.nt) |
#ps axw | grep vi
8725 pts/5 Tl 0:00 /usr/bin/vim /etc/asterisk/extensions.conf 9106 pts/5 S+ 0:00 grep vi |
#ps axw | grep vi
8725 pts/5 Tl 0:00 /usr/bin/vim /etc/asterisk/extensions.conf 9115 pts/5 S+ 0:00 grep vi |
#cat /etc/.zaptel.conf
cat: /etc/.zaptel.conf: No such file or directory |
#vim /etc/asterisk/zapata.conf
|
#ztscan
|
#ztscan
|
#ztscan -vvv
|
#reboot
|
#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 ========================================================================= ... -- Added extension '0' priority 1 to secretar -- Added extension '9' priority 1 to secretar == Parsing '/etc/asterisk/users.conf': Found linux1*CLI> -- Got SIP response 603 "Decline" back from 192.168.14.100 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#apt-cache search cdr
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly) bchunk - CD image format conversion from bin/cue to iso/cdr cdbackup - CD-R(W) backup utility cdrbq - graphical cd burning frontend cdrtoaster - Dummy package for cdrbq (rename of package) cdrdao - records CDs in Disk-At-Once (DAO) mode gcdmaster - GNOME GUI for cdrdao cdrecord - Dummy transition package for wodim cdrkit-doc - Documentation for the cdrkit package suite genisoimage - Creates ISO-9660 CD-ROM filesystem images ... prokyon3 - A mp3 and ogg/vorbis manager and tag editor python-cddb - Python interface to CD-IDs and FreeDB python-uniconvertor - Universal vector graphics translator ripit - Textbased audio cd ripper setcd - Control the behaviour of your cdrom device udftools - tools for UDF filesystems and DVD/CD-R(W) drives vcdtools - Creates Video CD (VCD) filesystem images wav2cdr - Converts wav files into CD-ROM audio file format win32-loader - Debian-Installer loader for win32 xcdroast - X based CD-writer software |
#lsmod | grep z
Module Size Used by zaptel 185060 3 wct4xxp crc_ccitt 2080 1 zaptel |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 08: Clear channel (Default) (Slaves: 08) Channel 09: Clear channel (Default) (Slaves: 09) Channel 10: Clear channel (Default) (Slaves: 10) Channel 11: Clear channel (Default) (Slaves: 11) Channel 12: Clear channel (Default) (Slaves: 12) Channel 13: Clear channel (Default) (Slaves: 13) Channel 14: Clear channel (Default) (Slaves: 14) Channel 15: Clear channel (Default) (Slaves: 15) Channel 16: D-channel (Default) (Slaves: 16) 16 channels to configure. |
#ztscan
[1] active=yes alarms=YEL description=T2XXP (PCI) Card 0 Span 1 name=TE2/0/1 manufacturer=Digium devicetype=Wildcard TE220 (4th Gen) location=Board ID Switch 0 basechan=1 totchans=31 ... basechan=32 totchans=31 irq=17 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding= framing= |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 08: Clear channel (Default) (Slaves: 08) Channel 09: Clear channel (Default) (Slaves: 09) Channel 10: Clear channel (Default) (Slaves: 10) Channel 11: Clear channel (Default) (Slaves: 11) Channel 12: Clear channel (Default) (Slaves: 12) Channel 13: Clear channel (Default) (Slaves: 13) Channel 14: Clear channel (Default) (Slaves: 14) Channel 15: Clear channel (Default) (Slaves: 15) Channel 16: D-channel (Default) (Slaves: 16) 16 channels to configure. |
#vim /etc/asterisk/zapata.conf
--- /tmp/l3-saved-2948.31207.17964 2010-03-19 14:15:37.000000000 +0200 +++ /etc/asterisk/zapata.conf 2010-03-19 14:19:15.000000000 +0200 @@ -47,7 +47,7 @@ ; ; Default context ; -context=default +context=world ;--------------!!!!!!!!!!! ; ; Switchtype: Only used for PRI. ; @@ -59,7 +59,7 @@ ; ni1: Old National ISDN 1 ; qsig: Q.SIG ; -switchtype=national +switchtype=euroisdn ;-----------------------!!!!!!!!!!!!!1111 ; ; Some switches (AT&T especially) require network specific facility IE ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet' @@ -210,7 +210,7 @@ ; (2-way) ; sf_rxtx: Same as sf_txrx (for our dyslexic friends) ; -signalling=fxo_ls +signalling=pri_cpe ; ; If you have an outbound signalling format that is different from format ; specified above (but compatible), you can specify outbound signalling format, @@ -609,10 +609,11 @@ ; crv => 2:1-2,5-8 ; ; -;callerid="Green Phone"<(256) 428-6121> -;channel => 1 +callerid="Odessa inc."<160> +channel => 1-2 ;callerid="Black Phone"<(256) 428-6122> ;channel => 2 + ;callerid="CallerID Phone" <(256) 428-6123> ;callerid="CallerID Phone" <(630) 372-1564> ;callerid="CallerID Phone" <(256) 704-4666> |
#vim /etc/asterisk/extensions.conf
|
#[local]> 677,n,Goto(Menu,s,1)
;prilocaldialplan=national ; ; PRI callerid prefixes based on the given TON/NPI (dialplan) ; This is especially needed for euroisdn E1-PRIs ; ; sample 1 for Germany ;internationalprefix = 00 ;nationalprefix = 0 ;localprefix = 0711 ;privateprefix = 07115678 ... ;channel => 25 ;callerid="Megan May" <(256) 428-6132> ;channel => 26 ;callerid="Suzy Queue" <(256) 428-6233> ;channel => 27 ;callerid="Larry Moe" <(256) 428-6234> ;channel => 28 ; ; Sample PRI (CPE) config: Specify the switchtype, the signalling as either ; pri_cpe or pri_net for CPE or Network termination, and generally you will |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2948.3754.5711 2010-03-19 14:20:41.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-19 14:25:37.000000000 +0200 @@ -1,3 +1,16 @@ + +[in] + +;exten => 501,1,Answer + +;exten => _5XX,1,Answer +;exten => _5XX,n,Dial(SIP/677,30,m) + +[out] + +;exten => _95XX,1,Answer +;exten => _95XX,n,Dial(ZAP/G1/${EXTEN:1},30,m) + [local] ;exten => _1XX,1,Answer |
#zc
zcat zcmp |
#ztcfg -vvv
Notice: Configuration file is /etc/zaptel.conf line 1: Only valid fifth arguments are 'yellow' or 'crc4', not 'crc4 ;cisco' line 6: Channel 1 already configured as 'Clear channel' at line 2 line 6: Channel 2 already configured as 'Clear channel' at line 2 line 6: Channel 3 already configured as 'Clear channel' at line 2 line 6: Channel 4 already configured as 'Clear channel' at line 2 line 6: Channel 5 already configured as 'Clear channel' at line 2 line 6: Channel 6 already configured as 'Clear channel' at line 2 line 6: Channel 7 already configured as 'Clear channel' at line 2 line 6: Channel 8 already configured as 'Clear channel' at line 2 line 6: Channel 9 already configured as 'Clear channel' at line 2 line 6: Channel 10 already configured as 'Clear channel' at line 2 line 6: Channel 11 already configured as 'Clear channel' at line 2 line 6: Channel 12 already configured as 'Clear channel' at line 2 line 6: Channel 13 already configured as 'Clear channel' at line 2 line 6: Channel 14 already configured as 'Clear channel' at line 2 line 6: Channel 15 already configured as 'Clear channel' at line 2 line 7: Channel 16 already configured as 'D-channel' at line 3 17 error(s) detected |
#vim /etc/zaptel.conf
--- /tmp/l3-saved-2948.10006.24853 2010-03-19 14:57:46.000000000 +0200 +++ /etc/zaptel.conf 2010-03-19 14:57:53.000000000 +0200 @@ -1,4 +1,4 @@ -span=1,0,0,ccs,hdb3,crc4 ;cisco +span=1,0,0,ccs,hdb3,crc4 bchan=1-15 dchan=16 |
#vim /etc/zaptel.conf
--- /tmp/l3-saved-2948.21057.31798 2010-03-19 14:58:15.000000000 +0200 +++ /etc/zaptel.conf 2010-03-19 14:58:43.000000000 +0200 @@ -3,6 +3,6 @@ dchan=16 span=2,1,0,ccs,hdb3,crc4 -bchan=1-15 -dchan=16 +bchan=33-47 +dchan=48 |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) ... Channel 40: Clear channel (Default) (Slaves: 40) Channel 41: Clear channel (Default) (Slaves: 41) Channel 42: Clear channel (Default) (Slaves: 42) Channel 43: Clear channel (Default) (Slaves: 43) Channel 44: Clear channel (Default) (Slaves: 44) Channel 45: Clear channel (Default) (Slaves: 45) Channel 46: Clear channel (Default) (Slaves: 46) Channel 47: Clear channel (Default) (Slaves: 47) Channel 48: D-channel (Default) (Slaves: 48) 32 channels to configure. |
#ztscan
[1] active=yes alarms=OK description=T2XXP (PCI) Card 0 Span 1 name=TE2/0/1 manufacturer=Digium devicetype=Wildcard TE220 (4th Gen) location=Board ID Switch 0 basechan=1 totchans=31 ... basechan=32 totchans=31 irq=17 type=digital-E1 syncsrc=2 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS |
#vim /etc/asterisk/zapata.conf
--- /tmp/l3-saved-2948.31539.20501 2010-03-19 15:02:12.000000000 +0200 +++ /etc/asterisk/zapata.conf 2010-03-19 15:05:52.000000000 +0200 @@ -89,7 +89,7 @@ ;prilocaldialplan=national ; ; PRI callerid prefixes based on the given TON/NPI (dialplan) -; This is especially needed for euroisdn E1-PRIs +;ugnaThis is especially needed for euroisdn E1-PRIs ; ; sample 1 for Germany ;internationalprefix = 00 @@ -614,6 +614,12 @@ ;callerid="Black Phone"<(256) 428-6122> ;channel => 2 +signalling=pri_net +callerid="Odessa inc."<500> +channel => 32-33 + + + ;callerid="CallerID Phone" <(256) 428-6123> ;callerid="CallerID Phone" <(630) 372-1564> ;callerid="CallerID Phone" <(256) 704-4666> |
#vim /etc/asterisk/zapata.conf
--- /tmp/l3-saved-2948.427.9998 2010-03-19 15:06:06.000000000 +0200 +++ /etc/asterisk/zapata.conf 2010-03-19 15:06:46.000000000 +0200 @@ -615,7 +615,7 @@ ;channel => 2 signalling=pri_net -callerid="Odessa inc."<500> +callerid="XXX"<150> channel => 32-33 |
#/etc/init.d/asterisk stop
Stopping 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 ========================================================================= ... [Mar 19 16:22:58] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Mar 19 16:23:03] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Mar 19 16:23:08] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Mar 19 16:23:13] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Mar 19 16:23:18] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Mar 19 16:23:23] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Mar 19 16:23:28] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Mar 19 16:23:33] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux1*CLI> quit Executing last minute cleanups |
#tailf /var/log/asterisk/messages
here = 0, tmp->channel = 32, channel = 32 [Mar 19 15:08:11] ERROR[3693] chan_zap.c: Unable to register channel '32-33' [Mar 19 15:08:11] ERROR[3693] chan_vpb.cc: No Voicetronix cards detected [Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: Starting AEL load process. [Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. ^C |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) ... Channel 40: Clear channel (Default) (Slaves: 40) Channel 41: Clear channel (Default) (Slaves: 41) Channel 42: Clear channel (Default) (Slaves: 42) Channel 43: Clear channel (Default) (Slaves: 43) Channel 44: Clear channel (Default) (Slaves: 44) Channel 45: Clear channel (Default) (Slaves: 45) Channel 46: Clear channel (Default) (Slaves: 46) Channel 47: Clear channel (Default) (Slaves: 47) Channel 48: D-channel (Default) (Slaves: 48) 32 channels to configure. |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#less /var/log/asterisk/messages
|
#ztcfvg -vvv
bash: ztcfvg: command not found |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) ... Channel 41: Clear channel (Default) (Slaves: 41) Channel 42: Clear channel (Default) (Slaves: 42) Channel 43: Clear channel (Default) (Slaves: 43) Channel 44: Clear channel (Default) (Slaves: 44) Channel 45: Clear channel (Default) (Slaves: 45) Channel 46: Clear channel (Default) (Slaves: 46) Channel 47: D-channel (Default) (Slaves: 47) 32 channels to configure. Changing signalling on channel 32 from Unused to Clear channel Changing signalling on channel 47 from Clear channel to HDLC with FCS check |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) ... Channel 39: Clear channel (Default) (Slaves: 39) Channel 40: Clear channel (Default) (Slaves: 40) Channel 41: Clear channel (Default) (Slaves: 41) Channel 42: Clear channel (Default) (Slaves: 42) Channel 43: Clear channel (Default) (Slaves: 43) Channel 44: Clear channel (Default) (Slaves: 44) Channel 45: Clear channel (Default) (Slaves: 45) Channel 46: Clear channel (Default) (Slaves: 46) Channel 47: D-channel (Default) (Slaves: 47) 32 channels to configure. |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#tail -f /var/log/asterisk/messages
[Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:11:14] WARNING[3986] chan_zap.c: Detected alarm on channel 32: Yellow Alarm [Mar 19 15:11:14] NOTICE[3985] chan_zap.c: PRI got event: Alarm (4) on Primary D-channel of span 2 [Mar 19 15:11:14] WARNING[3986] chan_zap.c: Detected alarm on channel 33: Yellow Alarm [Mar 19 15:11:14] WARNING[3985] chan_zap.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Mar 19 15:11:14] NOTICE[3986] chan_zap.c: Alarm cleared on channel 32 [Mar 19 15:11:14] NOTICE[3986] chan_zap.c: Alarm cleared on channel 33 [Mar 19 15:11:14] NOTICE[3985] chan_zap.c: PRI got event: No more alarm (5) on Primary D-channel of span 2 ^C |
#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 ========================================================================= ... Overlap Dial: 0 T200 Timer: 1000 T203 Timer: 10000 T305 Timer: 30000 T308 Timer: 4000 T309 Timer: -1 T313 Timer: 4000 N200 Counter: 3 linux1*CLI> quit Executing last minute cleanups |
#tail -f /var/log/asterisk/messages
[Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Mar 19 15:11:14] WARNING[3986] chan_zap.c: Detected alarm on channel 32: Yellow Alarm [Mar 19 15:11:14] NOTICE[3985] chan_zap.c: PRI got event: Alarm (4) on Primary D-channel of span 2 [Mar 19 15:11:14] WARNING[3986] chan_zap.c: Detected alarm on channel 33: Yellow Alarm [Mar 19 15:11:14] WARNING[3985] chan_zap.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Mar 19 15:11:14] NOTICE[3986] chan_zap.c: Alarm cleared on channel 32 [Mar 19 15:11:14] NOTICE[3986] chan_zap.c: Alarm cleared on channel 33 [Mar 19 15:11:14] NOTICE[3985] chan_zap.c: PRI got event: No more alarm (5) on Primary D-channel of span 2 ^C |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2948.17272.12635 2010-03-19 15:12:52.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-19 15:13:38.000000000 +0200 @@ -86,10 +86,10 @@ exten => 4800,1,Answer exten => 4800,n,Dial(SIP/khm/${EXTEN},20) -exten => _3XX,1,Answer ;------------- -exten => _3XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)") ; -exten => _3XX,n,Dial(SIP/khr/${EXTEN},30) ; харьков -exten => _3XX,n,Playback(vm-isunavail) ;------------- +;exten => _3XX,1,Answer ;------------- +;exten => _3XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)") ; +;exten => _3XX,n,Dial(SIP/khr/${EXTEN},30) ; харьков +;exten => _3XX,n,Playback(vm-isunavail) ;------------- exten => _4XX,1,Answer ;------------- exten => _4XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)") ; |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2948.25759.32605 2010-03-19 15:13:40.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-19 15:21:46.000000000 +0200 @@ -13,11 +13,11 @@ [local] -;exten => _1XX,1,Answer -;exten => _1XX,n,Dial(SIP/khm/${EXTEN},20) +exten => _1XX,1,Answer +exten => _1XX,n,Dial(ZAP/G1/${EXTEN},20) -exten => _8391XX,1,Answer -exten => _8391XX,n,Dial(SIP/khr/${EXTEN:2},30) +;exten => _8391XX,1,Answer +;exten => _8391XX,n,Dial(SIP/khr/${EXTEN:2},30) exten => 666,1,Answer exten => 666,n,MeetMe(666,MP,666) @@ -91,6 +91,9 @@ ;exten => _3XX,n,Dial(SIP/khr/${EXTEN},30) ; харьков ;exten => _3XX,n,Playback(vm-isunavail) ;------------- +exten => _3XX,1,Answer +exten => _3XX,n,Dial(ZAP/G2/${EXTEN}) + exten => _4XX,1,Answer ;------------- exten => _4XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)") ; exten => _4XX,n,Dial(SIP/kv/${EXTEN},30) ; киев |
#apt-cache search cdr | grep cdr
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly) bchunk - CD image format conversion from bin/cue to iso/cdr cdrbq - graphical cd burning frontend cdrtoaster - Dummy package for cdrbq (rename of package) cdrdao - records CDs in Disk-At-Once (DAO) mode gcdmaster - GNOME GUI for cdrdao cdrecord - Dummy transition package for wodim cdrkit-doc - Documentation for the cdrkit package suite cdrw-taper - taper replacement for amanda to support backups to CD-RW or DVD+RW cue2toc - converts CUE files to cdrdao's TOC format cdrskin - command line CD/DVD writing tool setcd - Control the behaviour of your cdrom device wav2cdr - Converts wav files into CD-ROM audio file format xcdroast - X based CD-writer software |
#apt-cache search cdr | grep aster
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly) cdrtoaster - Dummy package for cdrbq (rename of package) gcdmaster - GNOME GUI for cdrdao |
# {mod_irc, []},
total 432 -rw-r--r-- 1 root root 390475 2010-03-19 16:19 asterisk-stat-v2_0_1.tar.gz drwxr-xr-x 3 root root 4096 2010-03-19 06:25 backups drwxr-xr-x 11 root root 4096 2010-03-18 09:53 cache drwxr-xr-x 34 root root 4096 2010-03-18 11:00 lib drwxrwsr-x 2 root staff 4096 2010-01-25 05:41 local drwxrwxrwt 3 root root 4096 2010-03-19 14:14 lock drwxr-xr-x 9 root root 4096 2010-03-19 14:14 log drwxrwsrwt 2 root mail 4096 2010-03-19 15:59 mail drwxr-xr-x 2 root root 4096 2010-03-15 11:56 opt drwxr-xr-x 12 root root 4096 2010-03-19 14:14 run drwxr-xr-x 9 root root 4096 2010-03-17 11:51 spool drwxrwxrwt 2 root root 4096 2010-03-15 15:12 tmp |
#cd /var/
|
#tar zxvf ./asterisk-stat-v2_0_1.tar.gz
asterisk-stat-v2/jpgraph_lib/imgdata_balls.inc asterisk-stat-v2/jpgraph_lib/imgdata_bevels.inc asterisk-stat-v2/jpgraph_lib/imgdata_diamonds.inc asterisk-stat-v2/jpgraph_lib/imgdata_pushpins.inc asterisk-stat-v2/jpgraph_lib/imgdata_squares.inc asterisk-stat-v2/jpgraph_lib/imgdata_stars.inc asterisk-stat-v2/jpgraph_lib/jpg-config.inc asterisk-stat-v2/jpgraph_lib/jpgraph_antispam-digits.php asterisk-stat-v2/jpgraph_lib/jpgraph_antispam.php asterisk-stat-v2/jpgraph_lib/jpgraph_bar.php ... asterisk-stat-v2/info.txt asterisk-stat-v2/export_csv.php asterisk-stat-v2/graph_stat.php asterisk-stat-v2/export_pdf.php asterisk-stat-v2/cdr.php asterisk-stat-v2/call-comp.php asterisk-stat-v2/encrypt.js asterisk-stat-v2/counter.txt asterisk-stat-v2/about.php asterisk-stat-v2/call-log.php |
#ls -l asterisk-stat-v2
total 240 -rwxr-xr-x 1 500 500 8460 2005-03-04 19:36 about.php -rw-rw-r-- 1 500 500 21775 2005-03-02 17:09 call-comp.php -rw-rw-r-- 1 500 500 23602 2005-03-04 14:53 call-daily-load.php -rw-rw-r-- 1 500 500 20901 2005-03-04 17:28 call-last-month.php -rw-rw-r-- 1 500 500 39121 2005-03-02 17:09 call-log.php -rw-rw-r-- 1 500 500 6088 2005-03-07 12:20 cdr.php -rwxrwxr-x 1 500 500 131 2005-03-07 21:03 CHANGELOG.txt -rwxrwxr-x 1 500 500 1 2004-05-06 19:46 counter.txt drwxr-xr-x 3 root root 4096 2010-03-19 16:20 css ... -rw-rw-r-- 1 500 500 13801 2005-03-02 17:11 export_pdf.php -rw-rw-r-- 1 500 500 13453 2005-03-07 12:25 graph_hourdetail.php -rw-rw-r-- 1 500 500 6774 2005-03-07 21:01 graph_pie.php -rw-rw-r-- 1 500 500 10926 2005-03-07 21:05 graph_statbar.php -rw-rw-r-- 1 500 500 11066 2005-03-07 21:00 graph_stat.php drwxr-xr-x 2 root root 4096 2010-03-19 16:20 images -rwxrwxr-x 1 500 500 210 2005-02-11 14:36 info.txt drwxr-xr-x 2 root root 4096 2010-03-19 16:20 jpgraph_lib drwxr-xr-x 4 root root 4096 2010-03-19 16:20 lib -rwxr-xr-x 1 500 500 5047 2005-03-04 20:20 wiki.html |
#apt-get install apache
Reading package lists... Done Building dependency tree Reading state information... Done Package apache is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package apache has no installation candidate |
#apt-get install httpd
Reading package lists... Done Building dependency tree Reading state information... Done Package httpd is a virtual package provided by: lighttpd 1.4.19-5+lenny1 yaws 1.77-3+lenny1 webfs 1.21-5.1 tntnet 1.6.3-3 thttpd 2.25b-6 nginx 0.6.32-3+lenny3 ... bozohttpd 20060517-6 boa 0.94.14rc21-3 apache2-mpm-worker 2.2.9-10+lenny6 apache2-mpm-prefork 2.2.9-10+lenny6 apache2-mpm-event 2.2.9-10+lenny6 apache2-mpm-itk 2.2.6-02-1+lenny2+b2 aolserver4 4.5.0-16.1 aolserver4-core 4.5.0-16.1 You should explicitly select one to install. E: Package httpd has no installation candidate |
#apt-get install apache2
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 libmysqlclient15off mysql-common openssl-blacklist ssl-cert Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom The following NEW packages will be installed: apache2 apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 libmysqlclient15off mysql-common ... Enabling module deflate. Enabling module authz_default. Enabling module authz_user. Enabling module authz_groupfile. Enabling module authn_file. Enabling module authz_host. Setting up apache2-mpm-worker (2.2.9-10+lenny6) ... Starting web server: apache2. Setting up apache2 (2.2.9-10+lenny6) ... Setting up ssl-cert (1.0.23) ... |
#apt-cache search mysql
ampache-themes - Themes for Ampache ampache - web-based audio file management system anymeal - A cookbook database for storing recipes aolserver4-nsmysql - AOLserver 4 module: module for accessing MySQL databases libaprutil1 - The Apache Portable Runtime Utility Library asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly) audiolink - makes managing and searching for music easier auth2db-common - Common configuration files for Auth2db backend and web frontend auth2db-filters - Auth2db defaults filters pack auth2db-frontend - Web frontend view for auth2DB log engine ... libqt4-sql-mysql - Qt 4 MySQL database driver lighttpd-mod-mysql-vhost - MySQL-based virtual host configuration for lighttpd mysql-client - MySQL database client (metapackage depending on the latest version) mysql-client-5.0 - MySQL database client binaries mysql-common - MySQL database common files mysql-server - MySQL database server (metapackage depending on the latest version) mysql-server-5.0 - MySQL database server binaries openoffice.org-base - OpenOffice.org office suite - database php5-mysql - MySQL module for php5 php5-sqlite - SQLite module for php5 |
cat: /etc/.zaptel.conf: No such file or directory
Время первой команды журнала | 17:59:42 2010- 3-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:21:46 2010- 3-19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.85 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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