/l3/users/igor-public/nt-voip-2011-06/linux0.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
#ssh linux6
Linux linux6 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Jun 24 15:40:54 2011 from linux0.unix.nt l3-agent is already running: pid=1997; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/asterisk/dahdi-channels.conf
|
#~
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> |
#~
exit Connection to linux6 closed. |
#ssh linux2
Linux linux2 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Jun 24 15:24:59 2011 from linux0.unix.nt l3-agent is already running: pid=2355; pidfile=/root/.lilalo/l3-agent.pid |
#init 0
|
#ssh linux1
l3-agent is already running: pid=1617; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/asterisk/dahdi-channels.conf
|
#group = 63
[Jun 20 15:01:13] NOTICE[7342] cdr.c: CDR simple logging enabled. [Jun 20 15:01:13] NOTICE[7342] loader.c: 198 modules will be loaded. [Jun 20 15:01:13] WARNING[7342] res_config_ldap.c: No directory user found, anonymous binding as default. [Jun 20 15:01:13] ERROR[7342] res_config_ldap.c: No directory URL or host found. [Jun 20 15:01:13] NOTICE[7342] res_config_ldap.c: Cannot load LDAP RealTime driver. [Jun 20 15:01:13] NOTICE[7342] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener. [Jun 20 15:01:13] NOTICE[7342] config.c: Registered Config Engine sqlite [Jun 20 15:01:13] NOTICE[7342] res_odbc.c: res_odbc loaded. [Jun 20 15:01:13] WARNING[7342] chan_dahdi.c: Ignoring any changes to 'userbase' (on reload) at line 23. [Jun 20 15:01:13] WARNING[7342] chan_dahdi.c: Ignoring any changes to 'vmsecret' (on reload) at line 31. ... [Jun 24 15:55:25] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:29] WARNING[1480] chan_dahdi.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:55:29] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:33] WARNING[1480] chan_dahdi.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:55:33] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:37] WARNING[1480] chan_dahdi.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:55:37] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:41] WARNING[1480] chan_dahdi.c: No D-channels available! Using Primary channel 47 as D-channel anyway! [Jun 24 15:55:41] WARNING[1479] chan_dahdi.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Jun 24 15:55:43] NOTICE[1501] chan_sip.c: Received SIP subscribe for peer without mailbox: 1102 |
#exit
exit Connection to linux1 closed. |
#ssh linux2
^C |
#ssh linux2
ssh: connect to host linux2 port 22: Connection refused |
#ssh linux2
Linux linux2 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Jun 24 15:52:16 2011 from linux0.unix.nt |
#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_genconf
|
#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 |
#vim /etc/dahdi/system.conf
|
#vim /etc/asterisk/dahdi-channels.conf
|
#reboot
Broadcast message from root@linux2 (pts/1) (Fri Jun 24 16:01:33 2011): The system is going down for reboot NOW! |
#ssh linux2
Linux linux2 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Jun 24 15:58:32 2011 from linux0.unix.nt |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 1677) ... [Jun 24 16:10:09] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too. [Jun 24 16:10:10] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too. == Primary D-Channel on span 1 down [Jun 24 16:10:11] WARNING[1706]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! == Primary D-Channel on span 1 up [Jun 24 16:10:11] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too. [Jun 24 16:10:12] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too. [Jun 24 16:10:13] WARNING[1706]: chan_dahdi.c:13544 pri_dchannel: PRI Error on span 0: We think we're the network, but they think they're the network, too. linux2*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/
|
#vim /etc/asterisk/chan_dahdi.conf
|
#vim /etc/asterisk/chan_dahdi.conf
|
#; Some switches (AT&T especially) require network specific facility IE
dahdi-channels.conf dahdi-channels.conf.bak |
#vim /etc/asterisk/dahdi-channels.conf
|
#vim /etc/sysctl.
|
#vim /etc/asterisk/
|
#vim /etc/dahdi/system.conf
|
#~
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#exit
exit Connection to linux2 closed. |
#ssh linux1
l3-agent is already running: pid=1617; pidfile=/root/.lilalo/l3-agent.pid |
## PRI
|
## E1
|
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) 00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02) 00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02) 00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02) 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) ... 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 30:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03) 31:08.0 Communication controller: Digium, Inc. Wildcard TE220 dual-span T1/E1/J1 card 3.3V (PCI-Express) (5th gen) (rev 02) |
#apt-cache search dahdi source3
^C |
#apt-cache search dahdi source
dahdi-source - DAHDI telephony interface - source code for kernel driver |
#apt-cache search dahdi linux
dahdi-linux - DAHDI telephony interface - Linux userspace parts dahdi-modules-2.6.32-5-amd64 - DAHDI modules for Linux (kernel 2.6.32-5-amd64) |
##dahdi_genconf
|
#l
bash: l: команда не найдена |
#ls /etc/dahdi/system.conf
/etc/dahdi/system.conf |
#cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:42 2011 # If you edit this file and execute /usr/sbin/dahdi_genconf again, # your manual changes will be LOST. # Dahdi Configuration File # # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED span=1,0,0,ccs,hdb3,crc4 # termtype: te ... echocanceller=oslec,1-15,17-31 # Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED span=2,0,0,ccs,hdb3,crc4 # termtype: te bchan=32-46,48-62 dchan=47 echocanceller=oslec,32-46,48-62 # Global data loadzone = us defaultzone = us |
#ls /etc/asterisk/dahdi-channels.conf
/etc/asterisk/dahdi-channels.conf |
#cat /etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:42 2011 ; If you edit this file and execute /usr/sbin/dahdi_genconf again, ; your manual changes will be LOST. ; Dahdi Channels Configurations (chan_dahdi.conf) ; ; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended ; to be #include-d by /etc/chan_dahdi.conf that will include the global settings ; ; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED group=0,11 ... context = default group = 63 ; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED group=0,12 context=from-pstn switchtype = euroisdn signalling = pri_net channel => 32-46,48-62 context = default group = 63 |
## pri_cpe
|
#vim /etc/asterisk/extensions.conf
|
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux1 (pid = 2472) Verbosity was 0 and is now 1 linux1*CLI> ... T305: 30000 T308: 4000 T309: 6000 T313: 4000 T-HOLD: 4000 T-RETRIEVE: 4000 T-RESPONSE: 4000 Overlap Recv: No linux1*CLI> quit Executing last minute cleanups |
#exit
exit Connection to linux1 closed. |
#ssh linux2
Linux linux2 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Jun 24 16:03:17 2011 from linux0.unix.nt l3-agent is already running: pid=2084; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/asterisk/dahdi-channels.conf
|
#vim /etc/asterisk/dahdi-channels.conf
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. 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 linux2 (pid = 3103) Verbosity was 0 and is now 3 linux2*CLI> linux2*CLI> -- Extension '1201' in context 'national' from '1101' does not exist. Rejecting call on channel 0/1, span 1 linux2*CLI> quit Executing last minute cleanups |
#less /etc/asterisk/extensions.conf
|
#less /etc/asterisk/sip.conf
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim /etc/asterisk/extension.conf
|
#~
exten => s,n,WaitExten(5) exten => s,n,Goto(system-menu,s,1) exten => 1234,Background(/var/tmp/asterisk/pass) exten => 1234,n,System(touch /tmp/aster_fail); tipa fayl vipolnaem exten => 1234,n,GotoIf($[${SYSTEMSTATUS} = SUCCESS]?success) exten => i,1,Playback(/var/tmp/asterisk/record12) ;error exten => 1234,n,Handup exten => 1234,n(success),Playback(var/tmp/asterisk/record13) ; parol pravilniy exten => i,1,Playback(var/tmp/asterisk/record14) ; parol ne pravilniy [local] ... [ ] ] l(DAHDI/g1/${EXTEN}) exten => _22XX,1,Dial(SIP/msk/${EXTEN},10) exten => _23XX,1,Dial(SIP/msk/${EXTEN},10) [ ] exten => _24XX,1,Dial(SIP/msk/${EXTEN},10) exten => _13XX,1,Dial(SIP/msk/${EXTEN},10) [gr1] include => internal "/etc/asterisk/extensions.conf" 157L, 4980C записано |
#vim /etc/asterisk/d
|
#vim /etc/asterisk/dahdi-channels.conf
|
#~
Stopping Asterisk PBX: asterisk. 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 linux2 (pid = 3443) Verbosity was 0 and is now 3 linux2*CLI> quit Executing last minute cleanups |
#exit
exit Connection to linux2 closed. |
#ssh root@192.168.105.1
Linux linux5 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Jun 24 10:24:58 2011 from linux0.unix.nt l3-agent is already running: pid=2585; pidfile=/root/.lilalo/l3-agent.pid |
#rootpass
bash: rootpass: команда не найдена |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/d
|
#exit
exit Connection to 192.168.105.1 closed. |
#ssh linux6
Linux linux6 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Jun 24 17:04:17 2011 l3-agent is already running: pid=1997; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/asterisk/chan_dahdi.conf
|
#; 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/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. 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 = 3209) ... == Using SIP RTP CoS mark 5 -- Executing [1101@gr3:1] Dial("SIP/2201-00000004", "DAHDI/g1/1101") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g1/1101 -- Channel 0/1, span 1 got hangup, cause 1 -- Hungup 'DAHDI/1-1' == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/2201-00000004' status is 'CHANUNAVAIL' linux6*CLI> quit Executing last minute cleanups |
#exit
exit Connection to linux6 closed. |
#ssh linux1
l3-agent is already running: pid=1617; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/asterisk/dahdi-channels.conf
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux1 (pid = 3213) Verbosity was 0 and is now 1 Executing last minute cleanups linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#exit
exit Connection to linux1 closed. |
#ssh linux6
Linux linux6 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Jun 24 17:07:21 2011 from linux0.unix.nt l3-agent is already running: pid=1997; pidfile=/root/.lilalo/l3-agent.pid |
#less /etc/asterisk/chan_dahdi.conf
|
#less /etc/asterisk/dahdi-channels.conf
|
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:42 2011 ; If you edit this file and execute /usr/sbin/dahdi_genconf again, ; your manual changes will be LOST. ; Dahdi Channels Configurations (chan_dahdi.conf) ; ; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended ; to be #include-d by /etc/chan_dahdi.conf that will include the global settings ; ; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED group=0,11 context=from-pstn switchtype = euroisdn signalling = pri_net channel => 1-15,17-31 context = default group = 63 ; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED group=0,12 context=from-pstn switchtype = euroisdn signalling = pri_net channel => 32-46,48-62 context = default group = 63
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Jun 24 15:21:42 2011 # If you edit this file and execute /usr/sbin/dahdi_genconf again, # your manual changes will be LOST. # Dahdi Configuration File # # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4 RED span=1,0,0,ccs,hdb3,crc4 # termtype: te bchan=1-15,17-31 dchan=16 echocanceller=oslec,1-15,17-31 # Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" (MASTER) HDB3/CCS/CRC4 RED span=2,0,0,ccs,hdb3,crc4 # termtype: te bchan=32-46,48-62 dchan=47 echocanceller=oslec,32-46,48-62 # Global data loadzone = us defaultzone = us
Время первой команды журнала | 14:44:14 2011- 6-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:11:54 2011- 6-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.46 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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