/l3/users/roman-sidorenko/asterisk/debian2/root :1 :2 :3 :4 :5 :6 |
|
#asterisk -rvvvv
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 ========================================================================= ... -- Hungup 'Zap/1-1' debian4*CLI> debian4*CLI> debian4*CLI> debian4*CLI> 3quit debian4*CLI> debian4*CLI> debian4*CLI> debian4*CLI> quit Executing last minute cleanups |
#vim iax.conf
|
#:q
|
#cp sip.conf iax.conf
|
#vim iax.conf
--- /tmp/l3-saved-2626.21308.17118 2009-12-09 14:46:23.000000000 +0200 +++ iax.conf 2009-12-09 14:50:58.000000000 +0200 @@ -1,20 +1,10 @@ [general] context=default -[301] +[frompoltava] type=friend host=dynamic -secret=123 -callerid="romchiko-mac" - -[302] -type=friend -host=dynamic -secret=123 -callerid="romchiko-winSoft" - -[fromDeb4] -type=friend -host=dynamic -secret=123 -callerid="romchiko-DEB-4" +secret=1234 +deny=0.0.0.0/0.0.0.0 +permit=192.168.101.3/255.255.255.255 +trunk=yes |
#dfl',sd;lb;sdl
> > > > > > > q > > > > > > > > > > sd;fmbv'sdkl;fmb bash: dfl,sd;lb;sdl q sd;fmbvsdkl: command not found bash: fmb: command not found |
#sd
bash: sd: command not found |
#bsdfk;bmasd
bash: bsdfk: command not found bash: bmasd: command not found |
#fb;sdb
bash: fb: command not found bash: sdb: command not found |
#cat iax
iax.conf iax.conf.SAVED iaxprov.conf |
#cat iax.conf
[general] context=default register => kiev:1234@192.168.101.3 [poltava] type=friend host=dynamic ; 192.168.101.3 secret=1234 ;call-limit=1 ;limitonpeers=yes deny=0.0.0.0/0.0.0.0 permit=192.168.101.3/255.255.255.255 trunk=yes |
#vim iax.conf
|
#asterisk -rvvvv
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 ========================================================================= ... -- Called frompoltava/101 [Dec 9 15:06:22] WARNING[3550]: chan_iax2.c:7775 socket_process: Call rejected by 192.168.101.3: No such context/extension -- Hungup 'IAX2/frompoltava-16389' == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/301-0944e688' status is 'CHANUNAVAIL' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vim iax.conf
--- /tmp/l3-saved-2626.32523.4081 2009-12-09 14:53:38.000000000 +0200 +++ iax.conf 2009-12-09 14:56:10.000000000 +0200 @@ -1,5 +1,7 @@ [general] -context=default +ceontext=default + +register => obukhov:1234@192.168.101.3/frompoltava [frompoltava] type=friend |
#vim iax.conf
--- /tmp/l3-saved-2626.30309.16495 2009-12-09 14:56:59.000000000 +0200 +++ iax.conf 2009-12-09 14:57:05.000000000 +0200 @@ -1,7 +1,7 @@ [general] ceontext=default -register => obukhov:1234@192.168.101.3/frompoltava +register => obukhov:1234@192.168.101.3 [frompoltava] type=friend |
#vim extensions.conf
|
#vim extensions.conf
--- /tmp/l3-saved-2626.24036.26870 2009-12-09 14:58:25.000000000 +0200 +++ extensions.conf 2009-12-09 14:58:41.000000000 +0200 @@ -5,7 +5,7 @@ exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN}) exten => _1XX,1,Set(CALLERID(all)=ROMAZAVR) -exten => _1XX,n,Dial(IAX/G1/${EXTEN} +exten => _1XX,n,Dial(IAX2/G1/${EXTEN} exten => _380XXXXXXXXX,1,Dial(SIP/fromDeb4/${EXTEN}) |
#vim extensions.conf
--- /tmp/l3-saved-2626.26508.29746 2009-12-09 14:59:07.000000000 +0200 +++ extensions.conf 2009-12-09 15:02:41.000000000 +0200 @@ -5,7 +5,7 @@ exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN}) exten => _1XX,1,Set(CALLERID(all)=ROMAZAVR) -exten => _1XX,n,Dial(IAX2/G1/${EXTEN} +exten => _1XX,n,Dial(IAX2/frompoltava/${EXTEN} exten => _380XXXXXXXXX,1,Dial(SIP/fromDeb4/${EXTEN}) |
#vim extensions.conf
--- /tmp/l3-saved-2626.1759.25934 2009-12-09 15:03:59.000000000 +0200 +++ extensions.conf 2009-12-09 15:04:18.000000000 +0200 @@ -5,7 +5,7 @@ exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN}) exten => _1XX,1,Set(CALLERID(all)=ROMAZAVR) -exten => _1XX,n,Dial(IAX2/frompoltava/${EXTEN} +exten => _1XX,n,Dial(IAX2/frompoltava/${EXTEN}) exten => _380XXXXXXXXX,1,Dial(SIP/fromDeb4/${EXTEN}) |
#vim iax.conf
--- /tmp/l3-saved-2626.21235.10029 2009-12-09 15:05:21.000000000 +0200 +++ iax.conf 2009-12-09 15:05:32.000000000 +0200 @@ -1,5 +1,5 @@ [general] -ceontext=default +context=default register => obukhov:1234@192.168.101.3 |
#vim iax.conf
|
#asterisk -rvvvv
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 ========================================================================= ... -- Hungup 'IAX2/frompoltava-16387' == Spawn extension (default, 101, 2) exited non-zero on 'SIP/301-0974e928' [Dec 9 15:29:53] NOTICE[4040]: chan_zap.c:9024 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 1 == Primary D-Channel on span 1 up -- B-channel 0/1 restarted on span 1 -- B-channel 0/1 successfully restarted on span 1 [Dec 9 15:30:08] WARNING[4040]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1 -- Saved useragent "X-Lite release 1103k stamp 53621" for peer 302 debian2*CLI> quit Executing last minute cleanups |
#netstat -tapnul
Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:36421 0.0.0.0:* LISTEN 1906/rpc.statd tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 4022/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1883/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 4022/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2146/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2413/exim4 tcp 0 0 192.168.102.2:60771 192.168.102.1:22 ESTABLISHED 3637/ssh tcp 0 0 192.168.102.2:22 192.168.101.3:37285 ESTABLISHED 3053/5 tcp 0 0 192.168.102.2:22 192.168.7.101:45307 ESTABLISHED 3118/7 tcp6 0 0 :::22 :::* LISTEN 2146/sshd udp 0 0 0.0.0.0:2727 0.0.0.0:* 4022/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 4022/asterisk udp 0 0 0.0.0.0:810 0.0.0.0:* 1906/rpc.statd udp 0 0 0.0.0.0:5060 0.0.0.0:* 4022/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 4022/asterisk udp 0 0 0.0.0.0:111 0.0.0.0:* 1883/portmap udp 0 0 0.0.0.0:56567 0.0.0.0:* 1906/rpc.statd |
#netstat -lup
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name udp 0 0 *:2727 *:* 4022/asterisk udp 0 0 *:4520 *:* 4022/asterisk udp 0 0 *:810 *:* 1906/rpc.statd udp 0 0 *:sip *:* 4022/asterisk udp 0 0 *:iax *:* 4022/asterisk udp 0 0 *:sunrpc *:* 1883/portmap udp 0 0 *:56567 *:* 1906/rpc.statd |
#vim extensions.conf
|
#{EXTEN})
[default] [internal] exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Background(alba) exten => 202,1,Answer ;exten => _1XX,1,Dial(IAX2/poltava/${EXTEN}) exten => 202,n,Wait(1) exten => 202,n,Playback(alba) ;exten => _3XX,1,Set(CALLERID(number)=${CALLERID(number)}) ... exten => 4000,1,Dial(SIP/vkiev/${EXTEN}) [internal] exten => 221,1,Hangup [inbound] include => internal exten => 221,1 [white] include => internal include => internal "extensions.conf" 54L, 1035C written |
#vim sip.conf
|
#vim zapata.conf
|
#/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 -rvvvv
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 ========================================================================= ... -- Registered channel 1, ISDN PRI signalling -- Automatically generated pseudo channel == Parsing '/etc/asterisk/users.conf': Found [Dec 9 15:49:25] ERROR[4124]: chan_zap.c:10406 start_pri: Unable to open D-channel 16 (Device or resource busy) [Dec 9 15:49:25] ERROR[4124]: chan_zap.c:12745 setup_zap: Unable to start D-channel on span 1 [Dec 9 15:49:25] WARNING[4124]: chan_zap.c:11188 zap_restart: Reload channels from zap config failed! debian2*CLI> a No such command 'a' (type 'help a' for other possible commands) debian2*CLI> quit Executing last minute cleanups |
#asterisk -rvvvv
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 [301@default:1] Dial("IAX2/frompoltava-5600", "SIP/301") in new stack -- Called 301 -- SIP/301-097549b0 is ringing == Spawn extension (default, 301, 1) exited non-zero on 'IAX2/frompoltava-5600' -- Hungup 'IAX2/frompoltava-5600' -- Saved useragent "X-Lite Beta release 4.0 v3 stamp 55153" for peer 301 -- Remote UNIX connection debian2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#; CallerID can be set to "asreceived" or a specific number if you want to
|
#vim extensions.conf
|
#:q
; stutter dialtone instead of a normal one. ; ; If a mailbox is specified *with* a voicemail context, the same will result ; if voicemail received in mailbox in the specified voicemail context. ; ; for default voicemail context, the example below is fine: ; ;mailbox=1234 ; ; for any other voicemail context, the following will produce the stutter tone: ... ;dring1=95,0,0 ;dring1context=internal1 ;dring2=325,95,0inctive ring support for x100p. ;dring2context=internal2X patterns is to set any one of the dringXcontext fields ; If no pattern is matched here is where we go. context=default group=1 context=white ~ "zapata.conf" 683L, 24225C written |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
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 ========================================================================= ... == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/201-094828b0' status is 'CHANUNAVAIL' -- Executing [202@black:1] Set("SIP/201-09477548", "CALLERID(number)=5201") in new stack -- Executing [202@black:2] Dial("SIP/201-09477548", "SIP/202") in new stack [Dec 9 03:53:11] WARNING[6703]: chan_sip.c:2921 create_addr: No such host: 202 [Dec 9 03:53:11] WARNING[6703]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/201-09477548' status is 'CHANUNAVAIL' quit Executing last minute cleanups |
#vim sip.conf
|
#asterisk -rvvvv
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 ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/sip_notify.conf': Found -- Executing [202@black:1] Set("SIP/201-09485890", "CALLERID(number)=5201") in new stack -- Executing [202@black:2] Dial("SIP/201-09485890", "SIP/202") in new stack [Dec 9 03:54:24] WARNING[6730]: chan_sip.c:2921 create_addr: No such host: 202 [Dec 9 03:54:24] WARNING[6730]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/201-09485890' status is 'CHANUNAVAIL' quit Executing last minute cleanups |
#vim extensions..co
|
#~
[default] exten => 4000,1,Dial(SIP/vkiev/${EXTEN}) exten => _380XXXXXXXXX,1,Dial(SIP/vkiev/${EXTEN}) [inbound] exten => 202,1,Answer include => internal [white] include => internal include => outbound 6 more lines exten => 202,n,Playback(alba) ;exten => 202,n,Playback(demo-congrats) exten => 202,n,Hangup "extensions.conf" 55L, 1036C written |
#asterisk -rvvvv
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 ========================================================================= ... == Spawn extension (internal, 202, 3) exited non-zero on 'SIP/kiev-09481f38' == Spawn extension (black, 202, 3) exited non-zero on 'SIP/201-09477548' [Dec 9 03:56:55] NOTICE[6658]: chan_sip.c:14035 handle_request_invite: Call from '201' to extension '4000' rejected because extension not found. -- Starting simple switch on 'Zap/1-1' -- Hungup 'Zap/1-1' -- Starting simple switch on 'Zap/1-1' -- Hungup 'Zap/1-1' [Dec 9 03:57:17] WARNING[6651]: chan_zap.c:1684 zt_set_hook: zt hook failed: Device or resource busy debian4*CLI> quit Executing last minute cleanups |
#vim zapata.conf
|
#/etc/init.d/
acpid ifupdown-clean rcS alsa-utils keymap.sh reboot asterisk killprocs rmnologin atd lpd rsyslog bootlogd module-init-tools screen-cleanup bootmisc.sh mountall-bootclean.sh sendsigs checkfs.sh mountall.sh single checkroot.sh mountdevsubfs.sh ssh console-screen.sh mountkernfs.sh stop-bootlogd cron mountnfs-bootclean.sh stop-bootlogd-single dbus mountnfs.sh udev dhcp3-server mountoverflowtmp udev-mtab exim4 mtab.sh umountfs glibc.sh networking umountnfs.sh hal nfs-common umountroot halt openbsd-inetd urandom hostname.sh portmap x11-common hwclockfirst.sh procps zaptel hwclock.sh rc ifupdown rc.local |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#ls -l
total 440 -rw-r----- 1 asterisk asterisk 140 2009-01-04 21:26 adsi.conf -rw-r----- 1 asterisk asterisk 840 2009-01-04 21:26 adtranvofr.conf -rw-r----- 1 asterisk asterisk 2724 2009-01-04 21:26 agents.conf -rw-r----- 1 asterisk asterisk 2227 2009-01-04 21:26 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 2675 2009-01-04 21:26 alsa.conf -rw-r----- 1 asterisk asterisk 767 2009-01-04 21:26 amd.conf -rw-r----- 1 asterisk asterisk 3260 2009-01-04 21:26 asterisk.adsi -rw-r----- 1 asterisk asterisk 247 2009-01-04 21:17 asterisk.conf -rw-r----- 1 asterisk asterisk 7324 2009-01-04 21:26 cdr.conf ... -rw-r----- 1 asterisk asterisk 4044 2009-01-04 21:26 skinny.conf -rw-r----- 1 asterisk asterisk 6691 2009-01-04 21:26 sla.conf -rw-r----- 1 asterisk asterisk 2665 2009-01-04 21:26 smdi.conf -rw-r----- 1 asterisk asterisk 1384 2009-01-04 21:26 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 598 2009-01-04 21:26 udptl.conf -rw-r----- 1 asterisk asterisk 1804 2009-01-04 21:26 users.conf -rw-r----- 1 asterisk asterisk 11723 2009-01-04 21:26 voicemail.conf -rw-r----- 1 asterisk asterisk 2772 2009-01-04 21:26 vpb.conf -rw-r----- 1 asterisk asterisk 393 2009-01-04 21:26 watchdog.conf -rw-r----- 1 asterisk asterisk 24200 2009-12-09 12:39 zapata.conf |
#vim extensions.conf
--- /tmp/l3-saved-2648.4083.2261 2009-12-09 17:07:18.000000000 +0200 +++ extensions.conf 2009-12-09 17:11:33.000000000 +0200 @@ -18,3 +18,10 @@ exten => 391,1,Wait(2) exten => 391,n,Playback(casanova) + +exten => 310,1,Answer +exten => 310,n,Wait(2) +exten => 310,n,Record(/tmp/proba) +exten => 310,n,Playback(/tmp/proba) +exten => 310,1,Hangup + |
#asterisk -rvvvv
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 ========================================================================= ... [Dec 9 17:11:42] WARNING[2736]: pbx.c:4702 add_pri: Unable to register extension '310', priority 1 in 'default', already in use == Parsing '/etc/asterisk/users.conf': Found -- Executing [310@default:1] Answer("SIP/301-083ac820", "") in new stack -- Executing [310@default:2] Wait("SIP/301-083ac820", "2") in new stack -- Executing [310@default:3] Record("SIP/301-083ac820", "/tmp/proba") in new stack [Dec 9 17:12:06] WARNING[2737]: app_record.c:138 record_exec: No extension specified to filename! == Spawn extension (default, 310, 3) exited non-zero on 'SIP/301-083ac820' -- Remote UNIX connection debian2*CLI> quit Executing last minute cleanups |
#asterisk -rvvvv
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 ========================================================================= ... == Primary D-Channel on span 1 up -- Registered IAX2 'frompoltava' (AUTHENTICATED) at 192.168.101.3:4569 [Dec 10 12:54:43] NOTICE[2526]: chan_zap.c:6872 handle_init_event: Alarm cleared on channel 1 [Dec 10 12:54:43] NOTICE[2525]: chan_zap.c:9024 pri_dchannel: PRI got event: No more alarm (5) on Primary D-channel of span 1 -- Registered IAX2 to '192.168.101.3', who sees us as 192.168.102.2:4569 with no messages waiting -- B-channel 0/1 successfully restarted on span 1 -- B-channel 0/1 restarted on span 1 [Dec 10 12:54:52] WARNING[2525]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1 debian2*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2648.12920.32316 2009-12-09 17:12:39.000000000 +0200 +++ extensions.conf 2009-12-09 17:13:04.000000000 +0200 @@ -23,5 +23,5 @@ exten => 310,n,Wait(2) exten => 310,n,Record(/tmp/proba) exten => 310,n,Playback(/tmp/proba) -exten => 310,1,Hangup +exten => 310,n,Hangup |
#vim extensions.conf
--- /tmp/l3-saved-2648.9635.24087 2009-12-09 17:13:48.000000000 +0200 +++ extensions.conf 2009-12-09 17:14:04.000000000 +0200 @@ -21,7 +21,7 @@ exten => 310,1,Answer exten => 310,n,Wait(2) -exten => 310,n,Record(/tmp/proba) +exten => 310,n,Record(/tmp/proba:gsm) exten => 310,n,Playback(/tmp/proba) exten => 310,n,Hangup |
#vim extensions.conf
--- /tmp/l3-saved-2648.4529.19138 2009-12-09 17:14:35.000000000 +0200 +++ extensions.conf 2009-12-09 17:19:26.000000000 +0200 @@ -19,9 +19,9 @@ exten => 391,1,Wait(2) exten => 391,n,Playback(casanova) -exten => 310,1,Answer -exten => 310,n,Wait(2) -exten => 310,n,Record(/tmp/proba:gsm) -exten => 310,n,Playback(/tmp/proba) -exten => 310,n,Hangup +exten => _31X,1,Answer +exten => _31X,n,Wait(2) +exten => _31X,n,Record(/tmp/proba${EXTEN:1}:gsm|3) +exten => _31X,n,Playback(/tmp/proba${EXTEN:1}) +exten => _31X,n,Hangup |
#ls -l /tmp/
total 8 -rw-r----- 1 asterisk asterisk 7260 2009-12-09 17:15 proba.gsm |
#ls -l /tmp/
total 16 -rw-r----- 1 asterisk asterisk 5775 2009-12-09 17:19 proba10.gsm -rw-r----- 1 asterisk asterisk 7260 2009-12-09 17:15 proba.gsm |
#ls -l /tmp/
total 32 -rw-r----- 1 asterisk asterisk 5775 2009-12-09 17:19 proba10.gsm -rw-r----- 1 asterisk asterisk 5148 2009-12-09 17:20 proba11.gsm -rw-r----- 1 asterisk asterisk 7755 2009-12-09 17:21 proba12.gsm -rw-r----- 1 asterisk asterisk 7260 2009-12-09 17:15 proba.gsm |
#vim extensions.conf
--- /tmp/l3-saved-2648.17288.22171 2009-12-09 17:21:58.000000000 +0200 +++ extensions.conf 2009-12-09 17:37:22.000000000 +0200 @@ -25,3 +25,16 @@ exten => _31X,n,Playback(/tmp/proba${EXTEN:1}) exten => _31X,n,Hangup +exten => 340,1,Background(/tmp/proba19) +;exten => 340,1,Answer +exten => 340,n,WaitExten() +exten => 1,1,Playback(/tmp/proba10) +exten => 1,n,Goto(340,1) +exten => 2,1,Playback(/tmp/proba11) +exten => 2,n,Goto(340,1) +exten => 3,1,Playback(/tmp/proba12) +exten => 3,n,Goto(340,1) +exten => 0,1,Playback(/tmp/proba18) +exten => 0,n,Goto(340,1) +exten => i,1,Playback(/tmp/proba17) +exten => i,n,Hangup |
#ssh 192.168.102.1
root@192.168.102.1's password: Linux debian4 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 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: Wed Dec 9 04:01:24 2009 l3-agent is already running: pid=2751; pidfile=/root/.lilalo/l3-agent.pid |
#cd /etc/asterisk/
|
#vim extensions.conf
|
#exten => 999,n,Echo
|
#vim extensions.conf
--- /tmp/l3-saved-2648.29436.25925 2009-12-09 17:38:02.000000000 +0200 +++ extensions.conf 2009-12-09 17:38:18.000000000 +0200 @@ -37,4 +37,4 @@ exten => 0,1,Playback(/tmp/proba18) exten => 0,n,Goto(340,1) exten => i,1,Playback(/tmp/proba17) -exten => i,n,Hangup +exten => i,n,Goto(340,1) |
#vim extensions.conf
|
#exten => 3,n,Goto(340,1)
exten => 340,1,Background(/tmp/proba19) ;exten => 340,1,Answer exten => 340,n,WaitExten() exten => 1,1,Playback(/tmp/proba10) exten => 1,n,Goto(340,1) exten => 2,1,Playback(/tmp/proba11) exten => 2,n,Goto(340,1) exten => 3,1,Playback(/tmp/proba12) exten => 3,n,Goto(340,1) exten => 4,1,Playback(/tmp/proba13) ... exten => 0,n,Hangup exten => i,1,Playback(/tmp/proba17) exten => i,n,Goto(340,1) exten => 341,1,Background(/tmp/proba14) exten => 341,n,WaitExten() exten => 41,1,Playback(/tmp/proba15) exten => 41,n,Goto(101,1) exten => 40,1,Playback(/tmp/proba16) exten => 40,n,Goto(340,1) "extensions.conf" 51L, 1338C written |
#ls -l /tmp/
total 172 -rw-r----- 1 asterisk asterisk 5775 2009-12-09 17:19 proba10.gsm -rw-r----- 1 asterisk asterisk 5148 2009-12-09 17:20 proba11.gsm -rw-r----- 1 asterisk asterisk 7755 2009-12-09 17:21 proba12.gsm -rw-r----- 1 asterisk asterisk 17028 2009-12-09 17:47 proba14.gsm -rw-r----- 1 asterisk asterisk 11121 2009-12-09 17:48 proba15.gsm -rw-r----- 1 asterisk asterisk 10494 2009-12-09 17:49 proba16.gsm -rw-r----- 1 asterisk asterisk 12771 2009-12-09 17:25 proba17.gsm -rw-r----- 1 asterisk asterisk 13266 2009-12-09 17:24 proba18.gsm -rw-r----- 1 asterisk asterisk 58971 2009-12-09 17:51 proba19.gsm -rw-r----- 1 asterisk asterisk 7260 2009-12-09 17:15 proba.gsm |
#vim extensions.conf
--- /tmp/l3-saved-2648.17886.25291 2009-12-09 17:56:57.000000000 +0200 +++ extensions.conf 2009-12-09 18:06:40.000000000 +0200 @@ -35,17 +35,18 @@ exten => 3,1,Playback(/tmp/proba12) exten => 3,n,Goto(340,1) exten => 4,1,Playback(/tmp/proba13) -exten => 4,n,Goto(341,1) +exten => 4,n,Goto(menu4,s,1) exten => 0,1,Playback(/tmp/proba18) exten => 0,n,Hangup exten => i,1,Playback(/tmp/proba17) exten => i,n,Goto(340,1) -exten => 341,1,Background(/tmp/proba14) -exten => 341,n,WaitExten() -exten => 41,1,Playback(/tmp/proba15) -exten => 41,n,Goto(101,1) -exten => 40,1,Playback(/tmp/proba16) -exten => 40,n,Goto(340,1) +[menu4] +exten => s,1,Background(/tmp/proba14) +exten => s,n,WaitExten() +exten => 1,1,Playback(/tmp/proba15) +exten => 1,n,Goto(default,301,1) +exten => 0,1,Playback(/tmp/proba16) +exten => 0,n,Goto(default,340,1) exten => t,1,Playback(/tmp/proba17) -exten => t,n,Goto(340,1) +exten => t,n,Goto(default,340,1) |
#:q
|
#mv /tmp/proba* /root/megamenu/
|
#ls -l /root/megamenu/
total 172 -rw-r----- 1 asterisk asterisk 5775 2009-12-09 17:19 proba10.gsm -rw-r----- 1 asterisk asterisk 5148 2009-12-09 17:20 proba11.gsm -rw-r----- 1 asterisk asterisk 7755 2009-12-09 17:21 proba12.gsm -rw-r----- 1 asterisk asterisk 17919 2009-12-09 17:57 proba14.gsm -rw-r----- 1 asterisk asterisk 11121 2009-12-09 17:48 proba15.gsm -rw-r----- 1 asterisk asterisk 10494 2009-12-09 17:49 proba16.gsm -rw-r----- 1 asterisk asterisk 12771 2009-12-09 17:25 proba17.gsm -rw-r----- 1 asterisk asterisk 13266 2009-12-09 17:24 proba18.gsm -rw-r----- 1 asterisk asterisk 58971 2009-12-09 17:51 proba19.gsm -rw-r----- 1 asterisk asterisk 7260 2009-12-09 17:15 proba.gsm |
#ls -l /root/
total 4 drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu |
#ls -l /root/megamenu/
total 172 -rw-r----- 1 asterisk asterisk 5775 2009-12-09 17:19 proba10.gsm -rw-r----- 1 asterisk asterisk 5148 2009-12-09 17:20 proba11.gsm -rw-r----- 1 asterisk asterisk 7755 2009-12-09 17:21 proba12.gsm -rw-r----- 1 asterisk asterisk 17919 2009-12-09 17:57 proba14.gsm -rw-r----- 1 asterisk asterisk 11121 2009-12-09 17:48 proba15.gsm -rw-r----- 1 asterisk asterisk 10494 2009-12-09 17:49 proba16.gsm -rw-r----- 1 asterisk asterisk 12771 2009-12-09 17:25 proba17.gsm -rw-r----- 1 asterisk asterisk 13266 2009-12-09 17:24 proba18.gsm -rw-r----- 1 asterisk asterisk 58971 2009-12-09 17:51 proba19.gsm -rw-r----- 1 asterisk asterisk 7260 2009-12-09 17:15 proba.gsm |
#ls -l /root/
total 4 drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu |
#ls -l /
total 76 drwxr-xr-x 2 root root 4096 2009-12-09 10:05 bin drwxr-xr-x 3 root root 4096 2009-12-09 09:57 boot lrwxrwxrwx 1 root root 11 2009-12-09 09:51 cdrom -> media/cdrom drwxr-xr-x 15 root root 3540 2009-12-09 16:00 dev drwxr-xr-x 64 root root 4096 2009-12-09 16:00 etc drwxr-xr-x 3 root root 4096 2009-12-09 09:57 home lrwxrwxrwx 1 root root 28 2009-12-09 09:52 initrd.img -> boot/initrd.img-2.6.26-2-686 drwxr-xr-x 12 root root 4096 2009-12-09 10:19 lib drwx------ 2 root root 16384 2009-12-09 09:51 lost+found ... dr-xr-xr-x 80 root root 0 2009-12-09 16:00 proc drwxr-xr-x 7 root root 4096 2009-12-09 18:09 root drwxr-xr-x 2 root root 4096 2009-12-09 10:21 sbin drwxr-xr-x 2 root root 4096 2008-09-16 10:38 selinux drwxr-xr-x 2 root root 4096 2009-12-09 09:51 srv drwxr-xr-x 11 root root 0 2009-12-09 16:00 sys drwxrwxrwt 4 root root 4096 2009-12-09 18:10 tmp drwxr-xr-x 11 root root 4096 2009-12-09 09:59 usr drwxr-xr-x 13 root root 4096 2009-12-09 09:51 var lrwxrwxrwx 1 root root 25 2009-12-09 09:52 vmlinuz -> boot/vmlinuz-2.6.26-2-686 |
#ls -l /root/
total 4 drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu |
#ls -l /root/
total 4 drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu |
#ls -l /root/megamenu/
total 172 -rw-r----- 1 asterisk asterisk 5775 2009-12-09 17:19 proba10.gsm -rw-r----- 1 asterisk asterisk 5148 2009-12-09 17:20 proba11.gsm -rw-r----- 1 asterisk asterisk 7755 2009-12-09 17:21 proba12.gsm -rw-r----- 1 asterisk asterisk 17919 2009-12-09 17:57 proba14.gsm -rw-r----- 1 asterisk asterisk 11121 2009-12-09 17:48 proba15.gsm -rw-r----- 1 asterisk asterisk 10494 2009-12-09 17:49 proba16.gsm -rw-r----- 1 asterisk asterisk 12771 2009-12-09 17:25 proba17.gsm -rw-r----- 1 asterisk asterisk 13266 2009-12-09 17:24 proba18.gsm -rw-r----- 1 asterisk asterisk 58971 2009-12-09 17:51 proba19.gsm -rw-r----- 1 asterisk asterisk 7260 2009-12-09 17:15 proba.gsm |
#chmod 644 /root/megamenu/*
|
#ls -l /root/megamenu/
total 172 -rw-r--r-- 1 asterisk asterisk 5775 2009-12-09 17:19 proba10.gsm -rw-r--r-- 1 asterisk asterisk 5148 2009-12-09 17:20 proba11.gsm -rw-r--r-- 1 asterisk asterisk 7755 2009-12-09 17:21 proba12.gsm -rw-r--r-- 1 asterisk asterisk 17919 2009-12-09 17:57 proba14.gsm -rw-r--r-- 1 asterisk asterisk 11121 2009-12-09 17:48 proba15.gsm -rw-r--r-- 1 asterisk asterisk 10494 2009-12-09 17:49 proba16.gsm -rw-r--r-- 1 asterisk asterisk 12771 2009-12-09 17:25 proba17.gsm -rw-r--r-- 1 asterisk asterisk 13266 2009-12-09 17:24 proba18.gsm -rw-r--r-- 1 asterisk asterisk 58971 2009-12-09 17:51 proba19.gsm -rw-r--r-- 1 asterisk asterisk 7260 2009-12-09 17:15 proba.gsm |
#ls -l /root/
total 4 drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu |
#ls -l /
total 76 drwxr-xr-x 2 root root 4096 2009-12-09 10:05 bin drwxr-xr-x 3 root root 4096 2009-12-09 09:57 boot lrwxrwxrwx 1 root root 11 2009-12-09 09:51 cdrom -> media/cdrom drwxr-xr-x 15 root root 3540 2009-12-09 16:00 dev drwxr-xr-x 64 root root 4096 2009-12-09 16:00 etc drwxr-xr-x 3 root root 4096 2009-12-09 09:57 home lrwxrwxrwx 1 root root 28 2009-12-09 09:52 initrd.img -> boot/initrd.img-2.6.26-2-686 drwxr-xr-x 12 root root 4096 2009-12-09 10:19 lib drwx------ 2 root root 16384 2009-12-09 09:51 lost+found ... dr-xr-xr-x 80 root root 0 2009-12-09 16:00 proc drwxr-xr-x 7 root root 4096 2009-12-09 18:09 root drwxr-xr-x 2 root root 4096 2009-12-09 10:21 sbin drwxr-xr-x 2 root root 4096 2008-09-16 10:38 selinux drwxr-xr-x 2 root root 4096 2009-12-09 09:51 srv drwxr-xr-x 11 root root 0 2009-12-09 16:00 sys drwxrwxrwt 4 root root 4096 2009-12-09 18:10 tmp drwxr-xr-x 11 root root 4096 2009-12-09 09:59 usr drwxr-xr-x 13 root root 4096 2009-12-09 09:51 var lrwxrwxrwx 1 root root 25 2009-12-09 09:52 vmlinuz -> boot/vmlinuz-2.6.26-2-686 |
#vim extensions.conf
--- /tmp/l3-saved-2648.30697.22560 2009-12-09 18:12:16.000000000 +0200 +++ extensions.conf 2009-12-09 18:12:46.000000000 +0200 @@ -21,32 +21,32 @@ exten => _31X,1,Answer exten => _31X,n,Wait(2) -exten => _31X,n,Record(/root/meganenu/proba${EXTEN:1}:gsm|3) -exten => _31X,n,Playback(/root/meganenu/proba${EXTEN:1}) +exten => _31X,n,Record(/root/megamenu/proba${EXTEN:1}:gsm|3) +exten => _31X,n,Playback(/root/megamenu/proba${EXTEN:1}) exten => _31X,n,Hangup -exten => 340,1,Background(/root/meganenu/proba19) +exten => 340,1,Background(/root/megamenu/proba19) ;exten => 340,1,Answer exten => 340,n,WaitExten() -exten => 1,1,Playback(/root/meganenu/proba10) +exten => 1,1,Playback(/root/megamenu/proba10) exten => 1,n,Goto(340,1) -exten => 2,1,Playback(/root/meganenu/proba11) +exten => 2,1,Playback(/root/megamenu/proba11) exten => 2,n,Goto(340,1) -exten => 3,1,Playback(/root/meganenu/proba12) +exten => 3,1,Playback(/root/megamenu/proba12) exten => 3,n,Goto(340,1) -exten => 4,1,Playback(/root/meganenu/proba13) +exten => 4,1,Playback(/root/megamenu/proba13) exten => 4,n,Goto(menu4,s,1) -exten => 0,1,Playback(/root/meganenu/proba18) +exten => 0,1,Playback(/root/megamenu/proba18) exten => 0,n,Hangup -exten => i,1,Playback(/root/meganenu/proba17) +exten => i,1,Playback(/root/megamenu/proba17) exten => i,n,Goto(340,1) [menu4] -exten => s,1,Background(/root/meganenu/proba14) +exten => s,1,Background(/root/megamenu/proba14) exten => s,n,WaitExten() -exten => 1,1,Playback(/root/meganenu/proba15) +exten => 1,1,Playback(/root/megamenu/proba15) exten => 1,n,Goto(default,301,1) -exten => 0,1,Playback(/root/meganenu/proba16) +exten => 0,1,Playback(/root/megamenu/proba16) exten => 0,n,Goto(default,340,1) -exten => t,1,Playback(/root/meganenu/proba17) +exten => t,1,Playback(/root/megamenu/proba17) exten => t,n,Goto(default,340,1) |
#vim extensions.conf
--- /tmp/l3-saved-2648.32233.3161 2009-12-09 18:16:00.000000000 +0200 +++ extensions.conf 2009-12-09 18:50:33.000000000 +0200 @@ -40,6 +40,10 @@ exten => 0,n,Hangup exten => i,1,Playback(/root/megamenu/proba17) exten => i,n,Goto(340,1) +exten => t,1,Goto(340,1) + +exten => 342,1,Answer +exten => 342,n,Festival('e1000: eth1: e1000_watchdog: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX') [menu4] exten => s,1,Background(/root/megamenu/proba14) @@ -48,5 +52,4 @@ exten => 1,n,Goto(default,301,1) exten => 0,1,Playback(/root/megamenu/proba16) exten => 0,n,Goto(default,340,1) -exten => t,1,Playback(/root/megamenu/proba17) -exten => t,n,Goto(default,340,1) +exten => t,1,Goto(menu4,s,1) |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-2-686 (Debian 2.6.26-19) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Wed Aug 19 06:06:52 UTC 2009 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 00000000bf790000 (usable) [ 0.000000] BIOS-e820: 00000000bf790000 - 00000000bf79e000 (ACPI data) [ 0.000000] BIOS-e820: 00000000bf79e000 - 00000000bf7e0000 (ACPI NVS) ... [ 12.402623] Adding 996020k swap on /dev/sda2. Priority:-1 extents:1 across:996020k [ 12.816412] EXT3 FS on sda1, internal journal [ 13.283864] loop: module loaded [ 14.691527] e1000: eth1: e1000_watchdog: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX [ 16.029238] NET: Registered protocol family 10 [ 16.030624] lo: Disabled Privacy Extensions [ 19.930677] usbvideo: Packet Statistics: Total=32. Empty=0. Usage=100% [ 19.930682] usbvideo: Transfer Statistics: Transferred=0 B Usage=0% [ 28.162838] eth1: no IPv6 routers present [ 269.682730] Registered tone zone 8 (Norway) |
#/etc/init.d/
acpid halt mountdevsubfs.sh rc stop-bootlogd-single asterisk hostname.sh mountkernfs.sh rc.local udev atd hwclockfirst.sh mountnfs-bootclean.sh rcS udev-mtab bootlogd hwclock.sh mountnfs.sh reboot umountfs bootmisc.sh ifupdown mountoverflowtmp rmnologin umountnfs.sh checkfs.sh ifupdown-clean mtab.sh rsyslog umountroot checkroot.sh keymap.sh networking screen-cleanup urandom console-screen.sh killprocs nfs-common sendsigs x11-common cron module-init-tools openbsd-inetd single zaptel exim4 mountall-bootclean.sh portmap ssh glibc.sh mountall.sh procps stop-bootlogd |
#dpkg -L festival
/. /usr /usr/bin /usr/bin/festival_client /usr/bin/text2wave /usr/bin/festival /usr/lib /usr/lib/festival /usr/lib/festival/audsp /usr/share ... /usr/share/sgml/festival/sable-latin.ent /usr/share/sgml/festival/Sable.v0_2.dtd /usr/share/sgml/festival/Singing.v0_1.dtd /etc /etc/default /etc/emacs /etc/emacs/site-start.d /etc/emacs/site-start.d/50festival.el /etc/sgml /usr/share/doc/festival/NEWS.gz |
#dpkg -L festival | less
|
#cp /usr/share/doc/festival/examples/
addr-mode.scm.gz ex1.email festival_client.pl.gz make_utts.sh.gz speech_pm_1.0.tar.gz apml.dtd ex1.ogi festival.init powmeanstd.gz spintro.text benchmark example2.sable festival.scm powmeanstd.sh.gz text2pos benchmark.text example.apml intro.text saytime.gz text2pos.sh dumpfeats.gz example.sable latest.gz saytime.sh.gz th-mode.scm.gz dumpfeats.sh.gz example.th latest.sh.gz scfg_parse_text.gz tobi.stml durmeanstd.gz festival_client.c.gz Makefile scfg_parse_text.sh.gz toksearch.scm.gz durmeanstd.sh.gz festival_client.h.gz make_utts.gz songs/ webdemo.scm |
#cp /usr/share/doc/festival/examples/festival.init /etc/init.d/festival
|
#chmod +x /etc/init.d/festival
|
#/etc/init.d/festival start
Not starting festival server, as /etc/default/festival does not have RUN_FESTIVAL=yes. |
[general] context=default register => kiev:1234@192.168.101.3 [poltava] type=friend host=dynamic ; 192.168.101.3 secret=1234 ;call-limit=1 ;limitonpeers=yes deny=0.0.0.0/0.0.0.0 permit=192.168.101.3/255.255.255.255 trunk=yes
Время первой команды журнала | 12:02:44 2009-12- 9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:41:27 2009-12- 9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 5.94 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.58 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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