/l3/users/angell2807/nt-voip/linux2.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#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}) |
#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> ! |
#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}) |
#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> ! |
#exit
linux2*CLI> ! |
#vi queues.conf
|
#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 + + |
#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 |
#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> |
#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}) |
#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> |
#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}) |
#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> |
#vi queues.conf
|
# 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 записано |
#vi extensions.conf
|
#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 |
#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 |
#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' |
#vi extensions.conf
|
# 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' |
#vi agents.conf
|
#~
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 |
#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 |
#~
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... 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> |
#vi queues.conf
|
#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> |
#ll
итого 4 -rw-r--r-- 1 root root 7 Окт 27 09:37 vimrc |
#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> |
#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 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 |
#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 |
#vi agents.conf
|
#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 |
#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 записано |
#vi sip.conf
|
# 61 [general]
|
#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] |
#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> |
#vi features.conf
|
# 61 ; DYNAMIC_FEATURES variable to enable usage of this feature.
|
#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> |
#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 |
#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> |
#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 |
#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> |
#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] |
#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> |
#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] |
#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> |
#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] |
#vi features.conf
|
# 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> |
#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) ... |
#cp /usr/share/doc/festival/examples/festival.scm /etc/fe
|
#stival.scm
bash: stival.scm: команда не найдена |
#cp /usr/share/doc/festival/examples/festival.scm /etc/festival.scm
|
#cp /usr/share/doc/festival/examples/festival.init /etc/init.d/festival
|
#ln -s /etc/init.d/festival /etc/rc2.d/S90fetival
|
#ln -s /etc/rc2.d/S90fetival /etc/init.d/festival
ln: создание символьной ссылки `/etc/init.d/festival': Файл существует |
#chmod 755 /etc/init.d/festival
|
#echo 'RUN_FESTIVAL=yes' >> /etc/default/festival
|
#ln -s /etc/init.d/festival /etc/rc0.d/K10fetival
|
#ln -s /etc/init.d/festival /etc/rc2.d/K10fetival
|
#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 |
#ln -s /etc/init.d/festival /etc/rc2.d/S90fetival
ln: создание символьной ссылки `/etc/rc2.d/S90fetival': Файл существует |
#ls /etc/rc2.d/S90
ls: невозможно получить доступ к /etc/rc2.d/S90: Нет такого файла или каталога |
#ls /etc/rc2.d/S90*
/etc/rc2.d/S90fetival |
#mc
|
#/etc/init.d/festival start
Starting Festival server: festival. |
#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 |
#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 ; ; |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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> |
#vi festival.conf
|
#~
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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> |
#vi extensions.conf
|
# 61 [default]
|
#ps -aux | gre fes
bash: gre: команда не найдена Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html |
#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 |
#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 |
#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> |
#/etc/init.d/festival restart
Restarting Festival server: festival. |
#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> |
#mkdir /var/log/festival
|
#vi festival.conf
|
#cp /usr/share/festival/festival.scm /etc/festival.scm
|
#/etc/init.d/festival restart
Restarting Festival server: festival. |
#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) ... |
#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) ... |
#modprobe
Display all 2155 possibilities? (y or n) |
#modprobe za
zaphfc zaptel zatm zaurus |
#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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008