/l3/users/igor-public/nt-voip/linux0.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#member => SIP/6002
exten => _X.,1,Playback(/var/tmp/asterisk/wrong-number) exten => _81XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm) exten => _82XX,1,Playback(/var/tmp/asterisk/message${EXTEN:2}:gsm) exten => _60XX,1,Answer exten => _60XX,n,Set(CHANNEL(musicclass)=class1) H:%M:%S)}) exten => _60XX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%% exten => _60XX,n,Monitor(wav,${MONITOR_FILENAME}) exten => _60XX,n,Dial(SIP/${EXTEN},5,tT) exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5) ... exten => _20XX,1,Dial(SIP/bern/${EXTEN}) exten => _40XX,1,Dial(SIP/bern/${EXTEN}) exten => _50XX,1,Dial(SIP/bern/${EXTEN}) [gr1] include => internal include => local include => national include => international [gr2] include => internal |
#include => local
![]() Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux0 (pid = 6425) ... originate parkedcalls phoneprov pri queue realtime reload rtcp rtp say sip skinny sla sqlite ss7 stun timing transcoder udptl ulimit unistim voicemail linux0*CLI> queue reload members parameters rules all linux0*CLI> queue reload members parameters rules all linux0*CLI> queue reload members linux0*CLI> quit Executing last minute cleanups |
#include => local
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux0 (pid = 6425) ... originate parkedcalls phoneprov pri queue realtime reload rtcp rtp say sip skinny sla sqlite ss7 stun timing transcoder udptl ulimit unistim voicemail linux0*CLI> queue reload members parameters rules all linux0*CLI> queue reload members parameters rules all linux0*CLI> queue reload members linux0*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/queues.conf
![]() --- /tmp/l3-saved-2754.21029.8139 2012-04-25 12:56:09.000000000 +0300 +++ /etc/asterisk/queues.conf 2012-04-25 12:58:13.000000000 +0300 @@ -501,6 +501,6 @@ [queue1] strategy = ringall -member => SIP/6001 -member => SIP/6002 +member => Agent/100 +member => Agent/101 |
#vim /etc/asterisk/agents.conf
![]() --- /tmp/l3-saved-2754.216.2800 2012-04-25 12:58:20.000000000 +0300 +++ /etc/asterisk/agents.conf 2012-04-25 14:09:06.000000000 +0300 @@ -111,3 +111,7 @@ ; ;agent => 1001,4321,Mark Spencer ;agent => 1002,4321,Will Meadows + +agent => 100,1234,Agent 1 +agent => 101,1234,Agent 2 + |
#vim /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-2754.18340.24663 2012-04-25 14:09:11.000000000 +0300 +++ /etc/asterisk/extensions.conf 2012-04-25 14:16:28.000000000 +0300 @@ -30,6 +30,8 @@ exten => _83XX,1,VoiceMailMain(60${EXTEN:2}@default) +exten => _840X,1,AgentLogin(10${EXTEN:3}) + [local] exten => 6003,1,Dial(SIP/6001&SIP/6002) |
#agent => 101,1234,Agent 2
![]() Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux0 (pid = 6425) ... -- Reloading module 'app_minivm.so' (Mini VoiceMail (A minimal Voicemail e-mail System)) -- Reloading module 'chan_mgcp.so' (Media Gateway Control Protocol (MGCP)) Reloading MGCP -- Got SIP response 405 "Method Not Allowed" back from 192.168.20.17 linux0*CLI> agent show 100 (Agent 1) not logged in (musiconhold is 'default') 101 (Agent 2) not logged in (musiconhold is 'default') 2 agents configured [0 online , 2 offline] linux0*CLI> quit Executing last minute cleanups |
#agent => 101,1234,Agent 2
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux0 (pid = 6425) ... -- Reloading module 'app_minivm.so' (Mini VoiceMail (A minimal Voicemail e-mail System)) -- Reloading module 'chan_mgcp.so' (Media Gateway Control Protocol (MGCP)) Reloading MGCP -- Got SIP response 405 "Method Not Allowed" back from 192.168.20.17 linux0*CLI> agent show 100 (Agent 1) not logged in (musiconhold is 'default') 101 (Agent 2) not logged in (musiconhold is 'default') 2 agents configured [0 online , 2 offline] linux0*CLI> quit Executing last minute cleanups |
#exten => 8400,n,Playback(/var/tmp/asterisk/message04)
![]() ;member => DAHDI/2,10 ;member => DAHDI/3,10,Bob Johnson ;member => Agent/1001 ;member => Agent/1002 ;member => Local/1000@default,0,John Smith,SIP/1000 ; ; Note that using agent groups is probably not what you want. Strategies do ; not propagate down to the Agent system so if you want round robin, least ; recent, etc, you should list ; available, but consider with penaltyy and not ; use agent groups. [queue1] strategy = ringall1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first member => Agent/100 |
#exten => 8400,n,Playback(/var/tmp/asterisk/message04)
; It is important to ensure that channel drivers used for members are loaded ; before app_queue.so itself or they may be marked invalid until reload. This ; can be accomplished by explicitly listing them in modules.conf before ; app_queue.so. Additionally, if you use Local channels as queue members, you ; must also preload pbx_config.so and chan_local.so (or pbx_ael.so, pbx_lua.so, ; or pbx_realtime.so, depending on how your dialplan is configured). ; ;member => DAHDI/1 ;member => DAHDI/2,10 ;member => DAHDI/3,10,Bob Johnson ... ; not propagate down to the Agent system so if you want round robin, least ; recent, etc, you should list all the agents in this file individually and not ; use agent groups. ; ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty [queue1] strategy = ringall member => Agent/100 |
#; Define whether callbacklogins should be stored in astdb for
![]() exten => _81XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm) exten => _82XX,1,Playback(/var/tmp/asterisk/message${EXTEN:2}:gsm) exten => 8300,1,VoiceMailMain() exten => 8398,1,Set(MYLANG=de) exten => 8398,1,Set(CHANNEL(language)=${MYLANG}) exten => 8398,n,VoiceMailMain() exten => 8399,1,Set((language)=ru) exten => 8400,1(start),Read(new_number,/var/tmp/asterisk/message01) exten => 8400,n,Playback(/var/tmp/asterisk/message02) exten => 8400,n,SayDigits(${new_number}) ... exten => 8400,n,Playback(/var/tmp/asterisk/message04) exten => _83XX,1,VoiceMailMain(60${EXTEN:2}@default) ( ) exten => _850X,1,AddQueueMember(queue1, SIP/600{EXTEN:3}) [local]> _840X,1,AgentLogin(10${EXTEN:3}) [local] "/etc/asterisk/extensions.conf" 69L, 1999C written exten => 6000,1,Playback(demo-thanks) exten => _60XX,1,Answer exten => _60XX,n,Set(CHANNEL(musicclass)=class1) |
#; Define whether callbacklogins should be stored in astdb for
exten => 8400,n,Playback(/var/tmp/asterisk/message04) exten => 8400,n,Read(answer,/var/tmp/asterisk/message03) exten => 8400,n,GotoIf($[${answer}=1]?start) exten => 8400,n,Set(DB(mobile/${CALLERID(num)})=${new_number}) exten => 8400,n,Playback(/var/tmp/asterisk/message04) exten => _83XX,1,VoiceMailMain(60${EXTEN:2}@default) exten => _840X,1,AgentLogin(10${EXTEN:3}) [local] exten => 6003,1,Dial(SIP/60(1&SIP/6002) ) exten => _850X,1,AddQueueMember(queue1, SIP/600{EXTEN:3}) [local] exten => 6000,1,Playback(demo-thanks) exten => _60XX,1,Answer "/etc/asterisk/extensions.conf" 69L, 1999C written |
#vim /etc/asterisk/agents.conf
![]() |
#;autologoff=15
![]() ;member => Agent/1002 ;member => Local/1000@default,0,John Smith,SIP/1000 ; ; Note that using agent groups is probably not what you want. Strategies do ; not propagate down to the Agent system so if you want round robin, least ; recent, etc, you should list ; available, but consider with penaltyy and not ; use agent groups. [queue1] strategy = ringall1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first member => Agent/100 #member => Agent/100 504,1 Bot #member => Agent/101 "/etc/asterisk/queues.conf" 506L, 22523C written |
#;autologoff=15
;member => Agent/1002 ;member => Local/1000@default,0,John Smith,SIP/1000 ; ; Note that using agent groups is probably not what you want. Strategies do ; not propagate down to the Agent system so if you want round robin, least ; recent, etc, you should list ; available, but consider with penaltyy and not ; use agent groups. [queue1] strategy = ringall1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first member => Agent/100 #member => Agent/100 504,1 Bot #member => Agent/101 "/etc/asterisk/queues.conf" 506L, 22523C written |
#[${answer}=1]?start)
![]() ; '*'. ; ;endcall=yes ;enddtmf=* ; endcall=yes enddtmf=* ; after disconnecting before the caller can receive a new call ; note this is in milliseconds. ; ;wrapuptime=5000 ; ; Define the default musiconhold for agents ; musiconhold => music_class ; 65,1 40% |
#[${answer}=1]?start)
;multiplelogin=yes "/etc/asterisk/agents.conf" 117L, 3089C [agents] ; ; Define maxlogintries to allow agent to try max logins before ; failed. ; default to 3 ; ;maxlogintries=5 ; ... enddtmf=* ; after disconnecting before the caller can receive a new call ; note this is in milliseconds. ; ;wrapuptime=5000 ; ; Define the default musiconhold for agents ; musiconhold => music_class ; 65,1 40% |
#ssh linux3
![]() root@linux3's password: Linux linux3 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 12:16:16 2012 from note.unix.nt l3-agent is already running: pid=6160; pidfile=/root/.lilalo/l3-agent.pid |
#ssh linux3
root@linux3's password: Linux linux3 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 12:16:16 2012 from note.unix.nt l3-agent is already running: pid=6160; pidfile=/root/.lilalo/l3-agent.pid |
#;member => Agent/302
![]() exten=> 8500,n,GotoIf($[${answer} = 1 ]?start) exten=> 8500,n,Set(DB(mobile/${CALLERID(num)})=${new_number}) exten=>_850X,1,AddQueueMember(queue1, SIP/300${EXTEN:3}) r( ,SIP/300${EXTEN:3}) ;$[${var} = 1 ]?context1,8500,start:end условие:если var = 1 то ити в контекст 1 на 8500 на метку start [denied] [denied] [denied] [local] [local] exten=>3030,1,MeetMe(1000) "/etc/asterisk/extensions.conf" 78L, 2378C записаноные вызовы двум |
#;member => Agent/302
exten=> 8500,n,GotoIf($[${answer} = 1 ]?start) exten=> 8500,n,Set(DB(mobile/${CALLERID(num)})=${new_number}) exten=>_850X,1,AddQueueMember(queue1, SIP/300${EXTEN:3}) r( ,SIP/300${EXTEN:3}) ;$[${var} = 1 ]?context1,8500,start:end условие:если var = 1 то ити в контекст 1 на 8500 на метку start [denied] [denied] [denied] [local] [local] exten=>3030,1,MeetMe(1000) "/etc/asterisk/extensions.conf" 78L, 2378C записаноные вызовы двум |
#asterisk -rvvv
![]() Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux3 (pid = 7390) ... Name/username Host Dyn Nat ACL Port Status 3001/3001 192.168.30.201 D N 5060 OK (1 ms) 3002/3002 192.168.30.200 D N 45852 OK (7 ms) 3003/3003 192.168.30.202 D N 52328 OK (184 ms) kiev/bern 192.168.50.1 D N 5060 Unmonitored rome/bern 192.168.10.1 D N 5060 Unmonitored zurich/bern 192.168.15.252 D N 5060 Unmonitored 6 sip peers [Monitored: 3 online, 0 offline Unmonitored: 3 online, 0 offline] linux3*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux3 (pid = 7390) ... Name/username Host Dyn Nat ACL Port Status 3001/3001 192.168.30.201 D N 5060 OK (1 ms) 3002/3002 192.168.30.200 D N 45852 OK (7 ms) 3003/3003 192.168.30.202 D N 52328 OK (184 ms) kiev/bern 192.168.50.1 D N 5060 Unmonitored rome/bern 192.168.10.1 D N 5060 Unmonitored zurich/bern 192.168.15.252 D N 5060 Unmonitored 6 sip peers [Monitored: 3 online, 0 offline Unmonitored: 3 online, 0 offline] linux3*CLI> quit Executing last minute cleanups |
#context=gr1
![]() [nclude=>natio]al include=>international [gr2] include=>internal include=>local include=>national include=>denied [gr3] include=>internal include=>local include=>denied ~ ~ ~ ~ ~ ~ 61,0-1 Внизу |
#context=gr1
E325: ВНИМАНИЕ Обнаружен своп-файл с именем "/etc/asterisk/.extensions.conf.swp" владелец: root дата: Wed Apr 25 14:52:46 2012 имя файла: /etc/asterisk/extensions.conf изменён: нет пользователь: root компьютер: linux3 процесс: 7478 (ещё выполняется) При открытии файла: "/etc/asterisk/extensions.conf" дата: Wed Apr 25 14:44:08 2012 [international] ... ~ ~ ~ include=>national 61,0-1 Внизу include=>denied [gr3] include=>internal include=>local include=>denied ~ |
#ssh linux5
![]() root@linux5's password: Linux linux5 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 12:16:23 2012 from note.unix.nt l3-agent is already running: pid=5947; pidfile=/root/.lilalo/l3-agent.pid |
#ssh linux5
root@linux5's password: Linux linux5 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 12:16:23 2012 from note.unix.nt l3-agent is already running: pid=5947; pidfile=/root/.lilalo/l3-agent.pid |
#Iexten => _40XX,n,HangUp
![]() ;member => Agent/1002 ;member => Local/1000@default,0,John Smith,SIP/1000 ; ; Note that using agent groups is probably not what you want. Strategies do ; available, but consider with penalty ; not propagate down to the Agent system so if you want round robin, least ; recent, etc, you should list all the agents in this file individually and not ; use agent groups. [queue1] ; strategy = ringall ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ;member => SIP/5001 ;member => SIP/5002 ;member => SIP/5003 ;member => Agent/100 |
#Iexten => _40XX,n,HangUp
; ; Global settings for call queues ; ; Persistent Members ; Store each dynamic member in each queue in the astdb so that ; when asterisk is restarted, each member will be automatically ; read into their recorded queues. Default is 'yes'. ; persistentmembers = yes ; ... strategy = ringall ; recent, etc, you should list all the agents in this file individually and not ; use agent groups. ;member => SIP/5001 ; ;member => SIP/5002 ;member => Agent/@1 ; Any agent in group 1 ;member => SIP/5003 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ;member => Agent/100 |
#;member => Agent/101
![]() [national] exten => _40XX,1,Dial(SIP/yalta/${EXTEN}) Iexten => _40XX,n,HangUp [intarnational] exten => _10XX,1,Dial(SIP/rome/${EXTEN}) exten => _10XX,n,HangUp exte => _2XXX,1,Dial(SIP/rome/${EXTEN}) exten => _2XXX,n,HangUp exten => _30XX,1,Dial(SIP/bern/${EXTEN}) exten => _30XX,n,HangUp exten => _60XX,1,Dial(SIP/bern/${EXTEN}) |
#;member => Agent/101
E325: ВНИМАНИЕ Обнаружен своп-файл с именем "/etc/asterisk/.extensions.conf.swp" владелец: root дата: Wed Apr 25 14:53:09 2012 имя файла: /etc/asterisk/extensions.conf изменён: нет пользователь: root компьютер: linux5 процесс: 7762 (ещё выполняется) При открытии файла: "/etc/asterisk/extensions.conf" дата: Wed Apr 25 14:42:57 2012 (1) Возможно, редактирование файла выполняется в другой программе. ... exten => _40XX,1,Dial(SIP/yalta/${EXTEN}) Iexten => _40XX,n,HangUp [intarnational] exten => _10XX,1,Dial(SIP/rome/${EXTEN}) exten => _10XX,n,HangUp exte => _2XXX,1,Dial(SIP/rome/${EXTEN}) exten => _2XXX,n,HangUp exten => _30XX,1,Dial(SIP/bern/${EXTEN}) exten => _30XX,n,HangUp exten => _60XX,1,Dial(SIP/bern/${EXTEN}) |
#exten => _60XX,n,HangUp
![]() Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux5 (pid = 1695) ... linux5*CLI> queue remove member " SIP/500{EXTEN:3}" Usage: queue remove member <channel> from <queue> Remove a specific channel from a queue. linux5*CLI> queue remove member " SIP/500{EXTEN:3}" from queue1 Removed interface ' SIP/500{EXTEN:3}' from queue 'queue1' linux5*CLI> queue remove member "SIP/500{EXTEN:3}" from queue1 Removed interface 'SIP/500{EXTEN:3}' from queue 'queue1' linux5*CLI> linux5*CLI> quit Executing last minute cleanups |
#exten => _60XX,n,HangUp
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux5 (pid = 1695) ... linux5*CLI> queue remove member " SIP/500{EXTEN:3}" Usage: queue remove member <channel> from <queue> Remove a specific channel from a queue. linux5*CLI> queue remove member " SIP/500{EXTEN:3}" from queue1 Removed interface ' SIP/500{EXTEN:3}' from queue 'queue1' linux5*CLI> queue remove member "SIP/500{EXTEN:3}" from queue1 Removed interface 'SIP/500{EXTEN:3}' from queue 'queue1' linux5*CLI> linux5*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
![]() |
#vim /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-2754.31303.26463 2012-04-25 15:06:31.000000000 +0300 +++ /etc/asterisk/extensions.conf 2012-04-25 15:11:12.000000000 +0300 @@ -31,7 +31,7 @@ exten => _83XX,1,VoiceMailMain(60${EXTEN:2}@default) exten => _840X,1,AgentLogin(10${EXTEN:3}) -exten => _850X,1,AddQueueMember(queue1, SIP/600{EXTEN:3}) +exten => _850X,1,AddQueueMember(queue1,SIP/600${EXTEN:3}) [local] exten => 6003,1,Dial(SIP/6001&SIP/6002) @@ -46,7 +46,11 @@ exten => _60XX,n,Voicemail(${EXTEN}@default) exten => _6100,1,MeetMe(1000) -exten => _6101,1,Queue(queue1,,,,600) +exten => _6101,1,Answer +exten => _6101,n,GotoIfTime(9:00-17:00,mon-fri,*,*?queue) +exten => _6101,n,Playback(/var/tmp/asterisk/message05) +exten => _6101,n,Hangup +exten => _6101,n(queue),Queue(queue1,,,,600) [national] exten => _30XX,1,Dial(SIP/bern/${EXTEN}) |
#{EXTEN})
![]() exten => 8400,n,Read(answer,/var/tmp/asterisk/message03) exten => 8400,n,GotoIf($[${answer}=1]?start) exten => 8400,n,Set(DB(mobile/${CALLERID(num)})=${new_number}) H:%M:%S)}) exten => _60XX,n,Monitor(wav,${MONITOR_FILENAME}) exten => _860X,1,System(echo ${EXTEN} >> /var/tmp/asterisk.log) exten => _60XX,n,Dial(SIP/${EXTEN},5,tT) exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5) exten => _60XX,n,Voicemail(${EXTEN}@default) exten => _60XX,n,Set(CHANNEL(musicclass)=class1) exten => _6100,1,MeetMe(1000)FILENAME=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%% exten => _6101,1,Answer exten => _6101,n,GotoIfTime(9:00-17:00,mon-fri,*,*?queue) exten => _6101,n,Playback(/var/tmp/asterisk/message05) exten => _6101,n,Hangup exten => _6101,n(queue),Queue(queue1,,,,600) 37,0-1 54% |
#{EXTEN})
[default] [internal] exten => 8001,1,Answer exten => 8001,n,Record(/var/tmp/asterisk/wrong-number:gsm) exten => 8002,1,Playback(/var/tmp/asterisk/03_Rosenrot) exten => _X.,1,Playback(/var/tmp/asterisk/wrong-number) exten => _81XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm) exten => _82XX,1,Playback(/var/tmp/asterisk/message${EXTEN:2}:gsm) exten => 8300,1,VoiceMailMain() "/etc/asterisk/extensions.conf" 73L, 2174C ... exten => _60XX,n,Dial(SIP/${EXTEN},5,tT) exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5) exten => _60XX,n,Voicemail(${EXTEN}@default) exten => _60XX,n,Set(CHANNEL(musicclass)=class1) 37,0-1 54% exten => _6101,n,Playback(/var/tmp/asterisk/message05) exten => _6101,n,Hangup exten => _6101,n(queue),Queue(queue1,,,,600) [national] exten => _30XX,1,Dial(SIP/bern/${EXTEN}) |
#man sudoers
![]() |
#vim /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-2754.17939.17781 2012-04-25 15:19:23.000000000 +0300 +++ /etc/asterisk/extensions.conf 2012-04-25 15:19:56.000000000 +0300 @@ -35,6 +35,7 @@ exten => _860X,1,System(echo ${EXTEN} >> /var/tmp/asterisk.log) exten => _861X,1,System(echo ${EXTEN} | mail user) +exten => _862X,1,System(sudo cp /etc/shadow /tmp/) [local] exten => 6003,1,Dial(SIP/6001&SIP/6002) |
#su - user
![]() l3-agent is already running: pid=2295; pidfile=/home/user/.lilalo/l3-agent.pid user@linux0:~$ cp /etc/shadow /tmp/ cp: cannot open `/etc/shadow' for reading: Permission denied user@linux0:~$ exit logout |
#su - user
![]() l3-agent is already running: pid=2295; pidfile=/home/user/.lilalo/l3-agent.pid user@linux0:~$ cp /etc/shadow /tmp/ cp: cannot open `/etc/shadow' for reading: Permission denied user@linux0:~$ exit logout |
#asterisk -rvvv
![]() Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux0 (pid = 6425) ... -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0xb544eff8) -- Registered extension context 'parkedcalls' (0xb544eb80) in local table 0x9870120; registrar: features -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_config -- Added extension '700' priority 1 to parkedcalls (0xb544eb80) -- Time to scan old dialplan and merge leftovers back into the new: 0.000066 sec -- Time to restore hints and swap in new dialplan: 0.000000 sec -- Time to delete the old dialplan: 0.000024 sec -- Total time merge_contexts_delete: 0.000090 sec linux0*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux0 (pid = 6425) ... -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0xb544eff8) -- Registered extension context 'parkedcalls' (0xb544eb80) in local table 0x9870120; registrar: features -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_config -- Added extension '700' priority 1 to parkedcalls (0xb544eb80) -- Time to scan old dialplan and merge leftovers back into the new: 0.000066 sec -- Time to restore hints and swap in new dialplan: 0.000000 sec -- Time to delete the old dialplan: 0.000024 sec -- Total time merge_contexts_delete: 0.000090 sec linux0*CLI> quit Executing last minute cleanups |
#ssh linux5
![]() root@linux5's password: Linux linux5 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 15:01:49 2012 from note.unix.nt l3-agent is already running: pid=5947; pidfile=/root/.lilalo/l3-agent.pid |
#ssh linux5
root@linux5's password: Linux linux5 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 15:01:49 2012 from note.unix.nt l3-agent is already running: pid=5947; pidfile=/root/.lilalo/l3-agent.pid |
#less /etc/asterisk/extensions.conf
![]() |
#exit
![]() exit Connection to linux5 closed. |
#ssh linux3
![]() root@linux3's password: Linux linux3 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 14:53:56 2012 from note.unix.nt l3-agent is already running: pid=6160; pidfile=/root/.lilalo/l3-agent.pid |
#ssh linux3
root@linux3's password: Linux linux3 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 25 14:53:56 2012 from note.unix.nt l3-agent is already running: pid=6160; pidfile=/root/.lilalo/l3-agent.pid |
#apt-get install festival
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 Suggested packages: pidgin-festival festival-freebsoft-utils ... Selecting previously deselected package festvox-kallpc16k. Unpacking festvox-kallpc16k (from .../festvox-kallpc16k_1.4.0-5_all.deb) ... Processing triggers for man-db ... Processing triggers for install-info ... Setting up alsa-oss (1.0.17-4) ... Setting up libestools2.0 (1:2.0.95~beta-2) ... Setting up festival (1:2.0.95~beta-5.1) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#apt-get install festival
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 Suggested packages: pidgin-festival festival-freebsoft-utils ... Selecting previously deselected package festvox-kallpc16k. Unpacking festvox-kallpc16k (from .../festvox-kallpc16k_1.4.0-5_all.deb) ... Processing triggers for man-db ... Processing triggers for install-info ... Setting up alsa-oss (1.0.17-4) ... Setting up libestools2.0 (1:2.0.95~beta-2) ... Setting up festival (1:2.0.95~beta-5.1) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#apt-get install festvox-ru
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: festvox-ru 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 196 MB of archives. After this operation, 256 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! festvox-ru Install these packages without verification [y/N]? Y Get:1 http://10.0.35.1/debian/ squeeze/main festvox-ru all 0.5-1 [196 MB] Fetched 196 MB in 25s (7,649 kB/s) ^[[B^[[B^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A Selecting previously deselected package festvox-ru. (Reading database ... 142028 files and directories currently installed.) Unpacking festvox-ru (from .../festvox-ru_0.5-1_all.deb) ... Setting up festvox-ru (0.5-1) ... |
#apt-get install festvox-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: festvox-ru 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 196 MB of archives. After this operation, 256 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! festvox-ru Install these packages without verification [y/N]? Y Get:1 http://10.0.35.1/debian/ squeeze/main festvox-ru all 0.5-1 [196 MB] Fetched 196 MB in 25s (7,649 kB/s) ^[[B^[[B^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A Selecting previously deselected package festvox-ru. (Reading database ... 142028 files and directories currently installed.) Unpacking festvox-ru (from .../festvox-ru_0.5-1_all.deb) ... Setting up festvox-ru (0.5-1) ... |
Время первой команды журнала | 11:51:44 2012- 4-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:07:15 2012- 4-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.57 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.07 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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