/l3/users/Sergey-Bondarenko/asterisk/linux3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 |
|
#ztscan
bash: ztscan: command not found |
#vim /etc/asterisk/zapata.conf
|
#exten => 4004,n,Hangup
; ; Configuration file for MeetMe simple conference rooms for Asterisk of course. ; ; This configuration file is read every time you call app meetme() ; when feeding audio frames from non-Zap channels ; into the conference; larger numbers will allow ; for the conference to 'de-jitter' audio that arrives [general] ; at different timing than the conference's timing ; source, but can also allow for latency in hearing ;audiobuffers=32 ; the audio from the speaker. Minimum value is 2, ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/meetme.conf" 26L, 926C |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3066.20446.281 2010-03-18 18:19:46.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-18 18:20:07.000000000 +0200 @@ -14,7 +14,7 @@ exten => 4001,n,Hangup exten => 345,1,Answer -exten => 345,n,MeetMe(245,MP,1234) +exten => 345,n,MeetMe(dMP,1234) exten => 4002,1,Answer |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 ========================================================================= ... -- Executing [345@group3:1] Answer("SIP/302-081962f0", "") in new stack -- Executing [345@group3:2] MeetMe("SIP/302-081962f0", "dMP|1234") in new stack == Parsing '/etc/asterisk/meetme.conf': Found -- <SIP/302-081962f0> Playing 'conf-invalid' (language 'ru') == Spawn extension (group3, 345, 2) exited non-zero on 'SIP/302-081962f0' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#apt-get install zaptel-source
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: fxload zaptel 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) ... |
#m-a a-i zaptel
ââââââââââââ⤠Building zaptel-source, step 1, please wait... ââââââââââââââ â â â â â â â â â â â â â â â â â â â â â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Done with /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-21lenny4_i386.deb . dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-21lenny4_i386.deb Selecting previously deselected package zaptel-modules-2.6.26-2-686. (Reading database ... 106464 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-21lenny4_i386.deb) ... Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-21lenny4) ... |
#man init
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3088.6873.17643 2010-03-18 18:30:47.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-18 18:33:03.000000000 +0200 @@ -14,7 +14,7 @@ exten => 4001,n,Hangup exten => 345,1,Answer -exten => 345,n,MeetMe(dMP,1234) +exten => 345,n,MeetMe(,dMP,1234) exten => 4002,1,Answer |
#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 odessa/677 -- SIP/odessa-08198990 answered SIP/302-0818dbd0 -- Packet2Packet bridging SIP/302-0818dbd0 and SIP/odessa-08198990 == Spawn extension (group3, 677, 3) exited non-zero on 'SIP/302-0818dbd0' -- Got SIP response 603 "Decline" back from 192.168.16.10 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#lsmod| grep z
Module Size Used by zaptel 185060 3 wcte12xp crc_ccitt 2080 1 zaptel |
#modprobe ztdummy
|
#cat /usr/local/bin/say-sys-info
if [ "$1" == "loadavg" ] then uptime | text2wave -otype ulaw -o /tmp/sys-info.ulaw elif [ "$1" == "ps" ] then echo we have `ps aux | wc -l` running processes | text2wave -otype ulaw -o /tmp/sys-info.ulaw elif [ "$1" == "df" ] then echo we have `df -hm / | tail -1 | awk '{print $3}'` free megabytes on the root filesystem \ | text2wave -otype ulaw -o /tmp/sys-info.ulaw fi |
#htop
1 [||| 3.3%] Tasks: 137 total, 1 running 2 [|||| 3.8%] Load average: 0.06 0.10 0.08 Mem[||||||||||||| 286/3027MB] Uptime: 00:10:42 Swp[ 0/5718MB] PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 2997 user3 20 0 153M 61548 24804 S 11.6 2.0 0:47.84 epiphany-browser 2742 root 20 0 361M 14516 7792 S 1.9 0.5 0:40.73 /usr/X11R6/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7 3364 root 20 0 2540 1212 932 R 1.3 0.0 0:00.52 htop 2551 asterisk -11 0 32280 11044 6704 S 0.0 0.4 0:00.97 /usr/sbin/asterisk -p -U asterisk 2999 user3 20 0 153M 61548 24828 S 0.0 2.0 0:02.89 epiphany-browser ... 2480 root 20 0 6572 1012 712 S 0.0 0.0 0:00.94 /usr/sbin/kerneloops 2499 root 20 0 1952 600 504 S 0.0 0.0 0:00.00 /usr/sbin/inetd 2539 root 18 -2 5412 996 640 S 0.0 0.0 0:00.00 /usr/sbin/sshd 2553 asterisk -11 0 32276 11032 6704 S 0.0 0.4 0:00.00 /usr/sbin/asterisk -p -U asterisk 2557 asterisk -11 0 32276 11032 6704 S 0.0 0.4 0:00.00 /usr/sbin/asterisk -p -U asterisk 2560 asterisk -11 0 32276 11032 6704 S 0.0 0.4 0:00.00 /usr/sbin/asterisk -p -U asterisk 2569 asterisk -11 0 32276 11032 6704 S 0.0 0.4 0:00.00 /usr/sbin/asterisk -p -U asterisk 2570 asterisk -11 0 32276 11032 6704 S 0.0 0.4 0:00.00 /usr/sbin/asterisk -p -U asterisk 2557 asterisk -11 0 32276 11032 6704 S 0.0 0.4 0:00.00 /usr/sbin/asterisk -p -U asterisk F1Help F2Setup F3SearchF4InvertF5Tree F6SortByF7Nice -F8Nice +F9Kill F10Quit |
# | 1.2 09
|
#play /tmp/sys-info.ulaw
play soxio: Can't open input file `/tmp/sys-info.ulaw': unknown file type `ulaw' |
#cat /etc/asterisk/
adsi.conf cdr_pgsql.conf features.conf manager.conf queues.conf smdi.conf adtranvofr.conf cdr_tds.conf festival.conf manager.d/ res_odbc.conf telcordia-1.adsi agents.conf codecs.conf followme.conf meetme.conf res_pgsql.conf udptl.conf alarmreceiver.conf dnsmgr.conf func_odbc.conf mgcp.conf res_snmp.conf users.conf alsa.conf dundi.conf gtalk.conf misdn.conf rpt.conf voicemail.conf amd.conf enum.conf h323.conf modules.conf rtp.conf .voicemail.conf.swp asterisk.adsi esel.conf http.conf musiconhold.conf say.conf vpb.conf asterisk.conf extconfig.conf iax.conf muted.conf sip.conf watchdog.conf cdr.conf extensions.ael iaxprov.conf osp.conf sip.conf.backup zapata.conf cdr_custom.conf extensions.conf indications.conf oss.conf sip_notify.conf cdr_manager.conf extensions.conf.good.old jabber.conf phone.conf skinny.conf cdr_odbc.conf extensions.conf.SAVE logger.conf privacy.conf sla.conf |
#cat /etc/asterisk/mu
musiconhold.conf muted.conf |
#cat /etc/asterisk/musiconhold.conf
; ; Music on Hold -- Sample Configuration ; ; valid mode options: ; files -- read files from a directory in any Asterisk supported ; media format ; quietmp3 -- default ; mp3 -- loud ; mp3nb -- unbuffered ; quietmp3nb -- quiet unbuffered ... ;[ulawstream] ;mode=custom ;application=/usr/bin/streamplayer 192.168.100.52 888 ;format=ulaw ; mpg123 on Solaris does not always exit properly; madplay may be a better ; choice ;[solaris] ;mode=custom ;directory=/var/lib/asterisk/mohmp3 ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12 |
#mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=1000) |
#ztcfg
Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open configuration file '/etc/zaptel.conf' 1 error(s) detected |
#ssh root@linux2.unix.nt
root@linux2.unix.nt's password: Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 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 Mar 19 09:33:17 2010 from 192.168.17.4 l3-agent is already running: pid=3276; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#ssh root@linux2.unix.nt
root@linux2.unix.nt's password: Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 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 Mar 19 09:36:52 2010 from 192.168.16.3 Removing stale pidfile |
#screen -x
|
#ssh root@linux2.unix.nt
root@linux2.unix.nt's password: Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 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 Mar 19 09:43:59 2010 from 192.168.15.210 |
#screen -x
|
#screen -x
|
#ls /media/disk/asterisk/
adsi.conf cdr.conf enum.conf followme.conf logger.conf osp.conf rtp.conf udptl.conf adtranvofr.conf cdr_custom.conf esel.conf func_odbc.conf manager.conf oss.conf say.conf users.conf agents.conf cdr_manager.conf extconfig.conf gtalk.conf manager.d phone.conf sip.conf voicemail.conf alarmreceiver.conf cdr_odbc.conf extensions.ael h323.conf meetme.conf privacy.conf sip.conf.backup vpb.conf alsa.conf cdr_pgsql.conf extensions.conf http.conf mgcp.conf queues.conf sip_notify.conf watchdog.conf amd.conf cdr_tds.conf extensions.conf.good.old iax.conf misdn.conf res_odbc.conf skinny.conf zapata.conf asterisk codecs.conf extensions.conf.SAVE iaxprov.conf modules.conf res_pgsql.conf sla.conf asterisk.adsi dnsmgr.conf features.conf indications.conf musiconhold.conf res_snmp.conf smdi.conf asterisk.conf dundi.conf festival.conf jabber.conf muted.conf rpt.conf telcordia-1.adsi |
#apt-cache search zaptel
zaptel-source - Zapata telephony interface (source code for kernel driver) zaptel - zapata telephony utilities zaptel-modules-2.6.26-2-686 - zaptel modules for Linux (kernel 2.6.26-2-686). |
#m-a a-i zaptel
Updated infos about 1 packages Getting source for kernel version: 2.6.26-2-686 Kernel headers available in /lib/modules/2.6.26-2-686/build Creating symlink... 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... Target package file /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-21lenny4_i386.deb already exists, not rebuilding! (however, you could use the -f switch to ignore it) dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-21lenny4_i386.deb Version 1:1.4.11~dfsg-3+2.6.26-21lenny4 of zaptel-modules-2.6.26-2-686 already installed, skipping. |
#dpkg -l | grep linux-header
ii linux-headers-2.6.26-2-686 2.6.26-21lenny4 Header files for Linux 2.6.26-2-686 ii linux-headers-2.6.26-2-common 2.6.26-21lenny4 Common header files for Linux 2.6.26-2 |
#lsmod|grep zap
zaptel 185060 4 ztdummy,wcte12xp crc_ccitt 2080 1 zaptel |
#man modprobe
|
#modprobe ztdummy
|
#ssh root@linux2.unix.nt
root@linux2.unix.nt's password: Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 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 Mar 19 10:14:29 2010 from 192.168.14.1 l3-agent is already running: pid=3076; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#screen -x
|
#ssh root@192.168.14.1
The authenticity of host '192.168.14.1 (192.168.14.1)' can't be established. RSA key fingerprint is 4a:91:dd:a1:7f:86:c9:11:21:75:2c:4b:fd:57:d0:0b. Are you sure you want to continue connecting (yes/no)? y Please type 'yes' or 'no': yes Warning: Permanently added '192.168.14.1' (RSA) to the list of known hosts. root@192.168.14.1's password: Linux linux1 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 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 Mar 19 10:21:53 2010 from linux2.unix.nt l3-agent is already running: pid=2743; pidfile=/root/.lilalo/l3-agent.pid |
#ztcfg -vvv
Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open configuration file '/etc/zaptel.conf' 1 error(s) detected |
#vim /etc/asterisk/extensions.conf
|
#host 192.168.15.101
Host 101.15.168.192.in-addr.arpa. not found: 3(NXDOMAIN) |
#screen -x
|
#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: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) 03:01.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11) |
#vi /etc/zaptel.conf
|
#~
|
#cat /etc/zaptel.conf
span=1,0,0,ccs,hdb3,crc4 bchan=1-15 dchan=16 |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 03 Slot 02 basechan=1 totchans=31 ... active=yes alarms=UNCONFIGURED description=ZTDUMMY/1 (source: HRtimer) 1 name=ZTDUMMY/1 manufacturer= devicetype=Zaptel Dummy Timing Driver location= basechan=32 totchans=0 irq=0 |
#ztcfg
|
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 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 08: Clear channel (Default) (Slaves: 08) Channel 09: Clear channel (Default) (Slaves: 09) Channel 10: Clear channel (Default) (Slaves: 10) Channel 11: Clear channel (Default) (Slaves: 11) Channel 12: Clear channel (Default) (Slaves: 12) Channel 13: Clear channel (Default) (Slaves: 13) Channel 14: Clear channel (Default) (Slaves: 14) Channel 15: Clear channel (Default) (Slaves: 15) Channel 16: D-channel (Default) (Slaves: 16) 16 channels to configure. |
#cat /etc/zaptel.conf
span=1,0,0,ccs,hdb3,crc4 bchan=1-15 dchan=16 |
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-6013.3734.18708 2010-03-19 11:54:33.000000000 +0200 +++ /etc/asterisk/zapata.conf 2010-03-19 12:45:36.000000000 +0200 @@ -210,7 +210,7 @@ ; (2-way) ; sf_rxtx: Same as sf_txrx (for our dyslexic friends) ; -signalling=fxo_ls +;signalling= ; ; If you have an outbound signalling format that is different from format ; specified above (but compatible), you can specify outbound signalling format, @@ -401,15 +401,15 @@ ; Logical groups can be assigned to allow outgoing rollover. Groups range ; from 0 to 63, and multiple groups can be specified. ; -group=1 +;group=1 ; ; Ring groups (a.k.a. call groups) and pickup groups. If a phone is ringing ; and it is a member of a group which is one of your pickup groups, then ; you can answer it by picking up and dialling *8#. For simple offices, just ; make these both the same. Groups range from 0 to 63. ; -callgroup=1 -pickupgroup=1 +;callgroup=1 +;pickupgroup=1 ; ; Specify whether the channel should be answered immediately or if the simple @@ -609,6 +609,8 @@ ; crv => 2:1-2,5-8 ; ; + + ;callerid="Green Phone"<(256) 428-6121> ;channel => 1 ;callerid="Black Phone"<(256) 428-6122> @@ -646,6 +648,7 @@ ;signalling=fxs_ls ;channel => 45 + ;signalling=fxo_ls ;group=1 ;callerid="Joe Schmoe" <(256) 428-6131> |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/asterisk/messs
|
#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 ========================================================================= ... -- Executing [4001@group3:2] Wait("SIP/302-081870e8", "1") in new stack -- Executing [4001@group3:3] Festival("SIP/302-081870e8", "wwaaasssuuuupppp nniiiggaaaa!") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Mar 19 12:44:16] WARNING[7304]: app_festival.c:405 festival_exec: festival_client: connect to server failed == Spawn extension (group3, 4001, 3) exited non-zero on 'SIP/302-081870e8' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#ls /media/FLEHA/
4office OCCTPT3.1.0.exe 628699_protivostoyanie-ideologij.jpg office2007final.part1.rar.txt 639287_dazhe-samyie-ostryie-klyiki-hischnogo-zhivotnogo-ne-poranyat-ego-detej.jpg ofis 2.pla 680541_ya-vsegda-igral-za-chestnyih-geroev.jpg prikol_nad_anime.vk.flv 830106_krasivyimi-lozungami-uzhe-vse-naelis.jpg radm22.zip AdbeRdr90_en_US.exe recycler andi Report.mht asterisk rezume_RH_109.rtf barma-specops1.jpg rezume_RH_109.zip barma-specops3.jpg !sasha ... docs-new setup_av_free_rus.exe docs-new2 setup_basic_6010.exe driverpack_xp_7.1.rar SysAdmin112009_Epidem.ru.rar ever_corp UltraVNC-102-Setup.exe everest usb-st0rage-disable-xp.reg ferz usb-st0rage-enable-xp.reg FileFormatConverters.exe ustinova.doc frs-staging wrar360ukr.exe infinst_autol.exe wsus11.reg keygen.rar |
#mkdir /media/FLEHA/a
andi/ asterisk/ |
#mkdir /media/FLEHA/asterisk/labi
|
#mkdir /media/FLEHA/asterisk/labi/linux3
|
#mkdir /media/FLEHA/asterisk/labi/linux2/
|
#mkdir /media/FLEHA/asterisk/labi/linux1/
|
#mkdir /media/FLEHA/asterisk/labi/linux2/cfg
|
#mkdir /media/FLEHA/asterisk/labi/linux1/cfg
|
#less /etc/asterisk/zapata.conf
|
#scp root@linux1.unix.nt:/etc/asterisk/* /media/FLEHA/asterisk/labi/linux1/cfg
The authenticity of host 'linux1.unix.nt (192.168.14.1)' can't be established. RSA key fingerprint is 4a:91:dd:a1:7f:86:c9:11:21:75:2c:4b:fd:57:d0:0b. Are you sure you want to continue connecting (yes/no)? y Please type 'yes' or 'no': yes Warning: Permanently added 'linux1.unix.nt' (RSA) to the list of known hosts. root@linux1.unix.nt's password: adsi.conf 100% 140 0.1KB/s 00:00 adtranvofr.conf 100% 840 0.8KB/s 00:00 agents.conf 100% 2724 2.7KB/s 00:00 alarmreceiver.conf 100% 2227 2.2KB/s 00:00 ... skinny.conf 100% 4044 4.0KB/s 00:00 sla.conf 100% 6691 6.5KB/s 00:00 smdi.conf 100% 2665 2.6KB/s 00:00 telcordia-1.adsi 100% 1384 1.4KB/s 00:00 udptl.conf 100% 598 0.6KB/s 00:00 users.conf 100% 1804 1.8KB/s 00:00 voicemail.conf 100% 12KB 11.8KB/s 00:00 vpb.conf 100% 2772 2.7KB/s 00:00 watchdog.conf 100% 393 0.4KB/s 00:00 zapata.conf 100% 24KB 23.6KB/s 00:00 |
#scp root@linux2.unix.nt:/etc/asterisk/* /media/FLEHA/asterisk/labi/linux2/cfg
root@linux2.unix.nt's password: adsi.conf 100% 140 0.1KB/s 00:00 adtranvofr.conf 100% 840 0.8KB/s 00:00 agents.conf 100% 2724 2.7KB/s 00:00 alarmreceiver.conf 100% 2227 2.2KB/s 00:00 alsa.conf 100% 2675 2.6KB/s 00:00 amd.conf 100% 767 0.8KB/s 00:00 asterisk.adsi 100% 3260 3.2KB/s 00:00 asterisk.conf 100% 247 0.2KB/s 00:00 cdr.conf 100% 7324 7.2KB/s 00:00 ... sla.conf 100% 6691 6.5KB/s 00:00 smdi.conf 100% 2665 2.6KB/s 00:00 telcordia-1.adsi 100% 1384 1.4KB/s 00:00 udptl.conf 100% 598 0.6KB/s 00:00 users.conf 100% 1804 1.8KB/s 00:00 voicemail.conf 100% 12KB 11.6KB/s 00:00 vpb.conf 100% 2772 2.7KB/s 00:00 watchdog.conf 100% 393 0.4KB/s 00:00 zapata.conf 100% 539 0.5KB/s 00:00 zapata.conf.SAVE 100% 23KB 23.4KB/s 00:00 |
#history
13 fg 14 gajim 15 gajim 16 ping linux3.unix.nt 17 bg 18 pkill gajim 19 ps aux | grep gajim 20 ps aux 21 passwd user3 password 22 passwd user3 ... 503 mkdir /media/FLEHA/asterisk/labi/linux2/cfg 504 mkdir /media/FLEHA/asterisk/labi/linux2/ 505 mkdir /media/FLEHA/asterisk/labi/linux1/ 506 mkdir /media/FLEHA/asterisk/labi/linux2/cfg 507 mkdir /media/FLEHA/asterisk/labi/linux1/cfg 508 scp root@linux2.unix.nt:/etc/asterisk/* /media/FLEHA/asterisk/labi/linux2/cfg 509 scp root@linux1.unix.nt:/etc/asterisk/* /media/FLEHA/asterisk/labi/linux1/cfg 510 scp root@linux2.unix.nt:/etc/asterisk/* /media/FLEHA/asterisk/labi/linux2/cfg 511 cp -r /usr/local/bin/notify /media/FLEHA/asterisk/labi/ 512 history |
#umount /media/FLEHA/
|
#mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) |
#cat /etc/zaptel.conf
span=1,0,0,ccs,hdb3,crc4 bchan=1-15 dchan=16 |
#rm /etc/zaptel.conf
|
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/zaptel stop
|
#lsmod | grep zap
zaptel 185060 2 ztdummy,wcte12xp crc_ccitt 2080 1 zaptel |
#rmmod wcte12xp
|
#. /etc/bash_completion
|
#dpkg -P zaptel
zaptel zaptel-modules-2.6.26-2-686 zaptel-source |
#dpkg -P zaptel-modules-2.6.26-2-686
(Reading database ... 106517 files and directories currently installed.) Removing zaptel-modules-2.6.26-2-686 ... Purging configuration files for zaptel-modules-2.6.26-2-686 ... |
; ; Music on Hold -- Sample Configuration ; ; valid mode options: ; files -- read files from a directory in any Asterisk supported ; media format ; quietmp3 -- default ; mp3 -- loud ; mp3nb -- unbuffered ; quietmp3nb -- quiet unbuffered ; custom -- run a custom application (See examples below) ; ========= ; File-based (native) music on hold ; ========= ; ; This plays files directly from the specified directory, no external ; processes are required. Files are played in normal sorting order ; (same as a sorted directory listing), and no volume or other ; sound adjustments are available. If the file is available in ; the same format as the channel's codec, then it will be played ; without transcoding (same as Playback would do in the dialplan). ; Files can be present in as many formats as you wish, and the ; '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. ; [default] mode=files directory=/var/lib/asterisk/moh ; ;[native-random] ;mode=files ;directory=/var/lib/asterisk/moh ;random=yes ; Play the files in a random order ; ========= ; Other (non-native) playback methods ; ========= ;[manual] ;mode=custom ; Note that with mode=custom, a directory is not required, such as when reading ; from a stream. ;directory=/var/lib/asterisk/mohmp3 ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s ;[ulawstream] ;mode=custom ;application=/usr/bin/streamplayer 192.168.100.52 888 ;format=ulaw ; mpg123 on Solaris does not always exit properly; madplay may be a better ; choice ;[solaris] ;mode=custom ;directory=/var/lib/asterisk/mohmp3 ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12
search unix.nt nameserver 127.0.0.1
span=1,0,0,ccs,hdb3,crc4 bchan=1-15 dchan=16
if [ "$1" == "loadavg" ] then uptime | text2wave -otype ulaw -o /tmp/sys-info.ulaw elif [ "$1" == "ps" ] then echo we have `ps aux | wc -l` running processes | text2wave -otype ulaw -o /tmp/sys-info.ulaw elif [ "$1" == "df" ] then echo we have `df -hm / | tail -1 | awk '{print $3}'` free megabytes on the root filesystem \ | text2wave -otype ulaw -o /tmp/sys-info.ulaw fi
Время первой команды журнала | 16:00:47 2010- 3-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:47:11 2010- 3-19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.54 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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