Журнал лабораторных работ

Содержание

Журнал

Четверг (04/11/13)

/dev/pts/13
16:13:32
#ls /var/spool/asterisk/outgoing/
call-minsk.1202-2219425593786226601.call  call-minsk.1302-9670306242443621587.call  call-minsk.1401-1146932462379522690.call
16:13:44
#ls /var/spool/asterisk/outgoing/
call-minsk.1202-2219425593786226601.call  call-minsk.1302-9670306242443621587.call
16:14:24
#cat /var/spool/asterisk/outgoing/call-minsk.1302-9670306242443621587.call
Channel:SIP/minsk/1302
Context:internal
Extension:8501
StartRetry: 1425 1 (1365689894)
16:14:28
#cat /var/spool/asterisk/outgoing/call-minsk.1302-9670306242443621587.call
Channel:SIP/minsk/1302
Context:internal
Extension:8501
StartRetry: 1425 1 (1365689894)
/dev/pts/10
16:15:04
#scp 192.168.70.1:/home/root/call-all.sh ~/
root@192.168.70.1's password:
scp: /home/root/call-all.sh: No such file or directory
/dev/pts/13
16:15:09
#^C

16:15:12
#^C

/dev/pts/10
16:15:29
#scp 192.168.70.1:/home/user/call-all.sh ~/
root@192.168.70.1's password:
scp: /home/user/call-all.sh: No such file or directory
/dev/pts/13
16:15:53
#ls -l /home/user/call-all.sh
-rw-r--r-- 1 root root 330 Apr 11 17:15 /home/user/call-all.sh
/dev/pts/10
16:16:03
#scp 192.168.70.1:/home/user/call-all.sh /home/user/
root@192.168.70.1's password:
scp: /home/user/call-all.sh: No such file or directory
16:16:53
#ls -l
total 6864
-rw-r--r-- 1 root root 2339482 Apr 11 10:29 belki.wav
-rw-r--r-- 1 root root 4186632 Apr 11 10:30 burunduki.wav
-rw-r--r-- 1 root root     330 Apr 11 17:11 call-all.sh
-rw-r--r-- 1 root root  189204 Oct 12 13:08 chan_dongle-1.1.r14.tgz
-rw-r--r-- 1 root root    5264 Apr  8 16:41 install
drwxr-xr-x 2 root root    4096 Apr 11 10:46 text
-rw-r--r-- 1 root root  268226 Apr 11 10:25 text1.wav
16:17:00
#vim call-all.sh
прошло 13 минут
/dev/pts/13
16:30:09
#ls /var/spool/asterisk/
dictate  meetme  monitor  outgoing  system  tmp  voicemail

Пятница (04/12/13)

/dev/pts/2
08:15:50
#screen
/dev/pts/1
08:15:50
#screen
/dev/pts/4
08:16:08
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 1347)
linux5*CLI>
Disconnected from Asterisk server
/dev/pts/6
08:16:21
#cd /etc/asterisk/

08:16:24
#lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
прошло 16 минут
08:33:21
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
...
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03)
21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11)
08:33:31
#lsmod | grep dahdi
dahdi_voicebus         44528  1 wcte12xp
dahdi                 176962  2 wcte12xp,dahdi_voicebus
crc_ccitt              12331  1 dahdi
/dev/pts/8
08:33:55
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
...
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03)
21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11)
08:33:56
#lsmod | less
/dev/pts/6
08:41:11
#lsmod
Module                  Size  Used by
cpufreq_stats          12711  0
cpufreq_powersave      12422  0
cpufreq_conservative    12987  0
cpufreq_userspace      12520  0
bridge                 59326  0
stp                    12405  1 bridge
rfcomm                 31985  0
bnep                   17147  2
bluetooth             106783  10 rfcomm,bnep
...
uhci_hcd               26153  0
ata_generic            12439  0
ata_piix               25240  3
ehci_hcd               34968  0
floppy                 47821  0
libata                124180  2 ata_generic,ata_piix
e1000e                112876  0
scsi_mod              134461  5 sg,sr_mod,sd_mod,usb_storage,libata
usbcore               103673  7 option,usb_wwan,usbserial,usb_storage,uhci_hcd,ehci_hcd
usb_common             12338  1 usbcore
/dev/pts/8
08:41:44
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
...
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03)
21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11)
/dev/pts/6
08:41:45
#lsmod | less
/dev/pts/8
08:41:46
#find /sys/ -name \*21:08.0\*
/sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0
/sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0/pci:0000:21:08.0
/sys/bus/pci/devices/0000:21:08.0
/sys/bus/pci/drivers/wcte12xp/0000:21:08.0
/sys/bus/dahdi_devices/devices/pci:0000:21:08.0
/dev/pts/6
08:42:18
#find /sys -name \*21:08.0\*
/sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0
/sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0/pci:0000:21:08.0
/sys/bus/pci/devices/0000:21:08.0
/sys/bus/pci/drivers/wcte12xp/0000:21:08.0
/sys/bus/dahdi_devices/devices/pci:0000:21:08.0
/dev/pts/8
08:42:34
#lsmod | grep wcte12xp
wcte12xp               26021  0
dahdi_voicebus         44528  1 wcte12xp
dahdi                 176962  2 wcte12xp,dahdi_voicebus
/dev/pts/6
08:42:45
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
...
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03)
21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11)
08:43:05
#find /sys -name \*21:08.0\*
/sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0
/sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0/pci:0000:21:08.0
/sys/bus/pci/devices/0000:21:08.0
/sys/bus/pci/drivers/wcte12xp/0000:21:08.0
/sys/bus/dahdi_devices/devices/pci:0000:21:08.0
08:43:21
#find /sys -name \*00:19.0\*
/sys/devices/pci0000:00/0000:00:19.0
/sys/bus/pci/devices/0000:00:19.0
/sys/bus/pci/drivers/e1000e/0000:00:19.0
08:43:26
#lsmod | grep wcte12xp\
> ^C
/dev/pts/8
08:43:43
#modinfo wcte12xp | head
filename:       /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko
license:        GPL v2
author:         Digium Incorporated <support@digium.com>
description:    Wildcard VoiceBus Digital Card Driver
alias:          pci:v0000D161d00008001sv*sd*bc*sc*i*
alias:          pci:v0000D161d00008000sv*sd*bc*sc*i*
alias:          pci:v0000D161d00000120sv*sd*bc*sc*i*
depends:        dahdi_voicebus,dahdi
vermagic:       3.2.0-0.bpo.4-686-pae SMP mod_unload modversions 686
parm:           debug:int
/dev/pts/6
08:43:51
#lsmod | grep wcte12xp
wcte12xp               26021  0
dahdi_voicebus         44528  1 wcte12xp
dahdi                 176962  2 wcte12xp,dahdi_voicebus
08:43:52
#modinfo wcte12xp
filename:       /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko
license:        GPL v2
author:         Digium Incorporated <support@digium.com>
description:    Wildcard VoiceBus Digital Card Driver
alias:          pci:v0000D161d00008001sv*sd*bc*sc*i*
alias:          pci:v0000D161d00008000sv*sd*bc*sc*i*
alias:          pci:v0000D161d00000120sv*sd*bc*sc*i*
depends:        dahdi_voicebus,dahdi
vermagic:       3.2.0-0.bpo.4-686-pae SMP mod_unload modversions 686
parm:           debug:int
...
parm:           losalarmdebounce:int
parm:           aisalarmdebounce:int
parm:           yelalarmdebounce:int
parm:           latency:int
parm:           max_latency:int
parm:           vpmsupport:int
parm:           vpmtsisupport:int
parm:           vpmnlptype:int
parm:           vpmnlpthresh:int
parm:           vpmnlpmaxsupp:int
/dev/pts/8
08:43:58
#modinfo wcte12xp | head -20
filename:       /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko
license:        GPL v2
author:         Digium Incorporated <support@digium.com>
description:    Wildcard VoiceBus Digital Card Driver
alias:          pci:v0000D161d00008001sv*sd*bc*sc*i*
alias:          pci:v0000D161d00008000sv*sd*bc*sc*i*
alias:          pci:v0000D161d00000120sv*sd*bc*sc*i*
depends:        dahdi_voicebus,dahdi
vermagic:       3.2.0-0.bpo.4-686-pae SMP mod_unload modversions 686
parm:           debug:int
parm:           t1e1override:int
parm:           default_linemode:"auto"(default), "e1", or "t1". "auto" will use the value from the hardware jumpers. (charp)
parm:           j1mode:int
parm:           alarmdebounce:int
parm:           losalarmdebounce:int
parm:           aisalarmdebounce:int
parm:           yelalarmdebounce:int
parm:           latency:int
parm:           max_latency:int
parm:           vpmsupport:int
/dev/pts/6
08:44:01
#modinfo wcte12xp | head
filename:       /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko
license:        GPL v2
author:         Digium Incorporated <support@digium.com>
description:    Wildcard VoiceBus Digital Card Driver
alias:          pci:v0000D161d00008001sv*sd*bc*sc*i*
alias:          pci:v0000D161d00008000sv*sd*bc*sc*i*
alias:          pci:v0000D161d00000120sv*sd*bc*sc*i*
depends:        dahdi_voicebus,dahdi
vermagic:       3.2.0-0.bpo.4-686-pae SMP mod_unload modversions 686
parm:           debug:int
/dev/pts/8
08:44:09
##rmmod wcte12xp

/dev/pts/6
08:44:10
#dahdi_scan -v
[1]
active=yes
alarms=RED
description=Wildcard TE121 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE121
location=PCI Bus 33 Slot 09
basechan=1
totchans=31
...
port=22,none
port=23,none
port=24,none
port=25,none
port=26,none
port=27,none
port=28,none
port=29,none
port=30,none
port=31,none
/dev/pts/8
08:45:11
#ls -l /etc/modules
-rw-r--r-- 1 root root 253 Apr  8 14:50 /etc/modules
08:45:16
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko
dpkg: /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko not found.
08:46:48
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/
build/               modules.alias        modules.builtin.bin  modules.devname      modules.symbols
dahdi/               modules.alias.bin    modules.dep          modules.order        modules.symbols.bin
kernel/              modules.builtin      modules.dep.bin      modules.softdep      source/
08:46:48
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/
arch/    crypto/  drivers/ fs/      lib/     mm/      net/     sound/
08:46:48
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/
9p/             bfs/            coda/           ext2/           gfs2/           jfs/            nfs_common/     qnx4/           udf/
adfs/           binfmt_aout.ko  configfs/       ext3/           hfs/            lockd/          nfsd/           quota/          ufs/
affs/           binfmt_misc.ko  cramfs/         ext4/           hfsplus/        logfs/          nilfs2/         reiserfs/       xfs/
afs/            btrfs/          dlm/            fat/            isofs/          mbcache.ko      nls/            romfs/
aufs/           cachefiles/     ecryptfs/       freevxfs/       jbd/            minix/          ntfs/           squashfs/
autofs4/        ceph/           efs/            fscache/        jbd2/           ncpfs/          ocfs2/          sysv/
befs/           cifs/           exofs/          fuse/           jffs2/          nfs/            omfs/           ubifs/
08:46:48
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/ext4/ext4.ko
linux-image-3.2.0-0.bpo.4-686-pae: /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/ext4/ext4.ko
08:47:08
#ls -l /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/ext4/ext4.ko /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko
-rw-r--r-- 1 root root 298608 Apr 10 13:55 /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko
-rw-r--r-- 1 root root 449016 Apr  8 16:32 /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/ext4/ext4.ko
08:47:56
## 1.6

08:48:06
#which dahdi_genconf
/usr/sbin/dahdi_genconf
08:49:21
#dahdi_genconf
Unrecognized garbage 'Reserved' in WCT1/0/16
08:49:39
#ls -l /etc/dahdi/
total 8
-rw-r--r-- 1 root root  459 Apr 12 09:49 system.conf
-rw-r--r-- 1 root root 1091 Sep 29  2009 xpp.conf
08:49:47
#less /etc/dahdi/system.conf
08:50:05
#ls -l /etc/dahdi/system.conf
-rw-r--r-- 1 root root 459 Apr 12 09:49 /etc/dahdi/system.conf
/dev/pts/8
08:57:36
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.6.2
Echo Canceller(s): HWEC
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
31 channels to configure.
Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
...
Setting echocan for channel 22 to none
Setting echocan for channel 23 to none
Setting echocan for channel 24 to none
Setting echocan for channel 25 to none
Setting echocan for channel 26 to none
Setting echocan for channel 27 to none
Setting echocan for channel 28 to none
Setting echocan for channel 29 to none
Setting echocan for channel 30 to none
Setting echocan for channel 31 to none
08:57:39
#vim /etc/dahdi/system.conf
08:58:25
#cd /usr/src/
chan_dongle-1.1.r14/                 linux/                               linux-OLDVERSION.1365590910
chan_dongle-1.1.r14.tgz              linux-headers-3.2.0-0.bpo.4-686-pae/ modules/
dahdi/                               linux-headers-3.2.0-0.bpo.4-common/  vpb-driver.tar.bz2
dahdi.tar.bz2                        linux-kbuild-3.2/
08:58:25
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: done
Loading DAHDI hardware modules:
No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg: .
08:59:27
#lsmod | grep wcte12xp

09:00:18
#rmmod dahdi

09:00:22
#modprobe wcte12xp

09:00:35
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.6.2
Echo Canceller(s): HWEC
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
31 channels to configure.
Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
...
Setting echocan for channel 22 to none
Setting echocan for channel 23 to none
Setting echocan for channel 24 to none
Setting echocan for channel 25 to none
Setting echocan for channel 26 to none
Setting echocan for channel 27 to none
Setting echocan for channel 28 to none
Setting echocan for channel 29 to none
Setting echocan for channel 30 to none
Setting echocan for channel 31 to none
09:00:41
#less /etc/init.d/dahdi
09:01:27
#ls /proc/dahdi/
1
09:01:30
#less /etc/init.d/dahdi
09:03:43
#less /etc/default/d
09:03:43
#less /etc/init.d/dahdi
/dev/pts/6
09:05:12
#/etc/init.d/dahdi status
### Span  1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) HDB3/CCS/CRC4 RED ClockSource
  1 PRI        Clear        RED
  2 PRI        Clear        RED
  3 PRI        Clear        RED
  4 PRI        Clear        RED
  5 PRI        Clear        RED
  6 PRI        Clear        RED
  7 PRI        Clear        RED
  8 PRI        Clear        RED
  9 PRI        Clear        RED
...
 22 PRI        Clear        RED
 23 PRI        Clear        RED
 24 PRI        Clear        RED
 25 PRI        Clear        RED
 26 PRI        Clear        RED
 27 PRI        Clear        RED
 28 PRI        Clear        RED
 29 PRI        Clear        RED
 30 PRI        Clear        RED
 31 PRI        Clear        RED
09:05:51
#lsdahdi
### Span  1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) HDB3/CCS/CRC4 RED ClockSource
  1 PRI        Clear        RED
  2 PRI        Clear        RED
  3 PRI        Clear        RED
  4 PRI        Clear        RED
  5 PRI        Clear        RED
  6 PRI        Clear        RED
  7 PRI        Clear        RED
  8 PRI        Clear        RED
  9 PRI        Clear        RED
...
 22 PRI        Clear        RED
 23 PRI        Clear        RED
 24 PRI        Clear        RED
 25 PRI        Clear        RED
 26 PRI        Clear        RED
 27 PRI        Clear        RED
 28 PRI        Clear        RED
 29 PRI        Clear        RED
 30 PRI        Clear        RED
 31 PRI        Clear        RED
/dev/pts/8
09:06:06
#/etc/init.d/dahdi status
### Span  1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) HDB3/CCS/CRC4 RED ClockSource
  1 PRI        Clear        RED
  2 PRI        Clear        RED
  3 PRI        Clear        RED
  4 PRI        Clear        RED
  5 PRI        Clear        RED
  6 PRI        Clear        RED
  7 PRI        Clear        RED
  8 PRI        Clear        RED
  9 PRI        Clear        RED
...
 22 PRI        Clear        RED
 23 PRI        Clear        RED
 24 PRI        Clear        RED
 25 PRI        Clear        RED
 26 PRI        Clear        RED
 27 PRI        Clear        RED
 28 PRI        Clear        RED
 29 PRI        Clear        RED
 30 PRI        Clear        RED
 31 PRI        Clear        RED
09:06:11
#less /etc/init.d/dahdi
09:06:39
#lsdahdi --help
### Span  1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) HDB3/CCS/CRC4 RED ClockSource
  1 PRI        Clear        RED
  2 PRI        Clear        RED
  3 PRI        Clear        RED
  4 PRI        Clear        RED
  5 PRI        Clear        RED
  6 PRI        Clear        RED
  7 PRI        Clear        RED
  8 PRI        Clear        RED
  9 PRI        Clear        RED
...
 22 PRI        Clear        RED
 23 PRI        Clear        RED
 24 PRI        Clear        RED
 25 PRI        Clear        RED
 26 PRI        Clear        RED
 27 PRI        Clear        RED
 28 PRI        Clear        RED
 29 PRI        Clear        RED
 30 PRI        Clear        RED
 31 PRI        Clear        RED
/dev/pts/6
09:07:13
#vim /etc/asterisk/sip.conf
/dev/pts/8
09:08:05
#vim /etc/asterisk/chan_dahdi.conf
--- /tmp/l3-saved-2943.14411.28169	2013-04-12 10:08:21.000000000 +0300
+++ /etc/asterisk/chan_dahdi.conf	2013-04-12 10:39:37.000000000 +0300
@@ -65,7 +65,7 @@
 ; ni1:         Old National ISDN 1
 ; qsig:        Q.SIG
 ;
-;switchtype=euroisdn
+switchtype=euroisdn
 ;
 ; Some switches (AT&T especially) require network specific facility IE
 ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
@@ -293,6 +293,9 @@
 ; 
 ; outsignalling cannot be changed on a reload.
 ;
+
+signalling=pri_cpe
+
 ;signalling=featdmf
 ;
 ;outsignalling=featb
@@ -570,7 +573,6 @@
 ; override a previous non-empty one. The same applies to callgroup and
 ; pickupgroup as well.
 ;
-group=1
 ;
 ; Ring groups (a.k.a. call groups) and pickup groups.  If a phone is ringing
 ; and it is a member of a group which is one of your pickup groups, then
@@ -1222,3 +1224,13 @@
 ;[phone-3](phones)
 ;dahdichan = 3
 ;pickupgroup = 3,4
+
+context=incoming
+group=1
+channel => 1-4
+
+context=incoming2
+group=2
+channel => 5-8
+
+
прошла 31 минута
09:39:37
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
09:39:48
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 3490)
...
[Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 4
[Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 5
[Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 6
[Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 7
[Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 8
[Apr 12 10:41:46] NOTICE[3529]: chan_dahdi.c:12696 pri_dchannel: PRI got event: No more alarm (5) on Primary D-channel of span 1
[Apr 12 10:41:48] WARNING[3529]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Apr 12 10:41:52] WARNING[3529]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
linux5*CLI> quit
Executing last minute cleanups
/dev/pts/4
09:39:48
#asterisk-r
bash: asterisk-r: command not found
/dev/pts/8
09:41:56
#vim /etc/dahdi/system.conf
--- /tmp/l3-saved-2943.15903.30430	2013-04-12 10:42:00.000000000 +0300
+++ /etc/dahdi/system.conf	2013-04-12 10:42:05.000000000 +0300
@@ -6,7 +6,7 @@
 # This file is parsed by the Dahdi Configurator, dahdi_cfg
 #
 # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) 
-span=1,1,0,ccs,hdb3,crc4
+span=1,0,0,ccs,hdb3,crc4
 # termtype: te
 bchan=1-15,17-31
 dchan=16
09:42:05
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.6.2
Echo Canceller(s): HWEC
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
31 channels to configure.
Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
...
Setting echocan for channel 22 to none
Setting echocan for channel 23 to none
Setting echocan for channel 24 to none
Setting echocan for channel 25 to none
Setting echocan for channel 26 to none
Setting echocan for channel 27 to none
Setting echocan for channel 28 to none
Setting echocan for channel 29 to none
Setting echocan for channel 30 to none
Setting echocan for channel 31 to none
/dev/pts/4
09:42:47
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 3616)
Verbosity is at least 4
[Apr 12 10:42:53] WARNING[3655]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
...
    -- Channel 0/8, span 1 got hangup request, cause 16
  == Spawn extension (incoming_pri, 1401, 1) exited non-zero on 'DAHDI/8-1'
    -- Hungup 'DAHDI/8-1'
    -- Extension '2101' in context 'incoming_ivr' from '1102' does not exist.  Rejecting call on channel 0/4, span 1
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux5*CLI>
Disconnected from Asterisk server
/dev/pts/8
09:46:23
#grep -v ^# /etc/asterisk/chan_dahdi.conf | less
09:46:32
#grep -v '^;' /etc/asterisk/chan_dahdi.conf | less
09:46:56
#grep -v '^;' /etc/asterisk/chan_dahdi.conf | sed 's/;.*//' | grep -xv ''
[trunkgroups]
[channels]
switchtype=euroisdn
signalling=pri_cpe
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
...
echocancel=yes
echocancelwhenbridged=yes
callgroup=1
pickupgroup=1
context=incoming
group=1
channel => 1-4
context=incoming2
group=2
channel => 5-8
09:47:04
#grep -v '^;' /etc/asterisk/chan_dahdi.conf | sed 's/;.*//' | grep -xv ' *'
[trunkgroups]
[channels]
switchtype=euroisdn
signalling=pri_cpe
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
...
echocancel=yes
echocancelwhenbridged=yes
callgroup=1
pickupgroup=1
context=incoming
group=1
channel => 1-4
context=incoming2
group=2
channel => 5-8
09:47:11
#cp /etc/asterisk/chan_dahdi.conf{,.ORIG}

09:48:08
#cat /etc/asterisk/chan_dahdi.conf.1
[trunkgroups]
[channels]
switchtype=euroisdn
signalling=pri_cpe
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
...
echocancel=yes
echocancelwhenbridged=yes
callgroup=1
pickupgroup=1
context=incoming
group=1
channel => 1-4
context=incoming2
group=2
channel => 5-8
/dev/pts/6
09:50:50
#[ ]
;
; DAHDI Telephony Configuration file
;
; You need to restart Asterisk to re-configure the DAHDI channel
; CLI> module reload chan_dahdi.so
;      will reload the configuration file, but not all configuration options
;      are re-configured during a reload (signalling, as well as PRI and
;      SS7-related settings cannot be changed on a reload).
;
; This file documents many configuration variables.  Normally unless you know
...
;
;[phone-3](phones)
;dahdichan = 3
;pickupgroup = 3,4
context=incoming
group=1
channel => 1-4
context=incoming2
group=2
channel => 5-8
/dev/pts/8
09:52:46
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.6.2
Echo Canceller(s): HWEC
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
31 channels to configure.
Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
...
Setting echocan for channel 22 to none
Setting echocan for channel 23 to none
Setting echocan for channel 24 to none
Setting echocan for channel 25 to none
Setting echocan for channel 26 to none
Setting echocan for channel 27 to none
Setting echocan for channel 28 to none
Setting echocan for channel 29 to none
Setting echocan for channel 30 to none
Setting echocan for channel 31 to none
09:52:49
#less /var/log/asterisk/messages
/dev/pts/6
09:54:07
#; Any negative value means 'default'.
; dms100:      Nortel DMS100
; 4ess:        AT&T 4ESS
; 5ess:        Lucent 5ESS
; euroisdn:    EuroISDN (common in Europe)
; ni1:         Old National ISDN 1
; qsig:        Q.SIG
;
switchtype=euroisdn
;
; Some switches (AT&T especially) require network specific facility IE
...
;
;[phone-3](phones)
;dahdichan = 3
;pickupgroup = 3,4
context=incoming
group=1
channel => 1-4
context=incoming2
group=2
channel => 5-8
09:55:32
#;[fax](phones)
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Apr 12 09:49:39 2013
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER)
span=1,0,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
#echocanceller=oslec,1-15,17-31
# Global data
loadzone        = us
defaultzone     = us
"/etc/dahdi/system.conf" 18L, 460C
/dev/pts/8
09:56:46
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3905.734.23635	2013-04-12 10:56:53.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-12 10:57:42.000000000 +0300
@@ -89,7 +89,8 @@
 exten => _23XX,1,Dial(SIP/minsk/${EXTEN})
 
 [international]
-exten => _11XX,1,Dial(SIP/minsk/${EXTEN})
+;exten => _11XX,1,Dial(SIP/minsk/${EXTEN})
+exten => _11XX,1,Dial(DAHDI/g1/${EXTEN})
 exten => _12XX,1,Dial(SIP/minsk/${EXTEN})
 exten => _13XX,1,Dial(SIP/minsk/${EXTEN})
 exten => _14XX,1,Dial(SIP/minsk/${EXTEN})
09:57:42
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 3616)
Verbosity was 3 and is now 4
linux5*CLI> exit
Executing last minute cleanups
09:57:56
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3905.23821.7273	2013-04-12 10:57:57.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-12 10:58:01.000000000 +0300
@@ -90,7 +90,7 @@
 
 [international]
 ;exten => _11XX,1,Dial(SIP/minsk/${EXTEN})
-exten => _11XX,1,Dial(DAHDI/g1/${EXTEN})
+exten => _11XX,1,Dial(DAHDI/g2/${EXTEN})
 exten => _12XX,1,Dial(SIP/minsk/${EXTEN})
 exten => _13XX,1,Dial(SIP/minsk/${EXTEN})
 exten => _14XX,1,Dial(SIP/minsk/${EXTEN})
/dev/pts/6
09:59:15
#~
;
;language=en
;
; Context for calls. Defaults to 'default'
;
;context=incoming
;
; Switchtype:  Only used for PRI.
;
; national:    National ISDN 2 (default)
...
;
;[phone-3](phones)
;dahdichan = 3
;pickupgroup = 3,4
context=incoming
group=1
channel => 1-4
context=incoming2
group=2
channel => 5-8
09:59:41
#;dahdichan = 2
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.6.2
Echo Canceller(s): HWEC
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
31 channels to configure.
Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
...
Setting echocan for channel 22 to none
Setting echocan for channel 23 to none
Setting echocan for channel 24 to none
Setting echocan for channel 25 to none
Setting echocan for channel 26 to none
Setting echocan for channel 27 to none
Setting echocan for channel 28 to none
Setting echocan for channel 29 to none
Setting echocan for channel 30 to none
Setting echocan for channel 31 to none
09:59:45
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2218.15491.28623	2013-04-12 11:32:54.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-12 11:34:51.000000000 +0300
@@ -126,5 +126,12 @@
 ;include => national
 ;include => international
 
-[incoming2]
+[incoming_ivr]
 exten => s,1,Goto(menu,s,1)
+
+[incoming_pri]
+include => internal 
+include => local
+include => ukraine
+include => national
+include => international
прошло 35 минут
10:35:02
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2218.7140.5881	2013-04-12 11:58:24.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-12 11:59:26.000000000 +0300
@@ -135,3 +135,8 @@
 include => ukraine
 include => national
 include => international
+
+[incoming_gsm]
+include => internal 
+include => local
+include => national
/dev/pts/8
10:35:08
#channel => 5-8
; dms100:      Nortel DMS100
; 4ess:        AT&T 4ESS
; 5ess:        Lucent 5ESS
; euroisdn:    EuroISDN (common in Europe)
; ni1:         Old National ISDN 1
; qsig:        Q.SIG
;
switchtype=euroisdn
;
; Some switches (AT&T especially) require network specific facility IE
...
~
~
"/etc/asterisk/chan_dahdi.conf" 1236L, 47110C written
context=incoming2
group=1
channel => 1-4
context=incoming
group=2
channel => 5-8
~
10:35:27
#asterisk-r
bash: asterisk-r: command not found
10:35:35
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 3616)
Verbosity is at least 4
linux5*CLI> dahdi restart
...
    -- Accepting call from '1101' to '1401' on channel 0/8, span 1
    -- Executing [1401@incoming_pri:1] Dial("DAHDI/8-1", "SIP/minsk/1401") in new stack
  == Using SIP RTP CoS mark 5
    -- Called minsk/1401
    -- SIP/minsk-00000003 answered DAHDI/8-1
    -- Channel 0/8, span 1 got hangup request, cause 16
  == Spawn extension (incoming_pri, 1401, 1) exited non-zero on 'DAHDI/8-1'
    -- Hungup 'DAHDI/8-1'
    -- Extension '2101' in context 'incoming_ivr' from '1102' does not exist.  Rejecting call on channel 0/4, span 1
linux5*CLI> exit
прошло 14 минут
/dev/pts/8
10:50:00
#apt-get install subversion
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libserf-0-0 libsvn1
Suggested packages:
  subversion-tools db4.8-util
...
(Reading database ... 131042 files and directories currently installed.)
Unpacking libserf-0-0 (from .../libserf-0-0_0.3.1-1_i386.deb) ...
Selecting previously deselected package libsvn1.
Unpacking libsvn1 (from .../libsvn1_1.6.12dfsg-6_i386.deb) ...
Selecting previously deselected package subversion.
Unpacking subversion (from .../subversion_1.6.12dfsg-6_i386.deb) ...
Processing triggers for man-db ...
Setting up libserf-0-0 (0.3.1-1) ...
Setting up libsvn1 (1.6.12dfsg-6) ...
Setting up subversion (1.6.12dfsg-6) ...
10:50:26
#apt-get install subversion-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package subversion-dev

Файлы

  • /etc/asterisk/chan_dahdi.conf.1
  • /var/spool/asterisk/outgoing/call-minsk.1302-9670306242443621587.call
  • /etc/asterisk/chan_dahdi.conf.1
    >
    [trunkgroups]
    [channels]
    switchtype=euroisdn
    signalling=pri_cpe
    usecallerid=yes
    callwaiting=yes
    usecallingpres=yes
    callwaitingcallerid=yes
    threewaycalling=yes
    transfer=yes
    canpark=yes
    cancallforward=yes
    callreturn=yes
    echocancel=yes
    echocancelwhenbridged=yes
    callgroup=1
    pickupgroup=1
    context=incoming
    group=1
    channel => 1-4
    context=incoming2
    group=2
    channel => 5-8
    
    /var/spool/asterisk/outgoing/call-minsk.1302-9670306242443621587.call
    >
    Channel:SIP/minsk/1302
    Context:internal
    Extension:8501
    StartRetry: 1425 1 (1365689894)
    

    Статистика

    Время первой команды журнала16:13:32 2013- 4-11
    Время последней команды журнала10:50:26 2013- 4-12
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 9.90
    Процент синтаксически неверно набранных команд, % 1.98
    Суммарное время работы с терминалом *, час 1.74
    Количество командных строк в единицу времени, команда/мин 0.97
    Частота использования команд
    less11|=========| 9.24%
    ls10|========| 8.40%
    vim9|=======| 7.56%
    grep9|=======| 7.56%
    lsmod8|======| 6.72%
    dpkg5|====| 4.20%
    asterisk5|====| 4.20%
    find4|===| 3.36%
    modinfo4|===| 3.36%
    lspci4|===| 3.36%
    dahdi_cfg4|===| 3.36%
    '3|==| 2.52%
    /etc/init.d/dahdi3|==| 2.52%
    cat3|==| 2.52%
    head3|==| 2.52%
    scp3|==| 2.52%
    screen2|=| 1.68%
    cd2|=| 1.68%
    asterisk-r2|=| 1.68%
    apt-get2|=| 1.68%
    sed2|=| 1.68%
    lsdahdi2|=| 1.68%
    ^C2|=| 1.68%
    5-81|| 0.84%
    dahdichan1|| 0.84%
    /etc/init.d/asterisk1|| 0.84%
    cp1|| 0.84%
    lsusb1|| 0.84%
    #1|| 0.84%
    [1|| 0.84%
    dahdi_genconf1|| 0.84%
    ~1|| 0.84%
    [fax](phones)1|| 0.84%
    channel1|| 0.84%
    Any1|| 0.84%
    dahdi_scan1|| 0.84%
    rmmod1|| 0.84%
    modprobe1|| 0.84%
    which1|| 0.84%
    #rmmod1|| 0.84%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$