/l3/users/igor-public/asterisk/debian4.net.nt/root :1 :2 :3 |
|
#cat /etc/asterisk/extensions.conf
[general] static=yes writeprotect=no clearglobalvars=no [demo1] exten => 4000,1,Answer exten => 4000,n,Wait(1) exten => 4000,n,Playback(demo-thanks) exten => 4000,n,Hangup exten => _1XXX,1,Dial(SIP/1xxx/${EXTEN},60) exten => _1XXX,n,Hangup exten => _2XXX,1,Dial(SIP/2xxx/${EXTEN},60) exten => _2XXX,n,Hangup exten => _4XXX,1,Dial(SIP/${EXTEN},60) exten => _4XXX,n,Hangup |
#screen -ls
|
#apt-get install zaptel zaptel-source
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: fxload The following NEW packages will be installed: fxload zaptel zaptel-source 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1460kB of archives. After this operation, 2519kB of additional disk space will be used. ... Unpacking fxload (from .../fxload_0.0.20020411-1.1_i386.deb) ... Selecting previously deselected package zaptel. Unpacking zaptel (from .../zaptel_1%3a1.4.11~dfsg-3_i386.deb) ... Selecting previously deselected package zaptel-source. Unpacking zaptel-source (from .../zaptel-source_1%3a1.4.11~dfsg-3_all.deb) ... Processing triggers for man-db ... Setting up fxload (0.0.20020411-1.1) ... Setting up zaptel (1:1.4.11~dfsg-3) ... Zaptel telephony kernel driver: FATAL: Module ztdummy not found. Setting up zaptel-source (1:1.4.11~dfsg-3) ... |
#uname -a
Linux debian4 2.6.18-6-686 #1 SMP Sat Dec 27 09:31:05 UTC 2008 i686 GNU/Linux |
#vi /boot/grub/menu.lst
|
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) 03:00.0 Ethernet controller: Digium, Inc. Device 8005 (rev 11) 03:01.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) |
#ztscan
Unable to open /dev/zap/ctl: No such file or directory |
#uname -a
Linux debian4 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 i686 GNU/Linux |
#m-a a-i zaptel
apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Done! unpack Extracting the package tarball, /usr/src/zaptel.tar.bz2, please wait... "/usr/share/modass/packages/default.sh" build KVERS=2.6.26-2-686 KSRC=/lib/modules/2.6.26-2-686/build KDREV=2.6.26-19lenny2 kdist_image ... │ │ │ 100% │ │ │ └─────────────────────────────────────────────────────────────────────────┘ Done with /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb . dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb Selecting previously deselected package zaptel-modules-2.6.26-2-686. (Reading database ... 101856 files and directories currently installed.) Unpacking zaptel-modules-2.6.26-2-686 (from .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb) ... Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-19lenny2) ... |
#modprobe zaptel
|
#ztscan
|
#ztscan
|
#ztcfg -vvv
Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open configuration file '/etc/zaptel.conf' 1 error(s) detected |
#vi /etc/zaptel.conf
--- /dev/null 2009-11-28 17:00:16.504953088 +0200 +++ /etc/zaptel.conf 2009-11-28 17:16:48.000000000 +0200 @@ -0,0 +1,4 @@ +loadzone=no +defaultzone=no +fxsks=1-2 +fxoks=3-4 |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: ZT_CHANCONFIG failed on channel 1: No such device or address (6) |
#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: FXO Kewlstart (Default) (Slaves: 03) Channel 04: FXO Kewlstart (Default) (Slaves: 04) 4 channels to configure. ZT_CHANCONFIG failed on channel 1: No such device or address (6) |
#ztdiag
Usage: ztdiag <channel> |
#zt
ztcfg ztmonitor ztscan zttest ztdiag zt_registration ztspeed zttool |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=ZTDUMMY/1 (source: HRtimer) 1 name=ZTDUMMY/1 manufacturer= devicetype=Zaptel Dummy Timing Driver location= basechan=1 totchans=0 irq=0 |
#ssh 192.168.7.219
ssh: connect to host 192.168.7.219 port 22: Connection refused |
#nc 192.168.7.219
no port[s] to connect to |
#nc 192.168.7.219 23
ÿûÿûÿýÿý PSTN# PSTN# PSTN# PSTN#^C |
#apt-get install telnet
Reading package lists... Done Building dependency tree Reading state information... Done telnet is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7537.2297.7819 2009-11-28 17:40:03.000000000 +0200 +++ /etc/asterisk/extensions.conf 2009-11-28 17:40:24.000000000 +0200 @@ -15,5 +15,8 @@ exten => _2XXX,1,Dial(SIP/2xxx/${EXTEN},60) exten => _2XXX,n,Hangup +exten => _9XX,1,Dial(SIP/2xxx/${EXTEN},60) +exten => _9XX,n,Hangup + exten => _4XXX,1,Dial(SIP/${EXTEN},60) exten => _4XXX,n,Hangup |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... -- Executing [911@demo1:1] Dial("SIP/4444-09f738c8", "SIP/2xxx/911|60") in new stack -- Called 2xxx/911 -- SIP/2xxx-09f77248 is making progress passing it to SIP/4444-09f738c8 -- SIP/2xxx-09f77248 answered SIP/4444-09f738c8 -- Packet2Packet bridging SIP/4444-09f738c8 and SIP/2xxx-09f77248 == Spawn extension (demo1, 911, 1) exited non-zero on 'SIP/4444-09f738c8' debian4*CLI> debian4*CLI> debian4*CLI> quit Executing last minute cleanups |
#zt
ztcfg ztmonitor ztscan zttest ztdiag zt_registration ztspeed zttool |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=ZTDUMMY/1 (source: HRtimer) 1 name=ZTDUMMY/1 manufacturer= devicetype=Zaptel Dummy Timing Driver location= basechan=1 totchans=0 irq=0 |
#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: FXO Kewlstart (Default) (Slaves: 03) Channel 04: FXO Kewlstart (Default) (Slaves: 04) 4 channels to configure. ZT_CHANCONFIG failed on channel 1: No such device or address (6) |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: ZT_CHANCONFIG failed on channel 1: No such device or address (6) |
#/etc/init.d/zaptel stop
|
#/etc/init.d/zaptel start
Zaptel telephony kernel driver: ZT_CHANCONFIG failed on channel 1: No such device or address (6) |
#cat /etc/zaptel.conf
loadzone=no defaultzone=no fxsks=1-2 fxoks=3-4 |
#ls /home/user/
Desktop yarichek |
#reboot
|
#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: FXO Kewlstart (Default) (Slaves: 03) Channel 04: FXO Kewlstart (Default) (Slaves: 04) 4 channels to configure. Changing signalling on channel 1 from Unused 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? |
#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: FXO Kewlstart (Default) (Slaves: 03) Channel 04: FXO Kewlstart (Default) (Slaves: 04) 4 channels to configure. Changing signalling on channel 1 from Unused 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? |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS FAILED port=2,none port=3,none port=4,none |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#ztcfg
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? |
#ztcfg
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? |
#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: FXO Kewlstart (Default) (Slaves: 03) Channel 04: FXO Kewlstart (Default) (Slaves: 04) 4 channels to configure. Changing signalling on channel 1 from Unused 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? |
#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: FXO Kewlstart (Default) (Slaves: 03) Channel 04: FXO Kewlstart (Default) (Slaves: 04) 4 channels to configure. Changing signalling on channel 1 from Unused 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? |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: 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? |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: 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? |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#less /var/log/messages |grep FX
Nov 28 17:46:20 debian4 kernel: [ 46.814363] Port 1: FAILED FXS (FCC) Nov 28 18:20:19 debian4 kernel: [ 43.872492] Port 1: Installed -- AUTO FXS/DPO |
#less /var/log/messages |grep FX
Nov 28 17:46:20 debian4 kernel: [ 46.814363] Port 1: FAILED FXS (FCC) Nov 28 18:20:19 debian4 kernel: [ 43.872492] Port 1: Installed -- AUTO FXS/DPO |
#lsmod
Module Size Used by i915 25312 2 drm 65320 3 i915 battery 10180 0 ppdev 6468 0 lp 8164 0 acpi_cpufreq 6796 1 cpufreq_powersave 1856 0 cpufreq_stats 3776 0 cpufreq_userspace 3172 0 ... dock 8304 1 libata atl1 28360 0 mii 4896 1 atl1 ehci_hcd 28428 0 uhci_hcd 18672 0 usbcore 118192 3 ehci_hcd,uhci_hcd thermal 15228 0 processor 32576 2 acpi_cpufreq,thermal fan 4196 0 thermal_sys 10856 3 thermal,processor,fan |
#lsmod
Module Size Used by i915 25312 2 drm 65320 3 i915 battery 10180 0 ppdev 6468 0 lp 8164 0 acpi_cpufreq 6796 1 cpufreq_powersave 1856 0 cpufreq_stats 3776 0 cpufreq_userspace 3172 0 ... dock 8304 1 libata atl1 28360 0 mii 4896 1 atl1 ehci_hcd 28428 0 uhci_hcd 18672 0 usbcore 118192 3 ehci_hcd,uhci_hcd thermal 15228 0 processor 32576 2 acpi_cpufreq,thermal fan 4196 0 thermal_sys 10856 3 thermal,processor,fan |
#/etc/init.d/zaptel start
Zaptel telephony kernel driver: 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? |
#/etc/init.d/zaptel start
Zaptel telephony kernel driver: 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? |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: 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? |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: 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? |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-3305.14252.14646 2009-11-28 18:37:09.000000000 +0200 +++ /etc/asterisk/zapata.conf 2009-11-28 18:37:42.000000000 +0200 @@ -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, |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... channels channel debian4*CLI> zap show channels Chan Extension Context Language MOH Interpret pseudo default default debian4*CLI> zap show status Description Alarms IRQ bpviol CRC4 Wildcard TDM410P Board 1 OK 1 0 0 debian4*CLI> debian4*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... channels channel debian4*CLI> zap show channels Chan Extension Context Language MOH Interpret pseudo default default debian4*CLI> zap show status Description Alarms IRQ bpviol CRC4 Wildcard TDM410P Board 1 OK 1 0 0 debian4*CLI> debian4*CLI> quit Executing last minute cleanups |
#zttet
bash: zttet: command not found |
#zttet
bash: zttet: command not found |
#zttest
Opened pseudo zap interface, measuring accuracy... 99.998344% 99.995895% 99.996971% 99.997948% 99.986908% 99.996582% 99.997162% 99.998627% 99.996292% 99.997665% 99.998245% 99.998451% 99.998245% ^C --- Results after 13 passes --- Best: 99.999 -- Worst: 99.987 -- Average: 99.996718, Difference: 99.996718 |
#zttest
Opened pseudo zap interface, measuring accuracy... 99.998344% 99.995895% 99.996971% 99.997948% 99.986908% 99.996582% 99.997162% 99.998627% 99.996292% 99.997665% 99.998245% 99.998451% 99.998245% ^C --- Results after 13 passes --- Best: 99.999 -- Worst: 99.987 -- Average: 99.996718, Difference: 99.996718 |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#ztmonitor
Usage: ztmonitor <channel num> [-v[v]] [-m] [-o] [-p] [-f FILE | -r FILE1 -t FILE2] [-F FILE | -R FILE1 -T FILE2] Options: -v: Visual mode. Implies -m. -vv: Visual/Verbose mode. Implies -m. -m: Separate rx/tx streams. -o: Output audio via OSS. Note: Only 'normal' combined rx/tx streams are output via OSS. -p: Get a pre-echocanceled stream. -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 ztmonitor 1 -f stream.raw Visualize an rx/tx stream and save them to separate files. ztmonitor 1 -v -r streamrx.raw -t streamtx.raw Play a combined rx/tx stream via OSS and save it to a file ztmonitor 1 -o -f stream.raw Save a combined normal rx/tx stream and a combined 'preecho' rx/tx stream to files ztmonitor 1 -p -f stream.raw -F streampreecho.raw Save a normal rx/tx stream and a 'preecho' rx/tx stream to separate files ztmonitor 1 -m -p -r streamrx.raw -t streamtx.raw -R streampreechorx.raw -T streampreechotx.raw |
#ztmonitor
Usage: ztmonitor <channel num> [-v[v]] [-m] [-o] [-p] [-f FILE | -r FILE1 -t FILE2] [-F FILE | -R FILE1 -T FILE2] Options: -v: Visual mode. Implies -m. -vv: Visual/Verbose mode. Implies -m. -m: Separate rx/tx streams. -o: Output audio via OSS. Note: Only 'normal' combined rx/tx streams are output via OSS. -p: Get a pre-echocanceled stream. -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 ztmonitor 1 -f stream.raw Visualize an rx/tx stream and save them to separate files. ztmonitor 1 -v -r streamrx.raw -t streamtx.raw Play a combined rx/tx stream via OSS and save it to a file ztmonitor 1 -o -f stream.raw Save a combined normal rx/tx stream and a combined 'preecho' rx/tx stream to files ztmonitor 1 -p -f stream.raw -F streampreecho.raw Save a normal rx/tx stream and a 'preecho' rx/tx stream to separate files ztmonitor 1 -m -p -r streamrx.raw -t streamtx.raw -R streampreechorx.raw -T streampreechotx.raw |
#zt
ztcfg ztmonitor ztscan zttest ztdiag zt_registration ztspeed zttool |
#ztdiag
Usage: ztdiag <channel> |
[general] static=yes writeprotect=no clearglobalvars=no [demo1] exten => 4000,1,Answer exten => 4000,n,Wait(1) exten => 4000,n,Playback(demo-thanks) exten => 4000,n,Hangup exten => _1XXX,1,Dial(SIP/1xxx/${EXTEN},60) exten => _1XXX,n,Hangup exten => _2XXX,1,Dial(SIP/2xxx/${EXTEN},60) exten => _2XXX,n,Hangup exten => _4XXX,1,Dial(SIP/${EXTEN},60) exten => _4XXX,n,Hangup
loadzone=no defaultzone=no fxsks=1-2 fxoks=3-4
Время первой команды журнала | 14:46:20 2009-11-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:44:28 2009-11-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 29.70 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.44 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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