/l3/users/piton/SET-YOUR-FIRSTLAB-NAME-HERE/linux1.linux.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#ping 192.168.101.2
![]() PING 192.168.101.2 (192.168.101.2) 56(84) bytes of data. ^C --- 192.168.101.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.201.1
![]() PING 192.168.201.1 (192.168.201.1) 56(84) bytes of data. ^C --- 192.168.201.1 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.201.2
![]() PING 192.168.201.2 (192.168.201.2) 56(84) bytes of data. ^C --- 192.168.201.2 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.201.2
![]() PING 192.168.201.2 (192.168.201.2) 56(84) bytes of data. ^C --- 192.168.201.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1009ms |
#ping 192.168.201.2
![]() PING 192.168.201.2 (192.168.201.2) 56(84) bytes of data. ^C --- 192.168.201.2 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.201.1
![]() PING 192.168.201.1 (192.168.201.1) 56(84) bytes of data. ^C --- 192.168.201.1 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 4999ms |
#ping 192.168.201.1
![]() PING 192.168.201.1 (192.168.201.1) 56(84) bytes of data. ^C --- 192.168.201.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms |
#ping 192.168.201.2
![]() PING 192.168.201.2 (192.168.201.2) 56(84) bytes of data. ^C --- 192.168.201.2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms |
#ping 192.168.201.2
![]() PING 192.168.201.2 (192.168.201.2) 56(84) bytes of data. ^C --- 192.168.201.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#cat /etc/resolv.conf
domain d1.unix.nt search d1.unix.nt nameserver 192.168.15.253 |
#ping 192.168.201.1
![]() PING 192.168.201.1 (192.168.201.1) 56(84) bytes of data. ^C --- 192.168.201.1 ping statistics --- 12 packets transmitted, 0 received, 100% packet loss, time 11080ms |
#ping 192.168.15.253
PING 192.168.15.253 (192.168.15.253) 56(84) bytes of data. 64 bytes from 192.168.15.253: icmp_req=1 ttl=64 time=0.543 ms ^C --- 192.168.15.253 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.543/0.543/0.543/0.000 ms |
#ping 192.168.102.1
PING 192.168.102.1 (192.168.102.1) 56(84) bytes of data. 64 bytes from 192.168.102.1: icmp_req=1 ttl=63 time=0.793 ms ^C --- 192.168.102.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.793/0.793/0.793/0.000 ms |
#ping 192.168.15.253
PING 192.168.15.253 (192.168.15.253) 56(84) bytes of data. 64 bytes from 192.168.15.253: icmp_req=1 ttl=64 time=0.539 ms 64 bytes from 192.168.15.253: icmp_req=2 ttl=64 time=0.535 ms ^C --- 192.168.15.253 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.535/0.537/0.539/0.002 ms |
#ping 192.168.201.1
![]() PING 192.168.201.1 (192.168.201.1) 56(84) bytes of data. ^C --- 192.168.201.1 ping statistics --- 9 packets transmitted, 0 received, 100% packet loss, time 8056ms |
#ping 192.168.102.1
PING 192.168.102.1 (192.168.102.1) 56(84) bytes of data. 64 bytes from 192.168.102.1: icmp_req=1 ttl=63 time=0.938 ms ^C --- 192.168.102.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.938/0.938/0.938/0.000 ms |
#lsp
![]() lspci lspgpot |
#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) 30:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03) 31:08.0 Communication controller: Digium, Inc. Wildcard TE220 dual-span T1/E1/J1 card 3.3V (PCI-Express) (5th gen) (rev 02) |
#vim /etc/resolv.conf
--- /tmp/l3-saved-2236.20912.2942 2011-06-24 15:18:33.000000000 +0300 +++ /etc/resolv.conf 2011-06-24 15:18:37.000000000 +0300 @@ -1,3 +1,3 @@ -domain d1.unix.nt -search d1.unix.nt +domain unix.nt +search unix.nt nameserver 192.168.15.253 |
#dahdi_
![]() dahdi_cfg dahdi_hardware dahdi_scan dahdi_diag dahdi_monitor dahdi_test dahdi_genconf dahdi_registration dahdi_tool |
#dahdi_genconf
|
#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) 30:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03) 31:08.0 Communication controller: Digium, Inc. Wildcard TE220 dual-span T1/E1/J1 card 3.3V (PCI-Express) (5th gen) (rev 02) |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): OSLEC Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 62 channels to configure. Setting echocan for channel 1 to oslec Setting echocan for channel 2 to oslec ... Setting echocan for channel 53 to oslec Setting echocan for channel 54 to oslec Setting echocan for channel 55 to oslec Setting echocan for channel 56 to oslec Setting echocan for channel 57 to oslec Setting echocan for channel 58 to oslec Setting echocan for channel 59 to oslec Setting echocan for channel 60 to oslec Setting echocan for channel 61 to oslec Setting echocan for channel 62 to oslec |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/dahdi restart
\Unloading DAHDI hardware modules: ERROR: Module dahdi_echocan_oslec is in use ERROR: Module wct4xxp is in use ERROR: Module dahdi is in use by dahdi_echocan_oslec,wct4xxp ERROR: Module dahdi_echocan_oslec is in use ERROR: Module echo is in use by dahdi_echocan_oslec error Loading DAHDI hardware modules: Running dahdi_cfg: done. |
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: ERROR: Module dahdi_echocan_oslec is in use ERROR: Module wct4xxp is in use ERROR: Module dahdi is in use by dahdi_echocan_oslec,wct4xxp ERROR: Module dahdi_echocan_oslec is in use ERROR: Module echo is in use by dahdi_echocan_oslec error Loading DAHDI hardware modules: Running dahdi_cfg: done. |
#vim /etc/asterisk/chan_dahdi.conf
|
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1403) ... [Jun 24 15:26:36] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:26:40] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:26:40] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:26:44] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:26:44] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:26:48] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:26:48] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! linux1*CLI> quit Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/dahdi-channels.conf
|
#~
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1403) ... [Jun 24 15:33:36] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:33:36] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:33:40] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:33:40] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:33:44] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:33:44] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:33:48] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:33:48] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! linux1*CLI> quit Executing last minute cleanups |
#ztcfg -vvv
![]() bash: ztcfg: команда не найдена |
#dahdi_cfg -vvv
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): OSLEC Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Echo Canceler: oslec) (Slaves: 01) Channel 02: Clear channel (Default) (Echo Canceler: oslec) (Slaves: 02) ... Setting echocan for channel 53 to oslec Setting echocan for channel 54 to oslec Setting echocan for channel 55 to oslec Setting echocan for channel 56 to oslec Setting echocan for channel 57 to oslec Setting echocan for channel 58 to oslec Setting echocan for channel 59 to oslec Setting echocan for channel 60 to oslec Setting echocan for channel 61 to oslec Setting echocan for channel 62 to oslec |
#dahdi_cfg -vvv | less
|
#vim /etc/dahdi/system.conf
|
#dahdi_cfg
![]() .aptitude/ .freetalk/ .mc/ .ssh/ .asterisk_history .hushlogin .profile test-festival.wav .bash_history .l3rc .rnd .viminfo .bash_profile .lesshst .sendxmpprc .bashrc .lilalo/ sent |
#Aasterisk -rvvv
![]() bash: Aasterisk: команда не найдена |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1403) ... linux1*CLI> dahdi show cadences r1: 125,125,2000,4000 r2: 250,250,500,1000,250,250,500,4000 r3: 125,125,125,125,125,4000 r4: 1000,500,2500,5000 [Jun 24 15:39:12] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:39:12] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1403) Verbosity is at least 3 linux1*CLI> dahdi show cadences r1: 125,125,2000,4000 r2: 250,250,500,1000,250,250,500,4000 r3: 125,125,125,125,125,4000 r4: 1000,500,2500,5000 [Jun 24 15:39:20] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:39:20] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux1*CLI> dahdi show cadences Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1403) Verbosity is at least 3 [Jun 24 15:39:24] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:39:24] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux1*CLI> dahdi show cadences r1: 125,125,2000,4000 r2: 250,250,500,1000,250,250,500,4000 r3: 125,125,125,125,125,4000 r4: 1000,500,2500,5000 linux1*CLI> Disconnected from Asterisk server |
#vim /etc/dahdi/system.conf
--- /tmp/l3-saved-2023.32754.30508 2011-06-24 15:39:43.000000000 +0300 +++ /etc/dahdi/system.conf 2011-06-24 15:40:14.000000000 +0300 @@ -6,14 +6,14 @@ # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED -span=1,1,0,ccs,hdb3,crc4 +span=1,0,0,ccs,hdb3,crc4 # termtype: te bchan=1-15,17-31 dchan=16 echocanceller=oslec,1-15,17-31 # Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED -span=2,2,0,ccs,hdb3,crc4 +span=2,0,0,ccs,hdb3,crc4 # termtype: te bchan=32-46,48-62 dchan=47 |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1403) Verbosity is at least 3 linux1*CLI> [Jun 24 15:40:20] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:40:20] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:40:24] WARNING[1433]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:40:24] WARNING[1432]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux1*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/dahdi-channels.conf
![]() |
#vim /etc/asterisk/dahdi-channels.conf
--- /tmp/l3-saved-2023.5764.21288 2011-06-24 15:40:36.000000000 +0300 +++ /etc/asterisk/dahdi-channels.conf 2011-06-24 15:40:45.000000000 +0300 @@ -11,7 +11,7 @@ group=0,11 context=from-pstn switchtype = euroisdn -signalling = pri_cpe +signalling = pri_net channel => 1-15,17-31 context = default group = 63 @@ -20,7 +20,7 @@ group=0,12 context=from-pstn switchtype = euroisdn -signalling = pri_cpe +signalling = pri_net channel => 32-46,48-62 context = default group = 63 |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1434) ... [Jun 24 15:43:33] WARNING[1480]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:43:33] WARNING[1479]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:43:37] WARNING[1480]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:43:37] WARNING[1479]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:43:41] WARNING[1480]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:43:41] WARNING[1479]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux1*CLI> quir No such command 'quir' (type 'core show help quir' for other possible commands) linux1*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1434) ... T-RESPONSE: 4000 Overlap Recv: No [Jun 24 15:44:05] WARNING[1480]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:44:05] WARNING[1479]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:44:09] WARNING[1480]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:44:09] WARNING[1479]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:44:13] WARNING[1480]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:44:13] WARNING[1479]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux1*CLI> quit Executing last minute cleanups |
#vim /etc/dahdi/system.conf
|
#vim /etc/asterisk/dahdi-channels.conf
![]() |
#vim /etc/asterisk/dahdi-channels.conf
|
#group = 63
[Jun 20 15:01:13] NOTICE[7342] cdr.c: CDR simple logging enabled. [Jun 20 15:01:13] NOTICE[7342] loader.c: 198 modules will be loaded. [Jun 20 15:01:13] WARNING[7342] res_config_ldap.c: No directory user found, anonymous binding as default. [Jun 20 15:01:13] ERROR[7342] res_config_ldap.c: No directory URL or host found. [Jun 20 15:01:13] NOTICE[7342] res_config_ldap.c: Cannot load LDAP RealTime driver. [Jun 20 15:01:13] NOTICE[7342] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener. [Jun 20 15:01:13] NOTICE[7342] config.c: Registered Config Engine sqlite [Jun 20 15:01:13] NOTICE[7342] res_odbc.c: res_odbc loaded. [Jun 20 15:01:13] WARNING[7342] chan_dahdi.c: Ignoring any changes to 'userbase' (on reload) at line 23. [Jun 20 15:01:13] WARNING[7342] chan_dahdi.c: Ignoring any changes to 'vmsecret' (on reload) at line 31. ... [Jun 24 15:55:25] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:29] WARNING[1480] chan_dahdi.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:55:29] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:33] WARNING[1480] chan_dahdi.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:55:33] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:37] WARNING[1480] chan_dahdi.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:55:37] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:41] WARNING[1480] chan_dahdi.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:55:41] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:43] NOTICE[1501] chan_sip.c: Received SIP subscribe for peer without mailbox: 1102 |
## E1
|
#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) 30:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03) 31:08.0 Communication controller: Digium, Inc. Wildcard TE220 dual-span T1/E1/J1 card 3.3V (PCI-Express) (5th gen) (rev 02) |
#apt-cache search dahdi source3
![]() ^C |
#apt-cache search dahdi source
dahdi-source - DAHDI telephony interface - source code for kernel driver |
#apt-cache search dahdi linux
dahdi-linux - DAHDI telephony interface - Linux userspace parts dahdi-modules-2.6.32-5-amd64 - DAHDI modules for Linux (kernel 2.6.32-5-amd64) |
##dahdi_genconf
|
#l
![]() bash: l: команда не найдена |
#ls /etc/dahdi/system.conf
/etc/dahdi/system.conf |
#cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:42 2011 # 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: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED span=1,0,0,ccs,hdb3,crc4 # termtype: te ... echocanceller=oslec,1-15,17-31 # Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED span=2,0,0,ccs,hdb3,crc4 # termtype: te bchan=32-46,48-62 dchan=47 echocanceller=oslec,32-46,48-62 # Global data loadzone = us defaultzone = us |
#ls /etc/asterisk/dahdi-channels.conf
/etc/asterisk/dahdi-channels.conf |
#cat /etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:42 2011 ; If you edit this file and execute /usr/sbin/dahdi_genconf again, ; your manual changes will be LOST. ; Dahdi Channels Configurations (chan_dahdi.conf) ; ; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended ; to be #include-d by /etc/chan_dahdi.conf that will include the global settings ; ; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED group=0,11 ... context = default group = 63 ; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED group=0,12 context=from-pstn switchtype = euroisdn signalling = pri_net channel => 32-46,48-62 context = default group = 63 |
## pri_cpe
|
#vim /etc/asterisk/sip.conf
![]() |
#vim /etc/asterisk/sip.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2043.4626.29253 2011-06-24 16:41:32.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-24 16:42:34.000000000 +0300 @@ -120,7 +120,8 @@ exten =? _11XX,n,Hangup() [national] -exten => _12XX,1,Dial(SIP/spb/${EXTEN},5) +;exten => _12XX,1,Dial(SIP/spb/${EXTEN},5) +exten => _12XX,1,Dial(DAHDI/g1/${EXTEN},5) [international] ;exten => _23XX,1,Dial(SIP/kiev/${EXTEN},5} |
#vim /etc/asterisk/dahdi-channels.conf
--- /tmp/l3-saved-2317.26883.19994 2011-06-24 16:44:28.000000000 +0300 +++ /etc/asterisk/dahdi-channels.conf 2011-06-24 16:44:42.000000000 +0300 @@ -10,7 +10,7 @@ ; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED ;group=0,11 -group=1 +group=2 context=from-pstn switchtype = euroisdn signalling = pri_net @@ -20,7 +20,7 @@ group = 63 ; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED -group=2 +group=1 ;group=0,12 context=from-pstn switchtype = euroisdn |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: ERROR: Module dahdi_echocan_oslec is in use ERROR: Module wct4xxp is in use ERROR: Module dahdi is in use by dahdi_echocan_oslec,wct4xxp ERROR: Module dahdi_echocan_oslec is in use ERROR: Module echo is in use by dahdi_echocan_oslec error Loading DAHDI hardware modules: Running dahdi_cfg: done. |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 2472) Verbosity was 0 and is now 1 linux1*CLI> ... T305: 30000 T308: 4000 T309: 6000 T313: 4000 T-HOLD: 4000 T-RETRIEVE: 4000 T-RESPONSE: 4000 Overlap Recv: No linux1*CLI> quit Executing last minute cleanups |
#include => services
![]() adsi.conf enum.conf osp.conf adtranvofr.conf extconfig.conf oss.conf agents.conf extensions.ael phone.conf ais.conf extensions.conf phoneprov.conf alarmreceiver.conf extensions.conf.save queuerules.conf alsa.conf extensions.lua queues.conf amd.conf extensions_minivm.conf res_config_sqlite.conf asterisk.adsi features.conf res_ldap.conf asterisk.conf festival.conf res_odbc.conf cdr_adaptive_odbc.conf followme.conf res_pgsql.conf ... cdr_sqlite3_custom.conf iaxprov.conf sip.conf.save cdr_tds.conf indications.conf sip_notify.conf chan_dahdi.conf jabber.conf skinny.conf cli_aliases.conf jingle.conf sla.conf cli.conf logger.conf smdi.conf cli_permissions.conf manager.conf telcordia-1.adsi codecs.conf manager.d/ udptl.conf console.conf meetme.conf unistim.conf dahdi-channels.conf mgcp.conf usbradio.conf --More--^C |
#vim /etc/asterisk/chan_dahdi.conf
|
#; Only VERY rarely will you need to change this.
![]() system.conf system.conf.bak xpp.conf |
#vim /etc/dahdi/system.conf
|
#;[phones](!)
; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED group=1 context=from-pstn switchtype = euroisdn signalling = pri_net channel => 32-46,48-62 switchtype = euroisdn signalling = pri_net channel => 32-46,48-62 context = default group = 63 30,10 85% context=f gr3 switchtype = euroisdn signalling = pri_net channel => 32-46,48-62 context = default group = 6 gr3 "/etc/asterisk/dahdi-channels.conf" 31L, 788C записано |
#; Group: Defines a trunk group.
; un-comment those lines. ;/etc/asterisk/chan_dahdi.conf" 1225L, 47050C ; Examples below that are commented out (those lines that begin with a ';' but ; no space afterwards) typically show a value that is not the default value, ; but would make sense under certain circumstances. The default values are ; usually sane. Thus you should typically not touch them unless you know what ; they mean or you know you should change them. [trunkgroups] ; ; Trunk groups are used for NFAS or GR-303 connections. ; |
#; Group: Defines a trunk group.
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended ; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED ; to be #include-d by /etc/chan_dahdi.conf that will include the global settings ;group=0,11 group=2 context=from-pstn switchtype = euroisdn signalling = pri_net "/etc/asterisk/dahdi-channels.conf" 31L, 788C channel => 1-15,17-31 context = gr3 group = 63 context=from-pstn switchtype = euroisdn signalling = pri_net ;context=from-pstn8-62 context = gr3 group = 63 "/etc/asterisk/dahdi-channels.conf" 31L, 790C записано |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2317.27489.21673 2011-06-24 16:55:24.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-24 16:57:30.000000000 +0300 @@ -126,7 +126,8 @@ [international] ;exten => _23XX,1,Dial(SIP/kiev/${EXTEN},5} exten => _21XX,1,Dial(SIP/ny/${EXTEN},5) -exten => _22XX,1,Dial(SIP/ny/${EXTEN},5) +;exten => _22XX,1,Dial(SIP/ny/${EXTEN},5) +exten => _22XX,1,Dial(DAHDI/g1/${EXTEN},5) exten => _24XX,1,Dial(SIP/kiev/${EXTEN},5) exten => _13XX,1,Dial(SIP/ny/${EXTEN},5) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2317.16856.29034 2011-06-24 16:58:29.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-24 16:58:50.000000000 +0300 @@ -127,7 +127,7 @@ ;exten => _23XX,1,Dial(SIP/kiev/${EXTEN},5} exten => _21XX,1,Dial(SIP/ny/${EXTEN},5) ;exten => _22XX,1,Dial(SIP/ny/${EXTEN},5) -exten => _22XX,1,Dial(DAHDI/g1/${EXTEN},5) +exten => _22XX,1,Dial(DAHDI/g2/${EXTEN},5) exten => _24XX,1,Dial(SIP/kiev/${EXTEN},5) exten => _13XX,1,Dial(SIP/ny/${EXTEN},5) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim /etc/asterisk/extensions.conf
|
#[default]
[exten =] _11XX,2,Playback(demo-congrats) ;exten => 1103,1,Dial(SIP/1101&SIP/1102,5) ;........................ ;exten =>_12XX,1,Dial(SIP/spb/${EXTEN},5) "/etc/asterisk/extensions.conf" 174L, 5868C [international] [ ] [exten => _23XX,1,Dial(SIP/kiev/${EXTEN},5} ;-------------созднаие очереди------------------ ;exten => 1199,1,Answer ... ;exten => _12XX,1,Dial(SIP/spb/${EXTEN},5) 127,1 75% ;exten => _22XX,1,Dial(SIP/ny/${EXTEN},5) exten => _22XX,1,Dial(DAHDI/g2/${EXTEN},5) exten => _13XX,1,Dial(SIP/ny/${EXTEN},5) [services] [ ] [gr1] [gr1] include => default include => local,Dial(SIP/kiev/${EXTEN},5) 138,1 82% |
#include => services
exten => 9,1,Goto(menu,s,start-menu) exten => 0,1,Playback(/var/tmp/asterisk/record04) [kievmenu] [ ] ;exten => s,n,WaitExten(1) exten => s,n,Goto(menu,s,start-menu) exten => 9,1,Goto(menu,s,start-menu) ;exten => 9,1,Playback(/var/tmp/asterisk/error) [submenu] [ ] ... ;exten =>_12XX,1,Dial(SIP/spb/${EXTEN},5) exten => _88XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm,2) exten => _88XX,n,Wait(1) exten => _88XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2}) exten => 9922,1,Playback(/var/tmp/asterisk/record) ;exten => 9933,1,Festival(Hello) exten => 9933,1,AGI(/usr/local/bin/festival-script.pl,/tmp/kiev-ru.txt) exten => 9934,1,AGI(/usr/local/bin/festival-script.pl,/tmp/ru-burunduk.txt) exten => 9935,1,AGI(/usr/local/bin/festival-script.pl,/tmp/ru-asterisk.txt) "/etc/asterisk/extensions.conf" 160L, 5591C записано |
#vim /etc/asterisk/dahdi-channels.conf
--- /tmp/l3-saved-3149.22646.11683 2011-06-24 17:09:05.000000000 +0300 +++ /etc/asterisk/dahdi-channels.conf 2011-06-24 17:09:47.000000000 +0300 @@ -14,9 +14,9 @@ ;context=from-pstn switchtype = euroisdn signalling = pri_net +context = gr3 channel => 1-15,17-31 -context = gr3 group = 63 ; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED @@ -25,7 +25,10 @@ ;context=from-pstn switchtype = euroisdn signalling = pri_net -channel => 32-46,48-62 context = gr3 +channel => 32-46,48-62 + +;------------------------------------ + group = 63 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 3213) Verbosity was 0 and is now 1 Executing last minute cleanups linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim /etc/asterisk/iax
![]() |
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-2317.24535.21446 2011-06-24 17:38:15.000000000 +0300 +++ /etc/asterisk/iax.conf 2011-06-24 17:42:52.000000000 +0300 @@ -563,3 +563,14 @@ ;secret=moofoo ; when immediate=yes is specified, secret is required ;context=number-please ; we start at the s extension in this context ; + +register => msk:password@192.168.105.1/ny:5656 +;register => joe@remotehost:5656 + +[ny] +type=friend +secret=password +canreinvite=no +host=dynamic +username=msk +;context=gr3 |
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-2317.10459.20311 2011-06-24 17:43:20.000000000 +0300 +++ /etc/asterisk/iax.conf 2011-06-24 17:44:29.000000000 +0300 @@ -573,4 +573,4 @@ canreinvite=no host=dynamic username=msk -;context=gr3 +context=default |
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-2317.5636.6895 2011-06-24 17:45:03.000000000 +0300 +++ /etc/asterisk/iax.conf 2011-06-24 17:47:52.000000000 +0300 @@ -564,7 +564,7 @@ ;context=number-please ; we start at the s extension in this context ; -register => msk:password@192.168.105.1/ny:5656 +register => msk:password@192.168.105.1:5656 ;register => joe@remotehost:5656 [ny] |
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:42 2011 ; If you edit this file and execute /usr/sbin/dahdi_genconf again, ; your manual changes will be LOST. ; Dahdi Channels Configurations (chan_dahdi.conf) ; ; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended ; to be #include-d by /etc/chan_dahdi.conf that will include the global settings ; ; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED group=0,11 context=from-pstn switchtype = euroisdn signalling = pri_net channel => 1-15,17-31 context = default group = 63 ; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED group=0,12 context=from-pstn switchtype = euroisdn signalling = pri_net channel => 32-46,48-62 context = default group = 63
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:42 2011 # 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: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED span=1,0,0,ccs,hdb3,crc4 # termtype: te bchan=1-15,17-31 dchan=16 echocanceller=oslec,1-15,17-31 # Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED span=2,0,0,ccs,hdb3,crc4 # termtype: te bchan=32-46,48-62 dchan=47 echocanceller=oslec,32-46,48-62 # Global data loadzone = us defaultzone = us
domain d1.unix.nt search d1.unix.nt nameserver 192.168.15.253
Время первой команды журнала | 14:16:13 2011- 6-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:44:29 2011- 6-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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