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

Содержание

Журнал

Суббота (04/26/14)

/dev/pts/1
09:53:27
#lsmod | less
09:54:05
#lsmod | less
09:54:19
#dahdi_genconf
Empty configuration -- no spans
Empty configuration -- no spans
09:54:21
#lspci -n
00:00.0 0600: 8086:0100 (rev 09)
00:02.0 0300: 8086:0102 (rev 09)
00:16.0 0780: 8086:1c3a (rev 04)
00:16.3 0700: 8086:1c3d (rev 04)
00:19.0 0200: 8086:1502 (rev 04)
00:1a.0 0c03: 8086:1c2d (rev 04)
00:1b.0 0403: 8086:1c20 (rev 04)
00:1c.0 0604: 8086:1c10 (rev b4)
00:1c.4 0604: 8086:1c18 (rev b4)
00:1c.6 0604: 8086:1c1c (rev b4)
00:1c.7 0604: 8086:1c1e (rev b4)
00:1d.0 0c03: 8086:1c26 (rev 04)
00:1e.0 0604: 8086:244e (rev a4)
00:1f.0 0601: 8086:1c4e (rev 04)
00:1f.2 0104: 8086:2822 (rev 04)
00:1f.3 0c05: 8086:1c22 (rev 04)
02:00.0 0280: d161:800a (rev 02)
09:54:59
#cd /usr/src/

09:55:56
## dahdi source

09:56:24
## google dahdi source

09:56:29
#ls
dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb  linux-headers-3.2.0-4-common
dahdi.tar.bz2                                                 linux-kbuild-3.2
linux                                                         modules
linux-headers-3.2.0-4-amd64                                   vpb-driver.tar.bz2
09:56:49
#ls

09:56:49
#complete-current.tar.gz
xcomplete-current.tar.gz http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux
--2014-04-26 10:57:46--  http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linuxcomplete-current.tar.gz
Распознаётся downloads.asterisk.org (downloads.asterisk.org)... 76.164.171.238, 2001:470:e0d4::ee
Подключение к downloads.asterisk.org (downloads.asterisk.org)|76.164.171.238|:80... соединение установлено.
HTTP-запрос отправлен. Ожидание ответа... 404 Not Found
2014-04-26 10:57:46 ОШИБКА 404: Not Found.
10:00:40
#tar xf dahdi-linux-complete-current.tar.gz

10:01:44
#cd dahdi-linux-complete-2.9.1.1+2.9.1/

10:01:53
#make all
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi/firmware'
make -C /lib/modules/3.2.0-4-amd64/build SUBDIRS=/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
  CC [M]  /usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi/dahdi-base.o
  CC [M]  /usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi/dahdi-sysfs.o
  CC [M]  /usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi/dahdi-sysfs-chan.o
...
gcc  astribank_is_starting.o  -o astribank_is_starting
pod2man --section 8 dahdi_registration > dahdi_registration.8 || rm -f dahdi_registration.8
pod2man --section 8 xpp_sync > xpp_sync.8 || rm -f xpp_sync.8
pod2man --section 8 lsdahdi > lsdahdi.8 || rm -f lsdahdi.8
pod2man --section 8 xpp_blink > xpp_blink.8 || rm -f xpp_blink.8
pod2man --section 8 dahdi_genconf > dahdi_genconf.8 || rm -f dahdi_genconf.8
pod2man --section 8 dahdi_hardware > dahdi_hardware.8 || rm -f dahdi_hardware.8
pod2man --section 8 twinstar > twinstar.8 || rm -f twinstar.8
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/tools/xpp'
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/tools'
10:02:46
#make install
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi/firmware'
make -C /lib/modules/3.2.0-4-amd64/build SUBDIRS=/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
  VERSION /usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi/xpp/xpp_version.h
  Building modules, stage 2.
  MODPOST 35 modules
...
/usr/bin/install -c -m 644 tonezone.h /usr/include/dahdi/
###################################################
###
### DAHDI tools installed successfully.
### If you have not done so before, install init scripts with:
###
###   make config
###
###################################################
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/tools'
10:03:04
#lsmod
Module                  Size  Used by
parport_pc             22364  0
ppdev                  12763  0
lp                     17149  0
parport                31858  3 lp,ppdev,parport_pc
bnep                   17567  2
rfcomm                 33700  0
bluetooth             119455  10 rfcomm,bnep
dahdi                 191056  0
crc_ccitt              12347  1 dahdi
...
cdrom                  35401  1 sr_mod
crc_t10dif             12348  1 sd_mod
ahci                   24997  2
libahci                22941  1 ahci
libata                140630  2 libahci,ahci
scsi_mod              162269  4 libata,sd_mod,sr_mod,sg
ehci_hcd               40215  0
usbcore               128741  5 ehci_hcd,usbhid,snd_usbmidi_lib,snd_usb_audio
usb_common             12354  1 usbcore
e1000e                120822  0
10:03:12
#lsmod | grep wcte13xp

10:03:22
#ls

10:03:22
#cd /usr/src/
                                                   lspci -n
00:00.0 0600: 8086:0100 (rev 09)
00:02.0 0300: 8086:0102 (rev 09)
00:16.0 0780: 8086:1c3a (rev 04)
00:16.3 0700: 8086:1c3d (rev 04)
00:19.0 0200: 8086:1502 (rev 04)
00:1a.0 0c03: 8086:1c2d (rev 04)
00:1b.0 0403: 8086:1c20 (rev 04)
00:1c.0 0604: 8086:1c10 (rev b4)
00:1c.4 0604: 8086:1c18 (rev b4)
00:1c.6 0604: 8086:1c1c (rev b4)
00:1c.7 0604: 8086:1c1e (rev b4)
00:1d.0 0c03: 8086:1c26 (rev 04)
00:1e.0 0604: 8086:244e (rev a4)
00:1f.0 0601: 8086:1c4e (rev 04)
00:1f.2 0104: 8086:2822 (rev 04)
00:1f.3 0c05: 8086:1c22 (rev 04)
02:00.0 0280: d161:800a (rev 02)
10:04:30
#lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b4)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Q67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Network controller: Digium, Inc. Device 800a (rev 02)
10:04:36
#modprobe -r dahdi

10:05:10
#modprobe wcte13xp

10:05:37
#lsmod | grep wcte13xp
wcte13xp               40794  0
oct612x               150308  1 wcte13xp
dahdi                 192614  2 oct612x,wcte13xp
10:05:43
#mode info wcte13xp
l3script: mode: команда не найдена
10:05:59
#lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b4)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Q67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Network controller: Digium, Inc. Device 800a (rev 02)
10:06:05
#find /sys -name \*02:00.0\*
/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0
/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0/pci:0000:02:00.0
/sys/bus/pci/devices/0000:02:00.0
/sys/bus/pci/drivers/wcte13xp/0000:02:00.0
/sys/bus/dahdi_devices/devices/pci:0000:02:00.0
10:06:50
#lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b4)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Q67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Network controller: Digium, Inc. Device 800a (rev 02)
10:07:23
#lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b4)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Q67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Network controller: Digium, Inc. Device 800a (rev 02)
10:07:45
#find /sys -name \*02:00.0\*
/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0
/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0/pci:0000:02:00.0
/sys/bus/pci/devices/0000:02:00.0
/sys/bus/pci/drivers/wcte13xp/0000:02:00.0
/sys/bus/dahdi_devices/devices/pci:0000:02:00.0
10:10:07
#ls /lib/modules/3.2.0-4-amd64/
build   modules.alias      modules.builtin.bin  modules.devname  modules.symbols      staging
dahdi   modules.alias.bin  modules.dep          modules.order    modules.symbols.bin
kernel  modules.builtin    modules.dep.bin      modules.softdep  source
10:12:23
#ls -l /lib/modules/3.2.0-4-amd64/
итого 2960
lrwxrwxrwx  1 root root     36 Фев  2 03:19 build -> /usr/src/linux-headers-3.2.0-4-amd64
drwxr-xr-x 14 root root   4096 Апр 26 11:02 dahdi
drwxr-xr-x 10 root root   4096 Апр 22 12:11 kernel
-rw-r--r--  1 root root 728174 Апр 26 11:03 modules.alias
-rw-r--r--  1 root root 702918 Апр 26 11:03 modules.alias.bin
-rw-r--r--  1 root root   2880 Фев  2 02:51 modules.builtin
-rw-r--r--  1 root root   3821 Апр 26 11:03 modules.builtin.bin
-rw-r--r--  1 root root 332162 Апр 26 11:03 modules.dep
-rw-r--r--  1 root root 459376 Апр 26 11:03 modules.dep.bin
-rw-r--r--  1 root root    325 Апр 26 11:03 modules.devname
-rw-r--r--  1 root root 108907 Фев  2 02:51 modules.order
-rw-r--r--  1 root root    131 Апр 26 11:03 modules.softdep
-rw-r--r--  1 root root 289378 Апр 26 11:03 modules.symbols
-rw-r--r--  1 root root 366534 Апр 26 11:03 modules.symbols.bin
lrwxrwxrwx  1 root root     37 Фев  2 03:19 source -> /usr/src/linux-headers-3.2.0-4-common
drwxr-xr-x  3 root root   4096 Апр 26 10:48 staging
10:12:28
#ls -l /lib/modules/3.2.0-4-amd64/
итого 2960
lrwxrwxrwx  1 root root     36 Фев  2 03:19 build -> /usr/src/linux-headers-3.2.0-4-amd64
drwxr-xr-x 14 root root   4096 Апр 26 11:02 dahdi
drwxr-xr-x 10 root root   4096 Апр 22 12:11 kernel
-rw-r--r--  1 root root 728174 Апр 26 11:03 modules.alias
-rw-r--r--  1 root root 702918 Апр 26 11:03 modules.alias.bin
-rw-r--r--  1 root root   2880 Фев  2 02:51 modules.builtin
-rw-r--r--  1 root root   3821 Апр 26 11:03 modules.builtin.bin
-rw-r--r--  1 root root 332162 Апр 26 11:03 modules.dep
-rw-r--r--  1 root root 459376 Апр 26 11:03 modules.dep.bin
-rw-r--r--  1 root root    325 Апр 26 11:03 modules.devname
-rw-r--r--  1 root root 108907 Фев  2 02:51 modules.order
-rw-r--r--  1 root root    131 Апр 26 11:03 modules.softdep
-rw-r--r--  1 root root 289378 Апр 26 11:03 modules.symbols
-rw-r--r--  1 root root 366534 Апр 26 11:03 modules.symbols.bin
lrwxrwxrwx  1 root root     37 Фев  2 03:19 source -> /usr/src/linux-headers-3.2.0-4-common
drwxr-xr-x  3 root root   4096 Апр 26 10:48 staging
10:12:47
#lspci -n
00:00.0 0600: 8086:0100 (rev 09)
00:02.0 0300: 8086:0102 (rev 09)
00:16.0 0780: 8086:1c3a (rev 04)
00:16.3 0700: 8086:1c3d (rev 04)
00:19.0 0200: 8086:1502 (rev 04)
00:1a.0 0c03: 8086:1c2d (rev 04)
00:1b.0 0403: 8086:1c20 (rev 04)
00:1c.0 0604: 8086:1c10 (rev b4)
00:1c.4 0604: 8086:1c18 (rev b4)
00:1c.6 0604: 8086:1c1c (rev b4)
00:1c.7 0604: 8086:1c1e (rev b4)
00:1d.0 0c03: 8086:1c26 (rev 04)
00:1e.0 0604: 8086:244e (rev a4)
00:1f.0 0601: 8086:1c4e (rev 04)
00:1f.2 0104: 8086:2822 (rev 04)
00:1f.3 0c05: 8086:1c22 (rev 04)
02:00.0 0280: d161:800a (rev 02)
10:13:02
#lsmod | head
Module                  Size  Used by
wcte13xp               40794  0
oct612x               150308  1 wcte13xp
dahdi                 192614  2 oct612x,wcte13xp
crc_ccitt              12347  1 dahdi
parport_pc             22364  0
ppdev                  12763  0
lp                     17149  0
parport                31858  3 lp,ppdev,parport_pc
bnep                   17567  2
10:14:40
#dahdi_genconf

10:15:08
#dahdi_genconf -v
Default parameters from /etc/dahdi/genconf_parameters
Generating /etc/dahdi/assigned-spans.conf
Generating /etc/dahdi/system.conf
Generating /etc/asterisk/dahdi-channels.conf
10:15:15
#cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Sat Apr 26 11:15:15 2014
# 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: WCT13x/0 "Wildcard TE131/TE133 Card 0" (MASTER)
span=1,1,0,esf,b8zs
# termtype: te
bchan=1-23
dchan=24
echocanceller=mg2,1-23
# Global data
loadzone        = us
defaultzone     = us
10:15:37
#cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Sat Apr 26 11:15:15 2014
# 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: WCT13x/0 "Wildcard TE131/TE133 Card 0" (MASTER)
span=1,1,0,esf,b8zs
# termtype: te
bchan=1-23
dchan=24
echocanceller=mg2,1-23
# Global data
loadzone        = us
defaultzone     = us
10:16:02
#vim /etc/dahdi/system.conf
--- /tmp/l3-saved-3643.2606.26958	2014-04-26 11:20:15.170026361 +0300
+++ /etc/dahdi/system.conf	2014-04-26 11:22:40.742023596 +0300
@@ -6,7 +6,13 @@
 # This file is parsed by the Dahdi Configurator, dahdi_cfg
 #
 # Span 1: WCT13x/0 "Wildcard TE131/TE133 Card 0" (MASTER) 
-span=1,1,0,esf,b8zs
+span=1,0,0,esf,b8zs
+
+# 1 = span number
+# 1 = source of synchronization                                                                 |
+# 0 = 0-133 feet
+
+
 # termtype: te
 bchan=1-23
 dchan=24
10:22:40
#dahdi_cfg -v
DAHDI Tools Version - 2.9.1
DAHDI Version: 2.9.1.1
Echo Canceller(s): HWEC
Configuration
======================
SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)
24 channels to configure.
Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
...
Setting echocan for channel 15 to mg2
Setting echocan for channel 16 to mg2
Setting echocan for channel 17 to mg2
Setting echocan for channel 18 to mg2
Setting echocan for channel 19 to mg2
Setting echocan for channel 20 to mg2
Setting echocan for channel 21 to mg2
Setting echocan for channel 22 to mg2
Setting echocan for channel 23 to mg2
Setting echocan for channel 24 to none
10:22:50
#св
l3script: $'\321\201\320\262': команда не найдена
10:25:38
#cd

10:25:41
#less /etc/asterisk/dahdi-channels.conf
10:27:20
##less /etc/asterisk/chan_dahdi.conf

10:27:26
##less /etc/asterisk/dahdi-channels.conf

10:27:29
#vim -p /etc/asterisk/chan_dahdi.conf /etc/asterisk/dahdi-channels.conf
10:29:34
#~

10:29:35
#vim -p /etc/asterisk/chan_dahdi.conf /etc/asterisk/dahdi-channels.conf
10:38:22
#~
;nsf=none
;
;service_message_support=yes
; Enable service message support for channel. Must be set after switchtype.
;
; Dialing options for ISDN (i.e., Dial(DAHDI/g1/exten/options)):
; R      Reverse Charge Indication
;          Indicate to the called party that the call will be reverse charged.
; K(n)   Keypad digits n
;          Send out the specified digits as keypad digits.
...
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
; Span 1: WCT13x/0 "Wildcard TE131/TE133 Card 0" (MASTER)
group=0,11
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 1-23
context = default
group = 63
10:43:24
#~
exten => s,1,Answer
exten => s,n,Set(CALLFILENAME=${MACRO_EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m
-%d-%H:%M:%S")})
exten => s,n,Monitor(wav,${CALLFILENAME},m)
exten => s,n,Dial(${ARG1},,kKtT)
[macro-outgoingcall]
; ${ARG1} - outgoing channel + extension
; EPOCH = seconds since 1.01.1970
; ${FunctionName(...)}
; ${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}
...
exten => 8100,n,Goto(vm)
exten => 8100,n(de),Set(CHANNEL(language)=de)
exten => 8100,n,Goto(vm)
exten => 8100,n(es),Set(CHANNEL(language)=es)
exten => 8100,n,Goto(vm)
exten => 8100,n(vm),VoiceMailMain()
exten => 8101,1,AGI(/usr/local/bin/asterisk-festival.pl,/home/user/belka.txt)
exten => 8102,1,AGI(/usr/local/bin/asterisk-festival.pl,/home/user/burunduki.txt)
exten => 8103,1,AGI(/usr/local/bin/asterisk-festival.pl,Я рад вас слышать. Добрый день)
exten => 8104,1,System(sudo /usr/local/bin/restart-samba)
10:45:22
#~
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian2 (pid = 2963)
Verbosity was 0 and is now 3
debian2*CLI> da
dahdi     data      database
debian2*CLI> quit
Executing last minute cleanups
10:45:44
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
10:46:23
#reboot

/dev/pts/1
10:49:34
#less /var/log/messages
10:50:56
#^C

10:51:20
#less /var/log/asterisk/messages
10:53:15
#less /var/log/asterisk/messages
10:56:02
#vim /etc/asterisk/chan_dahdi.conf
--- /tmp/l3-saved-3758.14837.10030	2014-04-26 11:56:30.570545936 +0300
+++ /etc/asterisk/chan_dahdi.conf	2014-04-26 11:57:18.918545931 +0300
@@ -1432,7 +1432,7 @@
 ;pickupgroup = 3,4
 
 
-context=gr_relay     ; но вообще-то gr_relay                                                       |
+context=gr_relay  
 switchtype=national                                                                               |
 signalling=pri_cpe
 group=1
11:00:18