/l3/users/VetymasK/nt-voip-2011-06/linux6.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#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 |
#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 |
#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 |
#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) |
#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) |
#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 |
#vim /etc/asterisk/features.conf
|
#;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 |
#vim /etc/asterisk/fe
|
#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! |
#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() |
#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 записано |
#vim /etc/asterisk/features.conf
|
#[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: ; |
#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/ |
#cd /etc/gn
gnashpluginrc gnashrc gnome/ gnome-system-tools/ gnome-vfs-2.0/ gnome-vfs-mime-magic |
#cd /etc/gnome
gnome/ gnome-system-tools/ gnome-vfs-2.0/ gnome-vfs-mime-magic |
#cd /etc/gnome
|
#ls
config defaults.list epiphany menus.blacklist |
#vim /config
|
#~
vim vim.basic vimdiff vim.tiny vimtutor |
#vim config/
|
#vim config/
|
#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 |
#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 |
#{EXTEN:2})LANG}/record02) ; glavnoe menu
bash: logout: оболочка не является запущенной после входа в систему: используйте `exit' |
#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 |
#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 |
#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). |
#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 |
#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) |
#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) |
## DAHDI
|
#. /etc/bash_completion
|
#apt-get install dahdi-
dahdi-linux dahdi-source |
#apt-get install dahdi-linux
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия dahdi-linux. dahdi-linux установлен вручную. Следующие пакеты устанавливались автоматически и больше не требуются: libmysqlclient16 mysql-common Для их удаления используйте 'apt-get autoremove'. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. |
## zapata
|
#dahdi_genconf
|
#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 |
#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 |
##dahdi_cfg -v
|
#/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: . |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/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: . |
#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 ; |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#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 |
#less /var/log/asterisk/messages
|
#reboot
|
#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 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 |
#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 |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#reboot
|
#~
; 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 записано |
#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 |
#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 |
#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 |
#/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. |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/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: . |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#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 |
#reboot
|
#~
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 |
#vim /etc/asterisk/chan_dahdi.conf
|
#~
system.conf xpp.conf |
#vim /etc/dahdi/system.conf
|
#~
|
#less /var/log/asterisk/
|
#less /var/log/asterisk/messages
|
#vim /etc/dahdi/
|
#vim /etc/dahdi/system.conf
|
#~
dahdi_cfg dahdi_genconf dahdi_monitor dahdi_scan dahdi_tool dahdi_diag dahdi_hardware dahdi_registration dahdi_test |
#dahdi_hardware
pci:0000:31:08.0 wcte12xp+ d161:8000 Wildcard TE121 |
#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 |
#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 |
#dahdi_tool
|
# │
|
# │
dahdi_cfg dahdi_genconf dahdi_monitor dahdi_scan dahdi_tool dahdi_diag dahdi_hardware dahdi_registration dahdi_test |
#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 |
#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 |
#dahdi_diag
Usage: dahdi_diag <channel> |
#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 |
#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 |
#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) |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 |
#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 |
#cp /etc/asterisk/extensions.conf /home/user/
|
#; 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 записано |
; 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
# 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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008