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

Содержание

Журнал

Пятница (06/24/11)

/dev/tty1
14:16:13
#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
14:16:15
#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
14:16:20
#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
14:16:23
#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
14:16:31
#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
14:16:32
#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
14:16:38
#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
14:17:38
#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
14:17:42
#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
/dev/pts/0
14:17:47
#ping linux2
ping: unknown host linux2
14:17:49
#cat /etc/resolv.conf
domain d1.unix.nt
search d1.unix.nt
nameserver 192.168.15.253
/dev/tty1
14:17:50
#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
/dev/pts/0
14:17:54
#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
14:18:01
#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
/dev/tty1
14:18:03
#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
14:18:07
#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
14:18:18
#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
14:18:21
#lsp
lspci    lspgpot
14:18:21
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
...
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
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)
/dev/pts/0
14:18:27
#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
/dev/tty1
14:19:10
#dahdi_
dahdi_cfg           dahdi_hardware      dahdi_scan
dahdi_diag          dahdi_monitor       dahdi_test
dahdi_genconf       dahdi_registration  dahdi_tool
14:19:10
#dahdi_genconf

/dev/pts/0
14:19:25
#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)
/dev/tty1
14:21:42
#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
14:21:53
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:22:28
#/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.
14:22:32
#/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.
14:22:34
#vim /etc/asterisk/chan_dahdi.conf
/dev/tty1
14:25:48
#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
14:26:52
#vim /etc/asterisk/dahdi-channels.conf
/dev/pts/1
14:31:59
#vim /etc/dahdi/system.conf
14:32:29
#~
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
14:33:49
#ztcfg -vvv
bash: ztcfg: команда не найдена
14:33:58
#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
14:34:02
#dahdi_cfg -vvv | less
/dev/tty1
14:34:32
#; your manual changes will be LOST.
system.conf      system.conf.bak  xpp.conf
14:34:32
#vim /etc/dahdi/system.conf
14:38:08
#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
14:38:08
#Aasterisk -rvvv
bash: Aasterisk: команда не найдена
14:38:34
#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
14:39:16
#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
14:39:22
#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
/dev/pts/2
14:39:40
#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
14:40:14
#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
14:40:25
#vim /etc/asterisk/dahdi-channels.conf
14:40:25
#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
/dev/pts/2
14:41:10
#reboot

/dev/pts/0
14:41:55
#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
14:43: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 = 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
/dev/tty1
14:44:53
#vim /etc/dahdi/
14:44:53
#vim /etc/dahdi/system.conf
14:46:03
#vim /etc/asterisk/dahdi-channels.conf
14:46:03
#vim /etc/asterisk/dahdi-channels.conf
/dev/pts/1
14:53:37
#vim /etc/asterisk/dahdi-channels.conf
14:55:37
#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
прошло 34 минуты
/dev/pts/1
15:29:45
## PRI

15:30:04
## E1

15:30:06
#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)
15:30:57
#apt-cache search dahdi source3
^C
15:31:52
#apt-cache search dahdi source
dahdi-source - DAHDI telephony interface - source code for kernel driver
15:31:54
#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)
15:31:59
##dahdi_genconf

15:32:07
#l
bash: l: команда не найдена
15:32:12
#ls /etc/dahdi/system.conf
/etc/dahdi/system.conf
15:32:18
#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
15:34:15
#ls /etc/asterisk/dahdi-channels.conf
/etc/asterisk/dahdi-channels.conf
15:34:37
#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
15:34:41
## pri_cpe

/dev/tty2
15:38:28
#vim /etc/asterisk/sip.conf
15:38:28
#vim /etc/asterisk/sip.conf
15:38:28
#vim /etc/asterisk/sip.conf
/dev/pts/1
15:41:15
#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}
/dev/tty2
15:42:34
#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
15:44:42
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:44:49
#/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.
/dev/pts/1
15:44:49
#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
/dev/tty2
15:48:46
#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
15:49:33
#vim /etc/asterisk/chan_dahdi.conf
15:49:40
#; Only VERY rarely will you need to change this.
system.conf      system.conf.bak  xpp.conf
15:49:40
#vim /etc/dahdi/system.conf
15:50:52
#;[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 записано
/dev/tty3
15:52:44
#vim /etc/asterisk/extensions.conf
/dev/tty2
15:53:50
#vim /etc/asterisk/chan_dahdi.conf
15:54:28
#; 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.
;
15:54:32
#; 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 записано
15:54:44
#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)
 
15:57:30
#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)
 
/dev/tty1
15:58:12
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty2
15:58:50
#vim /etc/asterisk/dahdi-channels.conf
16:06:32
#vim /etc/asterisk/extensions.conf
16:07:31
#[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%
16:08:31
#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 записано
/dev/pts/2
16:09:00
#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
 
16:09:47
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:09:51
#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
/dev/tty1
16:09:51
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty2
16:10:47
#man cp
прошла 21 минута
16:31:54
#vim /etc/asterisk/iax
16:31:54
#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
прошло 10 минут
16:42:52
#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
16:44:29
#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]

Файлы

  • /etc/asterisk/dahdi-channels.conf
  • /etc/dahdi/system.conf
  • /etc/resolv.conf
  • /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=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
    
    /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
    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
    
    /etc/resolv.conf
    >
    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
    Частота использования команд
    vim31|=============================| 29.81%
    ping16|===============| 15.38%
    asterisk9|========| 8.65%
    /etc/init.d/asterisk5|====| 4.81%
    dahdi_cfg4|===| 3.85%
    #3|==| 2.88%
    /etc/init.d/dahdi3|==| 2.88%
    lspci3|==| 2.88%
    cat3|==| 2.88%
    apt-cache3|==| 2.88%
    services2|=| 1.92%
    Group:2|=| 1.92%
    ls2|=| 1.92%
    include2|=| 1.92%
    your1|| 0.96%
    man1|| 0.96%
    #dahdi_genconf1|| 0.96%
    l1|| 0.96%
    ztcfg1|| 0.96%
    Only1|| 0.96%
    reboot1|| 0.96%
    dahdi_genconf1|| 0.96%
    less1|| 0.96%
    lsp1|| 0.96%
    group1|| 0.96%
    ~1|| 0.96%
    Aasterisk1|| 0.96%
    [default]1|| 0.96%
    dahdi_1|| 0.96%
    [phones](!)1|| 0.96%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

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

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

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

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

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    О программе

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

    $Id$