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

Содержание

Журнал

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

/dev/pts/3
14:44:14
#exit
exit
Connection to linux1 closed.
14:44:15
#ssh linux6
Linux linux6 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 24 15:40:54 2011 from linux0.unix.nt
l3-agent is already running: pid=1997; pidfile=/root/.lilalo/l3-agent.pid
14:44:18
#vim /etc/asterisk/dahdi-channels.conf
14:44:34
#~
adsi.conf                codecs.conf              iax.conf                 res_config_sqlite.conf
adtranvofr.conf          console.conf             iaxprov.conf             res_ldap.conf
agents.conf              dahdi-channels.conf      indications.conf         res_odbc.conf
ais.conf                 dbsep.conf               jabber.conf              res_pgsql.conf
alarmreceiver.conf       dnsmgr.conf              jingle.conf              res_snmp.conf
alsa.conf                dsp.conf                 logger.conf              rpt.conf
amd.conf                 dundi.conf               manager.conf             rtp.conf
asterisk.adsi            enum.conf                manager.d/               say.conf
asterisk.conf            extconfig.conf           meetme.conf              sip.conf
cdr_adaptive_odbc.conf   extensions.ael           mgcp.conf                sip.conf.SAVE
cdr.conf                 extensions.conf          minivm.conf              sip_notify.conf
cdr_custom.conf          extensions.conf.SAVE     misdn.conf               skinny.conf
cdr_manager.conf         extensions.lua           modules.conf             sla.conf
cdr_odbc.conf            extensions_minivm.conf   musiconhold.conf         smdi.conf
cdr_pgsql.conf           features.conf            muted.conf               telcordia-1.adsi
cdr_sqlite3_custom.conf  festival.conf            osp.conf                 udptl.conf
cdr_tds.conf             followme.conf            oss.conf                 unistim.conf
chan_dahdi.conf          func_odbc.conf           phone.conf               usbradio.conf
cli_aliases.conf         gtalk.conf               phoneprov.conf           users.conf
cli.conf                 h323.conf                queuerules.conf          voicemail.conf
cli_permissions.conf     http.conf                queues.conf              vpb.conf
14:44:34
#vim /etc/asterisk/chan_dahdi.conf
14:46:10
#~
system.conf  xpp.conf
14:46:10
#vim /etc/dahdi/system.conf
14:46:27
#~

14:47:41
#less /var/log/asterisk/
14:47:41
#less /var/log/asterisk/messages
14:49:23
#vim /etc/dahdi/
14:49:23
#vim /etc/dahdi/system.conf
14:49:52
#~
dahdi_cfg           dahdi_genconf       dahdi_monitor       dahdi_scan          dahdi_tool
dahdi_diag          dahdi_hardware      dahdi_registration  dahdi_test
14:49:52
#dahdi_hardware
pci:0000:31:08.0     wcte12xp+    d161:8000 Wildcard TE121
14:49:58
#dahdi_scan
[1]
active=yes
alarms=RED
description=Wildcard TE121 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE121
location=PCI Bus 49 Slot 09
basechan=1
totchans=31
irq=17
type=digital-E1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
14:50:03
#dahdi_tool
.aptitude/           .gnome2/             .profile             .xsession-errors
.asterisk_history    .gnupg/              .recently-used.xbel  Видео/
.bash_history        .gstreamer-0.10/     .rnd                 Документы/
.bash_profile        .gtk-bookmarks       .sendxmpprc          Загрузки/
.bashrc              .gvfs/               sent                 Изображения/
.config/             .ICEauthority        .ssh/                Музыка/
.dbus/               .l3rc                .vim/                Общедоступные/
.freetalk/           .lilalo/             .viminfo             Рабочий стол/
.gconf/              .mc/                 .w3m/                Шаблоны/
.gconfd/             .nautilus/           .Xauthority
14:50:03
#dahdi_tool

14:50:55
#

14:51:12
#
dahdi_cfg           dahdi_genconf       dahdi_monitor       dahdi_scan          dahdi_tool
dahdi_diag          dahdi_hardware      dahdi_registration  dahdi_test
14:51:12
#dahdi_test
Opened pseudo dahdi interface, measuring accuracy...
99.996% 99.992% 99.996% 99.995% 99.996% 99.995% 99.995% 99.995%
99.995% 99.995% 99.995% ^C
--- Results after 11 passes ---
Best: 99.996 -- Worst: 99.992 -- Average: 99.995054, Difference: 99.995054
14:51:29
#dahdi_monitor
Usage: dahdi_monitor <channel num> [-v[v]] [-m] [-o] [-l limit] [-f FILE | -s FILE | -r FILE1 -t FILE2] [-F FILE | -S FILE | -R FILE1 -T FILE2]
Options:
        -v: Visual mode.  Implies -m.
        -vv: Visual/Verbose mode.  Implies -m.
        -l LIMIT: Stop after reading LIMIT bytes
        -m: Separate rx/tx streams.
        -o: Output audio via OSS.  Note: Only 'normal' combined rx/tx streams are output via OSS.
        -f FILE: Save combined rx/tx stream to FILE. Cannot be used with -m.
        -r FILE: Save rx stream to FILE. Implies -m.
        -t FILE: Save tx stream to FILE. Implies -m.
...
Save a stream to a file
        dahdi_monitor 1 -f stream.raw
Visualize an rx/tx stream and save them to separate files.
        dahdi_monitor 1 -v -r streamrx.raw -t streamtx.raw
Play a combined rx/tx stream via OSS and save it to a file
        dahdi_monitor 1 -o -f stream.raw
Save a combined normal rx/tx stream and a combined 'preecho' rx/tx stream to files
        dahdi_monitor 1 -f stream.raw -F streampreecho.raw
Save a normal rx/tx stream and a 'preecho' rx/tx stream to separate files
        dahdi_monitor 1 -m -r streamrx.raw -t streamtx.raw -R streampreechorx.raw -T streampreechotx.raw
14:51:36
#dahdi_diag
Usage: dahdi_diag <channel>
14:52:13
#~
exit
Connection to linux6 closed.
14:52:14
#ssh linux2
Linux linux2 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 24 15:24:59 2011 from linux0.unix.nt
l3-agent is already running: pid=2355; pidfile=/root/.lilalo/l3-agent.pid
14:52:16
#init 0

14:52:31
#ssh linux1
l3-agent is already running: pid=1617; pidfile=/root/.lilalo/l3-agent.pid
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
14:57:42
#exit
exit
Connection to linux1 closed.
14:57:42
#ssh linux2
^C
14:57:45
#ssh linux2
ssh: connect to host linux2 port 22: Connection refused
14:58:02
#ssh linux2
Linux linux2 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 24 15:52:16 2011 from linux0.unix.nt
14:58:33
#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 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11)
14:58:34
#dahdi_genconf

14:59:01
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.3.0.1
Echo Canceller(s):
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
31 channels to configure.
Setting echocan for channel 1 to oslec
Setting echocan for channel 2 to oslec
Setting echocan for channel 3 to oslec
...
Setting echocan for channel 22 to oslec
Setting echocan for channel 23 to oslec
Setting echocan for channel 24 to oslec
Setting echocan for channel 25 to oslec
Setting echocan for channel 26 to oslec
Setting echocan for channel 27 to oslec
Setting echocan for channel 28 to oslec
Setting echocan for channel 29 to oslec
Setting echocan for channel 30 to oslec
Setting echocan for channel 31 to oslec
14:59:06
#vim /etc/dahdi/system.conf
15:00:45
#vim /etc/asterisk/dahdi-channels.conf
15:01:26
#reboot
Broadcast message from root@linux2 (pts/1) (Fri Jun 24 16:01:33 2011):
The system is going down for reboot NOW!
15:01:41
#ssh linux2
Linux linux2 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 24 15:58:32 2011 from linux0.unix.nt
15:03:18
#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 linux2 (pid = 1677)
...
[Jun 24 16:10:09] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
[Jun 24 16:10:10] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
  == Primary D-Channel on span 1 down
[Jun 24 16:10:11] WARNING[1706]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
  == Primary D-Channel on span 1 up
[Jun 24 16:10:11] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
[Jun 24 16:10:12] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
[Jun 24 16:10:13] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too.
linux2*CLI> quit
Executing last minute cleanups
15:10:13
#vim /etc/asterisk/
15:10:13
#vim /etc/asterisk/chan_dahdi.conf
15:10:13
#vim /etc/asterisk/chan_dahdi.conf
15:10:23
#; Some switches (AT&T especially) require network specific facility IE
dahdi-channels.conf      dahdi-channels.conf.bak
15:10:23
#vim /etc/asterisk/dahdi-channels.conf
15:10:33
#vim /etc/sysctl.
15:10:33
#vim /etc/asterisk/
15:10:33
#vim /etc/dahdi/system.conf
15:10:51
#~
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:11:09
#exit
exit
Connection to linux2 closed.
15:11:11
#ssh linux1
l3-agent is already running: pid=1617; pidfile=/root/.lilalo/l3-agent.pid
прошло 18 минут
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

15:41:15
#vim /etc/asterisk/extensions.conf
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
15:45:40
#exit
exit
Connection to linux1 closed.
15:45:41
#ssh linux2
Linux linux2 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 24 16:03:17 2011 from linux0.unix.nt
l3-agent is already running: pid=2084; pidfile=/root/.lilalo/l3-agent.pid
15:45:43
#vim /etc/asterisk/dahdi-channels.conf
15:45:43
#vim /etc/asterisk/dahdi-channels.conf
15:46:26
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:46:33
#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 linux2 (pid = 3103)
Verbosity was 0 and is now 3
linux2*CLI>
linux2*CLI>
    -- Extension '1201' in context 'national' from '1101' does not exist.  Rejecting call on channel 0/1, span 1
linux2*CLI> quit
Executing last minute cleanups
15:46:51
#less /etc/asterisk/extensions.conf
15:47:20
#less /etc/asterisk/sip.conf
15:47:38
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:48:16
#vim /etc/asterisk/extension.conf
15:48:43
#~
exten => s,n,WaitExten(5)
exten => s,n,Goto(system-menu,s,1)
exten => 1234,Background(/var/tmp/asterisk/pass)
exten => 1234,n,System(touch /tmp/aster_fail);                  tipa fayl vipolnaem
exten => 1234,n,GotoIf($[${SYSTEMSTATUS} = SUCCESS]?success)
exten => i,1,Playback(/var/tmp/asterisk/record12)               ;error
exten => 1234,n,Handup
exten => 1234,n(success),Playback(var/tmp/asterisk/record13)    ; parol pravilniy
exten => i,1,Playback(var/tmp/asterisk/record14)    ; parol ne pravilniy
[local]
...
[        ]    ]
                    l(DAHDI/g1/${EXTEN})
exten => _22XX,1,Dial(SIP/msk/${EXTEN},10)
exten => _23XX,1,Dial(SIP/msk/${EXTEN},10)
[             ]
exten => _24XX,1,Dial(SIP/msk/${EXTEN},10)
exten => _13XX,1,Dial(SIP/msk/${EXTEN},10)
[gr1]
include => internal
"/etc/asterisk/extensions.conf" 157L, 4980C записано
15:50:39
#vim /etc/asterisk/d
15:50:39
#vim /etc/asterisk/dahdi-channels.conf
15:51:14
#~
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:51:22
#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 linux2 (pid = 3443)
Verbosity was 0 and is now 3
linux2*CLI> quit
Executing last minute cleanups
15:52:01
#exit
exit
Connection to linux2 closed.
15:52:11
#ssh root@192.168.105.1
Linux linux5 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 24 10:24:58 2011 from linux0.unix.nt
l3-agent is already running: pid=2585; pidfile=/root/.lilalo/l3-agent.pid
15:52:26
#rootpass
bash: rootpass: команда не найдена
15:52:29
#vim /etc/asterisk/extensions.conf
15:53:54
#vim /etc/asterisk/d
прошло 13 минут
16:07:13
#exit
exit
Connection to 192.168.105.1 closed.
16:07:17
#ssh linux6
Linux linux6 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 24 17:04:17 2011
l3-agent is already running: pid=1997; pidfile=/root/.lilalo/l3-agent.pid
16:07:22
#vim /etc/asterisk/chan_dahdi.conf
16:07:28
#; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
; 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
context = gr3
;
; Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER)
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/dahdi-channels.conf" 18L, 559C записано
16:07:40
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:07:50
#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 linux6 (pid = 3209)
...
  == Using SIP RTP CoS mark 5
    -- Executing [1101@gr3:1] Dial("SIP/2201-00000004", "DAHDI/g1/1101") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called g1/1101
    -- Channel 0/1, span 1 got hangup, cause 1
    -- Hungup 'DAHDI/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/2201-00000004' status is 'CHANUNAVAIL'
linux6*CLI> quit
Executing last minute cleanups
16:08:57
#exit
exit
Connection to linux6 closed.
16:08:58
#ssh linux1
l3-agent is already running: pid=1617; pidfile=/root/.lilalo/l3-agent.pid
16:09:00
#vim /etc/asterisk/dahdi-channels.conf
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
16:10:52
#exit
exit
Connection to linux1 closed.
16:11:36
#ssh linux6
Linux linux6 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 24 17:07:21 2011 from linux0.unix.nt
l3-agent is already running: pid=1997; pidfile=/root/.lilalo/l3-agent.pid
16:11:49
#less /etc/asterisk/chan_dahdi.conf
16:11:54
#less /etc/asterisk/dahdi-channels.conf

Файлы

  • /etc/asterisk/dahdi-channels.conf
  • /etc/dahdi/system.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
    

    Статистика

    Время первой команды журнала14:44:14 2011- 6-24
    Время последней команды журнала16:11:54 2011- 6-24
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 2.97
    Процент синтаксически неверно набранных команд, % 1.98
    Суммарное время работы с терминалом *, час 1.46
    Количество командных строк в единицу времени, команда/мин 1.15
    Частота использования команд
    vim25|========================| 24.51%
    ssh13|============| 12.75%
    ~8|=======| 7.84%
    exit8|=======| 7.84%
    asterisk6|=====| 5.88%
    less6|=====| 5.88%
    /etc/init.d/asterisk4|===| 3.92%
    #3|==| 2.94%
    apt-cache3|==| 2.94%
    2|=| 1.96%
    lspci2|=| 1.96%
    dahdi_tool2|=| 1.96%
    cat2|=| 1.96%
    ls2|=| 1.96%
    Some1|| 0.98%
    dahdi_diag1|| 0.98%
    #dahdi_genconf1|| 0.98%
    rootpass1|| 0.98%
    l1|| 0.98%
    supported1|| 0.98%
    reboot1|| 0.98%
    dahdi_scan1|| 0.98%
    dahdi_genconf1|| 0.98%
    dahdi_cfg1|| 0.98%
    group1|| 0.98%
    init1|| 0.98%
    dahdi_monitor1|| 0.98%
    T1|| 0.98%
    dahdi_hardware1|| 0.98%
    dahdi_test1|| 0.98%
    ____
    *) Интервалы неактивности длительностью 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$