/l3/users/sergs/asterisk/linux5.unix.nt/root :1 :2 :3 :4 :5 :6 |
|
#cat extensions.conf
[macro-caller] exten => s,1,Set(CALLERID(number)=5${ARG1}) ;exten => s,n,GotoIf($[${ARG1}=4401]?end) ;exten => s,n,GotoIf($[BLACKLIST()=1]?end) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) exten => s,n(end),Hangup [macro-incoming] ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1}) ... [gr2] include => local include => corp [gr3] include => local include => corp include => world [gr4] include => local include => world |
#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 ========================================================================= ... -- SIP/odessa-081e8a18 is making progress passing it to SIP/502-b5d05de8 -- SIP/odessa-081e8a18 is ringing -- Got SIP response 486 "Busy Here" back from 192.168.3.1 -- SIP/odessa-081e8a18 is busy == Everyone is busy/congested at this time (1:1/0/0) -- Executing [s@macro-incoming:4] Hangup("SIP/502-b5d05de8", "") in new stack == Spawn extension (macro-incoming, s, 4) exited non-zero on 'SIP/502-b5d05de8' in macro 'incoming' == Spawn extension (macro-incoming, s, 4) exited non-zero on 'SIP/502-b5d05de8' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.15503.9398 2010-05-26 16:30:14.000000000 +0300 +++ extensions.conf 2010-05-26 16:30:41.000000000 +0300 @@ -9,7 +9,8 @@ ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1},5) -exten => s,n,Dial(SIP/odessa/380504971180) +;exten => s,n,Dial(SIP/odessa/380504971180) +exten => s,n,Dial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})}) exten => s,n(end),Hangup [default] |
#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 ========================================================================= ... -- Executing [s@macro-incoming:3] Dial("SIP/502-b5d0b900", "SIP/odessa/") in new stack -- Called odessa/ -- SIP/odessa-081e8f98 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Executing [s@macro-incoming:4] Hangup("SIP/502-b5d0b900", "") in new stack == Spawn extension (macro-incoming, s, 4) exited non-zero on 'SIP/502-b5d0b900' in macro 'incoming' == Spawn extension (macro-incoming, s, 4) exited non-zero on 'SIP/502-b5d0b900' [May 26 16:33:41] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.9831.13398 2010-05-26 16:34:44.000000000 +0300 +++ extensions.conf 2010-05-26 16:35:32.000000000 +0300 @@ -9,6 +9,7 @@ ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1},5) +exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) ;exten => s,n,Dial(SIP/odessa/380504971180) exten => s,n,Dial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})}) exten => s,n(end),Hangup |
#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 ========================================================================= ... -- Executing [s@macro-incoming:3] GotoIf("SIP/crimea-b5d05de8", "0?end") in new stack -- Executing [s@macro-incoming:4] Dial("SIP/crimea-b5d05de8", "SIP/odessa/502") in new stack [May 26 16:38:23] ERROR[16428]: chan_sip.c:3269 update_call_counter: Call to peer 'odessa' rejected due to usage limit of 1 -- Couldn't call odessa/502 == Everyone is busy/congested at this time (0:0/0/0) -- Executing [s@macro-incoming:5] Hangup("SIP/crimea-b5d05de8", "") in new stack == Spawn extension (macro-incoming, s, 5) exited non-zero on 'SIP/crimea-b5d05de8' in macro 'incoming' == Spawn extension (macro-incoming, s, 5) exited non-zero on 'SIP/crimea-b5d05de8' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.23886.31289 2010-05-26 16:38:51.000000000 +0300 +++ extensions.conf 2010-05-26 16:40:50.000000000 +0300 @@ -11,7 +11,7 @@ exten => s,n,Dial(SIP/${ARG1},5) exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) ;exten => s,n,Dial(SIP/odessa/380504971180) -exten => s,n,Dial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})}) +exten => s,n,Dial(SIP/${DB(mobile/${MACRO_EXTEN})}) exten => s,n(end),Hangup [default] |
#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 ========================================================================= ... -- Executing [s@macro-incoming:5] Hangup("SIP/501-b5d0b900", "") in new stack == Spawn extension (macro-incoming, s, 5) exited non-zero on 'SIP/501-b5d0b900' in macro 'incoming' == Spawn extension (macro-incoming, s, 5) exited non-zero on 'SIP/501-b5d0b900' -- Executing [401@gr3:1] Dial("SIP/501-b5d0a370", "SIP/kharkov/401") in new stack -- Called kharkov/401 -- SIP/kharkov-081e56e8 is ringing == Spawn extension (gr3, 401, 1) exited non-zero on 'SIP/501-b5d0a370' [May 26 16:45:42] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.4832.28278 2010-05-26 16:46:27.000000000 +0300 +++ extensions.conf 2010-05-26 16:53:13.000000000 +0300 @@ -11,7 +11,8 @@ exten => s,n,Dial(SIP/${ARG1},5) exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) ;exten => s,n,Dial(SIP/odessa/380504971180) -exten => s,n,Dial(SIP/${DB(mobile/${MACRO_EXTEN})}) +;exten => s,n,Dial(SIP/${DB(mobile/${MACRO_EXTEN})}) +exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) exten => s,n(end),Hangup [default] |
#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 ========================================================================= ... [May 26 17:06:43] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> database delete 501 No such command 'database delete mobile 501' (type 'help database delete mobile' for other possible commands) linux5*CLI> database del mobile 501 Database entry removed. linux5*CLI> database del mobile 502 Database entry removed. linux5*CLI> database show mobile linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.14647.20302 2010-05-26 17:08:11.000000000 +0300 +++ extensions.conf 2010-05-26 17:08:46.000000000 +0300 @@ -8,7 +8,7 @@ [macro-incoming] ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) -exten => s,n,Dial(SIP/${ARG1},5) +exten => s,n,Dial(SIP/${ARG1},15) exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) ;exten => s,n,Dial(SIP/odessa/380504971180) ;exten => s,n,Dial(SIP/${DB(mobile/${MACRO_EXTEN})}) |
#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 ========================================================================= ... -- SIP/502-081eadf0 is ringing [May 26 17:09:43] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 -- Nobody picked up in 15000 ms -- Executing [s@macro-incoming:3] GotoIf("SIP/502-b5d0e548", "1?end") in new stack -- Goto (macro-incoming,s,5) -- Executing [s@macro-incoming:5] Hangup("SIP/502-b5d0e548", "") in new stack == Spawn extension (macro-incoming, s, 5) exited non-zero on 'SIP/502-b5d0e548' in macro 'incoming' == Spawn extension (macro-incoming, s, 5) exited non-zero on 'SIP/502-b5d0e548' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.18677.25849 2010-05-26 17:12:21.000000000 +0300 +++ extensions.conf 2010-05-26 17:13:47.000000000 +0300 @@ -9,10 +9,12 @@ ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1},15) +exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) ;exten => s,n,Dial(SIP/odessa/380504971180) ;exten => s,n,Dial(SIP/${DB(mobile/${MACRO_EXTEN})}) exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) +exten => s,n(busy),Playback(/var/tmp/busy) exten => s,n(end),Hangup [default] @@ -24,9 +26,9 @@ ;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/greetings:gsm,2) +exten => 801,1,Answer +exten => 801,n,Wait(1) +exten => 801,n,Record(/var/tmp/busy:gsm,2) [corp] |
#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/iaxprov.conf': Found -- Loaded provisioning template 'default' linux5*CLI> -- Executing [801@gr3:1] Answer("SIP/501-b5d12d58", "") in new stack -- Executing [801@gr3:2] Wait("SIP/501-b5d12d58", "1") in new stack -- Executing [801@gr3:3] Record("SIP/501-b5d12d58", "/var/tmp/busy:gsm|2") in new stack -- <SIP/501-b5d12d58> Playing 'beep' (language 'en') == Auto fallthrough, channel 'SIP/501-b5d12d58' status is 'UNKNOWN' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.32086.13569 2010-05-26 17:14:08.000000000 +0300 +++ extensions.conf 2010-05-26 17:14:18.000000000 +0300 @@ -13,9 +13,9 @@ exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) ;exten => s,n,Dial(SIP/odessa/380504971180) ;exten => s,n,Dial(SIP/${DB(mobile/${MACRO_EXTEN})}) -exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) -exten => s,n(busy),Playback(/var/tmp/busy) -exten => s,n(end),Hangup +;exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) +;exten => s,n(busy),Playback(/var/tmp/busy) +;exten => s,n(end),Hangup [default] |
#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 ========================================================================= ... -- SIP/502-081e73d8 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Executing [s@macro-incoming:3] GotoIf("SIP/501-b5d0fb08", "0?busy") in new stack -- Executing [s@macro-incoming:4] GotoIf("SIP/501-b5d0fb08", "1?end") in new stack [May 26 17:20:07] NOTICE[16613]: pbx.c:1892 pbx_extension_helper: No such label 'end' in extension 's' in context 'macro-incoming' [May 26 17:20:07] WARNING[16613]: pbx.c:6424 ast_parseable_goto: Priority 'end' must be a number > 0, or valid label == Spawn extension (macro-incoming, s, 4) exited non-zero on 'SIP/501-b5d0fb08' in macro 'incoming' == Spawn extension (macro-incoming, s, 4) exited non-zero on 'SIP/501-b5d0fb08' reload quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.23510.26353 2010-05-26 17:20:23.000000000 +0300 +++ extensions.conf 2010-05-26 17:21:34.000000000 +0300 @@ -11,11 +11,9 @@ exten => s,n,Dial(SIP/${ARG1},15) exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) -;exten => s,n,Dial(SIP/odessa/380504971180) -;exten => s,n,Dial(SIP/${DB(mobile/${MACRO_EXTEN})}) -;exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) -;exten => s,n(busy),Playback(/var/tmp/busy) -;exten => s,n(end),Hangup +exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) +exten => s,n(busy),Playback(/var/tmp/busy) +exten => s,n(end),Hangup [default] @@ -26,9 +24,9 @@ ;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 => 801,1,Answer +;exten => 801,n,Wait(1) +;exten => 801,n,Record(/var/tmp/busy:gsm,2) [corp] |
#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 ========================================================================= ... -- Goto (macro-incoming,s,7) -- Executing [s@macro-incoming:7] Hangup("SIP/crimea-b5d0e548", "") in new stack == Spawn extension (macro-incoming, s, 7) exited non-zero on 'SIP/crimea-b5d0e548' in macro 'incoming' == Spawn extension (macro-incoming, s, 7) exited non-zero on 'SIP/crimea-b5d0e548' == Spawn extension (macro-incoming, s, 2) exited non-zero on 'SIP/502-b5d0fb08' in macro 'incoming' == Spawn extension (macro-incoming, s, 2) exited non-zero on 'SIP/502-b5d0fb08' linux5*CLI> linux5*CLI> linux5*CLI> quit Executing last minute cleanups |
#asterisk -vvvvvvvvvvvvvr
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 ========================================================================= ... 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] [May 26 17:27:44] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.4803.32442 2010-05-26 17:30:39.000000000 +0300 +++ extensions.conf 2010-05-26 17:37:02.000000000 +0300 @@ -6,7 +6,6 @@ exten => s,n(end),Hangup [macro-incoming] -;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1},15) exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) |
#vim extensions.conf
|
#{EXTEN})
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/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux5 (pid = 12808) Verbosity is at least 13 linux5*CLI> quit Executing last minute cleanups |
#asterisk -vr
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 ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux5 (pid = 12808) Verbosity is at least 13 linux5*CLI> quit Executing last minute cleanups |
#mc
|
#ssh 192.168.15.6
root@192.168.15.6's password: Linux linux6.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: Thu May 27 12:40:12 2010 from 192.168.4.204 l3-agent is already running: pid=4374; pidfile=/root/.lilalo/l3-agent.pid |
#cd /etc/asterisk/
|
#less extensions.conf
|
#ls
apt btmp dpkg.log kern.log mail.log syslog aptitude daemon.log exim4 lastlog mail.warn syslog.1 asterisk debug faillog lpr.log messages user.log auth.log dmesg fsck mail.err news wtmp boot dmesg.0 installer mail.info pycentral.log |
#tail messages
May 27 02:29:00 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 02:33:27 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 02:33:27 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 02:34:00 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 02:34:00 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 02:38:27 linux5 dhcpd: Wrote 3 leases to leases file. May 27 02:38:27 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 02:38:27 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 02:39:00 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 02:39:00 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 |
#tail syslog
May 27 02:33:27 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 02:34:00 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 02:34:00 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 02:38:27 linux5 dhcpd: Wrote 3 leases to leases file. May 27 02:38:27 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 02:38:27 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 02:39:00 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 02:39:00 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 02:43:27 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 02:43:27 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 |
#ls
apt btmp dpkg.log kern.log mail.log syslog aptitude daemon.log exim4 lastlog mail.warn syslog.1 asterisk debug faillog lpr.log messages user.log auth.log dmesg fsck mail.err news wtmp boot dmesg.0 installer mail.info pycentral.log |
#cd asterisk/
|
#ls
cdr-csv cdr-custom event_log messages queue_log |
#tail queue_log
1274880643|NONE|NONE|NONE|CONFIGRELOAD| 1274880935|NONE|NONE|NONE|CONFIGRELOAD| 1274881253|NONE|NONE|NONE|CONFIGRELOAD| 1274881998|NONE|NONE|NONE|CONFIGRELOAD| 1274882237|NONE|NONE|NONE|CONFIGRELOAD| 1274882418|NONE|NONE|NONE|CONFIGRELOAD| 1274882931|NONE|NONE|NONE|CONFIGRELOAD| 1274883230|NONE|NONE|NONE|CONFIGRELOAD| 1274883260|NONE|NONE|NONE|CONFIGRELOAD| 1274883697|NONE|NONE|NONE|CONFIGRELOAD| |
#tail cdr-csv/Master.csv
"","501","401","gr3","""Crimea Phone"" <501>","SIP/501-b5d0fb08","SIP/kharkov-081e73d8","Dial","SIP/kharkov/401","2010-05-26 14:17:44","2010-05-26 14:17:46","2010-05-26 14:18:06",22,20,"ANSWERED","DOCUMENTATION","asterisk-1274883464.409","" "","502","501","gr1","""Crimea SoftPhone"" <502>","SIP/502-b5d0e548","SIP/501-081e73d8","GotoIf","0?end","2010-05-26 14:19:04",,"2010-05-26 14:19:19",15,0,"NO ANSWER","DOCUMENTATION","asterisk-1274883544.413","" "","501","502","gr3","""Crimea Phone"" <501>","SIP/501-b5d05de8","SIP/502-081e73d8","GotoIf","1?end","2010-05-26 14:19:40",,"2010-05-26 14:19:41",1,0,"FAILED","DOCUMENTATION","asterisk-1274883580.415","" "","501","502","gr3","""Crimea Phone"" <501>","SIP/501-b5d0fb08","SIP/502-081e73d8","GotoIf","1?end","2010-05-26 14:20:07",,"2010-05-26 14:20:07",0,0,"FAILED","DOCUMENTATION","asterisk-1274883607.417","" "","501","502","gr3","""Crimea Phone"" <501>","SIP/501-b5d18398","SIP/502-081e86d8","Hangup","","2010-05-26 14:21:43",,"2010-05-26 14:21:43",0,0,"FAILED","DOCUMENTATION","asterisk-1274883703.419","" "","502","501","gr1","""Crimea SoftPhone"" <502>","SIP/502-b5d0e548","SIP/501-081e86d8","Dial","SIP/501|15","2010-05-26 14:22:16","2010-05-26 14:22:20","2010-05-26 14:22:20",4,0,"ANSWERED","DOCUMENTATION","asterisk-1274883736.421","" "","401","502","gr3","""401"" <401>","SIP/crimea-b5d0e548","SIP/502-081f4540","Hangup","","2010-05-26 14:23:12",,"2010-05-26 14:23:27",15,0,"NO ANSWER","DOCUMENTATION","asterisk-1274883792.425","" "","502","501","gr1","""Crimea SoftPhone"" <502>","SIP/502-b5d0fb08","SIP/501-081ec650","Dial","SIP/501|15","2010-05-26 14:22:52","2010-05-26 14:22:53","2010-05-26 14:23:39",47,46,"ANSWERED","DOCUMENTATION","asterisk-1274883772.423","" "","401","501","gr2","""401"" <401>","SIP/crimea-b5d05de8","SIP/501-081e86d8","Dial","SIP/501|15","2010-05-26 14:40:01",,"2010-05-26 14:40:03",2,0,"NO ANSWER","DOCUMENTATION","asterisk-1274884801.428","" "","401","501","gr2","""401"" <401>","SIP/crimea-b5d12d58","SIP/501-081e86d8","Dial","SIP/501|15","2010-05-26 14:44:39",,"2010-05-26 14:44:41",2,0,"NO ANSWER","DOCUMENTATION","asterisk-1274885079.430","" |
#tail cdr-c
cdr-csv/ cdr-custom/ |
#tail
cdr-csv/ cdr-custom/ event_log messages queue_log |
#tail messages
[May 27 09:16:29] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 [May 27 09:19:29] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 [May 27 09:22:30] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 [May 27 09:25:30] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 [May 27 09:28:30] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 [May 27 09:31:30] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 [May 27 09:34:30] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 [May 27 09:37:30] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 [May 27 09:40:30] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 [May 27 09:43:31] NOTICE[12826] chan_sip.c: Received SIP subscribe for peer without mailbox: 502 |
#tail event_log
|
#cd cdr-csv/
|
#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: Thu May 27 10:19:14 2010 from linux6.unix.nt l3-agent is already running: pid=4496; pidfile=/root/.lilalo/l3-agent.pid |
#cat /etc/asterisk/extensions.conf
[macro-caller] exten => s,1,Set(CALLERID(number)=4${ARG1}) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) [macro-call_in] ;exten => s,1,GotoIf($[${CALLERID(number)}=302]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${MACRO_EXTEN},4) exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) ;exten => s,n,GotoIf( $[ ${ISNULL( ${DB( mobile/${MACRO_EXTEN} )})}]?end) ;exten => s,n,Dial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})}) ... [group2] include => local include => corp [group3] include => local include => corp include => world [sipnet-in] ;exten => s,1,Dial(sip/402) exten => 0028770061,1,Dial(sip/401) |
#cat /etc/asterisk/extensions.conf | less
|
#vim extensions.conf
--- /tmp/l3-saved-17444.27105.28121 2010-05-27 10:22:40.000000000 +0300 +++ extensions.conf 2010-05-27 10:23:30.000000000 +0300 @@ -14,6 +14,25 @@ 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}) +exten => s,n,SayNumber(${ARG6}) +exten => s,n,SayNumber(${ARG7}) +exten => s,n,SayNumber(${ARG8}) +exten => s,n,SayNumber(${ARG9}) +exten => s,n,SayNumber(${ARG10}) +exten => s,n,SayNumber(${ARG11}) +exten => s,n,SayNumber(${ARG12}) +exten => s,n,SayNumber(${ARG13}) +exten => s,n,SayNumber(${ARG14}) +exten => s,n,SayNumber(${ARG15}) + + [default] [local] @@ -26,7 +45,7 @@ ;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) [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
#apt-get install bind9
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: bind9utils Suggested packages: bind9-doc resolvconf ufw The following NEW packages will be installed: bind9 bind9utils 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. ... Setting up bind9utils (1:9.5.1.dfsg.P3-1+lenny1) ... Setting up bind9 (1:9.5.1.dfsg.P3-1+lenny1) ... Adding group `bind' (GID 108) ... Done. Adding system user `bind' (UID 105) ... Adding new user `bind' (UID 105) with group `bind' ... Not creating home directory `/var/cache/bind'. wrote key file "/etc/bind/rndc.key" # Starting domain name service...: bind9. |
#vi /etc/bind
|
#vi /etc/bind/named.conf.
|
#vi /etc/bind/named.conf.
|
#vi /etc/bind/named.conf.options
--- /tmp/l3-saved-17849.11642.10201 2010-05-27 10:26:53.000000000 +0300 +++ /etc/bind/named.conf.options 2010-05-27 10:27:24.000000000 +0300 @@ -10,9 +10,9 @@ // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. - // forwarders { - // 0.0.0.0; - // }; + forwarders { + 10.0.35.1; + }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind9. Starting domain name service...: bind9. |
#dig @127.0.0.1 yandex.ru
; <<>> DiG 9.5.1-P3 <<>> @127.0.0.1 yandex.ru ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23146 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 0 ;; QUESTION SECTION: ;yandex.ru. IN A ;; ANSWER SECTION: yandex.ru. 10752 IN A 213.180.204.211 ... yandex.ru. 10752 IN A 213.180.204.11 ;; AUTHORITY SECTION: yandex.ru. 114658 IN NS ns4.yandex.ru. yandex.ru. 114658 IN NS ns1.yandex.ru. yandex.ru. 114658 IN NS ns5.yandex.ru. yandex.ru. 114658 IN NS ns2.yandex.ru. ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu May 27 10:28:45 2010 ;; MSG SIZE rcvd: 179 |
#dig @127.0.0.1 google.com
; <<>> DiG 9.5.1-P3 <<>> @127.0.0.1 google.com ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45407 ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 4, ADDITIONAL: 0 ;; QUESTION SECTION: ;google.com. IN A ;; ANSWER SECTION: google.com. 300 IN A 74.125.87.105 ... google.com. 300 IN A 74.125.87.104 ;; AUTHORITY SECTION: google.com. 114984 IN NS ns2.google.com. google.com. 114984 IN NS ns3.google.com. google.com. 114984 IN NS ns1.google.com. google.com. 114984 IN NS ns4.google.com. ;; Query time: 72 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu May 27 10:28:56 2010 ;; MSG SIZE rcvd: 196 |
#dig @127.0.0.1 linux4.unix.nt
; <<>> DiG 9.5.1-P3 <<>> @127.0.0.1 linux4.unix.nt ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50881 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;linux4.unix.nt. IN A ;; ANSWER SECTION: linux4.unix.nt. 3600 IN A 192.168.17.4 ;; AUTHORITY SECTION: unix.nt. 3600 IN NS sky.unix.nt. ;; ADDITIONAL SECTION: sky.unix.nt. 3600 IN A 10.0.35.1 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu May 27 10:29:11 2010 ;; MSG SIZE rcvd: 82 |
#sed -i s/10.0.35.1/127.0.0.1/ /etc/resolv.conf
|
#cat /etc/resolv.conf
search unix.nt nameserver 127.0.0.1 |
#host oracle.com
oracle.com has address 141.146.9.91 oracle.com mail is handled by 200 acsinet12.oracle.com. oracle.com mail is handled by 200 rcsinet11.oracle.com. oracle.com mail is handled by 200 rcsinet12.oracle.com. oracle.com mail is handled by 200 acsinet11.oracle.com. |
#cd /etc/bind
|
#w
10:33:33 up 1 day, 23:28, 5 users, load average: 0.21, 0.26, 0.12 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty1 - Tue11 24:59m 0.68s 0.02s /bin/login -- root pts/0 192.168.4.204 09:39 1:02 0.12s 0.00s script -f -c ba root pts/6 192.168.5.1 10:33 0.00s 0.00s 0.00s script -f -c ba root pts/2 :pts/1:S.0 Tue16 19:48 0.64s 0.10s script -f -c /b root pts/4 :pts/1:S.1 Tue16 1:02 2.22s 1.42s script -f -c /b |
#ps -ax
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 2 ? S< 0:00 [kthreadd] 3 ? S< 0:00 [migration/0] 4 ? S< 0:00 [ksoftirqd/0] 5 ? S< 0:00 [watchdog/0] 6 ? S< 0:00 [migration/1] 7 ? S< 0:00 [ksoftirqd/1] 8 ? S< 0:00 [watchdog/1] ... 21026 pts/1 Ss 0:00 bash 21065 pts/1 S+ 0:00 screen -x 21716 pts/5 T 0:00 /usr/bin/vim named.conf 21818 ? Ssl 0:00 /usr/sbin/named -u bind 21942 pts/5 S+ 0:00 /usr/bin/vim db.kharkov.unix.nt 21944 ? Rs 0:00 sshd: root@pts/6 21946 pts/6 Ss+ 0:00 script -f -c bash -q /root/.lilalo//11877186242471668 21983 pts/6 S+ 0:00 script -f -c bash -q /root/.lilalo//11877186242471668 21984 pts/7 Ss 0:00 bash 22023 pts/7 R+ 0:00 ps -ax |
#ps -ax | more
|
#w
10:34:20 up 1 day, 23:29, 5 users, load average: 0.13, 0.23, 0.12 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty1 - Tue11 25:00m 0.68s 0.02s /bin/login -- root pts/0 192.168.4.204 09:39 1:49 0.12s 0.00s script -f -c ba root pts/6 192.168.5.1 10:33 0.00s 0.00s 0.00s script -f -c ba root pts/2 :pts/1:S.0 Tue16 20:35 0.64s 0.10s script -f -c /b root pts/4 :pts/1:S.1 Tue16 1:49 2.22s 1.42s script -f -c /b |
#exit
Connection to 192.168.4.1 closed. |
#vim db.crimea.unix.nt
--- /dev/null 2010-05-25 11:13:09.502286417 +0300 +++ db.crimea.unix.nt 2010-05-27 10:39:51.000000000 +0300 @@ -0,0 +1,7 @@ +@ SOA ns root 2010052701 1d 1w 3h 3h + NS ns + MX 10 mail +ns A 192.168.15.6 +mail CNAME ns + + |
#ls
db.0 db.crimea.unix.nt db.root named.conf.options db.127 db.empty named.conf rndc.key db.255 db.local named.conf.local zones.rfc1918 |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind9 waiting for pid 18281 to die. Starting domain name service...: bind9. |
#host mail.crimea.unix.nt
Host mail.crimea.unix.nt not found: 3(NXDOMAIN) |
#vim /etc/bind/named.conf.local
--- /tmp/l3-saved-17849.20955.30286 2010-05-27 10:44:00.000000000 +0300 +++ /etc/bind/named.conf.local 2010-05-27 10:45:23.000000000 +0300 @@ -6,3 +6,9 @@ // organization //include "/etc/bind/zones.rfc1918"; +zone "crimea.unix.nt" { + type master; + file "/etc/bind/db.crimea.unix.nt"; +}; + + |
#host mail.lvov.unix.nt
Host mail.lvov.unix.nt not found: 3(NXDOMAIN) |
#host mail.odessa.unix.nt
mail.odessa.unix.nt has address 192.168.3.1 |
#host mail.kharkov.unix.nt
Host mail.kharkov.unix.nt not found: 3(NXDOMAIN) |
#host mail.kiev.unix.nt
mail.kiev.unix.nt has address 192.168.2.1 |
#host mail.dnepr.unix.nt
Host mail.dnepr.unix.nt not found: 3(NXDOMAIN) |
#host mail.kharkov.unix.nt
Host mail.kharkov.unix.nt not found: 3(NXDOMAIN) |
#host mail.kharkov.unix.nt
Host mail.kharkov.unix.nt not found: 3(NXDOMAIN) |
#host mail.dnepr.unix.nt
Host mail.dnepr.unix.nt not found: 3(NXDOMAIN) |
#host mail.lvov.unix.nt
Host mail.lvov.unix.nt not found: 3(NXDOMAIN) |
#rndc flush
|
#host mail.dnepr.unix.nt
mail.dnepr.unix.nt has address 192.168.1.1 |
#host ns.lvov.unix.nt
Host ns.lvov.unix.nt not found: 3(NXDOMAIN) |
#host mail.odessa.unix.nt
mail.odessa.unix.nt has address 192.168.3.1 |
#host mail.kharkov.unix.nt
Host mail.kharkov.unix.nt not found: 3(NXDOMAIN) |
#host mail.lvov.unix.nt
Host mail.lvov.unix.nt not found: 3(NXDOMAIN) |
#host mail.lvov.unix.nt
Host mail.lvov.unix.nt not found: 3(NXDOMAIN) |
#!rn
rndc flush |
#host mail.lvov.unix.nt
mail.lvov.unix.nt is an alias for ns.lvov.unix.nt. ns.lvov.unix.nt has address 192.168.15.6 |
#apt-get install sendmail sensible-mda sendmail-bin
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: sendmail-base sendmail-cf Suggested packages: sendmail-doc rmail logcheck resolvconf sasl2-bin libsasl2-modules The following packages will be REMOVED: exim4 exim4-base exim4-config exim4-daemon-light The following NEW packages will be installed: ... please investigate. Warning: These messages were issued while creating sendmail.cf make sure they are benign before starting sendmail! Errors in generating sendmail.cf *** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER() Starting Mail Transport Agent (MTA): sendmail. Setting up sensible-mda (8.14.3-5+lenny1) ... Setting up sendmail (8.14.3-5+lenny1) ... |
#vi /etc/mail
|
#vim /etc/mail/sendmail.mc
|
#AEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
dnl # into this directory before writing files. `')dnl dnl # If *all* your user accounts are under /home then use that dnl # dnl # instead - it will prevent any writes outside of /home ! dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!! dnl # define(`confSAFE_FILE_ENV', dnl # Remove `, Addr=' clauses to receive from any interface dnl # If you want to support IPv6, switch the commented/uncommentd lines dnl # ')dnlN_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1 dnl #AEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl dnl # Be somewhat anal in what we allowv4, Port=smtp, Addr=127.0.0.1')dnl ,authwarnings')dnlY_FLAGS',dnlt6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1') dnl #mailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn |
#DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=27.0.0.1')dnl
divert(-1)dnl #----------------------------------------------------------------------------- # $Sendmail: debproto.mc,v 8.14.3 2010-01-29 14:02:50 cowboy Exp $ # # Copyright (c) 1998-2008 Richard Nelson. All Rights Reserved. # file is customized to the version noted above. # cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure. # # sendmail.mc prototype config file for building Sendmail 8.14.3 ... FEATURE(`masquerade_envelope')dnl you should enable this - so sendmail dnl # will not bring up the link (it will queue mail for later) dnl define(`confCON_EXPENSIVE',`True')dnl dnl # dnl # Dialup/LAN connection overrides dnl # include(`/etc/mail/m4/dialup.m4')dnl include(`/etc/mail/m4/provider.m4')dnl dnl # "/etc/mail/sendmail.mc" 112L, 4222C written |
#vim /etc/mail/local-host-names
--- /tmp/l3-saved-17849.3537.13376 2010-05-27 11:45:03.000000000 +0300 +++ /etc/mail/local-host-names 2010-05-27 11:45:28.000000000 +0300 @@ -1,2 +1,5 @@ localhost linux5.unix.nt +crimea.unix.nt +ns.crimea.unix.nt +mail.crimea.unix.nt |
#telnet localhost 25
Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 linux5.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-5+lenny1; Thu, 27 May 2010 11:50:21 +0300; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1] helo mail 250 linux5.unix.nt Hello localhost [127.0.0.1], pleased to meet you mail from: hz@kto.com 250 2.1.0 hz@kto.com... Sender ok rcpt to: sergs@bossdev.com.ua 250 2.1.5 sergs@bossdev.com.ua... Recipient ok data 354 Enter mail, end with "." on a line by itself subject: test test . 250 2.0.0 o4R8oLi4020558 Message accepted for delivery quit 221 2.0.0 linux5.unix.nt closing connection Connection closed by foreign host. |
#echo privet | mail user
|
#su - user
user@linux5:~$ mail Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/user": 1 message 1 new >N 1 root@crimea.unix. Thu May 27 11:55 15/576 & 1 Message 1: From root@crimea.unix.nt Thu May 27 11:55:34 2010 Date: Thu, 27 May 2010 11:55:34 +0300 From: root <root@crimea.unix.nt> To: user@crimea.unix.nt privet & q Saved 1 message in /home/user/mbox user@linux5:~$ logout |
#su - user
l3-agent is already running: pid=20590; pidfile=/home/user/.lilalo/l3-agent.pid user@linux5:~$ mail Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/user": 8 messages 8 new >N 1 root@dnepr.unix.n Thu May 27 11:58 18/774 N 2 root@dnepr.unix.n Thu May 27 11:58 18/774 N 3 root@dnepr.unix.n Thu May 27 11:58 18/774 N 4 root@dnepr.unix.n Thu May 27 11:58 18/774 N 5 root@dnepr.unix.n Thu May 27 11:58 18/774 N 6 root@dnepr.unix.n Thu May 27 11:58 18/774 ... Message 6: From root@dnepr.unix.nt Thu May 27 11:58:14 2010 Date: Thu, 27 May 2010 11:58:14 +0300 From: root <root@dnepr.unix.nt> To: user@crimea.unix.nt privet & q Saved 7 messages in /home/user/mbox Held 1 message in /var/mail/user user@linux5:~$ logout |
#apt-get install qpopper
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: qpopper 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 414kB of archives. After this operation, 647kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main qpopper 4.0.9.dfsg-1 [414kB] Fetched 414kB in 0s (10.5MB/s) Selecting previously deselected package qpopper. (Reading database ... 30485 files and directories currently installed.) Unpacking qpopper (from .../qpopper_4.0.9.dfsg-1_i386.deb) ... Processing triggers for man-db ... Setting up qpopper (4.0.9.dfsg-1) ... |
[macro-caller] exten => s,1,Set(CALLERID(number)=4${ARG1}) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) [macro-call_in] ;exten => s,1,GotoIf($[${CALLERID(number)}=302]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${MACRO_EXTEN},4) exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) ;exten => s,n,GotoIf( $[ ${ISNULL( ${DB( mobile/${MACRO_EXTEN} )})}]?end) ;exten => s,n,Dial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})}) ;exten => s,n,Goto(group3,${DB(mobile/${MACRO_EXTEN})},1) 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}) exten => s,n,SayNumber(${ARG6}) exten => s,n,SayNumber(${ARG7}) exten => s,n,SayNumber(${ARG8}) exten => s,n,SayNumber(${ARG9}) exten => s,n,SayNumber(${ARG10}) exten => s,n,SayNumber(${ARG11}) exten => s,n,SayNumber(${ARG12}) exten => s,n,SayNumber(${ARG13}) exten => s,n,SayNumber(${ARG14}) exten => s,n,SayNumber(${ARG15}) [default] [local] exten => 800,1,Answer exten => 800,n,Wait(1) exten => 800,n,Playback(/var/tmp/kharkov-hello) exten => 801,1,Answer exten => 801,n,Wait(1) exten => 801,n,Record(/var/tmp/busy:gsm) exten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) [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 => _5XX,1,Dial(SIP/crimea/${EXTEN}) ;exten => _5XXX,n,Dial(SIP/crimea/${EXTEN:1}) exten => _5XXX,1,Macro(caller,$CALLERID(number)},crimea) exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) exten => _7XXX,1,Macro(caller,${CALLERID(number)},dnepr) ;exten => _7800,1,Dial(SIP/dnepr/${EXTEN:1}) [world] ;exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN}) exten => _380XXXXXXXXX,1,Dial(SIP/sipnet/${EXTEN}) exten => _XXXXXXXXXX,1,Dial(SIP/sipnet/${EXTEN}) [group1] include => local [group2] include => local include => corp [group3] include => local include => corp include => world [sipnet-in] ;exten => s,1,Dial(sip/402) exten => 0028770061,1,Dial(sip/401)
search unix.nt nameserver 127.0.0.1
[macro-caller] exten => s,1,Set(CALLERID(number)=5${ARG1}) ;exten => s,n,GotoIf($[${ARG1}=4401]?end) ;exten => s,n,GotoIf($[BLACKLIST()=1]?end) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) exten => s,n(end),Hangup [macro-incoming] ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1}) exten => s,n(end),Hangup [default] [local] exten => 800,1, Answer exten => 800,n, Wait(1) exten => 800,n, Playback(/var/tmp/greetings) ;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/greetings:gsm,2) [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 => _7XXX,1,Macro(caller,${CALLERID(number)},dnepr) [world] exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN}) [gr1] include => local [gr2] include => local include => corp [gr3] include => local include => corp include => world [gr4] include => local include => world
Время первой команды журнала | 14:32:47 2010- 5-26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:59:46 2010- 5-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.76 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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