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

Содержание

Журнал

Среда (05/26/10)

/dev/tty2
10:59:31
#vim sip.conf
--- /tmp/l3-saved-13737.20160.9138	2010-05-26 11:59:35.000000000 +0300
+++ sip.conf	2010-05-26 12:00:14.000000000 +0300
@@ -1,6 +1,6 @@
 [general]
 context=default
-register => crimea:password@192.168.1.1/dnepr
+register => crimea:password@192.168.7.1/dnepr
 register => crimea:password@192.168.2.1/kiev
 register => crimea:password@192.168.3.1/odessa
 register => crimea:password@192.168.4.1/kharkov
11:00:14
#vim extensions.conf
--- /tmp/l3-saved-13737.20734.25197	2010-05-26 12:00:16.000000000 +0300
+++ extensions.conf	2010-05-26 12:00:52.000000000 +0300
@@ -27,4 +27,5 @@
 include => corp
 include => world
 
+[gr4]
 
11:00:52
#vim extensions.conf
11:01:03
#vim extensions.conf
--- /tmp/l3-saved-13737.2690.4396	2010-05-26 12:01:16.000000000 +0300
+++ extensions.conf	2010-05-26 12:02:05.000000000 +0300
@@ -27,5 +27,3 @@
 include => corp
 include => world
 
-[gr4]
-
/dev/tty2
11:02:15
#ps -ax | grep gpm
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
 5156 ?        Ss     0:05 /usr/sbin/gpm -m /dev/input/mice -t exps2
14653 pts/0    S+     0:00 grep gpm
11:02:27
#kill -HUP 5156

11:02:42
#ps -ax | grep gpm
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
 5156 ?        Ss     0:05 /usr/sbin/gpm -m /dev/input/mice -t exps2
14669 pts/0    S+     0:00 grep gpm
11:02:46
#kill -9 5156

11:02:52
#/usr/sbin/gpm -m /dev/input/mice -t exps2

11:03:43
#~

11:03:49
#vi extensions.conf
11:04:18
#E37: No write since last change (add ! to override)
[default]
exten => 8000,1, Answer
exten => 8000,n, Wait(1)
exten => 8000,n, Playback(demo-thanks)
"extensions.conf" 29L, 498C
include => local
include => corp
include => world
[gr4]
include => local
include => corp
include => world
           world
~
"extensions.conf" 33L, 539C written
[gr1]
include => local
[gr2]
include => local
include => corp
11:07:20
#vim extensions.conf
11:07:52
#:q
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 3
[May 26 12:07:53] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from 'crimea' to extension '301' rejected because extension not found.
[May 26 12:08:01] NOTICE[12826]: chan_sip.c:7515 sip_reg_timeout:    -- Registration for 'crimea@192.168.7.1' timed out, trying again (Attempt #3)
linux5*CLI> quit
Executing last minute cleanups
11:08:13
#vim sip.conf
--- /tmp/l3-saved-14623.9798.21187	2010-05-26 12:08:16.000000000 +0300
+++ sip.conf	2010-05-26 12:08:31.000000000 +0300
@@ -45,7 +45,5 @@
 secret=password
 host=dynamic
 username=crimea
-limitonpeers=yes
-call-limit=1
 
 
11:08:31
#vim extensions.conf
11:09:22
#vim extensions.conf
11:10:14
#vim extensions.conf
--- /tmp/l3-saved-14623.4779.11778	2010-05-26 12:10:15.000000000 +0300
+++ extensions.conf	2010-05-26 12:10:26.000000000 +0300
@@ -10,7 +10,7 @@
 exten => _4XX,1,Dial(SIP/kharkov/${EXTEN})
 exten => _3XX,1,Dial(SIP/odessa/${EXTEN})
 exten => _2XX,1,Dial(SIP/kiev/${EXTEN})
-exten => _1XX,1,Dial(SIP/dnepr/${EXTEN})
+exten => _7XX,1,Dial(SIP/dnepr/${EXTEN})
 
 [world]
 exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN})
11:10:26
#vim sip.conf
--- /tmp/l3-saved-14623.8320.21717	2010-05-26 12:10:28.000000000 +0300
+++ sip.conf	2010-05-26 12:10:44.000000000 +0300
@@ -1,6 +1,6 @@
 [general]
 context=default
-register => crimea:password@192.168.7.1/dnepr
+register => crimea:password@192.168.1.1/dnepr
 register => crimea:password@192.168.2.1/kiev
 register => crimea:password@192.168.3.1/odessa
 register => crimea:password@192.168.4.1/kharkov
11:10:44
#vim extensions.conf
11:13:18
#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/iax.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
    -- Executing [501@gr1:1] Dial("SIP/crimea-b5d0a370", "SIP/501") in new stack
    -- Called 501
    -- SIP/501-081d2588 is ringing
  == Spawn extension (gr1, 501, 1) exited non-zero on 'SIP/crimea-b5d0a370'
linux5*CLI> quit
Executing last minute cleanups
11:13:42
#vim sip.conf
--- /tmp/l3-saved-14623.19444.26891	2010-05-26 12:13:43.000000000 +0300
+++ sip.conf	2010-05-26 12:14:12.000000000 +0300
@@ -41,7 +41,7 @@
 call-limit=1
 
 [kharkov]
-context=gr3
+context=gr2
 type=friend
 secret=password
 host=dynamic
11:14:12
#vim extensions.conf
--- /tmp/l3-saved-14623.1990.948	2010-05-26 12:14:25.000000000 +0300
+++ extensions.conf	2010-05-26 12:15:06.000000000 +0300
@@ -1,9 +1,9 @@
 [default]
+
+[local]
 exten => 8000,1, Answer
 exten => 8000,n, Wait(1)
 exten => 8000,n, Playback(demo-thanks)
-
-[local]
 exten => _5XX,1,Dial(SIP/${EXTEN})
 
 [corp]
11:15:06
#vim sip.conf
11:24:29
#register => crimea:password@192.168.1.1/dnepr
[gr3]
include => local
include => corp
include => world
[gr4]
include => local
include => world
11:24:44
#[local]
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 [501@gr1:1] Dial("SIP/crimea-b5d0fb08", "SIP/501") in new stack
    -- Called 501d
    -- SIP/501-081d1ea0 is ringing
[May 26 12:27:07] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '301' rejected because extension not found.
  == Spawn extension (gr1, 501, 1) exited non-zero on 'SIP/crimea-b5d0fb08'
[May 26 12:27:19] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '301' rejected because extension not found.
[May 26 12:27:29] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
[May 26 12:27:30] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '301' rejected because extension not found.
linux5*CLI> quit
Executing last minute cleanups
11:27:39
#vim extensions.conf
11:27:53
#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 12:28:06] NOTICE[12826]: chan_sip.c:14668 handle_request_invite: Unable to create/find SIP channel for this INVITE
[May 26 12:28:22] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '401' rejected because extension not found.
[May 26 12:28:38] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '301' rejected because extension not found.
    -- Executing [502@gr4:1] Dial("SIP/501-b5d0fb08", "SIP/502") in new stack
    -- Called 502
    -- SIP/502-081d1ea0 is ringing
  == Spawn extension (gr4, 502, 1) exited non-zero on 'SIP/501-b5d0fb08'
[May 26 12:28:59] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '401' rejected because extension not found.
linux5*CLI> quit
Executing last minute cleanups
11:29:02
#vim sip.conf
--- /tmp/l3-saved-14623.27590.6462	2010-05-26 12:29:05.000000000 +0300
+++ sip.conf	2010-05-26 12:29:17.000000000 +0300
@@ -7,7 +7,7 @@
 
 
 [501]
-context=gr4
+context=gr3
 type=friend
 secret=password
 host=dynamic
11:29:17
#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 SIP
  == Parsing '/etc/asterisk/sip.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/sip_notify.conf': Found
    -- Executing [401@gr3:1] Dial("SIP/501-b5d18260", "SIP/kharkov/401") in new stack
    -- Called kharkov/401
    -- SIP/kharkov-081d1ea0 is ringing
  == Spawn extension (gr3, 401, 1) exited non-zero on 'SIP/501-b5d18260'
linux5*CLI> quit
Executing last minute cleanups
11:30:03
#vim sip.conf
11:30:10
#type=friend
-- INSERT --
include => corp
-- INSERT --
include => world
-- INSERT --
[gr4]
-- INSERT --
include => local
-- INSERT --
include => world
-- INSERT --
"extensions.conf" 33L, 540C written
11:31:56
#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
=========================================================================
...
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux5 (pid = 12808)
Verbosity is at least 3
linux5*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/sip_notify.conf': Found
[May 26 12:32:10] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '4401' rejected because extension not found.
linux5*CLI> quit
Executing last minute cleanups
11:32:36
#vim extensions.conf
--- /tmp/l3-saved-14623.3909.24596	2010-05-26 12:32:37.000000000 +0300
+++ extensions.conf	2010-05-26 12:33:37.000000000 +0300
@@ -7,10 +7,15 @@
 exten => _5XX,1,Dial(SIP/${EXTEN})
 
 [corp]
-exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN})
-exten => _3XXX,1,Dial(SIP/odessa/${EXTEN})
-exten => _2XXX,1,Dial(SIP/kiev/${EXTEN})
-exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN})
+exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN:1})
+exten => _3XXX,1,Dial(SIP/odessa/${EXTEN:1})
+exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1})
+exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1})
+exten => _4XX,1,Dial(SIP/kharkov/${EXTEN})
+exten => _3XX,1,Dial(SIP/odessa/${EXTEN})
+exten => _2XX,1,Dial(SIP/kiev/${EXTEN})
+exten => _7XX,1,Dial(SIP/dnepr/${EXTEN})
+
 
 [world]
 exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN})
11:33:37
#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/kharkov-081d2988 answered SIP/501-b5d16e08
    -- Native bridging SIP/501-b5d16e08 and SIP/kharkov-081d2988
  == Spawn extension (gr3, 4800, 1) exited non-zero on 'SIP/501-b5d16e08'
    -- Executing [800@gr2:1] Answer("SIP/crimea-081d2988", "") in new stack
    -- Executing [800@gr2:2] Wait("SIP/crimea-081d2988", "1") in new stack
    -- Executing [800@gr2:3] Playback("SIP/crimea-081d2988", "demo-thanks") in new stack
    -- <SIP/crimea-081d2988> Playing 'demo-thanks' (language 'en')
  == Spawn extension (gr2, 800, 3) exited non-zero on 'SIP/crimea-081d2988'
linux5*CLI> quit
Executing last minute cleanups
11:35:49
#vim extensions.conf
--- /tmp/l3-saved-14623.14318.28833	2010-05-26 12:35:51.000000000 +0300
+++ extensions.conf	2010-05-26 12:36:33.000000000 +0300
@@ -5,6 +5,10 @@
 exten => 800,n, Wait(1)
 exten => 800,n, Playback(demo-thanks)
 exten => _5XX,1,Dial(SIP/${EXTEN})
+exten => 801,1,Answer
+exten => 801,n,Wait(1)
+exten => 801,n,Record(/var/tmp/greetings:gsm,2)
+
 
 [corp]
 exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN:1})
11:36:33
#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
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
    -- Executing [801@gr3:1] Answer("SIP/501-b5d0a370", "") in new stack
    -- Executing [801@gr3:2] Wait("SIP/501-b5d0a370", "1") in new stack
    -- Executing [801@gr3:3] Record("SIP/501-b5d0a370", "/var/tmp/greetings:gsm|2") in new stack
    -- <SIP/501-b5d0a370> Playing 'beep' (language 'en')
  == Auto fallthrough, channel 'SIP/501-b5d0a370' status is 'UNKNOWN'
linux5*CLI> quit
Executing last minute cleanups
11:37:20
#vim extensions.conf
11:37:40
#exten => 800,n, Wait(1
[corp]sions.conf" 42L, 809C
exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN:1})
exten => _3XXX,1,Dial(SIP/odessa/${EXTEN:1})
exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1})
exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1})
exten => _4XX,1,Dial(SIP/kharkov/${EXTEN})
exten => _3XX,1,Dial(SIP/odessa/${EXTEN})
exten => _2XX,1,Dial(SIP/kiev/${EXTEN})
exten => _7XX,1,Dial(SIP/dnepr/${EXTEN})
[world]
11:37:51
#exten => 800,n, Playback(emo-thanks)
[corp]sions.conf" 42L, 809C
exten => 800,n, Wait(1SIP/kharkov/${EXTEN:1})
                       k(/var/tmp/greetings)
exten => _3XXX,1,Dial(IIP/odessa/${EXTEN:1})
exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1})
exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1})
exten => _4XX,1,Dial(SIP/kharkov/${EXTEN})
exten => _3XX,1,Dial(SIP/odessa/${EXTEN})
exten => _2XX,1,Dial(SIP/kiev/${EXTEN})
exten => _7XX,1,Dial(SIP/dnepr/${EXTEN})
"extensions.conf" 42L, 816C written
11:38:05
#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
=========================================================================
...
    -- Got SIP response 503 "Unavailable" back from 192.168.1.1
  == Spawn extension (gr3, 7800, 1) exited non-zero on 'SIP/501-b5d0e398'
    -- Executing [4800@gr3:1] Dial("SIP/501-b5d0e398", "SIP/kharkov/800") in new stack
    -- Called kharkov/800
    -- SIP/kharkov-081d2160 answered SIP/501-b5d0e398
    -- Native bridging SIP/501-b5d0e398 and SIP/kharkov-081d2160
  == Spawn extension (gr3, 4800, 1) exited non-zero on 'SIP/501-b5d0e398'
[May 26 12:42:30] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
11:43:00
#cd /var/tmp

11:43:04
#ls
greetings.gsm
11:43:05
#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/kiev-081e01c8 answered SIP/501-081dec38
    -- Native bridging SIP/501-081dec38 and SIP/kiev-081e01c8
  == Spawn extension (gr3, 2800, 1) exited non-zero on 'SIP/501-081dec38'
    -- Executing [7800@gr3:1] Dial("SIP/501-081d2160", "SIP/dnepr/800") in new stack
    -- Called dnepr/800
    -- SIP/dnepr-081e1d48 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/501-081d2160' status is 'CONGESTION'
quit
Executing last minute cleanups
11:44:53
#cd /var/tmp

11:44:55
#asterisk -vvvr

11:45:03
#cd /etc/asterisk/

11:45:10
#vim extensions.conf
11:45:19
#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
=========================================================================
...
  == Spawn extension (gr3, 4800, 1) exited non-zero on 'SIP/501-081dec38'
[May 26 12:46:57] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '5800' rejected because extension not found.
    -- Executing [800@gr3:1] Answer("SIP/501-081e4730", "") in new stack
    -- Executing [800@gr3:2] Wait("SIP/501-081e4730", "1") in new stack
    -- Executing [800@gr3:3] Playback("SIP/501-081e4730", "/var/tmp/greetings") in new stack
    -- <SIP/501-081e4730> Playing '/var/tmp/greetings' (language 'en')
  == Spawn extension (gr3, 800, 3) exited non-zero on 'SIP/501-081e4730'
[May 26 12:48:30] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
11:49:14
#vim extensions.conf
--- /tmp/l3-saved-14623.13384.29632	2010-05-26 12:49:16.000000000 +0300
+++ extensions.conf	2010-05-26 12:49:50.000000000 +0300
@@ -11,7 +11,8 @@
 
 
 [corp]
-exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN:1})
+exten => _4XXX,1,Set(CALLERID(all)=Privet <123>)
+exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1})
 exten => _3XXX,1,Dial(SIP/odessa/${EXTEN:1})
 exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1})
 exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1})
11:49:50
#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
=========================================================================
...
    -- Called kharkov/401
    -- SIP/kharkov-081e4398 is ringing
  == Spawn extension (gr3, 4401, 2) exited non-zero on 'SIP/501-081e0420'
    -- Executing [501@gr2:1] Dial("SIP/crimea-081dee90", "SIP/501") in new stack
    -- Called 501
    -- SIP/501-081e2e08 is ringing
  == Spawn extension (gr2, 501, 1) exited non-zero on 'SIP/crimea-081dee90'
[May 26 12:51:30] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
11:51:32
#vim extensions.conf
--- /tmp/l3-saved-14623.4408.26753	2010-05-26 12:51:45.000000000 +0300
+++ extensions.conf	2010-05-26 12:53:52.000000000 +0300
@@ -11,11 +11,11 @@
 
 
 [corp]
-exten => _4XXX,1,Set(CALLERID(all)=Privet <123>)
+exten => _XXXX,1,Set(CALLERID(number)=5${CALLERID(number)})
 exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1})
-exten => _3XXX,1,Dial(SIP/odessa/${EXTEN:1})
-exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1})
-exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1})
+exten => _3XXX,n,Dial(SIP/odessa/${EXTEN:1})
+exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1})
+exten => _7XXX,n,Dial(SIP/dnepr/${EXTEN:1})
 exten => _4XX,1,Dial(SIP/kharkov/${EXTEN})
 exten => _3XX,1,Dial(SIP/odessa/${EXTEN})
 exten => _2XX,1,Dial(SIP/kiev/${EXTEN})
11:53:52
#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-081dee60 is ringing
  == Spawn extension (gr3, 301, 1) exited non-zero on 'SIP/501-b5d0fb08'
    -- Executing [3301@gr3:1] Set("SIP/501-b5d0fb08", "CALLERID(number)=5501") in new stack
  == Auto fallthrough, channel 'SIP/501-b5d0fb08' status is 'UNKNOWN'
    -- Executing [2201@gr3:1] Set("SIP/501-b5d0e548", "CALLERID(number)=5501") in new stack
  == Auto fallthrough, channel 'SIP/501-b5d0e548' status is 'UNKNOWN'
quit
No such command 'reloadquit' (type 'help reloadquit' for other possible commands)
linux5*CLI> quit
Executing last minute cleanups
11:55:14
#vim extensions.conf
--- /tmp/l3-saved-14623.19118.32392	2010-05-26 12:55:15.000000000 +0300
+++ extensions.conf	2010-05-26 12:57:37.000000000 +0300
@@ -12,8 +12,8 @@
 
 [corp]
 exten => _XXXX,1,Set(CALLERID(number)=5${CALLERID(number)})
-exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1})
 exten => _3XXX,n,Dial(SIP/odessa/${EXTEN:1})
+exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1})
 exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1})
 exten => _7XXX,n,Dial(SIP/dnepr/${EXTEN:1})
 exten => _4XX,1,Dial(SIP/kharkov/${EXTEN})
11:57:37
#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
=========================================================================
...
    -- Loaded provisioning template 'default'
    -- Executing [3301@gr3:1] Set("SIP/501-b5d0fb08", "CALLERID(number)=5501") in new stack
    -- Executing [3301@gr3:2] Dial("SIP/501-b5d0fb08", "SIP/odessa/301") in new stack
    -- Called odessa/301
    -- SIP/odessa-081e02f8 is ringing
  == Spawn extension (gr3, 3301, 2) exited non-zero on 'SIP/501-b5d0fb08'
    -- Executing [4401@gr3:1] Set("SIP/501-b5d0fb08", "CALLERID(number)=5501") in new stack
  == Auto fallthrough, channel 'SIP/501-b5d0fb08' status is 'UNKNOWN'
linux5*CLI> quit
Executing last minute cleanups
11:57:55
#vim extensions.conf
--- /tmp/l3-saved-14623.10733.11336	2010-05-26 12:57:57.000000000 +0300
+++ extensions.conf	2010-05-26 12:58:41.000000000 +0300
@@ -11,7 +11,10 @@
 
 
 [corp]
-exten => _XXXX,1,Set(CALLERID(number)=5${CALLERID(number)})
+exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
+exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
+exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
+exten => _7XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
 exten => _3XXX,n,Dial(SIP/odessa/${EXTEN:1})
 exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1})
 exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1})
11:58:41
#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
=========================================================================
...
linux5*CLI>
    -- Executing [3301@gr3:1] Set("SIP/501-b5d25340", "CALLERID(number)=5501") in new stack
    -- Executing [3301@gr3:2] Dial("SIP/501-b5d25340", "SIP/odessa/301") in new stack
    -- Called odessa/301
    -- SIP/odessa-081e0698 is ringing
  == Spawn extension (gr3, 3301, 2) exited non-zero on 'SIP/501-b5d25340'
    -- Executing [4401@gr3:1] Set("SIP/501-b5d25340", "CALLERID(number)=5501") in new stack
  == Auto fallthrough, channel 'SIP/501-b5d25340' status is 'UNKNOWN'
linux5*CLI> quit
Executing last minute cleanups
11:59:26
#vim extensions.conf
--- /tmp/l3-saved-14623.30071.6649	2010-05-26 12:59:28.000000000 +0300
+++ extensions.conf	2010-05-26 13:01:06.000000000 +0300
@@ -11,13 +11,13 @@
 
 
 [corp]
-exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
-exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
 exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
-exten => _7XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
+exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1})
+exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
 exten => _3XXX,n,Dial(SIP/odessa/${EXTEN:1})
+exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
 exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1})
-exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1})
+exten => _7XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
 exten => _7XXX,n,Dial(SIP/dnepr/${EXTEN:1})
 exten => _4XX,1,Dial(SIP/kharkov/${EXTEN})
 exten => _3XX,1,Dial(SIP/odessa/${EXTEN})
12:01:06
#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
=========================================================================
...
    -- Called dnepr/701
    -- SIP/dnepr-081e0758 is ringing
  == Spawn extension (gr3, 701, 1) exited non-zero on 'SIP/501-b5d0e548'
    -- Executing [7701@gr3:1] Set("SIP/501-b5d0fb08", "CALLERID(number)=5501") in new stack
    -- Executing [7701@gr3:2] Dial("SIP/501-b5d0fb08", "SIP/dnepr/701") in new stack
    -- Called dnepr/701
    -- SIP/dnepr-081e0758 is ringing
  == Spawn extension (gr3, 7701, 2) exited non-zero on 'SIP/501-b5d0fb08'
linux5*CLI> quit
Executing last minute cleanups
прошло 35 минут
/dev/tty1
12:36:06
#screen -x
/dev/tty2
12:44:40
#vim sip.conf
12:45:10
#register => crimea:password@192.168.1.1/dnepr
exten => _7XX,1,Dial(SIP/dnepr/${EXTEN})
include => corp
[gr3]
include => local
include => corp
include => world
[gr4]
include => local
include => world
"extensions.conf" 46L, 975C written
прошло 57 минут
/dev/tty3
13:42:12
#ssh 192.168.3.1
The authenticity of host '192.168.3.1 (192.168.3.1)' can't be established.
RSA key fingerprint is 33:37:1d:14:ec:fd:f2:28:03:16:a6:66:31:f7:02:e1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.3.1' (RSA) to the list of known hosts.
root@192.168.3.1's password:
Permission denied, please try again.
root@192.168.3.1's password:
Permission denied, please try again.
root@192.168.3.1's password:
Permission denied (publickey,password).
13:42:41
#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: Wed May 26 09:12:28 2010 from 192.168.4.204
l3-agent is already running: pid=4496; pidfile=/root/.lilalo/l3-agent.pid
13:42:51
#cd /etc/asterisk/

13:42:57
#less sip.conf
/dev/tty2
13:46:13
#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/iax.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
    -- Executing [502@gr3:1] Dial("SIP/501-b5d0b900", "SIP/502") in new stack
    -- Called 502
    -- SIP/502-081e1500 is ringing
  == Spawn extension (gr3, 502, 1) exited non-zero on 'SIP/501-b5d0b900'
linux5*CLI> quit
Executing last minute cleanups
/dev/tty3
13:46:22
#ssh 192.168.3.1
root@192.168.3.1's password:
Permission denied, please try again.
root@192.168.3.1's password:
/dev/tty2
13:48:09
#vim extensions.conf
--- /tmp/l3-saved-14623.20649.22021	2010-05-26 14:48:14.000000000 +0300
+++ extensions.conf	2010-05-26 14:50:31.000000000 +0300
@@ -1,6 +1,8 @@
 [macro-caller]
 exten => s,1,Set(CALLERID(number)=5${ARG1})
+exten => s,n,GotoIf($[${ARG1}=4401]?end)
 exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1})
+exten => s,n(end),Hangup
 
 
 [default]
13:50:31
#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 [501@gr2:1] Dial("SIP/crimea-b5d15878", "SIP/501") in new stack
    -- Called 501
    -- SIP/501-081e1808 is ringing
  == Spawn extension (gr2, 501, 1) exited non-zero on 'SIP/crimea-b5d15878'
    -- Executing [301@gr2:1] Dial("SIP/crimea-b5d0a370", "SIP/odessa/301") in new stack
    -- Called odessa/301
    -- SIP/odessa-081e1808 is ringing
  == Spawn extension (gr2, 301, 1) exited non-zero on 'SIP/crimea-b5d0a370'
linux5*CLI> quit
Executing last minute cleanups
13:51:24
#vim extensions.conf
--- /tmp/l3-saved-14623.9501.4410	2010-05-26 14:51:26.000000000 +0300
+++ extensions.conf	2010-05-26 14:53:40.000000000 +0300
@@ -4,6 +4,12 @@
 exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1})
 exten => s,n(end),Hangup
 
+[macro-incoming]
+exten => s,n,GotoIf($[${CALLERID(numer)}=4401]?end)
+exten => s,n,Dial(SIP/${MACRO_EXTEN})
+exten => s,n(end),Hangup
+
+
 
 [default]
 
@@ -11,7 +17,8 @@
 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,Dial(SIP/${EXTEN})
+exten => _5XX,1,Macro(incoming)
 exten => 801,1,Answer
 exten => 801,n,Wait(1)
 exten => 801,n,Record(/var/tmp/greetings:gsm,2)
13:53:40
#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/iax.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
    -- Executing [501@gr2:1] Macro("SIP/crimea-b5d0b900", "incoming") in new stack
[May 26 14:53:56] WARNING[15778]: app_macro.c:214 _macro_exec: Context 'macro-incoming' for macro 'incoming' lacks 's' extension, priority 1
  == Auto fallthrough, channel 'SIP/crimea-b5d0b900' status is 'UNKNOWN'
[May 26 14:54:36] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
13:54:36
#vim extensions.conf
13:56:23
#vim extensions.conf
--- /tmp/l3-saved-14623.24659.24461	2010-05-26 14:56:24.000000000 +0300
+++ extensions.conf	2010-05-26 14:56:37.000000000 +0300
@@ -5,7 +5,7 @@
 exten => s,n(end),Hangup
 
 [macro-incoming]
-exten => s,n,GotoIf($[${CALLERID(numer)}=4401]?end)
+exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end)
 exten => s,n,Dial(SIP/${MACRO_EXTEN})
 exten => s,n(end),Hangup
 
13:56:37
#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
=========================================================================
...
4$CALLERID(number)}=4401
          ^
[May 26 14:56:52] WARNING[15849]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
    -- Executing [s@macro-incoming:1] GotoIf("SIP/crimea-b5d05de8", "4$CALLERID?end") in new stack
    -- Goto (macro-incoming,s,3)
    -- Executing [s@macro-incoming:3] Hangup("SIP/crimea-b5d05de8", "") in new stack
  == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/crimea-b5d05de8' in macro 'incoming'
  == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/crimea-b5d05de8'
linux5*CLI> quit
Executing last minute cleanups
13:57:00
#vim extensions.conf
--- /tmp/l3-saved-14623.8232.29562	2010-05-26 14:57:01.000000000 +0300
+++ extensions.conf	2010-05-26 14:57:22.000000000 +0300
@@ -9,8 +9,6 @@
 exten => s,n,Dial(SIP/${MACRO_EXTEN})
 exten => s,n(end),Hangup
 
-
-
 [default]
 
 [local]
13:57:22
#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/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 3
[May 26 15:01:46] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '5800' rejected because extension not found.
linux5*CLI> quit
Executing last minute cleanups
14:01:55
#vim extensions.conf
14:03:20
#:q
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
=========================================================================
...
  == Spawn extension (macro-caller, s, 3) exited non-zero on 'SIP/501-b5d0e548'
    -- Executing [301@gr3:1] Dial("SIP/501-b5d0e548", "SIP/odessa/301") in new stack
    -- Called odessa/301
    -- Got SIP response 603 "Declined" back from 192.168.3.1
    -- SIP/odessa-081e2520 is busy
  == Everyone is busy/congested at this time (1:1/0/0)
  == Auto fallthrough, channel 'SIP/501-b5d0e548' status is 'BUSY'
[May 26 15:06:00] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '5502' rejected because extension not found.
linux5*CLI> quit
Executing last minute cleanups
14:06:28
#vim extensions.conf
--- /tmp/l3-saved-14623.2138.30942	2010-05-26 15:06:29.000000000 +0300
+++ extensions.conf	2010-05-26 15:07:36.000000000 +0300
@@ -6,7 +6,7 @@
 
 [macro-incoming]
 exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end)
-exten => s,n,Dial(SIP/${MACRO_EXTEN})
+exten => s,n,Dial(SIP/${ARG1})
 exten => s,n(end),Hangup
 
 [default]
@@ -16,7 +16,8 @@
 exten => 800,n, Wait(1)
 exten => 800,n, Playback(/var/tmp/greetings)
 ;exten => _5XX,1,Dial(SIP/${EXTEN})
-exten => _5XX,1,Macro(incoming)
+exten => _5XX,1,Macro(incoming,${EXTEN})
+exten => _55XX,1,Macro(incoming,${EXTEN:1})
 exten => 801,1,Answer
 exten => 801,n,Wait(1)
 exten => 801,n,Record(/var/tmp/greetings:gsm,2)
14:07:36
#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 'pbx_dundi.so' (Distributed Universal Number Discovery (DUNDi))
  == Parsing '/etc/asterisk/dundi.conf': Found
    -- Reloading module 'chan_gtalk.so' (Gtalk Channel Driver)
    -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
  == Parsing '/etc/asterisk/iax.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
quit
Executing last minute cleanups
14:07:42
#vim extensions.conf
--- /tmp/l3-saved-14623.27491.27689	2010-05-26 15:07:44.000000000 +0300
+++ extensions.conf	2010-05-26 15:09:13.000000000 +0300
@@ -17,7 +17,7 @@
 exten => 800,n, Playback(/var/tmp/greetings)
 ;exten => _5XX,1,Dial(SIP/${EXTEN})
 exten => _5XX,1,Macro(incoming,${EXTEN})
-exten => _55XX,1,Macro(incoming,${EXTEN:1})
+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)
14:09:13
#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
=========================================================================
...
  == Spawn extension (gr3, 800, 3) exited non-zero on 'SIP/501-b5d12d58'
    -- Executing [5502@gr3:1] Goto("SIP/501-b5d0a370", "local|502|1") in new stack
    -- Goto (local,502,1)
    -- Executing [502@local:1] Macro("SIP/501-b5d0a370", "incoming|502") in new stack
    -- Executing [s@macro-incoming:1] GotoIf("SIP/501-b5d0a370", "0?end") in new stack
    -- Executing [s@macro-incoming:2] Dial("SIP/501-b5d0a370", "SIP/502") in new stack
    -- Called 502
    -- SIP/502-081e2ad0 is ringing
  == Spawn extension (macro-incoming, s, 2) exited non-zero on 'SIP/501-b5d0a370' in macro 'incoming'
  == Spawn extension (macro-incoming, s, 2) exited non-zero on 'SIP/501-b5d0a370'
14:10:01
#vim extensions.conf
--- /tmp/l3-saved-14623.22146.14329	2010-05-26 15:10:29.000000000 +0300
+++ extensions.conf	2010-05-26 15:11:43.000000000 +0300
@@ -14,10 +14,10 @@
 [local]
 exten => 800,1, Answer
 exten => 800,n, Wait(1)
-exten => 800,n, Playback(/var/tmp/greetings)
+exten => 800,n(play), 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 => _5XXX,1,Goto(local,${EXTEN:1},play)
 exten => 801,1,Answer
 exten => 801,n,Wait(1)
 exten => 801,n,Record(/var/tmp/greetings:gsm,2)
14:11:43
#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
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
    -- Executing [5800@gr3:1] Goto("SIP/501-b5d11098", "local|800|play") in new stack
    -- Goto (local,800,3)
    -- Executing [800@local:3] Playback("SIP/501-b5d11098", "/var/tmp/greetings") in new stack
    -- <SIP/501-b5d11098> Playing '/var/tmp/greetings' (language 'en')
  == Auto fallthrough, channel 'SIP/501-b5d11098' status is 'UNKNOWN'
linux5*CLI> quit
Executing last minute cleanups
14:12:19
#vim extensions.conf
--- /tmp/l3-saved-14623.20273.11053	2010-05-26 15:12:20.000000000 +0300
+++ extensions.conf	2010-05-26 15:12:33.000000000 +0300
@@ -18,9 +18,9 @@
 ;exten => _5XX,1,Dial(SIP/${EXTEN})
 exten => _5XX,1,Macro(incoming,${EXTEN})
 exten => _5XXX,1,Goto(local,${EXTEN:1},play)
-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/greetings:gsm,2)
 
 
 [corp]
14:12:33
#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 [5502@gr3:1] Goto("SIP/501-b5d0b900", "local|502|play") in new stack
[May 26 15:12:48] NOTICE[16021]: pbx.c:1892 pbx_extension_helper: No such label 'play' in extension '502' in context 'local'
[May 26 15:12:48] WARNING[16021]: pbx.c:6424 ast_parseable_goto: Priority 'play' must be a number > 0, or valid label
  == Spawn extension (gr3, 5502, 1) exited non-zero on 'SIP/501-b5d0b900'
    -- Executing [5502@gr3:1] Goto("SIP/501-b5d1d630", "local|502|play") in new stack
[May 26 15:12:56] NOTICE[16022]: pbx.c:1892 pbx_extension_helper: No such label 'play' in extension '502' in context 'local'
[May 26 15:12:56] WARNING[16022]: pbx.c:6424 ast_parseable_goto: Priority 'play' must be a number > 0, or valid label
  == Spawn extension (gr3, 5502, 1) exited non-zero on 'SIP/501-b5d1d630'
linux5*CLI> quit
Executing last minute cleanups
14:13:09
#vim extensions.conf
14:13:28
#vim extensions.conf
--- /tmp/l3-saved-14623.8046.12817	2010-05-26 15:13:29.000000000 +0300
+++ extensions.conf	2010-05-26 15:13:48.000000000 +0300
@@ -14,7 +14,7 @@
 [local]
 exten => 800,1, Answer
 exten => 800,n, Wait(1)
-exten => 800,n(play), Playback(/var/tmp/greetings)
+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},play)
14:13:48
#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 'pbx_dundi.so' (Distributed Universal Number Discovery (DUNDi))
  == Parsing '/etc/asterisk/dundi.conf': Found
    -- Reloading module 'chan_gtalk.so' (Gtalk Channel Driver)
    -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
  == Parsing '/etc/asterisk/iax.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
linux5*CLI> quit
Executing last minute cleanups
14:14:27
#vim extensions.conf
--- /tmp/l3-saved-14623.11923.4293	2010-05-26 15:14:28.000000000 +0300
+++ extensions.conf	2010-05-26 15:14:49.000000000 +0300
@@ -17,7 +17,7 @@
 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},play)
+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)
14:14:49
#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 [5800@gr3:1] Goto("SIP/501-b5d16e08", "local|800|1") in new stack
    -- Goto (local,800,1)
    -- Executing [800@local:1] Answer("SIP/501-b5d16e08", "") in new stack
    -- Executing [800@local:2] Wait("SIP/501-b5d16e08", "1") in new stack
    -- Executing [800@local:3] Playback("SIP/501-b5d16e08", "/var/tmp/greetings") in new stack
    -- <SIP/501-b5d16e08> Playing '/var/tmp/greetings' (language 'en')
  == Auto fallthrough, channel 'SIP/501-b5d16e08' status is 'UNKNOWN'
[May 26 15:15:37] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
14:16:24
#vim extensions.conf
--- /tmp/l3-saved-14623.10822.12722	2010-05-26 15:16:25.000000000 +0300
+++ extensions.conf	2010-05-26 15:19:04.000000000 +0300
@@ -1,11 +1,13 @@
 [macro-caller]
 exten => s,1,Set(CALLERID(number)=5${ARG1})
-exten => s,n,GotoIf($[${ARG1}=4401]?end)
+;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($[${CALLERID(numer)}=4401]?end)
+exten => s,1,GotoIf($[BLACKLIST()=1]?end)
 exten => s,n,Dial(SIP/${ARG1})
 exten => s,n(end),Hangup
 
14:19:04
#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
=========================================================================
...
BLACKLIST()=1
         ^
[May 26 15:19:48] WARNING[16145]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
    -- Executing [s@macro-incoming:1] GotoIf("SIP/501-b5d05de8", "BLACKLIST?end") in new stack
    -- Goto (macro-incoming,s,3)
    -- Executing [s@macro-incoming:3] Hangup("SIP/501-b5d05de8", "") in new stack
  == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/501-b5d05de8' in macro 'incoming'
  == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/501-b5d05de8'
linux5*CLI> quit
Executing last minute cleanups
14:20:06
#vim extensions.conf
14:21:06
#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 15:22:03] WARNING[16180]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
    -- Executing [s@macro-incoming:1] GotoIf("SIP/501-b5d0e548", "BLACKLIST?end") in new stack
    -- Goto (macro-incoming,s,3)
    -- Executing [s@macro-incoming:3] Hangup("SIP/501-b5d0e548", "") in new stack
  == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/501-b5d0e548' in macro 'incoming'
  == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/501-b5d0e548'
:q
No such command ':q' (type 'help :q' for other possible commands)
linux5*CLI> quit
Executing last minute cleanups
14:22:14
#vim extensions.conf
--- /tmp/l3-saved-14623.3235.27623	2010-05-26 15:22:15.000000000 +0300
+++ extensions.conf	2010-05-26 15:22:39.000000000 +0300
@@ -7,7 +7,7 @@
 
 [macro-incoming]
 ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end)
-exten => s,1,GotoIf($[BLACKLIST()=1]?end)
+exten => s,1,GotoIf($[${BLACKLIST()}=1]?end)
 exten => s,n,Dial(SIP/${ARG1})
 exten => s,n(end),Hangup
 
14:22:39
#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
=========================================================================
...
    -- Got SIP response 484 "Address Incomplete" back from 192.168.1.1
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/501-b5d0e548' status is 'CHANUNAVAIL'
    -- Executing [702@gr3:1] Dial("SIP/501-b5d0fb08", "SIP/dnepr/702") in new stack
    -- Called dnepr/702
    -- SIP/dnepr-081e3b80 is ringing
  == Spawn extension (gr3, 702, 1) exited non-zero on 'SIP/501-b5d0fb08'
linux5*CLI>
linux5*CLI> quit
Executing last minute cleanups
14:29:43
#vim extensions.conf
--- /tmp/l3-saved-14623.22718.30776	2010-05-26 15:29:45.000000000 +0300
+++ extensions.conf	2010-05-26 16:23:52.000000000 +0300
@@ -8,7 +8,8 @@
 [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,Dial(SIP/${ARG1},5)
+exten => s,n,Dial(SIP/odessa/380504971180)
 exten => s,n(end),Hangup
 
 [default]
/dev/pts/6
14:32:40
#cd /etc/asterisk/

14:32:47
#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

Файлы

  • extensions.conf
  • 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})
    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
    

    Статистика

    Время первой команды журнала10:59:31 2010- 5-26
    Время последней команды журнала14:32:47 2010- 5-26
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 1.98
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 2.02
    Количество командных строк в единицу времени, команда/мин 0.83
    Частота использования команд
    vim44|=========================================| 41.12%
    asterisk29|===========================| 27.10%
    cd5|====| 4.67%
    ssh3|==| 2.80%
    ps2|=| 1.87%
    register2|=| 1.87%
    :q2|=| 1.87%
    grep2|=| 1.87%
    800,n,2|=| 1.87%
    kill2|=| 1.87%
    exten2|=| 1.87%
    dnepr2|=| 1.87%
    type=friend1|| 0.93%
    screen1|| 0.93%
    [local]1|| 0.93%
    gpm1|| 0.93%
    E37:1|| 0.93%
    vi1|| 0.93%
    less1|| 0.93%
    cat1|| 0.93%
    ~1|| 0.93%
    ls1|| 0.93%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$