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

Содержание

Журнал

Среда (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