/l3/users/Kzn/Asterisk22/debian2/root :1 :2 :3 :4 :5 :6 :7 |
|
#lsmod | less
|
#dahdi_genconf
Empty configuration -- no spans Empty configuration -- no spans |
#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) |
#cd /usr/src/
|
## dahdi source
|
## google dahdi source
|
#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 |
#ls
|
#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. |
#tar xf dahdi-linux-complete-current.tar.gz
|
#cd dahdi-linux-complete-2.9.1.1+2.9.1/
|
#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' |
#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' |
#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 |
#lsmod | grep wcte13xp
|
#ls
|
#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) |
#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) |
#modprobe -r dahdi
|
#modprobe wcte13xp
|
#lsmod | grep wcte13xp
wcte13xp 40794 0 oct612x 150308 1 wcte13xp dahdi 192614 2 oct612x,wcte13xp |
#mode info wcte13xp
l3script: mode: команда не найдена |
#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) |
#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 |
#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) |
#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) |
#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 |
#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 |
#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 |
#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 |
#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) |
#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 |
#dahdi_genconf
|
#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 |
#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 |
#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 |
#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 |
#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 |
#св
l3script: $'\321\201\320\262': команда не найдена |
#cd
|
#less /etc/asterisk/dahdi-channels.conf
|
##less /etc/asterisk/chan_dahdi.conf
|
##less /etc/asterisk/dahdi-channels.conf
|
#vim -p /etc/asterisk/chan_dahdi.conf /etc/asterisk/dahdi-channels.conf
|
#~
|
#vim -p /etc/asterisk/chan_dahdi.conf /etc/asterisk/dahdi-channels.conf
|
#~
;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 |
#~
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) |
#~
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 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#reboot
|
#^C
|
#less /var/log/asterisk/messages
|
#less /var/log/asterisk/messages
|
#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 |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian2 (pid = 4186) Verbosity was 0 and is now 2 debian2*CLI> da data database Executing last minute cleanups == Destroying musiconhold processes debian2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian2 (pid = 4356) ... destroy restart set show debian2*CLI> dahdi show cadences channel channels status version debian2*CLI> dahdi show status Description Alarms IRQ bpviol CRC Fra Codi Options LBO Wildcard TE131/TE133 Card 0 OK 0 0 0 ESF B8ZS 0 db (CSU)/0-133 feet (DSX-1) debian2*CLI> pri show spans PRI span 1/0: Up, Active debian2*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3758.25930.28316 2014-04-26 12:03:10.750545888 +0300 +++ /etc/asterisk/extensions.conf 2014-04-26 12:07:39.722545859 +0300 @@ -228,8 +228,8 @@ [national] -exten => _11XX,1,Macro(outgoingcall,SIP/nikolaev/${EXTEN}) - +exten => _11XX,1,Macro(outgoingcall,Dial(DAHDI/g1/${EXTEN})) +; Dial(SIP/kiev/${EXTEN}) => Dial(DAHDI/g1/${EXTEN}) [international] |
#asterisk -rvvvv
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 = 4356) ... [Apr 26 12:08:26] WARNING[4450]: channel.c:5628 ast_request: No channel type registered for 'Dial(DAHDI' [Apr 26 12:08:26] WARNING[4450]: app_dial.c:2274 dial_exec_full: Unable to create channel of type 'Dial(DAHDI' (cause 66 - Channel not implemented) == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/1201-00000001' status is 'CHANUNAVAIL' -- Accepting call from '1101' to '1201' on channel 0/1, span 1 -- Executing [1201@gr_relay:1] Macro("DAHDI/i1/1101-2", "localcall,1201") in new stack -- Executing [s@macro-localcall:1] NoOp("DAHDI/i1/1101-2", "Answering 1201") in new stack -- Executing [s@macro-localcall:2] System("DAHDI/i1/1101-2", "/usr/local/bin/jabber-send user2@lab0.xgu.ru 1101 is calling") in new stack debian2*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3758.28447.437 2014-04-26 12:08:45.742545848 +0300 +++ /etc/asterisk/extensions.conf 2014-04-26 12:09:51.694545843 +0300 @@ -228,7 +228,7 @@ [national] -exten => _11XX,1,Macro(outgoingcall,Dial(DAHDI/g1/${EXTEN})) +exten => _11XX,1,Macro(outgoingcall,Dial(DAHDI/gr_relay/${EXTEN})) ; Dial(SIP/kiev/${EXTEN}) => Dial(DAHDI/g1/${EXTEN}) [international] |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
|
#[fallback]
; ${ARG1} - outgoing channel + extension ; EPOCH = seconds since 1.01.1970 ; ${FunctionName(...)} -%d-%H:%M:%S")})POCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")} exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,Dial(${ARG1},,kKtT) exten => s,1,Answer exten => s,n,Set(CALLFILENAME=${MACRO_EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%mm [macro-localcall] "/etc/asterisk/extensions.conf" 276L, 7853C записано |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3758.23389.23910 2014-04-26 12:15:32.382545800 +0300 +++ /etc/asterisk/extensions.conf 2014-04-26 12:15:53.174545799 +0300 @@ -228,7 +228,7 @@ [national] -exten => _11XX,1,Macro(outgoingcall,Dial(DAHDI/g1/${EXTEN})) +exten => _11XX,1,Macro(outgoingcall,DAHDI/g1/${EXTEN}) ; Dial(SIP/kiev/${EXTEN}) => Dial(DAHDI/g1/${EXTEN}) [international] |
#apt-get install subversion
Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Будут установлены следующие дополнительные пакеты: libsvn1 Предлагаемые пакеты: subversion-tools НОВЫЕ пакеты, которые будут установлены: libsvn1 subversion обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 6 пакетов не обновлено. ... Получено:2 http://192.168.12.254/debian/ wheezy/main subversion amd64 1.6.17dfsg-4+deb7u4 [1 320 kB] Получено 2 253 kБ за 0с (34,0 MБ/c) Выбор ранее не выбранного пакета libsvn1:amd64. (Чтение базы данных … на данный момент установлено 156052 файла и каталога.) Распаковывается пакет libsvn1:amd64 (из файла …/libsvn1_1.6.17dfsg-4+deb7u4_amd64.deb) … Выбор ранее не выбранного пакета subversion. Распаковывается пакет subversion (из файла …/subversion_1.6.17dfsg-4+deb7u4_amd64.deb) … Обрабатываются триггеры для man-db … Настраивается пакет libsvn1:amd64 (1.6.17dfsg-4+deb7u4) … Настраивается пакет subversion (1.6.17dfsg-4+deb7u4) … |
#apt-get install asterisk-dev
Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово НОВЫЕ пакеты, которые будут установлены: asterisk-dev обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 6 пакетов не обновлено. Необходимо скачать 959 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 2 131 kB. Получено:1 http://192.168.12.254/debian/ wheezy/main asterisk-dev all 1:1.8.13.1~dfsg1-3+deb7u3 [959 kB] Получено 959 kБ за 0с (24,0 MБ/c) Выбор ранее не выбранного пакета asterisk-dev. (Чтение базы данных … на данный момент установлено 156140 файлов и каталогов.) Распаковывается пакет asterisk-dev (из файла …/asterisk-dev_1%3a1.8.13.1~dfsg1-3+deb7u3_all.deb) … Настраивается пакет asterisk-dev (1:1.8.13.1~dfsg1-3+deb7u3) … |
#cd chan-datacard-read-only/
|
#./configure
configure complete, now type 'make' |
#make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c gcc -shared -Xlinker -x chan_datacard.o -o chan_datacard.so chmod 755 chan_datacard.so |
#make install
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c gcc -shared -Xlinker -x chan_datacard.o -o chan_datacard.so chmod 755 chan_datacard.so install -d /usr/lib/asterisk/modules/ install -m 755 chan_datacard.so /usr/lib/asterisk/modules/ |
#lsmod
Module Size Used by parport_pc 22364 0 ppdev 12763 0 lp 17149 0 parport 31858 3 lp,ppdev,parport_pc rfcomm 33700 0 bnep 17567 2 bluetooth 119455 10 bnep,rfcomm binfmt_misc 12957 1 nfsd 216170 2 ... sd_mod 36136 3 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 e1000e 120822 0 usb_common 12354 1 usbcore |
#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 047f:aa00 Plantronics, Inc. Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard |
#lsmod
Module Size Used by parport_pc 22364 0 ppdev 12763 0 lp 17149 0 parport 31858 3 lp,ppdev,parport_pc rfcomm 33700 0 bnep 17567 2 bluetooth 119455 10 bnep,rfcomm binfmt_misc 12957 1 nfsd 216170 2 ... sd_mod 36136 3 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 e1000e 120822 0 usb_common 12354 1 usbcore |
#ls
__app.c __at_send.c __channel.c etc __manager.c __at_fifo_queue.c chan_datacard.c __char_conv.c __helpers.c __memmem.c __at_parse.c chan_datacard.h __cli.c LICENSE.txt README.txt __at_read.c chan_datacard.o configure Makefile __ringbuffer.c __at_response.c chan_datacard.so COPYRIGHT.txt Makefile.in __ringbuffer.h |
#ls etc/
datacard.conf |
#less etc/datacard.conf
|
#cp etc/datacard.conf /etc/asterisk/
|
#vim /etc/asterisk/datacard.conf
|
#tail /var/log/messages
Apr 26 11:48:19 debian2 kernel: [ 35.447596] 3:1:1: cannot get freq at ep 0x4 Apr 26 11:48:19 debian2 kernel: [ 35.605320] 3:2:1: cannot get freq at ep 0x84 Apr 26 11:48:19 debian2 kernel: [ 35.657770] 3:1:1: cannot get freq at ep 0x4 Apr 26 11:48:19 debian2 kernel: [ 35.696673] 3:2:1: cannot get freq at ep 0x84 Apr 26 11:48:19 debian2 kernel: [ 35.729566] 3:2:1: cannot get freq at ep 0x84 Apr 26 11:48:19 debian2 kernel: [ 35.742170] 3:1:1: cannot get freq at ep 0x4 Apr 26 11:48:19 debian2 pulseaudio[3422]: [pulseaudio] sink.c: Default and alternate sample rates are the same. Apr 26 11:48:19 debian2 kernel: [ 35.787888] 3:2:1: cannot get freq at ep 0x84 Apr 26 11:48:20 debian2 rsyslogd-2177: imuxsock begins to drop messages from pid 3259 due to rate-limiting Apr 26 11:48:24 debian2 rsyslogd-2177: imuxsock lost 59 messages from pid 3259 due to rate-limiting |
#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 047f:aa00 Plantronics, Inc. Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard |
#vim /etc/asterisk/datacard.conf
|
#;
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 = 4356) Verbosity is at least 4 debian2*CLI> debian2*CLI> debian2*CLI> debian2*CLI> debian2*CLI> datacard show devices No such command 'datacard show devices' (type 'core show help datacard show' for other possible commands) debian2*CLI> datacard ussd datacard0 *101# No such command 'datacard ussd datacard0 *101# ' (type 'core show help datacard ussd' for other possible commands) debian2*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3758.8820.3054 2014-04-26 13:19:16.926545344 +0300 +++ /etc/asterisk/extensions.conf 2014-04-26 13:21:51.806545327 +0300 @@ -274,3 +274,8 @@ include => fallback + + +[incoming-datacard] + +exten => s,1,Goto(menu,s,1) |
#modprobe -r option
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3758.27217.6980 2014-04-26 13:29:08.162545275 +0300 +++ /etc/asterisk/extensions.conf 2014-04-26 13:34:31.382545237 +0300 @@ -243,6 +243,16 @@ ; exten => _.,1,Playback(/var/tmp/asterisk/message) + +[ukraine-gateway] + +;exten => _380XXXXXXXXX,1,Dial(datacard0/g1/+${EXTEN}) +exten => _380XXXXXXXXX,1,Dial(SIP/havanna/datacard0/g1/+${EXTEN}) + + + + + [gr_relay] include => internal @@ -251,6 +261,9 @@ include => international include => fallback +include=>ukraine-gateway + + [gr1] include => internal @@ -259,6 +272,8 @@ include => international include => fallback +include=>ukraine-gateway + [gr2] include => internal @@ -266,6 +281,7 @@ include => national include => fallback +include=>ukraine-gateway [gr3] @@ -273,7 +289,7 @@ include => local include => fallback - +iinclude=>ukraine-gateway [incoming-datacard] |
#vim /etc/asterisk/sip.conf
|
#pickupgroup=1
exten => _2XXX,1,Macro(outgoingcall,SIP/berlin/${EXTEN}) exten => _33XX,1,Macro(outgoingcall,SIP/berlin/${EXTEN}) exten => _13XX,1,Macro(outgoingcall,SIP/berlin/${EXTEN}) [fallback] ; exten => _.,1,Playback(/var/tmp/asterisk/message) ;exten => _380XXXXXXXXX,1,Dial(datacard0/g1/+${EXTEN}) na/datacard0/g1/+${EXTEN}) "/etc/asterisk/extensions.conf" 297L, 8148C записано |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3758.39.14632 2014-04-26 13:36:47.030545218 +0300 +++ /etc/asterisk/extensions.conf 2014-04-26 13:37:55.754545210 +0300 @@ -246,7 +246,7 @@ [ukraine-gateway] -;exten => _380XXXXXXXXX,1,Dial(datacard0/g1/+${EXTEN}) +;exten => _380XXXXXXXXX,1,Dial(DATACARD/g1/+${EXTEN}) exten => _380XXXXXXXXX,1,Dial(SIP/havana/datacard0/g1/+${EXTEN}) |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian2 (pid = 4356) ... [Apr 26 13:38:11] ERROR[5696]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo("g1/+380672437070", "(null)", ...): No address associated with hostname [Apr 26 13:38:11] WARNING[5696]: chan_sip.c:26627 sip_request_call: Unable to find IP address for host g1/+380672437070. We will not use this remote IP address == Using SIP RTP CoS mark 5 -- Called SIP/havana/datacard0/g1/+380672437070 == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/1201-0000001c' status is 'CONGESTION' debian2*CLI> dialplan add debug reload remove save set show debian2*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3758.11971.17286 2014-04-26 13:41:29.134545184 +0300 +++ /etc/asterisk/extensions.conf 2014-04-26 13:43:33.450545170 +0300 @@ -246,8 +246,8 @@ [ukraine-gateway] -;exten => _380XXXXXXXXX,1,Dial(DATACARD/g1/+${EXTEN}) -exten => _380XXXXXXXXX,1,Dial(SIP/havana/datacard0/g1/+${EXTEN}) +;exten => _380XXXXXXXXX,1,Dial(DATACARD/p:MTS UKR/+${EXTEN}) +exten => _380XXXXXXXXX,1,Dial(SIP/havana/datacard/p:MTS UKR/+${EXTEN}) |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian2 (pid = 4356) ... == Using SIP RTP CoS mark 5 -- Executing [380672437070@gr1:1] Dial("SIP/1201-0000001e", "SIP/havana/datacard/p:MTS UKR/+380672437070") in new stack [Apr 26 13:43:44] ERROR[5723]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo("p", "MTS UKR/+380672437070", ...): Servname not supported for ai_socktype [Apr 26 13:43:44] WARNING[5723]: chan_sip.c:26627 sip_request_call: Unable to find IP address for host p:MTS UKR/+380672437070. We will not use this remote IP address == Using SIP RTP CoS mark 5 -- Called SIP/havana/datacard/p:MTS UKR/+380672437070 == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/1201-0000001e' status is 'CONGESTION' debian2*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3758.18348.4214 2014-04-26 13:44:11.230545167 +0300 +++ /etc/asterisk/extensions.conf 2014-04-26 13:44:36.646545162 +0300 @@ -247,7 +247,7 @@ [ukraine-gateway] ;exten => _380XXXXXXXXX,1,Dial(DATACARD/p:MTS UKR/+${EXTEN}) -exten => _380XXXXXXXXX,1,Dial(SIP/havana/datacard/p:MTS UKR/+${EXTEN}) +exten => _380XXXXXXXXX,1,Dial(SIP/havana/datacard/+${EXTEN}) |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian2 (pid = 4356) ... == Using SIP RTP CoS mark 5 -- Executing [380672437070@gr1:1] Dial("SIP/1201-00000020", "SIP/havana/datacard/+380672437070") in new stack [Apr 26 13:44:45] ERROR[5750]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo("+380672437070", "(null)", ...): No address associated with hostname [Apr 26 13:44:45] WARNING[5750]: chan_sip.c:26627 sip_request_call: Unable to find IP address for host +380672437070. We will not use this remote IP address == Using SIP RTP CoS mark 5 -- Called SIP/havana/datacard/+380672437070 == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/1201-00000020' status is 'CONGESTION' debian2*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3758.22655.3107 2014-04-26 13:51:25.282545115 +0300 +++ /etc/asterisk/extensions.conf 2014-04-26 13:55:17.074545086 +0300 @@ -247,7 +247,7 @@ [ukraine-gateway] ;exten => _380XXXXXXXXX,1,Dial(DATACARD/p:MTS UKR/+${EXTEN}) -exten => _380XXXXXXXXX,1,Dial(SIP/havana/datacard/+${EXTEN}) +exten => _380XXXXXXXXX,1,Dial(SIP/havana/datacard/${EXTEN}) |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian2 (pid = 4356) ... == Using SIP RTP CoS mark 5 -- Executing [380672437070@gr1:1] Dial("SIP/1201-00000022", "SIP/havana/datacard/380672437070") in new stack [Apr 26 13:55:45] ERROR[5780]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo("380672437070", "(null)", ...): Name or service not known [Apr 26 13:55:45] WARNING[5780]: chan_sip.c:26627 sip_request_call: Unable to find IP address for host 380672437070. We will not use this remote IP address == Using SIP RTP CoS mark 5 -- Called SIP/havana/datacard/380672437070 == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/1201-00000022' status is 'CONGESTION' debian2*CLI> quit Executing last minute cleanups |
#cd /usr/src/
|
#ls
dahdi-linux-complete-2.9.1.1+2.9.1 linux-headers-3.2.0-4-amd64 dahdi-linux-complete-current.tar.gz linux-headers-3.2.0-4-common dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb linux-kbuild-3.2 dahdi.tar.bz2 modules linux vpb-driver.tar.bz2 |
#ls
dahdi-linux-complete-2.9.1.1+2.9.1 linux-headers-3.2.0-4-amd64 dahdi-linux-complete-current.tar.gz linux-headers-3.2.0-4-common dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb linux-kbuild-3.2 dahdi.tar.bz2 modules linux vpb-driver.tar.bz2 |
#ls
asterisk-11-current.tar.gz linux-headers-3.2.0-4-amd64 dahdi-linux-complete-2.9.1.1+2.9.1 linux-headers-3.2.0-4-common dahdi-linux-complete-current.tar.gz linux-kbuild-3.2 dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb modules dahdi.tar.bz2 vpb-driver.tar.bz2 linux |
# 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
Время первой команды журнала | 09:53:27 2014- 4-26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:27:59 2014- 4-26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.94 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.57 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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