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

Содержание

Журнал

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

/dev/tty1
10:01:26
#mcedit sip.conf

10:09:33
#mcedit extensions.conf

10:09:56
#mcedit sip.conf
[kharkov]                        14  0  14        303          c  99 0x63
[102]
type=friend
secret=password
host=dynamic
canreinvite=no
[103]
type=friend
secret=password
host=dynamic
canreinvite=no
[kiev]
type=friend
secret=password
host=dynamic
username=dnepr
canreinvite=no
[odessa]
type=friendь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
10:10:51
#mcedit extensions.conf

/dev/pts/5
10:14:23
#vi /etc/asterisk/extensions.conf
10:14:23
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15372.10998.31749	2010-05-26 11:14:29.000000000 +0300
+++ /etc/asterisk/extensions.conf	2010-05-26 11:14:51.000000000 +0300
@@ -7,4 +7,5 @@
 exten => _3XX,1,Dial(Sip/odessa/${EXTEN})
 exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN})
 exten => _5XX,1,Dial(Sip/crimea/${EXTEN})
-exten => _6XX,1,Dial(Sip/lvov/${EXTEN})
\ В конце файла нет новой строки
+exten => _6XX,1,Dial(Sip/lvov/${EXTEN})
+
10:15:01
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI> console dial 380681234567
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI> quit
Executing last minute cleanups
10:16:07
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
  == Parsing '/etc/asterisk/users.conf': Found
linux1*CLI>
    -- Got SIP response 486 "Busy Here" back from 192.168.3.1
    -- SIP/odessa-081df130 is busy
  == Everyone is busy/congested at this time (1:1/0/0)
  == Auto fallthrough, channel 'Console/dsp' status is 'BUSY'
[May 26 11:16:20] WARNING[14958]: chan_oss.c:682 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory
linux1*CLI>
linux1*CLI> quit
Executing last minute cleanups
10:16:24
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
10:16:29
#less /var/log/asterisk/messages
/dev/tty3
10:16:29
#asterisk -r
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 linux1 (pid = 15529)
Verbosity is at least 3
linux1*CLI> exit
/dev/pts/5
10:17:16
#less /etc/asterisk/extensions.conf
10:17:27
#less /etc/asterisk/sip.conf
/dev/pts/5
10:19:37
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [380638969600@default:1] Dial("SIP/102-081d1390", "Sip/odessa/380638969600") in new stack
    -- Called odessa/380638969600
    -- Got SIP response 503 "Service Unavailable" back from 192.168.3.1
    -- SIP/odessa-081d88c8 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/102-081d1390' status is 'CONGESTION'
linux1*CLI>
linux1*CLI>
linux1*CLI> quit
Executing last minute cleanups
/dev/pts/5
10:22:40
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-15801.22540.18130	2010-05-26 11:22:50.000000000 +0300
+++ /etc/asterisk/sip.conf	2010-05-26 11:23:04.000000000 +0300
@@ -7,19 +7,19 @@
 ;register => dnepr:password@192.168.6.1/lvov
 
 
-[101]
+[701]
 type=friend
 secret=password
 host=dynamic
 canreinvite=no
 
-[102]
+[702]
 type=friend
 secret=password
 host=dynamic
 canreinvite=no
 
-[103]
+[703]
 type=friend
 secret=password
 host=dynamic
10:23:36
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
прошло 17 минут
/dev/tty1
10:40:38
#mcedit extensions.conf

прошло 10 минут
/dev/tty3
10:51:03
#asterisk -r
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 (gr2, 301, 1) exited non-zero on 'SIP/701-b730b168'
    -- Executing [201@gr2:1] Dial("SIP/701-b730d538", "Sip/kiev/201") in new stack
    -- Called kiev/201
    -- SIP/kiev-081d6548 is ringing
  == Spawn extension (gr2, 201, 1) exited non-zero on 'SIP/701-b730d538'
[May 26 13:36:30] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '701' rejected because extension not found.
[May 26 13:36:41] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '701' rejected because extension not found.
[May 26 13:36:55] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '701' rejected because extension not found.
[May 26 13:36:56] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702
linux1*CLI> quit
/dev/tty1
10:53:52
#mcedit sip.conf

/dev/tty4
10:56:41
#ssh 192.168.5.1
The authenticity of host '192.168.5.1 (192.168.5.1)' can't be established.
RSA key fingerprint is 95:9e:2c:1f:7b:eb:a2:b6:f0:48:a1:90:62:4c:e1:ea.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
10:56:57
#ssh 192.168.5.1
The authenticity of host '192.168.5.1 (192.168.5.1)' can't be established.
RSA key fingerprint is 95:9e:2c:1f:7b:eb:a2:b6:f0:48:a1:90:62:4c:e1:ea.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.5.1' (RSA) to the list of known hosts.
root@192.168.5.1's password:
Linux linux5 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 10:33:10 2010
l3-agent is already running: pid=13611; pidfile=/root/.lilalo/l3-agent.pid
10:57:04
#mc
/dev/tty1
10:59:17
#mcedit extensions.conf
extensions.conf    [----]  0 L:[  1+ 1   2/ 10] *(10  / 304b)= e 101 0x65
[default]
exten => _7XX,1,Dial(Sip/${EXTEN})
exten => _2XX,1,Dial(Sip/kiev/${EXTEN})
exten => _4XX,1,DialBMip/k 0rkov/${E 3   4/ 20    85  / 581b)= e 101 0x65
        ]
exten => _7XX,1,Dial(Sip/${EXTEN})
exten => _2XX,1,Dial(Sip/kiev/${EXTEN})
exten => _2XX,1,Dial(Sip/kiev/${EXodessa}${EXTEN})
exten => _4XX,1,Dial(Sip/kharkov/${EXTEN})
...
     ]
              1,Dial(Sip/kharkov/${EXTEN})
              1,Dial(Sip/odessa/${EXTEN})
      ]
              XXXXXXXX,1,Dial(Sip/odessa/${EXTEN})
include => local
[gr2]
include => world
[gr3]
include => local
11:05:19
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
703                        (Unspecified)    D          0        Unmonitored
702/702                    192.168.1.10     D          15300    Unmonitored
701                        (Unspecified)    D          0        Unmonitored
8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 3 offline]
[May 26 12:06:32] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '301' rejected because extension not found.
[May 26 12:06:51] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '201' rejected because extension not found.
[May 26 12:06:51] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702
[May 26 12:07:05] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '702' rejected because extension not found.
linux1*CLI> quit
Executing last minute cleanups
11:07:15
#mcedit extensions.conf
include => local
[gr3]
include => local
include => corp
include => world
1Помощь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
/dev/pts/5
11:07:16
#less /var/log/asterisk/cdr-csv/ÑMaster.csv
/dev/tty1
11:08:25
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux1 (pid = 15529)
Verbosity is at least 4
[May 26 12:11:15] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '301' rejected because extension not found.
[May 26 12:12:24] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '301' rejected because extension not found.
[May 26 12:12:31] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '501' rejected because extension not found.
[May 26 12:12:36] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '201' rejected because extension not found.
[May 26 12:12:45] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '401' rejected because extension not found.
[May 26 12:12:51] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702
linux1*CLI> quit
Executing last minute cleanups
11:13:01
#mcedit extensions.conf

11:13:10
#mcedit extensions.conf

11:13:18
#mcedit sip.conf

11:13:41
#mcedit extensions.conf

11:13:57
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
  == Parsing '/etc/asterisk/cdr_pgsql.conf': Found
    -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
  == Parsing '/etc/asterisk/iax.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
       > doing dnsmgr_lookup for '216.207.245.47'
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
[May 26 12:14:26] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '702' rejected because extension not found.
linux1*CLI> quit
Executing last minute cleanups
11:14:44
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
kharkov/dnepr              192.168.4.1      D          5060     Unmonitored
odessa/dnepr               192.168.3.1                 5060     Unmonitored
kiev/dnepr                 192.168.2.1      D          5060     Unmonitored
703                        (Unspecified)    D          0        Unmonitored
702/702                    192.168.1.10     D          15300    Unmonitored
701                        (Unspecified)    D          0        Unmonitored
8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 3 offline]
[May 26 12:16:07] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '702' to extension '201' rejected because extension not found.
linux1*CLI> quit
Executing last minute cleanups
11:16:21
#mcedit extensions.conf

11:16:33
#mcedit sip.conf

11:17:31
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
odessa/dnepr               192.168.3.1                 5060     Unmonitored
kiev/dnepr                 192.168.2.1      D          5060     Unmonitored
703                        (Unspecified)    D          0        Unmonitored
702/702                    192.168.1.10     D          15300    Unmonitored
701/701                    192.168.1.11     D          2048     Unmonitored
8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 2 offline]
[May 26 12:21:52] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702
[May 26 12:24:52] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702
linux1*CLI> quit
Executing last minute cleanups
11:25:13
#mcedit extensions.conf
          └────────”€â”€â”€â”€â”€â”€â”€â”€â”───────┘ ─────────────────────┘
[gr2]
include => corp
include => local
[gr3]
/dev/pts/5
11:34:35
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15801.14436.16690	2010-05-26 12:34:46.000000000 +0300
+++ /etc/asterisk/extensions.conf	2010-05-26 12:35:19.000000000 +0300
@@ -2,6 +2,9 @@
 
 [local]
 exten => _7XX,1,Dial(Sip/${EXTEN})
+exten => 801,1,Answer
+exten => 801,n,Wait(1)
+exten => 801,n,Record(/tmp/greetings)
 
 [corp]
 exten => _2XX,1,Dial(Sip/kiev/${EXTEN})
@@ -22,4 +25,4 @@
 [gr3]
 include => local
 include => corp
-include => world
\ В конце файла нет новой строки
+include => world
/dev/tty1
11:36:28
#mcedit extensions.conf

11:36:48
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Registered extension context 'gr2'
    -- Including context 'corp' in context 'gr2'
    -- Including context 'local' in context 'gr2'
    -- Registered extension context 'gr3'
    -- Including context 'local' in context 'gr3'
    -- Including context 'corp' in context 'gr3'
    -- Including context 'world' in context 'gr3'
  == Parsing '/etc/asterisk/users.conf': Found
linux1*CLI> quit
Executing last minute cleanups
11:38:29
#mcedit extensions.conf

11:39:00
#mcedit extensions.conf

11:44:00
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Including context 'corp' in context 'gr3'
    -- Including context 'world' in context 'gr3'
  == Parsing '/etc/asterisk/users.conf': Found
[May 26 12:44:45] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '800' rejected because extension not found.
    -- Executing [801@gr2:1] Answer("SIP/701-b7313940", "") in new stack
    -- Executing [801@gr2:2] Wait("SIP/701-b7313940", "i") in new stack
[May 26 12:45:00] WARNING[16403]: pbx.c:1832 pbx_extension_helper: No application 'Record ' for extension (gr2, 801, 3)
  == Spawn extension (gr2, 801, 3) exited non-zero on 'SIP/701-b7313940'
linux1*CLI> quit
Executing last minute cleanups
11:45:19
#mcedit extensions.conf

11:45:34
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- <SIP/701-b7316460> Playing 'beep' (language 'en')
  == Auto fallthrough, channel 'SIP/701-b7316460' status is 'UNKNOWN'
    -- Executing [801@gr2:1] Answer("SIP/701-b730eac8", "") in new stack
    -- Executing [801@gr2:2] Wait("SIP/701-b730eac8", "i") in new stack
    -- Executing [801@gr2:3] Record("SIP/701-b730eac8", "/var/tmp/welcome:gsm|3") in new stack
    -- <SIP/701-b730eac8> Playing 'beep' (language 'en')
  == Auto fallthrough, channel 'SIP/701-b730eac8' status is 'UNKNOWN'
[May 26 12:48:53] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702
linux1*CLI> quit
Executing last minute cleanups
11:49:10
#mcedit extensions.conf
exten => _801,n,W │                                           │
                  └───────────────────────────────────────────┘
exten => _5XXX,1,Set(CALLERID(all)=Privet<123>)
[gr1]
include => local
11:51:15
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Including context 'corp' in context 'gr2'
    -- Including context 'local' in context 'gr2'
    -- Registered extension context 'gr3'
    -- Including context 'local' in context 'gr3'
    -- Including context 'corp' in context 'gr3'
    -- Including context 'world' in context 'gr3'
  == Parsing '/etc/asterisk/users.conf': Found
[May 26 12:51:53] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702
linux1*CLI> quit
Executing last minute cleanups
11:52:14
#mcedit extensions.conf
extensions.conf    [----] 16 L:[  4+10  14/ 31] *(294 / 593b)= D  68 0x44
[local]
exten => _7XX,1,Dial(Sip/${EXTEN})
exten => _2800,1,Dial(Sip/${EXTEN:1})
exten => _801,1,Answer
                                        )
11:52:44
#mcedit extensions.conf

11:53:16
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Including context 'corp' in context 'gr3'
    -- Including context 'world' in context 'gr3'
  == Parsing '/etc/asterisk/users.conf': Found
    -- Executing [801@gr2:1] Answer("SIP/701-b730d538", "") in new stack
    -- Executing [801@gr2:2] Wait("SIP/701-b730d538", "1") in new stack
    -- Executing [801@gr2:3] Record("SIP/701-b730d538", "/var/tmp/welcome:gsm|3") in new stack
    -- <SIP/701-b730d538> Playing 'beep' (language 'en')
  == Auto fallthrough, channel 'SIP/701-b730d538' status is 'UNKNOWN'
linux1*CLI> quit
Executing last minute cleanups
11:53:45
#mcedit extensions.conf
extensions.conf    [----] 25 L:[  1+ 8   9/ 31] *(165 / 593b)= a  97 0x61
[default]
[local]
[world]
exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN})
[gr1]
include => local
1Помощь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
11:54:49
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Including context 'corp' in context 'gr2'
    -- Including context 'local' in context 'gr2'
    -- Registered extension context 'gr3'
    -- Including context 'local' in context 'gr3'
    -- Including context 'corp' in context 'gr3'
    -- Including context 'world' in context 'gr3'
  == Parsing '/etc/asterisk/users.conf': Found
[May 26 12:55:16] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '701' to extension '800' rejected because extension not found.
linux1*CLI> quit
Executing last minute cleanups
11:55:34
#mcedit sip.conf

11:57:10
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Including context 'local' in context 'gr2'
    -- Registered extension context 'gr3'
    -- Including context 'local' in context 'gr3'
    -- Including context 'corp' in context 'gr3'
    -- Including context 'world' in context 'gr3'
  == Parsing '/etc/asterisk/users.conf': Found
[May 26 12:57:54] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702
[May 26 12:57:59] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '701' to extension '800' rejected because extension not found.
linux1*CLI> quit
Executing last minute cleanups
11:58:06
#mcedit extensions.conf

11:59:22
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [801@gr2:3] Record("SIP/701-b730b168", "/var/tmp/welcome:gsm|3") in new stack
    -- <SIP/701-b730b168> Playing 'beep' (language 'en')
    -- Executing [800@gr2:1] Answer("SIP/701-b730b168", "") in new stack
    -- Executing [800@gr2:2] Wait("SIP/701-b730b168", "1") in new stack
    -- Executing [800@gr2:3] Playback("SIP/701-b730b168", "/var/tmp/welcome") in new stack
    -- <SIP/701-b730b168> Playing '/var/tmp/welcome' (language 'en')
  == Auto fallthrough, channel 'SIP/701-b730b168' status is 'UNKNOWN'
[May 26 13:12:54] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702
linux1*CLI> quit
Executing last minute cleanups
прошло 13 минут
12:13:02
#mcedit extensions.conf

12:19:39
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
crimea/dnepr               192.168.5.1      D          5060     Unmonitored
kharkov/dnepr              192.168.4.1      D          5060     Unmonitored
odessa/dnepr               192.168.3.1                 5060     Unmonitored
kiev/dnepr                 192.168.2.1      D          5060     Unmonitored
703                        (Unspecified)    D          0        Unmonitored
702/702                    192.168.1.10     D          15300    Unmonitored
701/701                    192.168.1.11     D          2048     Unmonitored
8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 2 offline]
linux1*CLI> quit
Executing last minute cleanups
12:21:29
#mcedit sip.conf
register => dnepr:password1592.16232.5  28v       484          .  10 0x0A
type=friendь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
;register => dnepr:password@192.168.3.1/odessa
register => dnepr:password@192.168.4.1/kharkov
;call-limit=1
register => dnepr:password@192.168.5.1/crimea
;register => dnepr:password@192.168.6.1/lvov
callerid="Dnepr Phone"
[702]
secret=password
...
callerid="Dnepr Phone"
[702]
context=gr1
type=friend
secret=password
host=dynamic
[lvov]
username=dnepr
callerid="Kiev Phone"
[odessa]
12:24:19
#mcedit extensions.conf
exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1})
exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _4XXX,1,Dial(Sip/kharkov/${EXTEN:1})
exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _3XXX,1,Dial(Sip/odessa/${EXTEN:1})
exten => _5XXX,1,Set(CALLERID(all)=Privet<123>)
exten => _5XXX,n,Dial(Sip/crimea/${EXTEN:1})
[world]
exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN})
12:26:28
#mcedit extensions.conf

прошло 11 минут
12:38:26
#mcedit sip.conf

12:38:41
#mcedit extensions.conf

12:38:52
#mcedit sip.conf

12:39:11
#mcedit sip.conf

12:39:40
#mcedit sip.conf
[702]
type=friend
host=dynamic
callerid="SoftPhone"
[703]
secret=password
canreinvite=no
secret=password
username=dnepr
callerid="Kiev Phone"
1Помощь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
12:41:15
#mcedit extensions.conf

12:41:40
#mcedit sip.conf
secret=password     BM     0     30  0  30/ 77    498 /1125b)= c  99 0x63
callerid="NoteBookPhone"
[kiev]
type=friend
secret=password
host=dynamic
username=dnepr
canreinvite=no
callerid="Kiev Phone"
context=gr2
[odessa]
type=friend
secret=password
host=192.168.3.1
username=dnepr
canreinvite=no
;limitonpeers=yes
;call-limit=1
callerid="Odessa Phone"
type=friendь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
12:43:14
#mcedit sip.conf
type=friend                      19  0  19        361          c  99 0x63
type=friend
secret=password
host=dynamic
canreinvite=no
callerid="SoftPhone"
[703]
type=friend
secret=password
host=dynamic
canreinvite=no
callerid="NoteBookPhone"
[kiev]
type=friend
secret=password
host=dynamic
username=dnepr
canreinvite=no
callerid="Kiev Phone"
type=friendь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
прошло 33 минуты
13:17:11
#mcedit extensions.conf
exten => _800,n,Wait(M)    1         3   4/ 47] *(65  /1132    .  10 0x0A
 macro-m1]
[xten => s,1,..... $(MACRO_EXTEN)
 xten => s,n,.....
e       ]
exten => _3XX,1,Macro(m1)
[corp]
exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1})
exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _4XXX,1,Dial(Sip/kharkov/${EXTEN:1})
exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
прошло 11 минут
13:29:03
#mcedit extensions.conf
;exten => _3XXX,1,DiB-(Sip 6dessa 1{18  191})     440     8    .  10 0x0A
[macro-m1]
exten => s,1,Set(CALLERID(number)=1${ARG1})
exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}
exten => _3XX,1,Macro(m1,${CALLERID(number)},odessa)
 xten => _3XX,1,Macro(m1,${CALLERID(number)},odessa)
[local]       1,Dial(Sip/${EXTEN})
exten => _7XX,1,Dial(Sip/${EXTEN})1})
exten => _2800,1,Dial( ip/${EXTEN:1})
exten => _801,1,Answer
...
exten => _801,1,Answer
exten => _801,n,Wait(1)
exten => _801,n,Record(/var/tmp/welcome:gsm,3)
exten => _800,1,Answer
exten => _800,n,Wait(1)
exten => _800,n,Playback(/var/tmp/welcome)
[corp]
exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1})
exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
прошло 16 минут
13:45:34
#mceditsip.conf
bash: mceditsip.conf: команда не найдена
13:45:43
#mcedit sip.conf
register => dnepr:password@192.168.4.1/kharkov
;register => dnepr:password@192.168.6.1/lvov
    ]
context=gr2       ┌────────────────── Выход ──────────────────┐
secret=password   │                                           │
canreinvite=no    └───────────────────────────────────────────┘
    ]
context=gr1
secret=password
callerid="SoftPhone"
[703]
[703]
secret=password
type=friendь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
13:46:00
#mcedit extensions.conf
exten => _801,1,AnswBM    39         2   3/ 52    94  /1283    .  10 0x0A
         ]
[xten => _801,n,Wait(1)         )
 xten => s,n,GotoIf($[${ARG1}=101]?end)
                                             })
exten => s,n,(end),Hangupar/tmp/welcome:gsm,3)
[macro-m2]
e       ]
exten => _800,n,Wait(1)
      ]
...
;exten => s,1,ial(SIP/${MACRO_EXTEN},10)
exten => s,1,DotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?endть ]           │
exten => s,n,Gial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})})
exten => s,n(Dnd),Hangup
exten => s,n(end),Ha$[${DIALSTATUS}=BUSY]?busy)
exten => s,n,GotoIf(${DIALSTATUS}=BUSY]?busy)
exten => s,n(busy),Playback(/var/tmp/busy)
exten => _901,1,Answer
exten => _901,n,Wait(1)
;exten => _4XX,1,Dial(Sip/kharkov/${EXTEN})
прошло >2 часов
16:33:07
#mcedit sip.conf
type=friend               11     37  0  37        598          e 101 0x65
canreinvite=no
callerid="Kiev Phone"
context=gr2
[odessa]
type=friend
secret=password
host=192.168.3.1
username=dnepr
canreinvite=no
...
;[lvov]
;type=friend      ┌────────────────── Выход ──────────────────┐
;secret=password  │                                           │
;host=dynamic     └───────────────────────────────────────────┘
;username=dnepr
;canreinvite=no
[sipnet]
type=friend
secret=
username= 0024321191
/dev/pts/3
16:35:11
#mcedit sip.conf
                  ┌────────────────── Выход ──────────────────┐
                  │                                           │
                  └───────────────────────────────────────────┘
/dev/tty1
16:35:21
#mcedit sip.conf

16:35:24
#apt-get install gpm
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
НОВЫЕ пакеты, которые будут установлены:
  gpm
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 213kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 455kB.
Получено:1 http://ftp.ua.debian.org lenny/main gpm 1.20.4-3.1 [213kB]
Получено 213kБ за 0s (394kБ/c)
Предварительная настройка пакетов ...
Выбор ранее не выбранного пакета gpm.
(Чтение базы данных... на данный момент установлено 28937 файлов и каталогов.)
Распаковывается пакет gpm (из файла .../gpm_1.20.4-3.1_i386.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет gpm (1.20.4-3.1) ...
Creating config file /etc/gpm.conf with new version
Stopping mouse interface server: gpmO0o.oops(): [daemon/check_kill.c(38)]: Could not open /var/run/gpm.pid.
 failed!
Starting mouse interface server: gpm.
/dev/pts/3
16:37:27
#cd /etc/asterisk/

16:37:34
#mcedit sip.conf
canreinvite=no
callerid="Crimea Phone"
context=gr2
;[lvov]
;type=friend
;secret=password
;host=dynamic
;username=dnepr
;canreinvite=no
16:38:15
#mcedit sip.conf
canreinvite=no
callerid="Crimea Phone"
context=gr2
;[lvov]
;type=friend
;secret=password
;host=dynamic
;username=dnepr
;canreinvite=no
прошло 11 минут
/dev/tty1
16:49:45
#vi sip.conf
--- /tmp/l3-saved-10416.12530.12417	2010-05-26 17:50:03.000000000 +0300
+++ sip.conf	2010-05-26 17:50:22.000000000 +0300
@@ -74,3 +74,27 @@
 ;host=dynamic
 ;username=dnepr
 ;canreinvite=no
+
+[sipnet]
+type=friend
+secret =
+username = 0024321191
+trunkname = sipnet
+callerid = Xgu.ru
+hasexten = no
+hassip = yes
+hasiax = no
+registeriax = no
+registersip = yes
+host = sipnet.ru
+context = sipnet-in
+insecure = invite
+fromuser = 0024321191
+fromdomain = sipnet.ru
+contact = 100
+disallow=all
+allow = alaw
+allow = ulaw
+allow = g729
+nat = npnet]
+
16:56:09
#mcedit extensions.conf
[world]
exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN})
[gr1]
include => local
[gr2]
include => corp
include => local
[gr3]
include => local
16:59:19
#mcedit sip.conf
hassip = yes
hasiax = no
registeriax = no
registersip = yes
host = sipnet.ru
context = sipnet-in
insecure = invite
fromuser = 0024321191
fromdomain = sipnet.ru
contact = 100
disallow=all
allow = alaw
17:01:09
#mcedit extensions.conf
extensions.conf    [----]  0 L:[ 36+10  46/ 65] *(1523/1875b)= .  10 0x0A
exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1})
exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _4XXX,1,Dial(Sip/kharkov/${EXTEN:1})
;exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
;exten => _3XXX,1,Dial(Sip/odessa/${EXTEN:1})
;exten => _3XXX,1,Macro(m1,${CALLERID(number)},odessa)
exten => _3XXX,1,Macro(incoming)
exten => _5XXX,1,Set(CALLERID(all)=Privet<123>)
exten => _5XXX,n,Dial(Sip/crimea/${EXTEN:1})
exten => -2323,n,Dial(Sip/sipnet/${Exten:1})
1Помощь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
17:01:36
#mcedit sip.conf
context = sipnet-in  -     0     69  1  70        1040/1465    .  10 0x0A
context=gr2
;[lvov]
;type=friend
;secret=password
;host=dynamic
;username=dnepr
[sipnet]
type=friend
secret = coolsip
...
callerid = coolsip
hasexten = no
hassip = yes
hasiax = no
registeriax = no
registersip = yes
host = sipnet.ru
context = gr2
insecure = invite
1Помощь 2Сохрани3Блок   4Замена 5Копия  6Перемес7Поиск  8Удалить9МенюMC 10Выход
прошло 17 минут
/dev/tty4
17:19:21
#exit
exit
Connection to 192.168.5.1 closed.
17:19:24
#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).
прошло 32 минуты
17:51:25
#clear

17:51:31
#mc

Четверг (05/27/10)

08:38:33
#cd /etc/asterisk/

08:38:39
#co
codepage      colrm         command       compose       continue
col           column        compgen       config_data   corelist
colcrt        comm          complete      consolechars
08:38:39
#c
c++             chage           clear           cpan
c2ph            charset         clear_console   cpan2dist
c89             chattr          cmp             cpanp
c89-gcc         chcon           codepage        cpanp-run-perl
c99             chfn            col             cpgr
c99-gcc         chgpasswd       colcrt          cpio
cal             chgrp           colrm           cpp
calendar        chkdupexe       column          cpp-4.3
caller          chmod           comm            cppw
captoinfo       chown           command         c_rehash
case            chpasswd        compgen         cron
cat             chroot          complete        crontab
catchsegv       chrt            compose         csplit
catman          chsh            config_data     ctrlaltdel
cc              chvt            consolechars    ctstat
cd              ckbcomp         continue        cut
cfdisk          cksum           corelist        cyr
c++filt         cleanup-info    cp              cytune
08:38:39
#cp
cp              cpanp           cpio            cppw
cpan            cpanp-run-perl  cpp
cpan2dist       cpgr            cpp-4.3
08:38:39
#cp /etc/asterisk/sip.conf /root/Conf/s.conf.save

08:39:53
#mc
08:40:13
#mcedit voicemail.conf
[general]                       177+18 195        8890          ;  59 0x3B
  R             24 hour time, including minute.
< cidinternalcontexts=intern<-->; Internal Context for Name Playback instead of.
<------><------><------>; extension digits when saying caller id.
  sayduration=no <----->; Turn on/off the duration information before the messag
; saydurationm=2        ; Specify the minimum duration to say. Default is 2 minu
; dialout=fromvm ; Context to dial out from [option 4 from mailbox's advanced me
                 ; If not specified, option 4 will not be listed and dialing out
                 ; from within VoiceMailMain() will not be permitted.
  considered to be unchangeable.
...
; hidefromdir=yes<----->; Hide this mailbox from the directory produced by app_d
<------><------><------>;     The default is "no".
;tempgreetwarn=yes<---->; Remind the user that their temporary greeting is set
[zonemessages]
eastern=America/New_York|'vm-received' Q 'digits/at' IMp
central=America/Chicago|'vm-received' Q 'digits/at' IMp
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
sendvoicemail=yes ; Allow the user to compose and send a voicemail while inside.
прошло 30 минут
/dev/tty1
09:11:00
#vi ext
09:11:00
#vi extensions.conf
--- /tmp/l3-saved-10416.26398.1564	2010-05-27 10:11:14.000000000 +0300
+++ extensions.conf	2010-05-27 10:13:27.000000000 +0300
@@ -11,7 +11,29 @@
 exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end)
 exten => s,n,Dial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})})
 exten => s,n(end),Hangup
-exten => s,n,GotoIf($[${DIALSTATUS}=BUSY]?busy)
+exten => s,n,GotoIf($[${DIALSTATUS}cro-test]
+
+
+
+exten => s,1,Answer
+exten => s,n,Say(${ARG1})
+exten => s,n,Say(${ARG2})
+exten => s,n,Say(${ARG3})
+exten => s,n,Say(${ARG4})
+exten => s,n,Say(${ARG5})
+exten => s,n,Say(${ARG6})
+i
+
+
+exten => s,n,Say(${ARG9})
+exten => s,n,Say(${ARG10})
+exten => s,n,Say(${ARG11})
+exten => s,n,Say(${ARG12})
+exten => s,n,Say(${ARG13})
+exten => s,n,Say(${ARG14})
+exten => s,n,Say(${ARG15})
+
+=BUSY]?busy)
 exten => s,n(busy),Playback(/var/tmp/busy)
 
 
@@ -62,4 +84,4 @@
 [gr3]
 include => local
 include => corp
-include => world
\ В конце файла нет новой строки
+include => world
09:13:27
#mcedit extensions.conf
extensions.conf    [----] 23 L:[ 35+10  45/ 88] *(1027/2256b)= .  10 0x0A
=BUSY]?busy)
exten => s,n(busy),Playback(/var/tmp/busy)
[default]
[local]
exten => _901,1,Answer
                    B      0      3  2   5        148          ;  59 0x3B
;exten => s,n,GotoIf($[${ARG1}=3301]?end)
;exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1})
;exten => s,n,(end),Hangup
...
exten => _901,n,Record(/var/tmp/busy:gsm,3)
exten => _801,1,Answer
exten => _7XX,1,Macro(incoming)
exten => _801,n,Wait(1)
exten => _800,1,Answer
exten => _800,n,Wait(1)
exten => _800,n,Playback(/var/tmp/welcome)
[corp]
exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _801,n,Record(/var/tmp/welcome:gsm,3)
прошло 11 минут
09:25:01
#apt-get install bin
bin86               bindgraph           binutils-dev
bincimap            binfmtc             binutils-doc
bincimap-run        binfmt-support      binutils-h8300-hms
binclock            bing                binutils-m68hc11
bind                biniax2             binutils-m68hc12
bind9               biniax2-data        binutils-m68hc1x
bind9-doc           binkd               binutils-multiarch
bind9-host          bins                binutils-source
bind9utils          binstats            binutils-z80
bind-dev            binutils
bindfs              binutils-avr

Статистика

Время первой команды журнала10:01:26 2010- 5-26
Время последней команды журнала09:25:01 2010- 5-27
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 3.96
Процент синтаксически неверно набранных команд, % 0.99
Суммарное время работы с терминалом *, час 4.21
Количество командных строк в единицу времени, команда/мин 0.40
Частота использования команд
mcedit52|===================================================| 51.49%
asterisk20|===================| 19.80%
vi7|======| 6.93%
less4|===| 3.96%
ssh3|==| 2.97%
mc3|==| 2.97%
apt-get2|=| 1.98%
cp2|=| 1.98%
cd2|=| 1.98%
co1|| 0.99%
mceditsip.conf1|| 0.99%
c1|| 0.99%
/etc/init.d/asterisk1|| 0.99%
clear1|| 0.99%
exit1|| 0.99%
____
*) Интервалы неактивности длительностью 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$