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

Содержание

Журнал

Четверг (10/28/10)

/dev/pts/1
09:26:36
#vi extensions.conf
--- /tmp/l3-saved-5552.18156.10322	2010-10-28 10:26:38.000000000 +0300
+++ extensions.conf	2010-10-28 10:28:41.000000000 +0300
@@ -102,6 +102,7 @@
 
 ;;Ресурсы
 [local]
+exten => _1295,1,Dial(SIP/1201 & SIP/1202)
 exten => _12XX,1,Macro(answer-with-monitor,${EXTEN})
 
 
/dev/pts/0
09:28:45
#exit
    -- Executing [1195@grup2:1] Macro("SIP/1201-08fdbd50", "dial-with-callerid|SIP/nk/1195") in new stack
    -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08fdbd50", "CALLERID(name)="Igor (Rivne)"") in new stack
    -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-08fdbd50", "SIP/nk/1195") in new stack
    -- Called nk/1195
    -- SIP/nk-08fe2b18 answered SIP/1201-08fdbd50
    -- Packet2Packet bridging SIP/1201-08fdbd50 and SIP/nk-08fe2b18
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fdbd50' in macro 'dial-with-callerid'
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fdbd50'
    -- Executing [1195@grup2:1] Macro("SIP/1201-08fdd2e0", "dial-with-callerid|SIP/nk/1195") in new stack
    -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08fdd2e0", "CALLERID(name)="Igor (Rivne)"") in new stack
...
    -- Including context 'servise' in context 'grup1'
    -- Including context 'local' in context 'grup1'
    -- Including context 'national' in context 'grup1'
    -- Registered extension context 'grup3'
    -- Including context 'servise' in context 'grup3'
    -- Including context 'local' in context 'grup3'
  == Parsing '/etc/asterisk/users.conf': Found
linux2*CLI>
linux2*CLI>
linux2*CLI> !
/dev/pts/1
09:29:13
#vi extensions.conf
--- /tmp/l3-saved-5656.22042.6170	2010-10-28 10:29:15.000000000 +0300
+++ extensions.conf	2010-10-28 10:29:41.000000000 +0300
@@ -102,7 +102,7 @@
 
 ;;Ресурсы
 [local]
-exten => _1295,1,Dial(SIP/1201 & SIP/1202)
+exten => _1295,1,Dial(SIP/1201&SIP/1202)
 exten => _12XX,1,Macro(answer-with-monitor,${EXTEN})
 
 
/dev/pts/0
09:29:13
#vi extensions.conf
09:29:44
#exit
    -- Executing [1195@grup2:1] Macro("SIP/1201-08fe0238", "dial-with-callerid|SIP/nk/1195") in new stack
    -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08fe0238", "CALLERID(name)="Igor (Rivne)"") in new stack
    -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-08fe0238", "SIP/nk/1195") in new stack
    -- Called nk/1195
    -- SIP/nk-08fdce98 is ringing
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fe0238' in macro 'dial-with-callerid'
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fe0238'
linux2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf': Found
...
    -- Registered extension context 'grup1'
    -- Including context 'servise' in context 'grup1'
    -- Including context 'local' in context 'grup1'
    -- Including context 'national' in context 'grup1'
    -- Registered extension context 'grup3'
    -- Including context 'servise' in context 'grup3'
    -- Including context 'local' in context 'grup3'
  == Parsing '/etc/asterisk/users.conf': Found
linux2*CLI>
linux2*CLI> !
09:29:50
#exit
linux2*CLI> !
09:31:46
#vi queues.conf
/dev/pts/1
09:31:46
#vi queues.conf
--- /tmp/l3-saved-5862.4914.2592	2010-10-28 10:31:50.000000000 +0300
+++ queues.conf	2010-10-28 10:36:21.000000000 +0300
@@ -309,3 +309,9 @@
 ;member => Agent/:1,1		; Any agent in group 1, wait for first
                                 ; available, but consider with penalty
 
+[queue1]
+ 
+member => SIP/1201
+member => SIP/1202
+
+
/dev/pts/0
09:36:22
#exit
linux2*CLI>
09:36:28
#vi queues.conf
--- /tmp/l3-saved-2910.26791.24565	2010-10-28 10:36:36.000000000 +0300
+++ queues.conf	2010-10-28 10:37:20.000000000 +0300
@@ -313,5 +313,5 @@
  
 member => SIP/1201
 member => SIP/1202
-
+strategy = ringall
 
09:37:20
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
   No Callers
linux2*CLI> queue
add     remove  show
linux2*CLI> queue
add     remove  show
linux2*CLI> queue add member 1203
Usage: queue add member <channel> to <queue> [penalty <penalty>]
linux2*CLI> queue add member 1203 queue1
Usage: queue add member <channel> to <queue> [penalty <penalty>]
linux2*CLI>
09:39:31
#vi extensions.conf
--- /tmp/l3-saved-2910.14007.3689	2010-10-28 10:39:41.000000000 +0300
+++ extensions.conf	2010-10-28 10:42:14.000000000 +0300
@@ -102,7 +102,8 @@
 
 ;;Ресурсы
 [local]
-exten => _1295,1,Dial(SIP/1201&SIP/1202)
+;exten => _1295,1,Dial(SIP/1201&SIP/1202)
+exten => _1295,1,Queue(queue1)
 exten => _12XX,1,Macro(answer-with-monitor,${EXTEN})
 
 
09:42:14
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [s@macro-answer-with-monitor:5] Dial("SIP/rv-08fe9218", "SIP/1201|10") in new stack
    -- Called 1201
    -- SIP/1201-08fed190 is ringing
    -- SIP/1201-08fed190 is ringing
    -- SIP/1201-08fed190 is ringing
    -- SIP/1201-08fed190 is ringing
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/rv-08fe9218' in macro 'answer-with-monitor'
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/rv-08fe9218'
[Oct 28 10:43:29] NOTICE[6038]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1201-1101-1288251802-in.wav" "/var/spool/asterisk/monitor/voice-1201-1101-1288251802-out.wav" "/var/spool/asterisk/monitor/voice-1201-1101-1288251802.wav"  &
linux2*CLI>
09:44:02
#vi extensions.conf
--- /tmp/l3-saved-2910.19580.30303	2010-10-28 10:44:03.000000000 +0300
+++ extensions.conf	2010-10-28 10:44:27.000000000 +0300
@@ -103,7 +103,7 @@
 ;;Ресурсы
 [local]
 ;exten => _1295,1,Dial(SIP/1201&SIP/1202)
-exten => _1295,1,Queue(queue1)
+exten => 1295,1,Queue(queue1)
 exten => _12XX,1,Macro(answer-with-monitor,${EXTEN})
 
 
09:44:27
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
[Oct 28 10:45:36] WARNING[6077]: app_queue.c:3014 try_calling: The device state of this queue member, SIP/1201, is still 'Not in Use' when it probably should not be! Please check UPGRADE.txt for correct configuration settings.
    -- Packet2Packet bridging SIP/rv-08fe67f8 and SIP/1201-08fea770
queue show
queue1       has 0 calls (max unlimited) in 'ringall' strategy (7s holdtime), W:0, C:0, A:1, SL:0.0% within 0s
   Members:
      SIP/1201 (Not in use) has taken no calls yet
      SIP/1202 (Unavailable) has taken no calls yet
   No Callers
  == Spawn extension (grup3, 1295, 1) exited non-zero on 'SIP/rv-08fe67f8'
linux2*CLI>
09:46:51
#vi queues.conf
09:47:05
# 61 ; An announcement may be specified which is played for the member as
 68 ;
 69 ;updatecdr=no
 70 ;
 71 ; Group memberships for agents (may change in mid-file)
 72 ;
 73 ;group=3
 74 ;group=1,2
 75 ;group=
 76 ;
 77 ; --------------------------------------------------
...
~
~
~
~
~
~
~
~
~
"agents.conf" 114L, 2849C записано
09:48:00
#vi extensions.conf
09:50:05
#vi queues.conf
--- /tmp/l3-saved-2910.20589.24632	2010-10-28 10:50:25.000000000 +0300
+++ queues.conf	2010-10-28 10:51:06.000000000 +0300
@@ -311,7 +311,7 @@
 
 [queue1]
  
-member => SIP/1201
-member => SIP/1202
+;member => SIP/1201
+;member => SIP/1202
 strategy = ringall
-
+member => Agent/@1
09:51:06
#vi agents.conf
--- /tmp/l3-saved-2910.14020.21715	2010-10-28 10:51:09.000000000 +0300
+++ agents.conf	2010-10-28 10:53:17.000000000 +0300
@@ -106,9 +106,9 @@
 
 
 [agents]
-108 
-109 group=1
-110 agent => 1001,1234,Agent 1
-111 agent => 1002,1234,Agent 2
-112 agent => 1007,1234,Agent 007
+ 
+group=1
+agent => 1001,1234,Agent 1
+agent => 1002,1234,Agent 2
+agent => 1007,1234,Agent 007
 
09:53:17
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
  == Everyone is busy/congested at this time (1:1/0/0)
  == Auto fallthrough, channel 'SIP/1201-08fe67c8' status is 'BUSY'
    -- Executing [1195@grup2:1] Macro("SIP/1201-08fdcac8", "dial-with-callerid|SIP/nk/1195") in new stack
    -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08fdcac8", "CALLERID(name)="Igor (Rivne)"") in new stack
    -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-08fdcac8", "SIP/nk/1195") in new stack
    -- Called nk/1195
    -- SIP/nk-08fe8de0 answered SIP/1201-08fdcac8
    -- Packet2Packet bridging SIP/1201-08fdcac8 and SIP/nk-08fe8de0
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fdcac8' in macro 'dial-with-callerid'
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fdcac8'
09:57:55
#vi extensions.conf
прошло 27 минут
10:25:25
# 61 [default]2,1,Background(/usr/share/asterisk/ivr/5)
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
[Oct 28 11:28:11] WARNING[6372]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found
  == Agent '1001' logged in (format gsm/gsm)
linux2*CLI> agent show
1001         (Agent 1) logged in on SIP/1201-08fe67c8 is idle (musiconhold is 'default')
1002         (Agent 2) not logged in (musiconhold is 'default')
1007         (Agent 007) not logged in (musiconhold is 'default')
3 agents configured [1 online , 2 offline]
    -- Executing [1295@grup3:1] Queue("SIP/rv-08ff77e0", "queue1") in new stack
[Oct 28 11:28:34] WARNING[6379]: app_queue.c:3930 queue_exec: Unable to join queue 'queue1'
  == Auto fallthrough, channel 'SIP/rv-08ff77e0' status is 'UNKNOWN'
10:28:55
#vi agents.conf
10:29:20
#~
 68 ;
 69 ; A strategy may be specified.  Valid strategies include:
 70 ;
 71 ; ringall - ring all available channels until one answers (default)
 72 ; roundrobin - take turns ringing each available interface
 73 ; leastrecent - ring interface which was least recently called by this queue
 74 ; fewestcalls - ring the one with fewest completed calls from this queue
 75 ; random - ring random interface
 76 ; rrmemory - round robin with memory, remember where we left off last ring pass
 77 ;
...
308 ;member => Agent/@1             ; Any agent in group 1
309 ;member => Agent/:1,1           ; Any agent in group 1, wait for first
310                                 ; available, but consider with penalty
311
312 [queue1]
313
314 ;member => SIP/1201
315 ;member => SIP/1202
316 strategy = ringall
317 member => Agent/@1
10:30:24
#302 ;
 68 ;
 69 ;updatecdr=no
 70 ;
 71 ; Group memberships for agents (may change in mid-file)
 72 ;
 73 ;group=3
 74 ;group=1,2
 75 ;group=
 76 ;
 77 ; --------------------------------------------------
...
105 ;agent => 1002,4321,Will Meadows
106
107
108 [agents]
109
110 group=1
111 agent => 1001,1234,Agent 1
112 agent => 1002,1234,Agent 2
113 agent => 1007,1234,Agent 007
114
10:31:06
#~
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
10:40:24
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
queue1       has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime), W:0, C:0, A:0, SL:0.0% within 0s
   Members:
      Agent/@1 (Unavailable) has taken no calls yet
   No Callers
linux2*CLI> agent show
1001         (Agent 1) not logged in (musiconhold is 'default')
1002         (Agent 2) logged in on SIP/1202-09f090d8 is idle (musiconhold is 'default')
1007         (Agent 007) not logged in (musiconhold is 'default')
3 agents configured [1 online , 2 offline]
linux2*CLI>
10:41:34
#vi queues.conf
10:42:35
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
[Oct 28 11:43:39] WARNING[6658]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found
  == Spawn extension (grup3, 1295, 1) exited non-zero on 'SIP/rv-09ef42b0'
linux2*CLI> agent show
1001         (Agent 1) not logged in (musiconhold is 'default')
1002         (Agent 2) logged in on SIP/1202-09f090d8 is idle (musiconhold is 'default')
1007         (Agent 007) not logged in (musiconhold is 'default')
3 agents configured [1 online , 2 offline]
linux2*CLI>
linux2*CLI>
linux2*CLI>
/dev/pts/2
10:45:36
#mc
10:46:41
#ll
итого 4
-rw-r--r-- 1 root root 7 Окт 27 09:37 vimrc
/dev/pts/0
10:50:26
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [12001@grup2:1] AgentLogin("SIP/1201-09f047f8", "1001") in new stack
    -- <SIP/1201-09f047f8> Playing 'agent-pass' (language 'ru')
    -- <SIP/1201-09f047f8> Playing 'agent-loginok' (language 'ru')
[Oct 28 11:50:48] WARNING[6950]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found
[Oct 28 11:50:48] WARNING[6950]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found
[Oct 28 11:50:48] WARNING[6950]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found
  == Agent '1001' logged in (format gsm/gsm)
  == Agent '1001' logged out
  == Spawn extension (grup2, 12001, 1) exited non-zero on 'SIP/1201-09f047f8'
linux2*CLI>
10:51:18
#vi musiconhold.conf
--- /tmp/l3-saved-2910.5880.25687	2010-10-28 11:51:25.000000000 +0300
+++ musiconhold.conf	2010-10-28 11:52:07.000000000 +0300
@@ -35,6 +35,13 @@
 [default]
 mode=files
 directory=/var/lib/asterisk/moh
+
+[rock]
+mode=files
+directory=/var/lib/asterisk/moh/rock
+
+
+
 ;
 ;[native-random]
 ;mode=files
10:52:27
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
10:52:51
#mc
/dev/pts/0
11:01:10
#vi agents.conf
--- /tmp/l3-saved-2910.20925.1928	2010-10-28 12:01:34.000000000 +0300
+++ agents.conf	2010-10-28 12:01:55.000000000 +0300
@@ -105,9 +105,17 @@
 ;agent => 1002,4321,Will Meadows
 
 
-[agents]
+;[agents]
  
-group= 1
+;group= 1
+;agent => 1001,1234,Agent 1
+;agent => 1002,1234,Agent 2
+;agent => 1007,1234,Agent 007
+
+
+[agents]
+group=1
+custom_beep=because-paranoid
 agent => 1001,1234,Agent 1
 agent => 1002,1234,Agent 2
 agent => 1007,1234,Agent 007
11:01:55
#vi extensions.conf
--- /tmp/l3-saved-2910.20906.19620	2010-10-28 12:03:05.000000000 +0300
+++ extensions.conf	2010-10-28 12:03:23.000000000 +0300
@@ -36,7 +36,7 @@
 
 exten => 1295,1,Answer
 exten => 1295,n,SetMusicOnhold(default)
-exten => 1295,n,Queue(queue1)
+exten => 1295,n,Queue(queine1,m)
 
 
 ;exten => 1198,1,Record(/tmp/warning1:gsm,,3) ; Запись сообщения в формате gsm 3 секундыa
11:04:52
#vi agents.conf
11:05:21
#109
 68 ;
 69 ; A strategy may be specified.  Valid strategies include:
 70 ;
 71 ; ringall - ring all available channels until one answers (default)
 72 ; roundrobin - take turns ringing each available interface
 73 ; leastrecent - ring interface which was least recently called by this queue
 74 ; fewestcalls - ring the one with fewest completed calls from this queue
 75 ; random - ring random interface
 76 ; rrmemory - round robin with memory, remember where we left off last ring pass
 77 ;
...
317
318
319 [queine1]
320 strategy = ringall
321 ;member => SIP/1301
322 ;member => SIP/1302
323 member => Agent/@1
324 amusicclass = defaul
325 tnnounce-holdtime = yes
326
11:07:29
#316 ;strategy = ringall
"sip.conf" 75L, 1238C
 32 host=dynamic
 33 callerid="Igor Softphone"
 34 context=grup1
 35 language=ru
 36
 37
 38 ; откл кодеки - вкл только определенные
 39 [1203]
    [a             ]
...
 56
    ; Создаем клиентов
 57
    [kv]
 58 type=friend
    secret=1234
 59 host=dynamic
    username=rv
 60 context=grup3
"sip.conf" 77L, 1262C записано
11:08:01
#vi sip.conf
11:08:24
# 61 [general]

11:08:25
#vi sip.conf
--- /tmp/l3-saved-2910.324.27201	2010-10-28 12:08:26.000000000 +0300
+++ sip.conf	2010-10-28 12:08:38.000000000 +0300
@@ -26,6 +26,7 @@
 context=grup2
 language=ru
 callgroup=1
+pickupgroup=1
 
 [1202]
 type=friend
@@ -35,7 +36,7 @@
 context=grup1	
 language=ru
 callgroup=1
-
+pickupgroup=1
 
 ; откл кодеки - вкл только определенные
 [1203]
11:08:38
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
Park Call
Dynamic Feature           Default Current
---------------           ------- -------
(none)
Call parking
------------
Parking extension   :   700
Parking context     :   parkedcalls
Parked call extensions: 701-720
linux2*CLI>
11:09:50
#vi features.conf
11:10:29
# 61 ; DYNAMIC_FEATURES variable to enable usage of this feature.

11:10:30
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/sip_notify.conf': Found
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
11:10:48
#vi sip.conf
--- /tmp/l3-saved-2910.18737.7271	2010-10-28 12:10:51.000000000 +0300
+++ sip.conf	2010-10-28 12:11:45.000000000 +0300
@@ -26,7 +26,8 @@
 context=grup2
 language=ru
 callgroup=1
-pickupgroup=1
+pickupgroup=1,pickupgroup=2
+   
 
 [1202]
 type=friend
11:11:45
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
  == MGCP Listening on 0.0.0.0:2727
  == Using TOS bits 0
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
[Oct 28 12:11:49] ERROR[7073]: channel.c:4394 ast_get_group: Syntax error parsing group configuration '1,pickupgroup=2' at 'pickupgroup=2'. Ignoring.
[Oct 28 12:11:49] ERROR[7073]: channel.c:4394 ast_get_group: Syntax error parsing group configuration '1,pickupgroup=2' at 'pickupgroup=2'. Ignoring.
  == Parsing '/etc/asterisk/sip_notify.conf': Found
linux2*CLI>
linux2*CLI>
11:12:00
#vi sip.conf
--- /tmp/l3-saved-2910.6181.24817	2010-10-28 12:12:02.000000000 +0300
+++ sip.conf	2010-10-28 12:12:23.000000000 +0300
@@ -26,8 +26,8 @@
 context=grup2
 language=ru
 callgroup=1
-pickupgroup=1,pickupgroup=2
-   
+pickupgroup=1,2
+
 
 [1202]
 type=friend
11:12:23
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- <SIP/rv-0949e1c0> Playing 'beep' (language 'en')
    -- Recording the message
    -- x=0, open writing:  /var/spool/asterisk/voicemail/default/1202/tmp/vmy9Pc format: wav49, 0x94b2f90
    -- x=1, open writing:  /var/spool/asterisk/voicemail/default/1202/tmp/vmy9Pc format: gsm, 0x9479b70
    -- x=2, open writing:  /var/spool/asterisk/voicemail/default/1202/tmp/vmy9Pc format: wav, 0x9476790
    -- User hung up
  == Spawn extension (macro-answer-with-monitor, s, 7) exited non-zero on 'SIP/rv-0949e1c0' in macro 'answer-with-monitor'
  == Spawn extension (macro-answer-with-monitor, s, 7) exited non-zero on 'SIP/rv-0949e1c0'
[Oct 28 12:15:06] NOTICE[7707]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1202-1101-1288257280-in.wav" "/var/spool/asterisk/monitor/voice-1202-1101-1288257280-out.wav" "/var/spool/asterisk/monitor/voice-1202-1101-1288257280.wav"  &
linux2*CLI>
11:15:09
#vi sip.conf
--- /tmp/l3-saved-2910.5157.15801	2010-10-28 12:15:11.000000000 +0300
+++ sip.conf	2010-10-28 12:15:26.000000000 +0300
@@ -26,7 +26,8 @@
 context=grup2
 language=ru
 callgroup=1
-pickupgroup=1,2
+;pickupgroup=1,2
+pickupgroup=1
 
 
 [1202]
11:15:26
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [s@macro-answer-with-monitor:5] Dial("SIP/rv-094a7130", "SIP/1202|10") in new stack
    -- Called 1202
    -- SIP/1202-094a2e38 is ringing
    -- SIP/1202-094a2e38 answered SIP/rv-094a7130
[Oct 28 12:19:44] NOTICE[7073]: chan_sip.c:14539 handle_request_invite: Nothing to pick up for 3c26a753e77d-tgz51b0acsdu
[Oct 28 12:19:56] NOTICE[7073]: chan_sip.c:14539 handle_request_invite: Nothing to pick up for 3c26a760b1d3-lbtyc9e3c6j3
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/rv-094a7130' in macro 'answer-with-monitor'
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/rv-094a7130'
[Oct 28 12:20:00] NOTICE[7801]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1202-1101-1288257574-in.wav" "/var/spool/asterisk/monitor/voice-1202-1101-1288257574-out.wav" "/var/spool/asterisk/monitor/voice-1202-1101-1288257574.wav"  &
linux2*CLI>
11:21:14
#vi extensions.conf
--- /tmp/l3-saved-2910.8728.30177	2010-10-28 12:21:27.000000000 +0300
+++ extensions.conf	2010-10-28 12:22:09.000000000 +0300
@@ -45,7 +45,7 @@
 exten => 1298,1,Goto(menu,s,1)
 exten => 1296,1,VoiceMailMain(${CALLERID(number)}@default|s)
 exten => _1200X,1,AgentLogin(100${EXTEN:4})
-
+exten => _*8.,1,Pickup(${EXTEN:2})
 
 
 [menu]
11:22:11
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Including context 'national' in context 'grup1'
    -- Registered extension context 'grup3'
    -- Including context 'servise' in context 'grup3'
    -- Including context 'local' in context 'grup3'
  == Parsing '/etc/asterisk/users.conf': Found
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
11:23:16
#vi sip.conf
--- /tmp/l3-saved-2910.5504.16703	2010-10-28 12:23:20.000000000 +0300
+++ sip.conf	2010-10-28 12:24:25.000000000 +0300
@@ -25,9 +25,9 @@
 callerid="Igor"
 context=grup2
 language=ru
-callgroup=1
+callgroup=1 ; К кайкой pikup групе относится
 ;pickupgroup=1,2
-pickupgroup=1
+pickupgroup=1 ; Кого имеет право перехватівать
 
 
 [1202]
11:24:25
#vi features.conf
11:27:32
# 61 ; DYNAMIC_FEATURES variable to enable usage of this feature.
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [s@macro-answer-with-monitor:5] Dial("SIP/1202-0948e8c0", "SIP/1201|10") in new stack
    -- Called 1201
    -- SIP/1201-0949f170 is ringing
    -- SIP/1201-0949f170 is ringing
    -- SIP/1201-0949f170 is ringing
    -- SIP/1201-0949f170 answered SIP/1202-0948e8c0
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/1202-0948e8c0' in macro 'answer-with-monitor'
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/1202-0948e8c0'
[Oct 28 12:34:07] NOTICE[7973]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1201-1202-1288258421-in.wav" "/var/spool/asterisk/monitor/voice-1201-1202-1288258421-out.wav" "/var/spool/asterisk/monitor/voice-1201-1202-1288258421.wav"  &
linux2*CLI>
11:34:28
#apt-get install festival
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  festlex-cmu festlex-poslex festvox-kallpc16k libestools1.2
Предлагаемые пакеты:
  festival-freebsoft-utils festival-gaim pidgin-festival
НОВЫЕ пакеты, которые будут установлены:
  festival festlex-cmu festlex-poslex festvox-kallpc16k libestools1.2
обновлено 0, установлено 5 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
...
Выбор ранее не выбранного пакета festlex-poslex.
Распаковывается пакет festlex-poslex (из файла .../festlex-poslex_1.4.0-5_all.deb)...
Выбор ранее не выбранного пакета festvox-kallpc16k.
Распаковывается пакет festvox-kallpc16k (из файла .../festvox-kallpc16k_1.4.0-5_all.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет libestools1.2 (1:1.2.96~beta-2) ...
Настраивается пакет festival (1.96~beta-7) ...
Настраивается пакет festlex-cmu (1.4.0-6) ...
Настраивается пакет festlex-poslex (1.4.0-5) ...
Настраивается пакет festvox-kallpc16k (1.4.0-5) ...
11:34:52
#cp /usr/share/doc/festival/examples/festival.scm /etc/fe

11:37:22
#stival.scm
bash: stival.scm: команда не найдена
11:37:25
#cp /usr/share/doc/festival/examples/festival.scm /etc/festival.scm

11:37:40
#cp /usr/share/doc/festival/examples/festival.init /etc/init.d/festival

11:38:18
#ln -s /etc/init.d/festival /etc/rc2.d/S90fetival

11:38:41
#ln -s /etc/rc2.d/S90fetival /etc/init.d/festival
ln: создание символьной ссылки `/etc/init.d/festival': Файл существует
11:39:03
#chmod 755 /etc/init.d/festival

11:39:28
#echo 'RUN_FESTIVAL=yes' >> /etc/default/festival

11:39:43
#ln -s /etc/init.d/festival /etc/rc0.d/K10fetival

11:40:28
#ln -s /etc/init.d/festival /etc/rc2.d/K10fetival

11:41:14
#ls /etc/rc0.d/
K01gdm      K11atd                         K19samba     K20exim4       K20openbsd-inetd  K25hwclock.sh             K63mountoverflowtmp  K90rsyslog       S20sendsigs      S32portmap     S40umountfs
K10fetival  K14network-manager             K19sendmail  K20kerneloops  K20rsync          K30system-tools-backends  K85bind9             README           S30urandom       S35networking  S60umountroot
K11anacron  K14network-manager-dispatcher  K20atop      K20nfs-common  K21asterisk       K50alsa-utils             K86avahi-daemon      S15wpa-ifupdown  S31umountnfs.sh  S36ifupdown    S90halt
11:41:25
#ln -s /etc/init.d/festival /etc/rc2.d/S90fetival
ln: создание символьной ссылки `/etc/rc2.d/S90fetival': Файл существует
11:42:03
#ls /etc/rc2.d/S90
ls: невозможно получить доступ к /etc/rc2.d/S90: Нет такого файла или каталога
11:42:17
#ls /etc/rc2.d/S90*
/etc/rc2.d/S90fetival
11:42:24
#mc
11:43:28
#/etc/init.d/festival start
Starting Festival server: festival.
11:43:52
#vi extensions.conf
--- /tmp/l3-saved-2910.7394.3500	2010-10-28 12:44:05.000000000 +0300
+++ extensions.conf	2010-10-28 12:45:12.000000000 +0300
@@ -37,6 +37,7 @@
 exten => 1295,1,Answer
 exten => 1295,n,SetMusicOnhold(default)
 exten => 1295,n,Queue(queine1,m)
+exten => 1290,1,Festival("privet Rivne")
 
 
 ;exten => 1198,1,Record(/tmp/warning1:gsm,,3) ; Запись сообщения в формате gsm 3 секундыa
11:45:55
#vi festival.conf
--- /tmp/l3-saved-2910.13793.10174	2010-10-28 12:46:48.000000000 +0300
+++ festival.conf	2010-10-28 12:47:17.000000000 +0300
@@ -5,15 +5,15 @@
 ;
 ; Host which runs the festival server (default : localhost);
 ;
-;host=localhost
+host=localhost
 ;
 ; Port on host where the festival server runs (default : 1314)
 ;
-;port=1314
+port=1314
 ;
 ; Use cache (yes, no - defaults to no)
 ;
-;usecache=yes
+usecache=yes
 ;
 ; If usecache=yes, a directory to store waveform cache files. 
 ; The cache is never cleared (yet), so you must take care of cleaning it
@@ -21,7 +21,7 @@
 ; THIS DIRECTORY *MUST* EXIST and must be writable from the asterisk process.
 ; Defaults to /tmp/
 ;
-;cachedir=/var/lib/asterisk/festivalcache/
+cachedir=/var/lib/asterisk/festivalcache/
 ;
 ; Festival command to send to the server.
 ; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n
@@ -29,7 +29,7 @@
 ; (quit) directive, or the cache handling mechanism will hang. Do not 
 ; forget the \n at the end. 
 ; 
-;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n
+festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n
 ;
 ;
 
11:47:17
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
11:49:06
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/sip_notify.conf': Found
linux2*CLI>
    -- Executing [1290@grup2:1] Festival("SIP/1201-098727b8", ""privet Rivne"") in new stack
  == Parsing '/etc/asterisk/festival.conf': Found
[Oct 28 12:49:14] WARNING[8660]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (grup2, 1290, 1) exited non-zero on 'SIP/1201-098727b8'
linux2*CLI>
11:49:17
#vi festival.conf
11:49:22
#~
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
11:50:35
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
  == Parsing '/etc/asterisk/festival.conf': Found
[Oct 28 12:50:55] WARNING[8798]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (grup2, 1290, 1) exited non-zero on 'SIP/1201-0a0b6ff8'
    -- Executing [1290@grup2:1] Festival("SIP/1201-0a0b49a8", "privet Rivne") in new stack
  == Parsing '/etc/asterisk/festival.conf': Found
[Oct 28 12:51:02] WARNING[8799]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (grup2, 1290, 1) exited non-zero on 'SIP/1201-0a0b49a8'
linux2*CLI>
    -- Saved useragent "Asterisk PBX" for peer nk
linux2*CLI>
11:51:17
#vi extensions.conf
11:51:26
# 61 [default]

11:51:27
#ps -aux | gre fes
bash: gre: команда не найдена
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
11:51:36
#ps -aux | grep fest
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
festival  8443  0.0  1.0  25612 21340 ?        S    12:43   0:00 /usr/bin/festival --server -b /etc/festival.scm
root      8905  0.0  0.0   3152   776 pts/1    S+   12:51   0:00 grep fest
11:51:56
#vi extensions.conf
--- /tmp/l3-saved-2910.2597.27151	2010-10-28 12:52:02.000000000 +0300
+++ extensions.conf	2010-10-28 12:52:19.000000000 +0300
@@ -37,7 +37,7 @@
 exten => 1295,1,Answer
 exten => 1295,n,SetMusicOnhold(default)
 exten => 1295,n,Queue(queine1,m)
-exten => 1290,1,Festival(privet Rivne)
+exten => 1290,1,Festival('privet Rivne')
 
 
 ;exten => 1198,1,Record(/tmp/warning1:gsm,,3) ; Запись сообщения в формате gsm 3 секундыa
11:52:19
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [1290@grup2:1] Festival("SIP/1201-0a0c4de8", "privet Rivne") in new stack
  == Parsing '/etc/asterisk/festival.conf': Found
[Oct 28 12:52:29] WARNING[8962]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (grup2, 1290, 1) exited non-zero on 'SIP/1201-0a0c4de8'
linux2*CLI>
linux2*CLI>
linux2*CLI> C
No such command 'C' (type 'help C' for other possible commands)
linux2*CLI>
linux2*CLI>
11:52:48
#/etc/init.d/festival restart
Restarting Festival server: festival.
11:54:07
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux2*CLI> f
feature       file          flash         funcdevstate
linux2*CLI>
linux2*CLI>
linux2*CLI>
    -- Executing [1290@grup2:1] Festival("SIP/1201-0a0b9b18", "privet Rivne") in new stack
  == Parsing '/etc/asterisk/festival.conf': Found
[Oct 28 12:54:21] WARNING[9094]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (grup2, 1290, 1) exited non-zero on 'SIP/1201-0a0b9b18'
linux2*CLI>
11:54:46
#mkdir /var/log/festival

11:55:33
#vi festival.conf
11:55:51
#~
  8 [general]lhost
  9 ;
 10 ;host=localhostwhere the festival server runs (default : 1314)
 11 ;
 12 ;port=1314
 13 ;
 14 ;usecache=no(yes, no - defaults to no)
 15 ;
 16 usecache=no
 17 ;
...
~
~
~
~
~
~
~
~
~
"festival.conf" 36L, 943C записано
11:58:57
#cp /usr/share/festival/festival.scm /etc/festival.scm

11:59:26
#/etc/init.d/festival restart
Restarting Festival server: festival.
прошла 71 минута
13:10:55
#apt-get install zaptel-source
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  fxload zaptel
НОВЫЕ пакеты, которые будут установлены:
  fxload zaptel zaptel-source
обновлено 0, установлено 3 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
Необходимо скачать 1460kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 2519kB.
...
Распаковывается пакет fxload (из файла .../fxload_0.0.20020411-1.1_i386.deb)...
Выбор ранее не выбранного пакета zaptel.
Распаковывается пакет zaptel (из файла .../zaptel_1%3a1.4.11~dfsg-3_i386.deb)...
Выбор ранее не выбранного пакета zaptel-source.
Распаковывается пакет zaptel-source (из файла .../zaptel-source_1%3a1.4.11~dfsg-3_all.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет fxload (0.0.20020411-1.1) ...
Настраивается пакет zaptel (1:1.4.11~dfsg-3) ...
Zaptel telephony kernel driver: FATAL: Module ztdummy not found.
Настраивается пакет zaptel-source (1:1.4.11~dfsg-3) ...
13:11:22
#m-a a-i zaptel-source
Будут установлены следующие дополнительные пакеты:
  cpp-4.1 gcc-4.1 gcc-4.1-base linux-headers-2.6.26-2-common linux-kbuild-2.6.26
Предлагаемые пакеты:
  gcc-4.1-locales gcc-4.1-multilib gcc-4.1-doc libmudflap0-dev
НОВЫЕ пакеты, которые будут установлены:
  cpp-4.1 gcc-4.1 gcc-4.1-base linux-headers-2.6.26-2-686 linux-headers-2.6.26-2-common linux-kbuild-2.6.26
обновлено 0, установлено 6 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
Необходимо скачать 7359kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 41,4MB.
Хотите продолжить [Д/н]? y
...
                                                                  │                                                                         │
                                                                  │                                100%                                     │
                                                                  │                                                                         │
                                                                  └─────────────────────────────────────────────────────────────────────────┘
Завершено с /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb .
dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb
Выбор ранее не выбранного пакета zaptel-modules-2.6.26-2-686.
(Чтение базы данных... на данный момент установлено 110953 файлов и каталогов.)
Распаковывается пакет zaptel-modules-2.6.26-2-686 (из файла .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb)...
Настраивается пакет zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-25lenny1) ...
13:15:30
#modprobe
Display all 2155 possibilities? (y or n)
13:15:30
#modprobe za
zaphfc  zaptel  zatm    zaurus
13:15:30
#modprobe za
zaphfc  zaptel  zatm    zaurus

Статистика

Время первой команды журнала09:26:36 2010-10-28
Время последней команды журнала13:15:30 2010-10-28
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 2.97
Процент синтаксически неверно набранных команд, % 1.98
Суммарное время работы с терминалом *, час 2.62
Количество командных строк в единицу времени, команда/мин 0.64
Частота использования команд
vi34|===============================| 31.19%
asterisk17|===============| 15.60%
616|=====| 5.50%
ln5|====| 4.59%
cp4|===| 3.67%
~4|===| 3.67%
exit4|===| 3.67%
/etc/init.d/festival3|==| 2.75%
modprobe3|==| 2.75%
ls3|==| 2.75%
mc3|==| 2.75%
ps2|=| 1.83%
/etc/init.d/asterisk2|=| 1.83%
apt-get2|=| 1.83%
DYNAMIC_FEATURES2|=| 1.83%
mkdir1|| 0.92%
m-a1|| 0.92%
3021|| 0.92%
1091|| 0.92%
3161|| 0.92%
chmod1|| 0.92%
>1|| 0.92%
ll1|| 0.92%
echo1|| 0.92%
gre1|| 0.92%
/etc/default/festival1|| 0.92%
An1|| 0.92%
grep1|| 0.92%
stival.scm1|| 0.92%
strategy1|| 0.92%
____
*) Интервалы неактивности длительностью 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$