/l3/users/Ive/asterisk/linux4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#ssh 192.168.2.1
root@192.168.2.1's password: Linux linux2.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 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 May 28 14:23:27 2010 l3-agent is already running: pid=2204; pidfile=/root/.lilalo/l3-agent.pid |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 01: FXO Kewlstart (Default) (Slaves: 01) Channel 02: FXO Kewlstart (Default) (Slaves: 02) Channel 03: FXO Kewlstart (Default) (Slaves: 03) Channel 04: FXO Kewlstart (Default) (Slaves: 04) Channel 05: FXO Kewlstart (Default) (Slaves: 05) ... Channel 08: FXO Kewlstart (Default) (Slaves: 08) 8 channels to configure. Changing signalling on channel 1 from Unused to FXO Kewlstart Changing signalling on channel 2 from Unused to FXO Kewlstart Changing signalling on channel 3 from Unused to FXO Kewlstart Changing signalling on channel 4 from Unused to FXO Kewlstart Changing signalling on channel 5 from Unused to FXO Kewlstart Changing signalling on channel 6 from Unused to FXO Kewlstart Changing signalling on channel 7 from Unused to FXO Kewlstart Changing signalling on channel 8 from Unused to FXO Kewlstart |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM800P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM800P location=PCI Bus 02 Slot 13 basechan=1 totchans=8 irq=17 type=analog port=1,FXS port=2,none port=3,none port=4,none port=5,none port=6,none port=7,none port=8,none |
#vi /etc/zaptel.conf
|
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 01: FXS Kewlstart (Default) (Slaves: 01) Channel 02: FXS Kewlstart (Default) (Slaves: 02) Channel 03: FXS Kewlstart (Default) (Slaves: 03) Channel 04: FXS Kewlstart (Default) (Slaves: 04) Channel 05: FXS Kewlstart (Default) (Slaves: 05) Channel 06: FXS Kewlstart (Default) (Slaves: 06) Channel 07: FXS Kewlstart (Default) (Slaves: 07) Channel 08: FXS Kewlstart (Default) (Slaves: 08) 8 channels to configure. Changing signalling on channel 1 from FXO Kewlstart to FXS Kewlstart ZT_CHANCONFIG failed on channel 1: Invalid argument (22) Did you forget that FXS interfaces are configured with FXO signalling and that FXO interfaces use FXS signalling? |
#vi /etc/zaptel.conf
|
#vi /etc/zaptel.conf
|
#vi /etc/zaptel.conf
|
#ls /etc/asterisk/
] cdr_tds.conf gtalk.conf musiconhold.conf sip.conf.dist adsi.conf codecs.conf h323.conf muted.conf sip_notify.conf adtranvofr.conf dnsmgr.conf http.conf osp.conf skinny.conf agents.conf dundi.conf iax.conf oss.conf sla.conf alarmreceiver.conf enum.conf iaxprov.conf phone.conf smdi.conf alsa.conf esel.conf indications.conf privacy.conf telcordia-1.adsi amd.conf extconfig.conf jabber.conf queues.conf udptl.conf asterisk.adsi extensions.ael logger.conf res_odbc.conf users.conf asterisk.conf extensions.conf manager.conf res_pgsql.conf voicemail.conf cdr.conf extensions.conf.dist manager.d res_snmp.conf vpb.conf cdr_custom.conf features.conf meetme.conf rpt.conf watchdog.conf cdr_manager.conf festival.conf mgcp.conf rtp.conf zapata.conf cdr_odbc.conf followme.conf misdn.conf say.conf cdr_pgsql.conf func_odbc.conf modules.conf sip.conf |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#vim zapata.conf
--- /tmp/l3-saved-2655.22866.13979 2010-05-28 14:30:04.000000000 +0300 +++ zapata.conf 2010-05-28 14:55:28.000000000 +0300 @@ -210,7 +210,7 @@ ; (2-way) ; sf_rxtx: Same as sf_txrx (for our dyslexic friends) ; -signalling=fxo_ls +signalling=fxo_ks ; ; If you have an outbound signalling format that is different from format ; specified above (but compatible), you can specify outbound signalling format, @@ -610,7 +610,7 @@ ; ; ;callerid="Green Phone"<(256) 428-6121> -;channel => 1 +channel => 1 ;callerid="Black Phone"<(256) 428-6122> ;channel => 2 ;callerid="CallerID Phone" <(256) 428-6123> |
#vi /etc/asterisk/zapata.conf
|
#vi /etc/asterisk/extensions.conf
|
#vi /etc/asterisk/zapata.conf
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#grep -v '^;' /etc/asterisk/zapata.conf | less
|
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called kharkov/401 -- SIP/kharkov-081d8ef0 is ringing -- SIP/kharkov-081d8ef0 answered Zap/1-1 == Spawn extension (submenu, 3, 1) exited non-zero on 'Zap/1-1' -- Hungup 'Zap/1-1' [May 28 14:52:16] NOTICE[2876]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 28 14:55:17] NOTICE[2876]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 28 14:58:17] NOTICE[2876]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 linux2*CLI> quit Executing last minute cleanups |
#scp 192.168.4.1:/etc/asterisk/zapata.conf /etc/asterisk/
root@192.168.4.1's password: zapata.conf 100% 24KB 23.6KB/s 00:00 |
#zt
ztcfg ztmonitor ztscan zttest ztdiag zt_registration ztspeed zttool |
#ztscan
[1] active=yes alarms=OK description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 location=PCI Bus 02 Slot 09 basechan=1 totchans=24 irq=16 type=digital-T1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=B8ZS,AMI framing_opts=ESF,D4 coding= framing= |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cat /etc/zaptel.conf
loadzone=de defaultzone=de fxoks=1-8 |
#ls /etc/asterisk/
] cdr_tds.conf gtalk.conf musiconhold.conf sip.conf.dist adsi.conf codecs.conf h323.conf muted.conf sip_notify.conf adtranvofr.conf dnsmgr.conf http.conf osp.conf skinny.conf agents.conf dundi.conf iax.conf oss.conf sla.conf alarmreceiver.conf enum.conf iaxprov.conf phone.conf smdi.conf alsa.conf esel.conf indications.conf privacy.conf telcordia-1.adsi amd.conf extconfig.conf jabber.conf queues.conf udptl.conf asterisk.adsi extensions.ael logger.conf res_odbc.conf users.conf asterisk.conf extensions.conf manager.conf res_pgsql.conf voicemail.conf cdr.conf extensions.conf.dist manager.d res_snmp.conf vpb.conf cdr_custom.conf features.conf meetme.conf rpt.conf watchdog.conf cdr_manager.conf festival.conf mgcp.conf rtp.conf zapata.conf cdr_odbc.conf followme.conf misdn.conf say.conf cdr_pgsql.conf func_odbc.conf modules.conf sip.conf |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 01: FXS Kewlstart (Default) (Slaves: 01) Channel 02: FXS Kewlstart (Default) (Slaves: 02) Channel 03: FXS Kewlstart (Default) (Slaves: 03) Channel 04: FXS Kewlstart (Default) (Slaves: 04) Channel 05: FXS Kewlstart (Default) (Slaves: 05) Channel 06: FXS Kewlstart (Default) (Slaves: 06) Channel 07: FXS Kewlstart (Default) (Slaves: 07) Channel 08: FXS Kewlstart (Default) (Slaves: 08) 8 channels to configure. Changing signalling on channel 1 from FXO Kewlstart to FXS Kewlstart ZT_CHANCONFIG failed on channel 1: Invalid argument (22) Did you forget that FXS interfaces are configured with FXO signalling and that FXO interfaces use FXS signalling? |
#vi /etc/zaptel.conf
|
#lspci
00:00.0 Host bridge: Intel Corporation 82845 845 [Brookdale] Chipset Host Bridge (rev 03) 00:01.0 PCI bridge: Intel Corporation 82845 845 [Brookdale] Chipset AGP Bridge (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 12) 00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 12) 00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 Controller (rev 12) 00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 12) 00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus Controller (rev 12) 00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 12) 00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio Controller (rev 12) 01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF 02:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 02:0c.0 Ethernet controller: Digium, Inc. Wildcard TDM800P 8-port analog card (rev 11) |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM800P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM800P location=PCI Bus 02 Slot 13 basechan=1 totchans=8 irq=17 type=analog port=1,FXS port=2,none port=3,none port=4,none port=5,none port=6,none port=7,none port=8,none |
#vi /etc/zaptel.conf
|
#vi /etc/zaptel.conf
|
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 01: FXO Kewlstart (Default) (Slaves: 01) 1 channels to configure. |
#vi /etc/zaptel.conf
|
#vi /etc/asterisk/zapata.conf
|
#vi /etc/asterisk/extensions.conf
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#free -m
total used free shared buffers cached Mem: 3027 252 2775 0 13 149 -/+ buffers/cache: 89 2937 Swap: 2588 0 2588 |
#top
top - 15:10:44 up 1:35, 10 users, load average: 1.00, 0.97, 0.91 Tasks: 107 total, 2 running, 105 sleeping, 0 stopped, 0 zombie Cpu(s): 50.0%us, 0.0%sy, 0.0%ni, 50.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 258280k used, 2841624k free, 13392k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2650684k total, 0k used, 2650684k free, 152988k cached 2472 root 20 0 21328 17m 1508 R 100 0.6 58:52.32 l3-agent 9 root 15 -5 0 0 0 S 1 0.0 0:10.32 events/0 1 root 20 0 2100 684 588 S 0 0.0 0:01.10 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd ... 861 root 15 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_3 997 root 15 -5 0 0 0 S 0 0.0 0:00.30 kjournald 1073 root 16 -4 2528 892 488 S 0 0.0 0:00.08 udevd 1555 root 15 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 1886 root 15 -5 0 0 0 S 0 0.0 0:00.00 kjournald 1887 root 15 -5 0 0 0 S 0 0.0 0:00.00 kjournald 1888 root 15 -5 0 0 0 S 0 0.0 0:00.00 kjournald 1889 root 15 -5 0 0 0 S 0 0.0 0:00.02 kjournald 1964 daemon 20 0 1892 512 416 S 0 0.0 0:00.00 portmap 1983 statd 20 0 1956 724 620 S 0 0.0 0:00.00 rpc.statd |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#ls -l
|
#asterisk -rvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [May 28 15:51:54] WARNING[3916]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) [May 28 15:52:04] WARNING[3916]: app.c:611 __ast_play_and_record: No audio available on Local/202@gr3-6147,2?? == Spawn extension (macro-incoming, s, 2) exited non-zero on 'Local/202@gr3-6147,2' in macro 'incoming' == Spawn extension (macro-incoming, s, 2) exited non-zero on 'Local/202@gr3-6147,2' [May 28 15:52:04] NOTICE[3916]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010-in.wav" "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010-out.wav" "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010.wav" && rm -f "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010-"* ) & == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/202@gr3-6147,1' in macro 'incoming' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/202@gr3-6147,1' [May 28 15:52:04] NOTICE[3918]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010-in.wav" "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010-out.wav" "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010.wav" && rm -f "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010-"* ) & linux2*CLI> quit Executing last minute cleanups |
#vi skinny.conf
|
#:q
; ; Configuration for Shared Line Appearances (SLA). ; ; See doc/sla.pdf for more information. ; ; is "no" because CallerID handling with an SLA setup is ; known to not work properly in some situations. However, ; ---- General Options -----; feel free to enable it if you would like. If you do, and ; you find problems, please do not report them. [general] ... ;[station3](station) ;device=SIP/station3 ; ;[station4](station) ;device=SIP/station4 ;trunk=line3n ; ;[station5](station) ; -------------------------------------- ;device=SIP/station5 |
#:q
bindaddr=127.0.0.1 ; ; Port to bind to (default is 8088) ; bindport=8088 ; ; Prefix allows you to specify a prefix for all requests "http.conf" 40L, 989C ; to the server. The default is "asterisk" so that all ; requests must begin with /asterisk ... ;[post_mappings] ; ; In this example, if the prefix option is set to "asterisk", then using the ~ ~ ~ ~ ~ ~ ~ |
#:q
;charsize = 7 ; If you need parity checking enabled you can turn it on here. Acceptable ; values are even, odd, and none. The default is even. ;paritybit = even ; The baudrate to use for this port. Acceptable values are 1200, 2400, 4800, "smdi.conf" 75L, 2665C ; and 9600. The default is 9600. ;baudrate = 1200 ; Often the numbering scheme for a set of mailboxes or extensions will not be 7 ; or 10 digits (as SMDI requires). Use the msdstrip option to strip unused ... ; Before specifying mailboxes, you must specify an SMDI interface. All mailbox ; definitions that follow will correspond to that SMDI interface. If you specify ; another interface, then all definitions following that will correspond to the ; new interface. ; ;smdiport=/dev/ttyS0 ;2565551234=1234@vmcontext1 ;2565555678=5678@vmcontext2 ;smdiport=/dev/ttyS1 ;2565559999=9999 |
#~
; Files can be present in as many formats as you wish, and the "musiconhold.conf" 66 lines, 1926 characters ; 'best' format will be chosen at playback time. ; ; NOTE: ; If you are not using "autoload" in modules.conf, then you ; must ensure that the format modules for any formats you wish ; to use are loaded _before_ res_musiconhold. If you do not do ; this, res_musiconhold will skip the files it is not able to ; understand when it loads. ... ;[manual] ; ;mode=custom ; This plays files directly from the specified directory, no external ; Note that with mode=custom, a directory is not required, such as when reading ; processes are required. Files are played in normal sorting order ; from a stream. ;directory=/var/lib/asterisk/mohmp3 ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s ;[ulawstream] |
#exten => t,n,Playback(/var/tmp/vybor)
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#ls /var/lib/asterisk/
astdb moh sounds sounds.tar.gz |
#ls /var/lib/asterisk/ho
ls: cannot access /var/lib/asterisk/ho: No such file or directory |
#ls /var/lib/asterisk/moh/
Yoki.gsm |
#vi users.conf
|
#z
zapconf zdump zic ztcfg ztspeed zaptel_hardware zegrep zless ztdiag zttest zcat zfgrep zmore ztmonitor zttool zcmp zforce znew zt_registration zdiff zgrep zsoelim ztscan |
#zt
ztcfg ztmonitor ztscan zttest ztdiag zt_registration ztspeed zttool |
#ztcfg --v
ztcfg: invalid option -- - Usage: ztcfg [options] Valid options are: -c <filename> -- Use <filename> instead of /etc/zaptel.conf -d [level] -- Generate debugging output. (Default level is 1.) -f -- Always reconfigure every channel -h -- Generate this help statement -s[span] -- Deactivate/shutdown span [span]. Deactivates all spans if no [span] is given. -a[span] -- Activate/start span [span]. Activates all spans if no [span] is given. -t -- Test mode only, do not apply -v -- Verbose (more -v's means more verbose) |
#ztcfg -v
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== 8 channels to configure. |
#ztscan
[1] active=yes alarms=OK description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 location=PCI Bus 02 Slot 09 basechan=1 totchans=24 irq=16 type=digital-T1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=B8ZS,AMI framing_opts=ESF,D4 coding= framing= |
#vim /etc/zaptel.conf
|
#~
locate: no pattern to search for specified |
#dpkg -l |grep zapt
ii zaptel 1:1.4.11~dfsg-3 zapata telephony utilities ii zaptel-modules-2.6.26-2-686 1:1.4.11~dfsg-3+2.6.26-22lenny1 zaptel modules for Linux (kernel 2.6.26-2-686). ii zaptel-source 1:1.4.11~dfsg-3 Zapata telephony interface (source code for kernel driver) |
#dpkg -L zaptel
/. /usr /usr/share /usr/share/doc-base /usr/share/doc-base/zaptel /usr/share/doc-base/zaptel.conf /usr/share/doc-base/zaptel.astribank /usr/share/man /usr/share/man/man8 /usr/share/man/man8/ztscan.8.gz ... /etc/modprobe.d /etc/hotplug /etc/hotplug/usb /etc/hotplug/usb/xpp_fxloader.usermap /etc/udev /etc/udev/rules.d /etc/udev/rules.d/xpp.rules /etc/init.d /etc/init.d/zaptel /etc/hotplug/usb/xpp_fxloader |
#less /usr/share/doc-base/zaptel.conf
|
#less /usr/share/doc/zaptel/examples/zaptel.conf.sample.gz
|
#ztscan
[1] active=yes alarms=OK description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 location=PCI Bus 02 Slot 09 basechan=1 totchans=24 irq=16 type=digital-T1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=B8ZS,AMI framing_opts=ESF,D4 coding= framing= |
#fg
# driver specific address (like a MAC for eth), <numchans> is the number # of channels, and <timing> is a timing priority, like for a normal span. # use "0" to not use this as a timing source, or prioritize them as # primary, secondard, etc. Note that you MUST have a REAL zaptel device # if you are not using external timing. # # dynamic=eth,eth0/00:02:b3:35:43:9c,24,0 # # If a non-zero timing value is used, as above, only the last span should # have the non-zero value. ... # set different such encoding. Use them for channels you have already # defined with e.g. 'bchan' or 'fxoks'. #mulaw=1-4 #alaw=1-4 # # 'deflaw' is similar, but resets the encoding to the channel driver's # default. It must be useful for something, I guess. #mulaw=1-10 #deflaw=5 # |
#ssh 192.168.2.1
root@192.168.2.1's password: Linux linux2.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 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 May 28 16:00:18 2010 l3-agent is already running: pid=2204; pidfile=/root/.lilalo/l3-agent.pid |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM800P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM800P location=PCI Bus 02 Slot 13 basechan=1 totchans=8 irq=17 type=analog port=1,FXS port=2,none port=3,none port=4,none port=5,none port=6,none port=7,none port=8,none |
#zap
zapconf zaptel_hardware |
#zapconf
|
#zapconf -h
/usr/sbin/zapconf: Unknown file '-h' at /usr/sbin/zapconf line 550. |
#zapconf --help
/usr/sbin/zapconf: Unknown file '--help' at /usr/sbin/zapconf line 550. |
#cat /etc/zaptel.conf
# Autogenerated by /usr/sbin/zapconf on Fri May 28 16:02:53 2010 -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) span=1,1,0,esf,b8zs # termtype: te bchan=1-23 dchan=24 # Global data loadzone = us defaultzone = us |
#z
zapconf zdump zic ztcfg ztspeed zaptel_hardware zegrep zless ztdiag zttest zcat zfgrep zmore ztmonitor zttool zcmp zforce znew zt_registration zdiff zgrep zsoelim ztscan |
#ztcfg --vvv
ztcfg: invalid option -- - Usage: ztcfg [options] Valid options are: -c <filename> -- Use <filename> instead of /etc/zaptel.conf -d [level] -- Generate debugging output. (Default level is 1.) -f -- Always reconfigure every channel -h -- Generate this help statement -s[span] -- Deactivate/shutdown span [span]. Deactivates all spans if no [span] is given. -a[span] -- Activate/start span [span]. Activates all spans if no [span] is given. -t -- Test mode only, do not apply -v -- Verbose (more -v's means more verbose) |
#ztcfg -v
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1) 24 channels to configure. |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 16: Clear channel (Default) (Slaves: 16) Channel 17: Clear channel (Default) (Slaves: 17) Channel 18: Clear channel (Default) (Slaves: 18) Channel 19: Clear channel (Default) (Slaves: 19) Channel 20: Clear channel (Default) (Slaves: 20) Channel 21: Clear channel (Default) (Slaves: 21) Channel 22: Clear channel (Default) (Slaves: 22) Channel 23: Clear channel (Default) (Slaves: 23) Channel 24: D-channel (Default) (Slaves: 24) 24 channels to configure. |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata-channels.conf dundi.conf jabber.conf res_snmp.conf zapata.conf |
#~
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata-channels.conf dundi.conf jabber.conf res_snmp.conf zapata.conf |
#vim /etc/zaptel.conf
|
#ssh 192.168.1.1
root@192.168.1.1's password: Linux linux1.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 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 May 28 15:53:16 2010 l3-agent is already running: pid=2558; pidfile=/root/.lilalo/l3-agent.pid |
#ls
Russian-Tamara-2.0.2-ulaw s,1,Answer Yoki.wav Russian-Tamara-2.0.2-ulaw.tar.gz Yoki.mp3 |
#cd /etc/asterisk/
|
#zsoelim
.lf 1 - ^C |
#z
zapconf zdump zic ztcfg ztspeed zaptel_hardware zegrep zless ztdiag zttest zcat zfgrep zmore ztmonitor zttool zcmp zforce znew zt_registration zdiff zgrep zsoelim ztscan |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 location=PCI Bus 02 Slot 09 basechan=1 totchans=31 irq=16 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding= framing= |
#zap
zapconf zaptel_hardware |
# Autogenerated by /usr/sbin/zapconf on Fri May 28 16:02:53 2010 -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) span=1,1,0,esf,b8zs # termtype: te bchan=1-23 dchan=24 # Global data loadzone = us defaultzone = us
Время первой команды журнала | 13:23:49 2010- 5-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:15:56 2010- 5-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 10.89 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.87 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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