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

Содержание

Журнал

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

/dev/tty1
11:07:54
#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 = 7338)
Verbosity was 0 and is now 3
[Jun 24 12:07:55] NOTICE[7382]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
  == Using SIP RTP CoS mark 5
[Jun 24 12:07:58] WARNING[7387]: pbx.c:3680 pbx_extension_helper: No application 'NeetMe' for extension (gr3, 2210, 1)
  == Spawn extension (gr3, 2210, 1) exited non-zero on 'SIP/2201-00000000'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
11:08:19
#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 = 7433)
...
    -- SIP/ny-00000019 answered SIP/2201-00000018
    -- Packet2Packet bridging SIP/2201-00000018 and SIP/ny-00000019
  == Spawn extension (gr3, 2401, 1) exited non-zero on 'SIP/2201-00000018'
[Jun 24 12:14:01] NOTICE[7477]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
11:14:27
#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 = 7847)
...
    -- Executing [2201@gr3:3] Queue("SIP/ny-0000000e", "queue1") in new stack
    -- Started music on hold, class 'default', on SIP/ny-0000000e
    -- Remote UNIX connection
    -- Stopped music on hold on SIP/ny-0000000e
  == Spawn extension (gr3, 2201, 3) exited non-zero on 'SIP/ny-0000000e'
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/2
11:16:54
#exten => 7,n,Goto(menu,s,1)
[internal]
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
[local]
exten => _22XX,1,Answer
LERID(num)})XX,n,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-to${EXTEN}-from${CALL
exten => _22XX,n,Monitor(wav,${MON_FILENAME},m)
exten => _22XX,n,System(/usr/local/bin/asterisk-jabber-logger ${DB(jid/${EXTEN})} ${CALLERID(num)})
exten => _22XX,n,Dial(SIP/${EXTEN},10,)
hennyi vyzov s ${CALLERID(num)})LSTATUS}" = "BUSY"]?missed_call)
...
exten => 8501,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-belka.txt)
                      (1234,cl)
exten => 2211,1,MeetMe(1234,m)
exten => 2212,1,MeetMe(1234,t)
exten => 8502,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-asterisk.txt)
exten => 8503,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-burunduk.txt)
exten => _83XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
"/etc/asterisk/extensions.conf" 195L, 5252C записано
exten => 8555,1,AgentLogin(1001)
exten => 8556,1,AgentLogin(1002)
/dev/tty4
11:22:46
#ssh user@192.168.106.253
exten => 2203,n,Dial(SIP/2202&SIP/2203,10)
;------Vicemail----------------
exten => 8100,1,Voicemailmain()
exten => _81XX,1,Voicemailmain(22${EXTEN:2}@default)
;-----golos menu---------
exten => _82XX,1,Wait(1)
exten => _82XX,n,Playback(please-enter-your&vm-message)
exten => _82XX,n,Wait(1)
exten => _82XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm,2)
exten => _82XX,n,Playback(beep)
...
------------------------------------------------------------------------------------------------------
exten => 8504,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-kiev.txt)
exten => 8501,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-belka.txt)
exten => 8502,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-asterisk.txt)
exten => 8503,1,AGI(/usr/local/bin/festival-script.pl,/var/tmp/ru-burunduk.txt)
exten => 2210,1,MeetMe(1234,cl)
exten => 2211,1,MeetMe(1234,m)
exten => 2212,1,MeetMe(1234,t)
exten => 8555,1,AgentLogin(1001)
exten => 8556,1,AgentLogin(1002)
/dev/pts/2
11:23:23
#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 linux6 (pid = 7847)
Verbosity is at least 3
linux6*CLI> features show
...
Parking context       :      parkedcalls
Parked call extensions:      701-720
  == Using SIP RTP CoS mark 5
    -- Executing [2201@gr3:1] Answer("SIP/2203-00000009", "") in new stack
    -- Executing [2201@gr3:2] SetMusicOnHold("SIP/2203-00000009", "default") in new stack
[Jun 24 12:28:17] WARNING[8073]: res_musiconhold.c:746 set_moh_exec: SetMusicOnHold application is deprecated and will be removed. Use Set(CHANNEL(musicclass)=...) instead
    -- Executing [2201@gr3:3] Queue("SIP/2203-00000009", "queue1") in new stack
    -- Started music on hold, class 'default', on SIP/2203-00000009
linux6*CLI> quit
Executing last minute cleanups
11:28:22
#vim /etc/asterisk/features.conf
11:28:52
#;atxfercallbackretries = 2 ; Number of times to attempt to send the call back to the transferer.
adsi.conf                codecs.conf              iax.conf                 res_config_sqlite.conf
adtranvofr.conf          console.conf             iaxprov.conf             res_ldap.conf
agents.conf              dbsep.conf               indications.conf         res_odbc.conf
ais.conf                 dnsmgr.conf              jabber.conf              res_pgsql.conf
alarmreceiver.conf       dsp.conf                 jingle.conf              res_snmp.conf
alsa.conf                dundi.conf               logger.conf              rpt.conf
amd.conf                 enum.conf                manager.conf             rtp.conf
asterisk.adsi            extconfig.conf           manager.d/               say.conf
asterisk.conf            extensions.ael           meetme.conf              sip.conf
cdr_adaptive_odbc.conf   extensions.conf          mgcp.conf                sip.conf.SAVE
cdr.conf                 extensions.conf.SAVE     minivm.conf              sip_notify.conf
cdr_custom.conf          .extensions.conf.swp     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
11:28:52
#vim /etc/asterisk/fe
11:28:52
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-7788.19732.4193	2011-06-24 12:29:03.000000000 +0300
+++ /etc/asterisk/features.conf	2011-06-24 12:30:07.000000000 +0300
@@ -61,7 +61,7 @@
 ;blindxfer => #1		; Blind transfer  (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call!
 ;disconnect => *0		; Disconnect  (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call!
 ;automon => *1			; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call!
-;atxfer => *2			; Attended transfer  -- Make sure to set the T and/or t option in the Dial() or Queue()  app call!
+atxfer => *2			; Attended transfer  -- Make sure to set the T and/or t option in the Dial() or Queue()  app call!
 ;parkcall => #72        ; Park call (one step parking)  -- Make sure to set the K and/or k option in the Dial() app call!
 ;automixmon => *3		; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call!
 
11:30:07
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7788.21885.2226	2011-06-24 12:30:14.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-24 12:31:07.000000000 +0300
@@ -20,7 +20,7 @@
 exten => _22XX,n,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-to${EXTEN}-from${CALLERID(num)})
 exten => _22XX,n,Monitor(wav,${MON_FILENAME},m)
 exten => _22XX,n,System(/usr/local/bin/asterisk-jabber-logger ${DB(jid/${EXTEN})} ${CALLERID(num)})
-exten => _22XX,n,Dial(SIP/${EXTEN},10,)
+exten => _22XX,n,Dial(SIP/${EXTEN},10,tT)
 exten => _22XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?missed_call)
 exten => _22XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?missed_call)
 exten => _22XX,n,Hangup()
/dev/tty2
11:30:18
#exten => 2212,1,MeetMe(1234,t)
exten => _22XX,1,Answer
exten => _22XX,n,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-to${EXTEN}-from${CALLERID(num)})
exten => _22XX,n,Monitor(wav,${MON_FILENAME},m)
exten => _22XX,n,System(/usr/local/bin/asterisk-jabber-logger ${DB(jid/${EXTEN})} ${CALLERID(num)})
exten => _22XX,n,Dial(SIP/${EXTEN},10,)
exten => _22XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?missed_call)
exten => _22XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?missed_call)
exten => _22XX,n,Hangup()
exten => _22XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger ${DB(jid/${EXTEN})} Propuschennyi vyzov s ${CALLERID(num)})
exten => _22XX,n,Dial(SIP/ny/${DB(mobile/${EXTEN})})
...
exten => 2210,1,MeetMe(1234,cl)
exten => 2211,1,MeetMe(1234,m)
exten => 2212,1,MeetMe(1234,t)
                      m(                                                                          )
exten => _22XX,n,Dial(SIP/${EXTEN},10,tT)
                            {          }
                            {          }
                       ()
exten => 2212,1,MeetMe(1234,t)
"/etc/asterisk/extensions.conf" 195L, 5254C записано
11:31:07
#vim /etc/asterisk/features.conf
/dev/pts/2
11:31:16
#[local]
                            ; By default, this is 2.
ogether.
; Note that the DTMF features listed below only work when two channels have answered and are bridged tt
ou can use not be used while the remote party is ringing or in progress. If you require this feature yy
; chan_local in combination with Answer to accomplish it.
tion in the Dial() or Queue() app call!
 in the Dial() or Queue() app call!isconnect  (default is *) -- Make sure to set the H and/or h optionn
or w option in the Dial() or Queue() app call!cord a.k.a. Touch Monitor -- Make sure to set the W and//
atxfer => *2                    ; Attended transfer  -- Make sure to set the T and/or t option in the
Dial() or Queue()  app call!
...
; to allow the channel to use separated by '#'.  For example:
;
;    Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3)
;
; (Note: The two leading underscores allow these feature settings to be set on
;  on the outbound channels, as well.  Otherwise, only the original channel
;  will have access to these features.)
;
; The syntax for declaring a dynamic feature is any of the following:
;
/dev/tty2
11:31:38
#vim /etc/asterisk/features.conf
/dev/pts/2
11:35:11
#less /var/log/asterisk/messages
прошло 70 минут
/dev/tty1
12:45:36
#cd /etc/g
gai.conf              ghostscript/          gnashrc               gnome-vfs-2.0/        groff/                grub.d/               gssapi_mech.conf
gconf/                gimp/                 gnome/                gnome-vfs-mime-magic  group                 gshadow               gtk-2.0/
gdm3/                 gnashpluginrc         gnome-system-tools/   gpm.conf              group-                gshadow-              gtkmathview/
12:45:36
#cd /etc/gn
gnashpluginrc         gnashrc               gnome/                gnome-system-tools/   gnome-vfs-2.0/        gnome-vfs-mime-magic
12:45:36
#cd /etc/gnome
gnome/                gnome-system-tools/   gnome-vfs-2.0/        gnome-vfs-mime-magic
12:45:36
#cd /etc/gnome

12:45:49
#ls
config  defaults.list  epiphany  menus.blacklist
12:45:50
#vim /config
12:46:00
#~
vim        vim.basic  vimdiff    vim.tiny   vimtutor
12:46:00
#vim config/
12:46:00
#vim config/
12:46:00
#startx
xauth:  creating new authority file /root/.Xauthority
X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.37-trunk-amd64 x86_64 Debian
Current Operating System: Linux linux6 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-amd64 root=UUID=96101f75-6220-4403-981e-5c691f84ff89 ro text
Build Date: 18 February 2011  08:27:24PM
xorg-server 2:1.7.7-13 (Cyril Brulebois <kibi@debian.org>)
Current version of pixman: 0.16.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun 24 13:46:23 2011
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
FATAL: Module fbcon not found.
SELinux: Disabled on system, not enabling in X server
waiting for X server to shut down
/dev/pts/1
12:46:52
#vim /etc/asterisk/sip
12:46:52
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2344.19717.9613	2011-06-24 14:56:24.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-24 14:57:41.000000000 +0300
@@ -47,6 +47,16 @@
 callgroup=10
 pickupgroup=10
 
+[2204]
+type=friend
+secret=password
+host=dynamic
+user=2204
+callerid="NokiatPhone <2204>"
+context=gr3
+callgroup=10
+pickupgroup=10
+
 [ny]
 type=friend
 secret=password
прошло 55 минут
/dev/pts/3
13:42:14
#vim /etc/asterisk/extensions.conf
13:49:58
#{EXTEN:2})LANG}/record02) ; glavnoe menu
bash: logout: оболочка не является запущенной после входа в систему: используйте `exit'
/dev/pts/1
13:57:57
#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 = 2618)
Verbosity was 0 and is now 3
[Jun 24 14:58:12] NOTICE[2662]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 24 15:01:15] NOTICE[2662]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
linux6*CLI> show peers
No such command 'show peers' (type 'core show help show peers' for other possible commands)
linux6*CLI> show peer
No such command 'show peer' (type 'core show help show peer' for other possible commands)
linux6*CLI> exit
Executing last minute cleanups
/dev/tty1
14:04:06
#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
vConnected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2618)
...
linux6*CLI> show peers
No such command 'show peers' (type 'core show help show peers' for other possible commands)
[Jun 24 15:07:21] NOTICE[2662]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 24 15:10:24] NOTICE[2662]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 24 15:13:27] NOTICE[2662]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 24 15:13:53] NOTICE[2662]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 24 15:14:56] NOTICE[2662]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 24 15:16:59] NOTICE[2662]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
linux6*CLI> quit
Executing last minute cleanups
прошло 10 минут
/dev/tty4
14:14:15
#ssh user@192.168.106.253
user@192.168.106.253's password:
Permission denied, please try again.
user@192.168.106.253's password:
Permission denied, please try again.
user@192.168.106.253's password:
Permission denied (publickey,password).
14:14:39
#ssh user@192.168.106.253
mary channel 16 as D-channel anyway!
[Jun 24 15:02:28] WARNING[1579]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 47 as D-channel anyway!
[Jun 24 15:02:32] WARNING[1578]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 16 as D-channel anyway!
[Jun 24 15:02:32] WARNING[1579]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 47 as D-channel anyway!
[Jun 24 15:02:36] WARNING[1578]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 16 as D-channel anyway!
[Jun 24 15:02:36] WARNING[1579]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
...
[Jun 24 15:16:10] WARNING[1579]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 47 as D-channel anyway!
[Jun 24 15:16:10] WARNING[1578]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 16 as D-channel anyway!
[Jun 24 15:16:14] WARNING[1579]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 47 as D-channel anyway!
[Jun 24 15:16:14] WARNING[1578]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 16 as D-channel anyway!
linux1*CLI> quit
Executing last minute cleanups
/dev/tty1
14:19:15
#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)
/dev/pts/2
14:19:41
#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:19:42
## DAHDI

14:20:25
#. /etc/bash_completion

14:20:41
#apt-get install dahdi-
dahdi-linux   dahdi-source
14:20:41
#apt-get install dahdi-linux
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Уже установлена самая новая версия dahdi-linux.
dahdi-linux установлен вручную.
Следующие пакеты устанавливались автоматически и больше не требуются:
  libmysqlclient16 mysql-common
Для их удаления используйте 'apt-get autoremove'.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
14:20:48
## zapata

14:21:09
#dahdi_genconf

14:21:20
#cat /etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:20 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: WCT1/0 "Wildcard TE121 Card 0" (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default
group = 63
14:21:28
#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:21:53
##dahdi_cfg -v

14:22:01
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: ERROR: Module dahdi_echocan_oslec is in use
ERROR: Module dahdi is in use by dahdi_echocan_oslec
done
Loading DAHDI hardware modules:
No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg: .
14:22:08
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:22:18
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: done
Loading DAHDI hardware modules:
No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg: .
14:22:43
#vim /etc/asterisk/chan_dahdi.conf
--- /tmp/l3-saved-2904.6344.12955	2011-06-24 15:23:11.000000000 +0300
+++ /etc/asterisk/chan_dahdi.conf	2011-06-24 15:23:43.000000000 +0300
@@ -46,6 +46,7 @@
 ;spanmap => 4,1,4
 
 [channels]
+#include /etc/asterisk/dahdi-channels.conf
 ;
 ; Default language
 ;
14:23:43
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
14:23:51
#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 = 3256)
Verbosity was 0 and is now 3
linux6*CLI> quit
Executing last minute cleanups
14:24:07
#less /var/log/asterisk/messages
14:24:21
#reboot

/dev/pts/0
14:26:37
#vim /etc/asterisk/
14:26:37
#vim /etc/asterisk/dahdi-channels.conf
--- /tmp/l3-saved-1988.25756.30642	2011-06-24 15:26:56.000000000 +0300
+++ /etc/asterisk/dahdi-channels.conf	2011-06-24 15:27:13.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
14:27:13
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty4
14:27:24
#ssh user@192.168.106.253
~
~
~
~
~
~
~
~
~
~
...
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2141)
Verbosity was 0 and is now 3
[Jun 24 15:27:34] WARNING[2183]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 16 as D-channel anyway!
[Jun 24 15:27:38] WARNING[2183]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 16 as D-channel anyway!
[Jun 24 15:27:42] WARNING[2183]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Pri
mary channel 16 as D-channel anyway!
linux6*CLI> quit
Executing last minute cleanups
/dev/pts/0
14:27:47
#vim /etc/dahdi/
14:27:47
#vim /etc/dahdi/system.conf
--- /tmp/l3-saved-1988.1630.14386	2011-06-24 15:27:56.000000000 +0300
+++ /etc/dahdi/system.conf	2011-06-24 15:28:07.000000000 +0300
@@ -6,7 +6,7 @@
 # This file is parsed by the Dahdi Configurator, dahdi_cfg
 #
 # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) 
-span=1,1,0,ccs,hdb3,crc4
+span=1,0,0,ccs,hdb3,crc4
 # termtype: te
 bchan=1-15,17-31
 dchan=16
14:28:07
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:28:32
#reboot

/dev/pts/0
14:31:10
#~
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:20 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: WCT1/0 "Wildcard TE121 Card 0" (MASTER)
group=0,11
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/dahdi-channels.conf" 18L, 565C записано
/dev/pts/0
14:34:32
#dahdi_cfg -vvvv
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)
Channel map:
Channel 01: Clear channel (Default) (Echo Canceler: oslec) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: oslec) (Slaves: 02)
Channel 03: Clear channel (Default) (Echo Canceler: oslec) (Slaves: 03)
...
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
/dev/pts/0
14:35:26
#cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:20 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: WCT1/0 "Wildcard TE121 Card 0" (MASTER)
span=1,0,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
echocanceller=oslec,1-15,17-31
# Global data
loadzone        = us
defaultzone     = us
14:37:51
#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)
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:38:01
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: ERROR: Module dahdi_echocan_oslec is in use
ERROR: Module wcte12xp is in use
ERROR: Module wcte12xp is in use
ERROR: Module dahdi_voicebus is in use by wcte12xp
ERROR: Module dahdi is in use by dahdi_echocan_oslec,wcte12xp,dahdi_voicebus
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:38:10
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:38:14
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: ERROR: Module dahdi_echocan_oslec is in use
ERROR: Module dahdi is in use by dahdi_echocan_oslec
done
Loading DAHDI hardware modules:
No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg: .
14:38:15
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
14:38: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 linux6 (pid = 2566)
Verbosity was 0 and is now 3
linux6*CLI>
linux6*CLI> quit
Executing last minute cleanups
14:38:33
#reboot

/dev/pts/0
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>
прошло 38 минут
/dev/tty4
15:29:41
#ssh user@192.168.160.253
^C
15:30:11
#ssh user@192.168.106.253
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: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 0
2)
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-Expres
s) (5th gen) (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-Expres
/dev/tty1
15:31:04
#asterisk -rvv
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 = 1562)
...
    -- Called ny/1101
    -- SIP/ny-00000001 answered SIP/2201-00000000
    -- Packet2Packet bridging SIP/2201-00000000 and SIP/ny-00000001
  == Spawn extension (gr3, 1101, 1) exited non-zero on 'SIP/2201-00000000'
[Jun 24 16:52:28] NOTICE[1667]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 24 16:54:04] NOTICE[1664]: chan_dahdi.c:12696 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Jun 24 16:54:05] ERROR[1664]: chan_dahdi.c:12393 dahdi_pri_error: 1 PTP MDL can't handle error of type F
[Jun 24 16:54:05] ERROR[1664]: chan_dahdi.c:12393 dahdi_pri_error: 1 MDL-ERROR (F), SABME in state 7
linux6*CLI> exit
Executing last minute cleanups
прошло 23 минуты
15:54:23
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2555.30765.22714	2011-06-24 16:54:38.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-24 16:55:24.000000000 +0300
@@ -168,7 +168,7 @@
 
 [international]
 
-exten => _1XXX,1,Dial(SIP/ny/${EXTEN},10)
+exten => _1XXX,1,Dial(DAHDI/g1/${EXTEN})
 exten => _3XXX,1,Dial(SIP/ny/${EXTEN},10)
 exten => _23XX,1,Dial(SIP/ny/${EXTEN},10)
 exten => _24XX,1,Dial(SIP/ny/${EXTEN},10)
15:55:24
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:02:48
#include => local
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 = 2897)
...
    -- Hungup 'DAHDI/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/2201-00000004' status is 'CHANUNAVAIL'
[Jun 24 17:07:43] NOTICE[2942]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty2
16:04:18
#vim /etc/asterisk/dahdi-channels.conf
--- /tmp/l3-saved-3028.9111.9134	2011-06-24 17:04:26.000000000 +0300
+++ /etc/asterisk/dahdi-channels.conf	2011-06-24 17:04:34.000000000 +0300
@@ -9,7 +9,7 @@
 
 ; Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) 
 group=1
-context=from-pstn
+;context=from-pstn
 switchtype = euroisdn
 signalling = pri_cpe
 channel => 1-15,17-31
16:04:34
#cp /etc/asterisk/extensions.conf /home/user/

/dev/pts/3
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 записано

Файлы

  • /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:20 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: WCT1/0 "Wildcard TE121 Card 0" (MASTER)
    group=0,11
    context=from-pstn
    switchtype = euroisdn
    signalling = pri_cpe
    channel => 1-15,17-31
    context = default
    group = 63
    
    /etc/dahdi/system.conf
    >
    # Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:20 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: WCT1/0 "Wildcard TE121 Card 0" (MASTER)
    span=1,0,0,ccs,hdb3,crc4
    # termtype: te
    bchan=1-15,17-31
    dchan=16
    echocanceller=oslec,1-15,17-31
    # Global data
    loadzone        = us
    defaultzone     = us
    

    Статистика

    Время первой команды журнала11:07:54 2011- 6-24
    Время последней команды журнала16:07:28 2011- 6-24
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %10.89
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 2.26
    Количество командных строк в единицу времени, команда/мин 0.74
    Частота использования команд
    vim25|=======================| 23.58%
    asterisk9|========| 8.49%
    /etc/init.d/asterisk6|=====| 5.66%
    ~6|=====| 5.66%
    ssh6|=====| 5.66%
    /etc/init.d/dahdi4|===| 3.77%
    cd4|===| 3.77%
    less4|===| 3.77%
    reboot3|==| 2.83%
    dahdi_cfg3|==| 2.83%
    2|=| 1.89%
    #2|=| 1.89%
    dahdi_tool2|=| 1.89%
    cat2|=| 1.89%
    apt-get2|=| 1.89%
    lspci2|=| 1.89%
    exten2|=| 1.89%
    supported1|| 0.94%
    atxfercallbackretries1|| 0.94%
    cp1|| 0.94%
    #dahdi_cfg1|| 0.94%
    dahdi_genconf1|| 0.94%
    .1|| 0.94%
    local1|| 0.94%
    dahdi_monitor1|| 0.94%
    ls1|| 0.94%
    include1|| 0.94%
    dahdi_hardware1|| 0.94%
    dahdi_test1|| 0.94%
    record02)1|| 0.94%
    dahdi_diag1|| 0.94%
    [local]1|| 0.94%
    service1|| 0.94%
    glavnoe1|| 0.94%
    7,n,Goto(menu,s,1)1|| 0.94%
    dahdi_scan1|| 0.94%
    2212,1,MeetMe(1234,t)1|| 0.94%
    startx1|| 0.94%
    Number1|| 0.94%
    ____
    *) Интервалы неактивности длительностью 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$