/l3/users/sergs/asterisk/linux5.unix.nt/root :1 :2 :3 :4 :5 :6 |
|
#vim extensions.conf
--- /tmp/l3-saved-2599.7009.15786 2010-05-27 16:58:48.000000000 +0300 +++ extensions.conf 2010-05-27 16:58:59.000000000 +0300 @@ -76,7 +76,7 @@ exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) -exten => 823,n,Record(/var/tmp/do-svidaniya-timeout:gsm) +exten => 823,1,Record(/var/tmp/do-svidaniya-timeout:gsm) [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
#vim extensions.conf
--- /tmp/l3-saved-2599.19030.8534 2010-05-27 17:04:16.000000000 +0300 +++ extensions.conf 2010-05-27 17:05:03.000000000 +0300 @@ -73,6 +73,7 @@ exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') +exten => 810,1,Goto(Ssubmenu,s) exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) |
#vim extensions.conf
--- /tmp/l3-saved-2599.30006.19418 2010-05-27 17:05:04.000000000 +0300 +++ extensions.conf 2010-05-27 17:05:14.000000000 +0300 @@ -73,7 +73,7 @@ exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') -exten => 810,1,Goto(Ssubmenu,s) +exten => 810,1,Goto(Submenu,s) exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) |
#vim extensions.conf
--- /tmp/l3-saved-2599.4932.12525 2010-05-27 17:05:35.000000000 +0300 +++ extensions.conf 2010-05-27 17:06:02.000000000 +0300 @@ -73,7 +73,7 @@ exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') -exten => 810,1,Goto(Submenu,s) +exten => 810,1,Goto(Submenu,start) exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) |
#vim extensions.conf
--- /tmp/l3-saved-2599.3314.18728 2010-05-27 17:06:28.000000000 +0300 +++ extensions.conf 2010-05-27 17:08:11.000000000 +0300 @@ -3,7 +3,7 @@ [submenu1] ; Playback => Background ; Wait => WaitExten -exten => s(start),1,Playback(/var/tmp/submenu) +exten => s,1(start),Playback(/var/tmp/submenu) exten => 1,1,Dial(SIP/dnepr/701) exten => 2,1,Dial(SIP/kiev/201) exten => 3,1,Dial(SIP/odessa/301) @@ -73,7 +73,7 @@ exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') -exten => 810,1,Goto(Submenu,start) +exten => 810,1,Goto(submenu1,s,1) exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) |
#vim extensions.conf
|
#exten => 0,1,
exten => 822,1,Record(/var/tmp/vybor:gsm) exten => 823,1,Record(/var/tmp/do-svidaniya-timeout:gsm) [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2XXX,1,Macro(caller,${CALLERID(number)},kiev) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) exten => _3XXX,1,Macro(caller,${CALLERID(number)},odessa) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _4XXX,1,Macro(caller,$CALLERID(number)},kharkov) exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) ... exten => s,n(busy),Playback(/var/tmp/busy) exten => s,n(end),Hangup [macro-test] exten => s,1,Answer exten => s,n,SayNumber(${ARG1}) exten => s,n,SayNumber(${ARG2}) exten => s,n,SayNumber(${ARG3}) exten => s,n,SayNumber(${ARG4}) exten => s,n,SayNumber(${ARG5}) -- INSERT -- |
#asterisk -vvvr
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 ========================================================================= ... Name/username Host Dyn Nat ACL Port Status kharkov/crimea 192.168.4.1 D 5060 Unmonitored odessa/crimea 192.168.3.1 D 5060 Unmonitored kiev/crimea 192.168.2.1 D 5060 Unmonitored dnepr/crimea 192.168.1.1 D 5060 Unmonitored 502/502 192.168.5.10 D 39468 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 0 offline] linux5*CLI> quit Executing last minute cleanups |
#dig insureyourfuturenow.org
; <<>> DiG 9.5.1-P3 <<>> insureyourfuturenow.org ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45406 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;insureyourfuturenow.org. IN A ;; ANSWER SECTION: insureyourfuturenow.org. 3576 IN A 67.199.126.164 ;; AUTHORITY SECTION: insureyourfuturenow.org. 86375 IN NS ns60.worldnic.com. insureyourfuturenow.org. 86375 IN NS ns59.worldnic.com. ;; ADDITIONAL SECTION: ns59.worldnic.com. 7176 IN A 205.178.190.30 ns60.worldnic.com. 7176 IN A 206.188.198.30 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu May 27 17:19:04 2010 ;; MSG SIZE rcvd: 139 |
#nslookup insureyourfuturenow.org ns59.worldnic.com.
Server: ns59.worldnic.com. Address: 205.178.190.30#53 Name: insureyourfuturenow.org Address: 67.199.126.164 |
#nslookup insureyourfuturenow.org ns60.worldnic.com.
Server: ns60.worldnic.com. Address: 206.188.198.30#53 Name: insureyourfuturenow.org Address: 67.199.126.164 |
#nslookup insureyourfuturenow.org ns60.worldnic.com.
Server: ns60.worldnic.com. Address: 206.188.198.30#53 Name: insureyourfuturenow.org Address: 173.203.147.67 |
#vim extensions.conf
--- /tmp/l3-saved-2599.18424.18512 2010-05-27 17:20:36.000000000 +0300 +++ extensions.conf 2010-05-27 17:41:46.000000000 +0300 @@ -4,6 +4,7 @@ ; Playback => Background ; Wait => WaitExten exten => s,1,Background(/var/tmp/submenu) +exten => s,n,WaitExten(5) exten => 1,1,Dial(SIP/dnepr/701) exten => 2,1,Dial(SIP/kiev/201) exten => 3,1,Dial(SIP/odessa/301) @@ -16,6 +17,15 @@ exten => t,n,Playback(/var/tmp/do-svidaniya-timeout) exten => t,n,Hangup +[command] +exten => s,1,Background(/var/tmp/password) +exten => s,n,WaitExten(10) +exten => _XXXXXX,1,GotoIf($[${EXTEN}=${DB(password/master)}]?welcome) +exten => _XXXXXX,n(goaway),Playback(/var/tmp/goaway-stranger) +exten => _XXXXXX,n,Hangup +exten => _XXXXXX,n(welcome),Playback(/var/tmp/welcome-master) +exten => _XXXXXX,n,System(date >> /tmp/master-was-here) +exten => _XXXXXX,n,Hangup @@ -74,6 +84,7 @@ exten => 804,n,MeetMe(8889,DM) exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') exten => 810,1,Goto(submenu1,s,1) +exten => 811,1,System(touch /var/tmp/file) exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) |
#asterisk -vvvr
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 -- Reloading module 'cdr_custom.so' (Customizable Comma Separated Values CDR Backend) linux5*CLI> linux5*CLI> -- Executing [811@gr3:1] System("SIP/501-081cf588", "touch /var/tmp/file") in new stack == Auto fallthrough, channel 'SIP/501-081cf588' status is 'UNKNOWN' [May 27 17:37:55] NOTICE[2319]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 [May 27 17:40:55] NOTICE[2319]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#nslookup insureyourfuturenow.org ns59.worldnic.com.
Server: ns59.worldnic.com. Address: 205.178.190.30#53 Name: insureyourfuturenow.org Address: 173.203.147.67 |
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 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: Fri May 28 09:24:03 2010 from 192.168.15.31 l3-agent is already running: pid=4496; pidfile=/root/.lilalo/l3-agent.pid |
#!aste
asterisk -vvvr 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 module 'chan_mgcp.so' (Media Gateway Control Protocol (MGCP)) -- Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System)) Reloading MGCP == Parsing '/etc/asterisk/voicemail.conf': Found == Parsing '/etc/asterisk/mgcp.conf': Found == MGCP Listening on 0.0.0.0:2727 == Using TOS bits 0 == Parsing '/etc/asterisk/users.conf': [May 28 17:46:37] WARNING[2319]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service crimea@192.168.4.1, giving up linux5*CLI> quit Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-5934.20511.12414 2010-05-28 09:51:10.000000000 +0300 +++ extensions.conf 2010-05-28 09:53:45.000000000 +0300 @@ -72,6 +72,7 @@ exten => 800,1, Answer exten => 800,n, Wait(1) exten => 800,n, Playback(/tmp/music) +exten => 510,1,Dial(SIP/501&SIP/502) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},1) |
#vim extensions.conf
--- /tmp/l3-saved-5934.1674.17182 2010-05-28 09:53:50.000000000 +0300 +++ extensions.conf 2010-05-28 10:03:55.000000000 +0300 @@ -86,6 +86,7 @@ exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') exten => 810,1,Goto(submenu1,s,1) exten => 811,1,System(touch /var/tmp/file) +exten => 812,1,Queue(q1) exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) |
#vim queues.conf
--- /tmp/l3-saved-5934.28006.9855 2010-05-28 10:03:59.000000000 +0300 +++ queues.conf 2010-05-28 10:06:20.000000000 +0300 @@ -298,6 +298,9 @@ ;member => Zap/3,10,Bob Johnson ;member => Agent/1001 ;member => Agent/1002 +[q1] +member => sip/501 +member => sip/502 ; ; Note that using agent groups is probably not what you want. Strategies do |
#vim extensions.conf
--- /tmp/l3-saved-5934.24860.28997 2010-05-28 10:06:32.000000000 +0300 +++ extensions.conf 2010-05-28 10:29:49.000000000 +0300 @@ -38,6 +38,8 @@ [macro-incoming] exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) +exten => s,n,Set(CALLFILENAME=${MACRO_EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) +exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,Dial(SIP/${ARG1},15,m) exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) ;exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) @@ -83,7 +85,7 @@ exten => 803,1,VoicemailMain() exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) -exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') +exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running none killed kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') exten => 810,1,Goto(submenu1,s,1) exten => 811,1,System(touch /var/tmp/file) exten => 812,1,Queue(q1) |
#ls -al
total 36 drwxr-x--- 9 asterisk asterisk 4096 2010-05-26 09:49 . drwxr-xr-x 8 root root 4096 2010-05-27 12:01 .. drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 dictate drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 meetme drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 monitor drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 outgoing drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 system drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 tmp drwxr-x--- 3 asterisk asterisk 4096 2010-05-27 12:26 voicemail |
#cd monitor/
|
#ls -al
total 8 drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 . drwxr-x--- 9 asterisk asterisk 4096 2010-05-26 09:49 .. |
#ls -al
total 188 drwxr-x--- 2 asterisk asterisk 4096 2010-05-28 10:28 . drwxr-x--- 9 asterisk asterisk 4096 2010-05-26 09:49 .. -rw-rw---- 1 asterisk asterisk 177964 2010-05-28 10:28 -2010-05-28-10:28:41.wav |
#ps aux | grep l3-
root 2430 2.8 0.3 15580 12372 ? Ss May27 33:04 l3-agent root 6438 0.0 0.0 3116 720 pts/3 R+ 10:35 0:00 grep l3- |
#kill -9 2430
|
#l3-agent
Removing stale pidfile |
#ps
PID TTY TIME CMD 6024 pts/3 00:00:00 bash 6462 pts/3 00:00:00 ps |
#!ss
ssh 192.168.4.1 root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 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: Fri May 28 10:35:40 2010 from 192.168.4.204 l3-agent is already running: pid=8968; pidfile=/root/.lilalo/l3-agent.pid |
#ps aux | grep l3
root 6454 5.7 0.3 12604 9372 ? Ss 10:35 0:18 l3-agent root 6564 0.0 0.0 3116 724 pts/5 S+ 10:40 0:00 grep l3 |
#ls -al
total 357 drwxr-xr-x 3 asterisk asterisk 4096 2010-05-28 12:20 . drwxr-xr-x 72 root root 5120 2010-05-27 16:17 .. -rw-r----- 1 asterisk asterisk 140 2009-12-14 21:08 adsi.conf -rw-r----- 1 asterisk asterisk 840 2009-12-14 21:08 adtranvofr.conf -rw-r----- 1 asterisk asterisk 2724 2009-12-14 21:08 agents.conf -rw-r----- 1 asterisk asterisk 2227 2009-12-14 21:08 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 2675 2009-12-14 21:08 alsa.conf -rw-r----- 1 asterisk asterisk 767 2009-12-14 21:08 amd.conf -rw-r----- 1 asterisk asterisk 3260 2009-12-14 21:08 asterisk.adsi ... -rw-r----- 1 asterisk asterisk 4044 2009-12-14 21:08 skinny.conf -rw-r----- 1 asterisk asterisk 6691 2009-12-14 21:08 sla.conf -rw-r----- 1 asterisk asterisk 2665 2009-12-14 21:08 smdi.conf -rw-r----- 1 asterisk asterisk 1384 2009-12-14 21:08 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 598 2009-12-14 21:08 udptl.conf -rw-r----- 1 asterisk asterisk 1804 2009-12-14 21:08 users.conf -rw-r----- 1 asterisk asterisk 11729 2010-05-27 12:29 voicemail.conf -rw-r----- 1 asterisk asterisk 2772 2009-12-14 21:08 vpb.conf -rw-r----- 1 asterisk asterisk 393 2009-12-14 21:08 watchdog.conf -rw-r----- 1 asterisk asterisk 24193 2009-12-14 21:08 zapata.conf |
#ls -al | more
|
#ls -al --sort=t
total 357 -rw-r--r-- 1 root root 12288 2010-05-28 12:22 .sip.conf.swp drwxr-xr-x 3 asterisk asterisk 4096 2010-05-28 12:22 . -rw-r--r-- 1 root root 1342 2010-05-28 12:22 sip.conf -rw-r----- 1 asterisk asterisk 5299 2010-05-28 12:17 features.conf -rw-r--r-- 1 root root 4468 2010-05-28 12:12 extensions.conf -rw-r--r-- 1 root root 16384 2010-05-28 12:11 .extensions.conf.swo -rw-r----- 1 asterisk asterisk 919 2010-05-28 11:58 meetme.conf -rw-r----- 1 asterisk asterisk 11793 2010-05-28 10:54 queues.conf drwxr-xr-x 72 root root 5120 2010-05-27 16:17 .. ... -rw-r----- 1 asterisk asterisk 2665 2009-12-14 21:08 smdi.conf -rw-r----- 1 asterisk asterisk 1384 2009-12-14 21:08 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 598 2009-12-14 21:08 udptl.conf -rw-r----- 1 asterisk asterisk 1804 2009-12-14 21:08 users.conf -rw-r----- 1 asterisk asterisk 2772 2009-12-14 21:08 vpb.conf -rw-r----- 1 asterisk asterisk 393 2009-12-14 21:08 watchdog.conf -rw-r----- 1 asterisk asterisk 24193 2009-12-14 21:08 zapata.conf -rw-r----- 1 asterisk asterisk 247 2009-12-14 20:58 asterisk.conf -rw-r----- 1 asterisk asterisk 363 2009-12-14 20:58 manager.conf -rw-r----- 1 asterisk asterisk 2062 2009-12-14 20:58 modules.conf |
#vim extensions.conf
|
#less queues.conf
|
#exten => _XXXXXX,n(goaway),Playback(/var/tmp/goaway-stranger)
;context = qoutcon ; ; How long do we let the phone ring before we consider this a timeout... ; ;timeout = 15 ; ; to enable recording of queue member conversations, app_queue will ; now use the new MixMonitor application instead of Monitor so ; the concept of "joining/mixing" the in/out files now goes away ; queue. An optional penalty may be specified after a comma, such that ... member => sip/501 member => sip/502 ; ; 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 all the agents in this file individually and not ; use agent groups. [q1 ;strategy = roundrobin "queues.conf" 315L, 11792C written |
#vim meetme.conf
--- /tmp/l3-saved-5934.3532.22495 2010-05-28 12:25:01.000000000 +0300 +++ meetme.conf 2010-05-28 12:25:42.000000000 +0300 @@ -24,3 +24,4 @@ ; ;conf => 1234 ;conf => 2345,9938 +conf => 111 |
#less meetme.conf
|
#vim extensions.conf
--- /tmp/l3-saved-5934.8482.16591 2010-05-28 12:26:01.000000000 +0300 +++ extensions.conf 2010-05-28 12:33:20.000000000 +0300 @@ -1,5 +1,18 @@ [menu] +exten => s,1,Background(/var/tmp/menu) +exten => s,n,WaitExten(2) +exten => 1,1,Goto(submenu,s,1) +exten => 9,1,Goto(start) +exten => 0,1,Playback(/var/tmp/buye) +exten => i,1,Background(/var/tmp/wrong) +exten => i,n,Goto(start) +exten => t,1,WaitExten(5) +exten => t,n,Playback(/var/tmp/vybor) +exten => t,n,WaitExten(2) +exten => t,n,Hangup + + [submenu1] ; Playback => Background ; Wait => WaitExten @@ -10,6 +23,7 @@ exten => 3,1,Dial(SIP/odessa/301) exten => 4,1,Dial(SIP/kharkov/501) exten => 0,1,Goto(s,1) +exten => 9,1,Goto(menu,s,1) exten => i,1,Background(/var/tmp/wrong) exten => i,n,Goto(s,1) exten => t,1,Background(/var/tmp/vybor) @@ -24,8 +38,7 @@ exten => _XXXXXX,n(goaway),Playback(/var/tmp/goaway-stranger) exten => _XXXXXX,n,Hangup exten => _XXXXXX,n(welcome),Playback(/var/tmp/welcome-master) -exten => _XXXXXX,n,System(date >> /tmp/master-was-here) -exten => _XXXXXX,n,Hangup +exten => _XXXXXX,n,System('date >> /tmp/master-was-here') @@ -71,28 +84,49 @@ [default] [local] +include => parkedcalls + exten => 800,1, Answer exten => 800,n, Wait(1) exten => 800,n, Playback(/tmp/music) + exten => 510,1,Dial(SIP/501&SIP/502) ;exten => _5XX,1,Dial(SIP/${EXTEN}) + exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},1) + ;exten => 801,1,Answer ;exten => 801,n,Wait(1) ;exten => 801,n,Record(/var/tmp/busy:gsm,2) + exten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) + exten => 803,1,VoicemailMain() + exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) + exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running none killed kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') -exten => 810,1,Goto(submenu1,s,1) + +exten => 810,1,Goto(menu,s,1) exten => 811,1,System(touch /var/tmp/file) exten => 812,1,Queue(q1) +exten => 813,1,Dial(SIP/401&SIP/402) +exten => 814,1,System(logger "It work's") +exten => 815,1,Goto(command,s,1) + exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) exten => 823,1,Record(/var/tmp/do-svidaniya-timeout:gsm) +exten => 824,1,Record(/var/tmp/menu:gsm) +exten => 825,1,Record(/var/tmp/goaway-stranger:gsm) +exten => 826,1,Record(/var/tmp/welcome-master:gsm) +exten => 827,1,Record(/var/tmp/bye:gsm) + +exten => 830,1,Dial(SIP/kiev/201&SIP/odessa/301) + [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
#less extensions.conf
|
#vim features.conf
--- /tmp/l3-saved-5934.15174.1756 2010-05-28 12:33:41.000000000 +0300 +++ features.conf 2010-05-28 12:34:57.000000000 +0300 @@ -3,8 +3,8 @@ ; [general] -parkext => 700 ; What extension to dial to park -parkpos => 701-720 ; What extensions to park calls on. These needs to be +parkext => 900 ; What extension to dial to park +parkpos => 901-920 ; What extensions to park calls on. These needs to be ; numeric, as Asterisk starts from the start position ; and increments with one for the next parked call. context => parkedcalls ; Which context parked calls are in |
#less features.conf
|
#vim sip.conf
--- /tmp/l3-saved-5934.29598.19726 2010-05-28 12:35:27.000000000 +0300 +++ sip.conf 2010-05-28 12:37:00.000000000 +0300 @@ -13,6 +13,9 @@ secret=password host=dynamic callerid="Crimea Phone" +pickupgroup=10 +callgroup=10 + [502] context=gr1 @@ -20,6 +23,9 @@ secret=password host=dynamic callerid="Crimea SoftPhone" +pickupgroup=10 +callgroup=10 + [dnepr] type=friend |
#ls -al --sort=t | less
|
#ssh 192.168.3.1
root@192.168.3.1's password: Permission denied, please try again. root@192.168.3.1's password: |
#cd /etc/asterisk/
|
#ssh 192.168.2.1
The authenticity of host '192.168.2.1 (192.168.2.1)' can't be established. RSA key fingerprint is 89:9b:17:f1:78:ed:6e:d6:27:b5:d4:19:02:f1:fa:e9. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.2.1' (RSA) to the list of known hosts. root@192.168.2.1's password: Linux linux2 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 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: Thu May 27 21:26:30 2010 from 192.168.2.2 l3-agent is already running: pid=3907; pidfile=/root/.lilalo/l3-agent.pid |
#ls -al --sort=t | less
|
#less extensions.conf
|
#less sip.conf
|
#exit
Connection to 192.168.2.1 closed. |
#ssh 192.168.4.1
|
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) 03:00.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) |
#less extensions.conf
|
#screen -x
|
#ps aux | grep tty1
root 4121 0.0 0.0 2624 1196 tty1 Ss+ May27 0:00 /bin/login -- root 5748 0.0 0.0 3016 548 tty1 S+ 09:42 0:00 script -f -c bash -q /root/.lilalo//1202425624942015377-1275028923.script root 5785 0.0 0.0 3020 364 tty1 S+ 09:42 0:05 script -f -c bash -q /root/.lilalo//1202425624942015377-1275028923.script root 7379 0.0 0.0 3116 716 pts/3 R+ 14:11 0:00 grep tty1 |
#kill 4121
|
#kill 7390
|
#exit
Connection to 192.168.4.1 closed. |
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 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: Fri May 28 16:17:53 2010 from 192.168.1.10 l3-agent is already running: pid=2421; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 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: Fri May 28 14:19:16 2010 from 192.168.2.1 l3-agent is already running: pid=2472; pidfile=/root/.lilalo/l3-agent.pid |
#w
14:19:43 up 44 min, 8 users, load average: 1.17, 0.78, 0.34 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 192.168.3.10 13:37 1.00s 0.90s 0.00s script -f -c ba root pts/2 192.168.4.204 13:39 34:34 0.00s 0.00s script -f -c ba root pts/4 192.168.4.204 13:39 1:47 0.00s 0.00s script -f -c ba root pts/6 192.168.4.204 14:07 1.00s 0.90s 0.00s script -f -c ba root pts/8 192.168.1.10 14:10 13.00s 0.90s 0.00s script -f -c ba root pts/10 192.168.2.1 14:19 27.00s 0.00s 0.00s script -f -c ba root pts/12 192.168.5.1 14:19 0.00s 0.00s 0.00s script -f -c ba root pts/16 192.168.15.31 14:13 1.00s 0.52s 0.00s script -f -c ba |
#screen -x
|
#w
17:46:59 up 1 day, 2:15, 2 users, load average: 0.35, 0.27, 0.34 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 14:19 1:18m 2.72s 0.00s /bin/login -- root tty5 - 14:11 0.00s 24.18s 0.00s /bin/login -- |
#vlock
vlock vlock-main |
#vlock -a
vlock: this terminal is not a virtual console |
#vlock
This TTY is now locked. Please press [ENTER] to unlock. root's Password: |
#vi /tmp/outcall.call
--- /dev/null 2010-05-27 15:31:34.502280912 +0300 +++ /tmp/outcall.call 2010-05-29 11:02:43.000000000 +0300 @@ -0,0 +1,4 @@ +Channel: Sip/701 +Data:/var/tmp/vybor +Application: Playback + |
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 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: Sat May 29 10:37:40 2010 from 192.168.1.1 l3-agent is already running: pid=2371; pidfile=/root/.lilalo/l3-agent.pid |
#!aste
asterisk -vvvr 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/mgcp.conf': Found == MGCP Listening on 0.0.0.0:2727 == Using TOS bits 0 == Parsing '/etc/asterisk/users.conf': linux5*CLI> -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#cd /etc/asterisk/
|
#ls -al --sort=t
total 332 drwxr-xr-x 3 asterisk asterisk 4096 2010-05-29 10:49 . -rw-r--r-- 1 root root 991 2010-05-29 10:49 extensions.conf -rw-r----- 1 asterisk asterisk 24252 2010-05-29 10:13 zapata.conf drwxr-xr-x 72 root root 5120 2010-05-29 10:05 .. -rw-r--r-- 1 root root 230 2010-05-28 16:51 sip.conf -rw-r--r-- 1 root root 465 2010-05-28 16:16 zapata-channels.conf -rw-r--r-- 1 root root 459 2010-05-28 16:02 zapata-channels.conf.bak -rw-r--r-- 1 root root 4468 2010-05-28 14:17 extensions.conf.SAVE -rw-r--r-- 1 root root 1342 2010-05-28 12:22 sip.conf.SAVE ... -rw-r----- 1 asterisk asterisk 6691 2009-12-14 21:08 sla.conf -rw-r----- 1 asterisk asterisk 2665 2009-12-14 21:08 smdi.conf -rw-r----- 1 asterisk asterisk 1384 2009-12-14 21:08 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 598 2009-12-14 21:08 udptl.conf -rw-r----- 1 asterisk asterisk 1804 2009-12-14 21:08 users.conf -rw-r----- 1 asterisk asterisk 2772 2009-12-14 21:08 vpb.conf -rw-r----- 1 asterisk asterisk 393 2009-12-14 21:08 watchdog.conf -rw-r----- 1 asterisk asterisk 247 2009-12-14 20:58 asterisk.conf -rw-r----- 1 asterisk asterisk 363 2009-12-14 20:58 manager.conf -rw-r----- 1 asterisk asterisk 2062 2009-12-14 20:58 modules.conf |
#ls -al --sort=t | more
|
#less zapata.conf
|
#less extensions.conf
|
Время первой команды журнала | 15:57:12 2010- 5-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:50:37 2010- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.93 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.57 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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