Журнал лабораторных работ

Содержание

Журнал

Среда (12/09/09)

/dev/pts/9
12:02:44
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel.
12:02:51
#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
прошло 99 минут
/dev/pts/1
13:42:46
#vim iax
13:42:46
#vim iax.conf
13:43:05
#:q

13:43:23
#cp sip.conf iax.conf

13:44:34
#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
/dev/pts/9
13:44:42
#quit
bash: quit: command not found
13:44:42
#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
13:44:58
#sd
bash: sd: command not found
13:44:58
#bsdfk;bmasd
bash: bsdfk: command not found
bash: bmasd: command not found
13:44:59
#fb;sdb
bash: fb: command not found
bash: sdb: command not found
13:44:59
#cat iax
iax.conf        iax.conf.SAVED  iaxprov.conf
13:44:59
#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
13:45:13
#vim iax.conf
/dev/pts/1
13:50:58
#vim iax.conf
/dev/pts/3
13:51:13
#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
/dev/pts/1
13:52:25
#[frompoltav

13:52:28
#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
13:56:10
#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
13:57:05
#vim extensions.conf
13:58:00
#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})
 
13:58:41
#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})
 
14:02:41
#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})
 
14:04:18
#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
 
14:06:27
#vim iax.conf
/dev/pts/3
14:07:31
#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
/dev/pts/1
14:13:09
#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
14:13:18
#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
прошло 23 минуты
/dev/pts/9
14:36:37
#~

14:36:38
#vim extensions.conf
14:38:11
#{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
14:47:05
#vim sip.conf
14:47:42
#vim zapata.conf
14:48:03
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:49:00
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
14:49:05
#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
14:49:47
#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
/dev/pts/9
14:50:42
#vim zapata.conf
14:51:07
#; CallerID can be set to "asreceived" or a specific number if you want to

14:51:09
#vim extensions.conf
14:51:22
#: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
14:52:16
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel.
14:52:24
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:52:45
#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
14:53:25
#vim sip.conf
14:54:11
#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
14:54:37
#vim extensions..co
14:54:50
#~
[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
14:56:18
#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
14:57:42
#vim zapata.conf
14:58:25
#/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
14:58:25
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
прошло 66 минут
/dev/tty1
16:04:29
#screen
/dev/pts/1
16:05:11
#cd /etc/asterisk/

16:07:04
#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
16:07:05
#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
+
16:11:33
#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
/dev/pts/3
16:12:30
#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
/dev/pts/1
16:12:38
#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
 
16:13:04
#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
 
16:14:04
#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
 
16:19:26
#ls -l /tmp/
total 8
-rw-r----- 1 asterisk asterisk 7260 2009-12-09 17:15 proba.gsm
16:19:33
#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
16:20:37
#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
16:21:19
#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
/dev/pts/5
16:26:20
#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
16:26:38
#cd /etc/asterisk/

16:26:41
#vim extensions.conf
16:32:56
#exten => 999,n,Echo

/dev/pts/1
16:37:22
#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)
прошло 18 минут
16:55:59
#vim extensions.conf
16:56:11
#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
16:56:49
#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
16:56:50
#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)
прошло 12 минут
17:09:15
#:q

17:09:27
#mv /tmp/proba* /root/megamenu/

17:09:39
#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
17:10:23
#ls -l /root/
total 4
drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu
17:10:46
#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
17:10:54
#ls -l /root/
total 4
drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu
17:11:06
#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
17:11:09
#ls -l /root/
total 4
drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu
17:11:16
#ls -l /root/
total 4
drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu
17:11:19
#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
17:11:22
#chmod 644 /root/megamenu/*

17:11:41
#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
17:11:42
#ls -l /root/
total 4
drwxr-xr-x 2 root root 4096 2009-12-09 18:09 megamenu
17:12:00
#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
17:12:06
#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)
17:15:38
#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)
прошла 21 минута
/dev/pts/7
17:37:02
#screen -x
/dev/pts/5
17:37:10
#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)
/dev/pts/9
17:37:17
#vi /etc/asterisk/festival.conf
17:37:52
#/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
17:37:52
#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
17:38:04
#dpkg -L festival | less
17:38:15
#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
17:38:15
#cp /usr/share/doc/festival/examples/festival.init /etc/init.d/festival

17:41:24
#chmod +x /etc/init.d/festival

17:41:27
#/etc/init.d/festival start
Not starting festival server, as /etc/default/festival does not have RUN_FESTIVAL=yes.

Файлы

  • iax.conf
  • 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
    

    Статистика

    Время первой команды журнала12:02:44 2009-12- 9
    Время последней команды журнала17:41:27 2009-12- 9
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 0.99
    Процент синтаксически неверно набранных команд, % 5.94
    Суммарное время работы с терминалом *, час 2.88
    Количество командных строк в единицу времени, команда/мин 0.58
    Частота использования команд
    vim32|=============================| 29.63%
    ls16|==============| 14.81%
    asterisk10|=========| 9.26%
    /etc/init.d/asterisk4|===| 3.70%
    cp3|==| 2.78%
    :q3|==| 2.78%
    dpkg2|=| 1.85%
    screen2|=| 1.85%
    /etc/init.d/zaptel2|=| 1.85%
    chmod2|=| 1.85%
    cd2|=| 1.85%
    netstat2|=| 1.85%
    cat2|=| 1.85%
    ~2|=| 1.85%
    /etc/init.d/2|=| 1.85%
    exten2|=| 1.85%
    [frompoltav1|| 0.93%
    3,n,Goto(340,1)1|| 0.93%
    sdb1|| 0.93%
    /etc/init.d/festival1|| 0.93%
    quit1|| 0.93%
    dmesg1|| 0.93%
    999,n,Echo1|| 0.93%
    mv1|| 0.93%
    fb1|| 0.93%
    bsdfk1|| 0.93%
    sdl1|| 0.93%
    sd1|| 0.93%
    {EXTEN})1|| 0.93%
    bmasd1|| 0.93%
    dfl',sd1|| 0.93%
    lb1|| 0.93%
    vi1|| 0.93%
    less1|| 0.93%
    ssh1|| 0.93%
    CallerID1|| 0.93%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$