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

Содержание

Журнал

Вторник (05/25/10)

/dev/tty2
16:14:09
#vim extensions.conf
--- /tmp/l3-saved-4631.32548.20143	2010-05-25 17:14:17.000000000 +0300
+++ extensions.conf	2010-05-25 17:15:00.000000000 +0300
@@ -5,3 +5,8 @@
 exten => 8000,n,Playback(demo-thanks)
 
 exten => _5XX,1,Dial(SIP/${EXTEN})
+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})
+
16:15:00
#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 = 10673)
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 25 17:15:08] WARNING[10684]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service crimea@192.168.1.1, giving up
[May 25 17:15:08] WARNING[10684]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service crimea@192.168.2.1, giving up
linux5*CLI> sip reload
16:15:16
#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
=========================================================================
...
    -- Added extension '_5XX' priority 1 to default
    -- Added extension '_4XX' priority 1 to default
    -- Added extension '_3XX' priority 1 to default
    -- Added extension '_2XX' priority 1 to default
    -- Added extension '_1XX' priority 1 to default
  == Parsing '/etc/asterisk/users.conf': Found
[May 25 17:15:26] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <odessa>, digest has <crimea>
[May 25 17:15:26] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "Linksys Phone" <sip:301@192.168.3.1>;tag=as514cc682
linux5*CLI> quit
Executing last minute cleanups
16:15:49
#vim sip.conf
16:16:12
#register => crimea:password@192.168.4.1/crimea
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> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/sip_notify.conf': Found
[May 25 17:16:40] WARNING[10684]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service crimea@192.168.1.1, giving up
[May 25 17:16:40] WARNING[10684]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service crimea@192.168.2.1, giving up
[May 25 17:16:55] NOTICE[10684]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
16:16:57
#vim sip.conf
--- /tmp/l3-saved-4631.4194.18698	2010-05-25 17:17:01.000000000 +0300
+++ sip.conf	2010-05-25 17:17:08.000000000 +0300
@@ -2,8 +2,8 @@
 context=default
 register => crimea:password@192.168.4.1/crimea
 register => crimea:password@192.168.3.1/crimea
-register => crimea:password@192.168.2.1/crimea
-register => crimea:password@192.168.1.1/crimea
+#register => crimea:password@192.168.2.1/crimea
+#register => crimea:password@192.168.1.1/crimea
 
 
 [501]
16:17:08
#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
=========================================================================
...
kiev                       192.168.2.1                 5060     Unmonitored
odessa                     192.168.3.1                 5060     Unmonitored
kharkov                    192.168.4.1                 5060     Unmonitored
502/502                    192.168.5.10     D          37094    Unmonitored
501/501                    192.168.5.12     D          5060     Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 0 offline]
[May 25 17:17:51] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <odessa>, digest has <crimea>
[May 25 17:17:51] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "Linksys Phone" <sip:301@192.168.3.1>;tag=as5286cdb7
linux5*CLI> quit
Executing last minute cleanups
16:18:02
#vim sip.conf
16:18:30
#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 25 17:18:52] WARNING[10684]: chan_sip.c:12620 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'crimea' to '192.168.3.1'
[May 25 17:19:13] ERROR[10684]: chan_sip.c:8802 register_verify: Peer 'odessa' is trying to register, but not configured as host=dynamic
[May 25 17:19:13] NOTICE[10684]: chan_sip.c:15642 handle_request_register: Registration from '<sip:odessa@192.168.5.1>' failed for '192.168.3.1' - Peer is not supposed to register
[May 25 17:19:23] ERROR[10684]: chan_sip.c:8802 register_verify: Peer 'odessa' is trying to register, but not configured as host=dynamic
[May 25 17:19:23] NOTICE[10684]: chan_sip.c:15642 handle_request_register: Registration from '<sip:odessa@192.168.5.1>' failed for '192.168.3.1' - Peer is not supposed to register
[May 25 17:19:28] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <odessa>, digest has <crimea>
[May 25 17:19:28] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "Linksys Phone" <sip:301@192.168.3.1>;tag=as074aab95
[May 25 17:19:56] NOTICE[10684]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
16:20:20
#vim sip.conf
--- /tmp/l3-saved-4631.6686.12021	2010-05-25 17:20:21.000000000 +0300
+++ sip.conf	2010-05-25 17:20:30.000000000 +0300
@@ -2,7 +2,7 @@
 context=default
 register => crimea:password@192.168.4.1/crimea
 register => crimea:password@192.168.3.1/crimea
-#register => crimea:password@192.168.2.1/crimea
+register => crimea:password@192.168.2.1/crimea
 #register => crimea:password@192.168.1.1/crimea
 
 
16:20:30
#vim extensions.conf
--- /tmp/l3-saved-4631.30059.6422	2010-05-25 17:20:32.000000000 +0300
+++ extensions.conf	2010-05-25 17:20:37.000000000 +0300
@@ -7,6 +7,6 @@
 exten => _5XX,1,Dial(SIP/${EXTEN})
 exten => _4XX,1,Dial(SIP/kharkov/${EXTEN})
 exten => _3XX,1,Dial(SIP/odessa/${EXTEN})
-#exten => _2XX,1,Dial(SIP/kiev/${EXTEN})
+exten => _2XX,1,Dial(SIP/kiev/${EXTEN})
 #exten => _1XX,1,Dial(SIP/dnepr/${EXTEN})
 
16:20: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
=========================================================================
...
[May 25 17:22:04] NOTICE[10684]: chan_sip.c:15642 handle_request_register: Registration from '<sip:odessa@192.168.5.1>' failed for '192.168.3.1' - Peer is not supposed to register
[May 25 17:22:50] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <odessa>, digest has <crimea>
[May 25 17:22:50] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "Linksys Phone" <sip:301@192.168.3.1>;tag=as14142307
[May 25 17:22:56] NOTICE[10684]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
    -- Executing [301@default:1] Dial("SIP/501-081d7b98", "SIP/odessa/301") in new stack
    -- Called odessa/301
[May 25 17:23:11] NOTICE[10684]: chan_sip.c:12412 handle_response_invite: Failed to authenticate on INVITE to '"VoIP phone" <sip:501@192.168.5.1>;tag=as3cb487f1'
    -- SIP/odessa-081dfc78 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/501-081d7b98' status is 'CONGESTION'
16:23:19
#vim extensions.conf
16:24: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
=========================================================================
...
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/sip_notify.conf': Found
[May 25 17:24:50] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <kharkov>, digest has <crimea>
[May 25 17:24:50] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "LinkSys phone" <sip:401@192.168.4.1>;tag=as08f0c6ec
    -- Executing [401@default:1] Dial("SIP/501-081d2108", "SIP/kharkov/401") in new stack
    -- Called kharkov/401
[May 25 17:25:37] NOTICE[10684]: chan_sip.c:12412 handle_response_invite: Failed to authenticate on INVITE to '"VoIP phone" <sip:501@192.168.5.1>;tag=as58ccd403'
    -- SIP/kharkov-081d9a70 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/501-081d2108' status is 'CONGESTION'
16:25:48
#vim sip.conf
16:27:27
#vim sip.conf
--- /tmp/l3-saved-4631.19096.12306	2010-05-25 17:27:30.000000000 +0300
+++ sip.conf	2010-05-25 17:35:42.000000000 +0300
@@ -21,7 +21,7 @@
 [kharkov]
 type=friend
 secret=password
-host=192.168.4.1
+host=dynamic
 
 [odessa]
 type=friend
16:35:42
#vim sip.conf
--- /tmp/l3-saved-4631.25009.671	2010-05-25 17:35:43.000000000 +0300
+++ sip.conf	2010-05-25 17:35:52.000000000 +0300
@@ -1,6 +1,6 @@
 [general]
 context=default
-#register => crimea:password@192.168.4.1/crimea
+register => crimea:password@192.168.4.1/crimea
 register => crimea:password@192.168.3.1/crimea
 register => crimea:password@192.168.2.1/crimea
 #register => crimea:password@192.168.1.1/crimea
16:35: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
=========================================================================
...
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/501-081d2108' status is 'CONGESTION'
    -- Executing [402@default:1] Dial("SIP/501-081dd290", "SIP/kharkov/402") in new stack
    -- Called kharkov/402
    -- SIP/kharkov-081e1208 is ringing
  == Spawn extension (default, 402, 1) exited non-zero on 'SIP/501-081dd290'
[May 25 17:36:39] ERROR[10684]: chan_sip.c:8802 register_verify: Peer 'odessa' is trying to register, but not configured as host=dynamic
[May 25 17:36:39] NOTICE[10684]: chan_sip.c:15642 handle_request_register: Registration from '<sip:odessa@192.168.5.1>' failed for '192.168.3.1' - Peer is not supposed to register
linux5*CLI> quit
Executing last minute cleanups
16:36:40
#vim sip.conf
--- /tmp/l3-saved-4631.31281.6953	2010-05-25 17:36:42.000000000 +0300
+++ sip.conf	2010-05-25 17:37:09.000000000 +0300
@@ -3,7 +3,7 @@
 register => crimea:password@192.168.4.1/crimea
 register => crimea:password@192.168.3.1/crimea
 register => crimea:password@192.168.2.1/crimea
-#register => crimea:password@192.168.1.1/crimea
+register => crimea:password@192.168.1.1/crimea
 
 
 [501]
@@ -26,17 +26,17 @@
 [odessa]
 type=friend
 secret=password
-host=192.168.3.1
+host=dynamic
 
 [kiev]
 type=friend
 secret=password
-host=192.168.2.1
+host=dynamic
 
 [dnepr]
 type=friend
 secret=password
-host=192.168.1.1
+host=dynamic
 
 
 
16:37:09
#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
=========================================================================
...
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/501-081d2108' status is 'CONGESTION'
    -- Executing [401@default:1] Dial("SIP/501-081d7b98", "SIP/kharkov/401") in new stack
    -- Called kharkov/401
[May 25 17:38:36] WARNING[10684]: chan_sip.c:12424 handle_response_invite: Received response: "Forbidden" from '"VoIP phone" <sip:501@192.168.5.1>;tag=as7b67ff18'
    -- SIP/kharkov-081d4f00 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/501-081d7b98' status is 'CONGESTION'
quit
Executing last minute cleanups
16:38:43
#vim sip.conf
16:39:10
#register => crimea:password@192.168.4.1/crimea
exten => 8000,1,Answer
exten => 8000,n,Wait(1)
exten => 8000,n,Playback(demo-thanks)
exten => _1XX,1,Dial(SIP/dnepr/${EXTEN})
exten => _5XX,1,Dial(SIP/${EXTEN})
~
~
~
~
~
~
~
~
~
~
~
"extensions.conf" 12L, 299C written
прошло 16 минут
16:55: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
=========================================================================
...
Name/username              Host            Dyn Nat ACL Port     Status
dnepr                      (Unspecified)    D          0        Unmonitored
kiev                       (Unspecified)    D          0        Unmonitored
odessa/odessa              192.168.3.1      D          5060     Unmonitored
kharkov/kharkov            192.168.4.1      D          5060     Unmonitored
502/502                    (Unspecified)    D          0        Unmonitored
501/501                    192.168.5.12     D          5060     Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 3 offline]
linux5*CLI> quit
Executing last minute cleanups
/dev/tty1
16:56:53
#ssh 192.168.15.6
root@192.168.15.6's password:
Linux linux6.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue May 25 20:56:08 2010 from 192.168.4.204
l3-agent is already running: pid=4374; pidfile=/root/.lilalo/l3-agent.pid
/dev/tty2
17:02:54
#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 [302@default:1] Dial("SIP/501-b5d0b7b8", "SIP/odessa/302") in new stack
    -- Called odessa/302
    -- SIP/odessa-081cb4b0 is ringing
  == Spawn extension (default, 302, 1) exited non-zero on 'SIP/501-b5d0b7b8'
    -- Executing [501@default:1] Dial("SIP/crimea-b5d10c50", "SIP/501") in new stack
    -- Called 501
    -- SIP/501-081cb4b0 is ringing
  == Spawn extension (default, 501, 1) exited non-zero on 'SIP/crimea-b5d10c50'
linux5*CLI> quit
Executing last minute cleanups
17:05:36
#vim sip.conf
17:06:05
#host=dynamic
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
odessa/crimea              (Unspecified)    D          0        Unmonitored
kharkov/crimea             192.168.4.1      D          5060     Unmonitored
502/502                    (Unspecified)    D          0        Unmonitored
501/501                    192.168.5.12     D          5060     Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 2 offline]
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
прошло >2 часов
/dev/tty1
19:57:30
#screen -x

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

/dev/tty2
08:47:53
#asterisk -vvvr
bash: /usr/sbin/asterisk: No such file or directory
08:48:08
#cd /etc

08:49:00
#ls -al | grep aste

08:50:01
#cd /etc/init.d/

08:50:39
#./asterisk restart
\Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
08:50:46
#./asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
08:51:07
#cd /etc/asterisk/

08:51:12
#la -sl
bash: la: command not found
08:51:21
#ls
adsi.conf           enum.conf         manager.conf      rtp.conf
adtranvofr.conf     esel.conf         manager.d         say.conf
agents.conf         extconfig.conf    meetme.conf       sip.conf
alarmreceiver.conf  extensions.ael    mgcp.conf         sip_notify.conf
alsa.conf           extensions.conf   misdn.conf        skinny.conf
amd.conf            features.conf     modules.conf      sla.conf
asterisk.adsi       festival.conf     musiconhold.conf  smdi.conf
asterisk.conf       followme.conf     muted.conf        telcordia-1.adsi
cdr.conf            func_odbc.conf    osp.conf          udptl.conf
cdr_custom.conf     gtalk.conf        oss.conf          users.conf
cdr_manager.conf    h323.conf         phone.conf        voicemail.conf
cdr_odbc.conf       http.conf         privacy.conf      vpb.conf
cdr_pgsql.conf      iax.conf          queues.conf       watchdog.conf
cdr_tds.conf        iaxprov.conf      res_odbc.conf     zapata.conf
codecs.conf         indications.conf  res_pgsql.conf
dnsmgr.conf         jabber.conf       res_snmp.conf
dundi.conf          logger.conf       rpt.conf
08:51:23
#mv sip.conf sip.conf.SAVE

08:51:38
#mv extensions.conf extensions.conf.SAVE

08:51:52
#vi sip.conf
08:53:42
#~
[501]
type=friend
secert=password
host=dynamic
[502]
type=friend
secert=password
host=dynamic
~
~
~
~
~
~
~
~
~
"sip.conf" [New] 15L, 125C written
08:55:07
#vim extensions.conf
--- /dev/null	2010-05-25 11:13:09.502286417 +0300
+++ extensions.conf	2010-05-26 09:58:07.000000000 +0300
@@ -0,0 +1,8 @@
+[default]
+exten => 8000,1, HangUp
+exten => 8000,n, Wait(1)
+exten => 8000,n, Playback(demo-thanks)
+
+exten => _5XX,1,Dial,(SIP/$(EXTEN))
+
+
09:00:33
#vim extensions.conf
09:01:16
#less extensions.conf.SAVE
09:02:13
#vim extensions.conf
--- /tmp/l3-saved-4631.6625.22990	2010-05-26 10:02:15.000000000 +0300
+++ extensions.conf	2010-05-26 10:02:27.000000000 +0300
@@ -1,5 +1,5 @@
 [default]
-exten => 8000,1, HangUp
+exten => 8000,1, Hangup
 exten => 8000,n, Wait(1)
 exten => 8000,n, Playback(demo-thanks)
 
09:02:35
#ls
cdr-csv  cdr-custom  event_log  messages  queue_log
09:02:36
#tail messages
[May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'.
[May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[May 26 10:00:23] WARNING[12996] chan_zap.c: Ignoring switchtype
[May 26 10:00:23] WARNING[12996] chan_zap.c: Ignoring signalling
[May 26 10:00:23] WARNING[12996] chan_zap.c: Ignoring rxwink
[May 26 10:00:23] NOTICE[12996] app_playback.c: Reloading say.conf
09:02:40
#vim sip.conf
09:03:25
#~

09:03:28
#vim sip.conf
--- /tmp/l3-saved-4631.28249.26640	2010-05-26 10:03:29.000000000 +0300
+++ sip.conf	2010-05-26 10:06:15.000000000 +0300
@@ -5,11 +5,32 @@
 type=friend
 secert=password
 host=dynamic
+callerid="Crimea Phone"
 
 [502]
 type=friend
 secert=password
 host=dynamic
+callerid="Crimea SoftPhone"
 
+[dnepr]
+type=friend
+secret=password
+host=dynamic
+
+[kiev]
+type=friend
+secret=password
+host=dynamic
+
+[odessa]
+type=friend
+secret=password
+host=dynamic
+
+[kharkov]
+type=friend
+secret=password
+host=dynamic
 
 
09:06:15
#vim extensions.conf
--- /tmp/l3-saved-4631.19240.10318	2010-05-26 10:06:18.000000000 +0300
+++ extensions.conf	2010-05-26 10:07:51.000000000 +0300
@@ -4,5 +4,9 @@
 exten => 8000,n, Playback(demo-thanks)
 
 exten => _5XX,1,Dial,(SIP/$(EXTEN))
+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))
 
 
09:07:51
#vim sip.conf
--- /tmp/l3-saved-4631.14381.5672	2010-05-26 10:07:52.000000000 +0300
+++ sip.conf	2010-05-26 10:09:43.000000000 +0300
@@ -1,6 +1,7 @@
 [general]
 context=default
 
+
 [501]
 type=friend
 secert=password
09:09: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
=========================================================================
...
502/502                    192.168.5.10     D          39468    Unmonitored
501/501                    192.168.5.12     D          5060     Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
    -- Executing [502@default:1] Dial("SIP/501-08174cd0", "(SIP/$(EXTEN))") in new stack
[May 26 10:09:56] WARNING[13189]: channel.c:3068 ast_request_with_uniqueid: No channel type registered for '(SIP'
[May 26 10:09:56] WARNING[13189]: app_dial.c:1202 dial_exec_full: Unable to create channel of type '(SIP' (cause 66 - Channel not implemented)
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/501-08174cd0' status is 'CHANUNAVAIL'
quit
Executing last minute cleanups
09:10:06
#vim extensions.conf
--- /tmp/l3-saved-4631.30730.14950	2010-05-26 10:10:08.000000000 +0300
+++ extensions.conf	2010-05-26 10:12:18.000000000 +0300
@@ -3,10 +3,10 @@
 exten => 8000,n, Wait(1)
 exten => 8000,n, Playback(demo-thanks)
 
-exten => _5XX,1,Dial,(SIP/$(EXTEN))
-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 => _5XX,1,Dial(SIP/${EXTEN})
+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})
 
 
09:12: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
=========================================================================
...
    -- Executing [502@default:1] Dial("SIP/501-081cf608", "SIP/502") in new stack
    -- Called 502
    -- SIP/502-081d3580 is ringing
  == Spawn extension (default, 502, 1) exited non-zero on 'SIP/501-081cf608'
    -- Executing [8000@default:1] Hangup("SIP/501-081cf608", "") in new stack
  == Spawn extension (default, 8000, 1) exited non-zero on 'SIP/501-081cf608'
q
No such command 'q' (type 'help q' for other possible commands)
linux5*CLI> quit
Executing last minute cleanups
09:12:58
#vim extensions.conf
--- /tmp/l3-saved-4631.11178.5279	2010-05-26 10:13:00.000000000 +0300
+++ extensions.conf	2010-05-26 10:13:14.000000000 +0300
@@ -1,5 +1,5 @@
 [default]
-exten => 8000,1, Hangup
+exten => 8000,1, Answer
 exten => 8000,n, Wait(1)
 exten => 8000,n, Playback(demo-thanks)
 
09:13:14
#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 [8000@default:3] Playback("SIP/501-081ba0f8", "demo-thanks") in new stack
    -- <SIP/501-081ba0f8> Playing 'demo-thanks' (language 'en')
  == Spawn extension (default, 8000, 3) exited non-zero on 'SIP/501-081ba0f8'
    -- Executing [8000@default:1] Answer("SIP/501-081ba0f8", "") in new stack
    -- Executing [8000@default:2] Wait("SIP/501-081ba0f8", "1") in new stack
    -- Executing [8000@default:3] Playback("SIP/501-081ba0f8", "demo-thanks") in new stack
    -- <SIP/501-081ba0f8> Playing 'demo-thanks' (language 'en')
  == Spawn extension (default, 8000, 3) exited non-zero on 'SIP/501-081ba0f8'
linux5*CLI> quit
Executing last minute cleanups
09:13:42
#vim sip.conf
09:13:50
#:q
[default]
exten => 8000,1, Answer
exten => 8000,n, Wait(1)
exten => 8000,n, Playback(demo-thanks)
exten => _5XX,1,Dial(SIP/${EXTEN})
exten => _4XX,1,Dial(SIP/kharkov/${EXTEN})
~
~
~
~
~
~
~
~
~
~
~
~
09:15: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
=========================================================================
...
Name/username              Host            Dyn Nat ACL Port     Status
kharkov                    (Unspecified)    D          0        Unmonitored
odessa                     (Unspecified)    D          0        Unmonitored
kiev                       (Unspecified)    D          0        Unmonitored
dnepr                      (Unspecified)    D          0        Unmonitored
502/502                    192.168.5.10     D          39468    Unmonitored
501/501                    192.168.5.12     D          5060     Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 4 offline]
linux5*CLI> quit
Executing last minute cleanups
09:15:59
#vim extensions.conf
09:16:04
#~
secert=password
register => crimea:password@192.168.3.1/odessa
                                    4.1/kharkov
callerid="Crimea SoftPhone"
[dnepr]
type=friend
secret=password
host=dynamic
"sip.conf" 41L, 565C written
09:16: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
=========================================================================
...
Name/username              Host            Dyn Nat ACL Port     Status
kharkov                    (Unspecified)    D          0        Unmonitored
odessa                     (Unspecified)    D          0        Unmonitored
kiev                       (Unspecified)    D          0        Unmonitored
dnepr                      (Unspecified)    D          0        Unmonitored
502/502                    192.168.5.10     D          39468    Unmonitored
501/501                    192.168.5.12     D          5060     Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 4 offline]
linux5*CLI> quit
Executing last minute cleanups
09:16:30
#vim sip.conf
09:17:58
#vim sip.conf
--- /tmp/l3-saved-4631.21779.11881	2010-05-26 10:17:59.000000000 +0300
+++ sip.conf	2010-05-26 10:18:41.000000000 +0300
@@ -8,13 +8,13 @@
 
 [501]
 type=friend
-secert=password
+secret=password
 host=dynamic
 callerid="Crimea Phone"
 
 [502]
 type=friend
-secert=password
+secret=password
 host=dynamic
 callerid="Crimea SoftPhone"
 
09:18: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
=========================================================================
...
    -- 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'
[May 26 10:19:09] WARNING[12826]: chan_sip.c:12620 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'crimea' to '192.168.4.1'
[May 26 10:19:09] WARNING[12826]: chan_sip.c:12620 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'crimea' to '192.168.3.1'
[May 26 10:19:09] WARNING[12826]: chan_sip.c:12620 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'crimea' to '192.168.2.1'
linux5*CLI> quit
Executing last minute cleanups
09:19:21
#vim sip.conf
09:19:55
#register => crimea:password@192.168.1.1/dnepr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
Name/username              Host            Dyn Nat ACL Port     Status
kharkov/crimea             192.168.4.1      D          5060     Unmonitored
odessa                     (Unspecified)    D          0        Unmonitored
kiev                       (Unspecified)    D          0        Unmonitored
dnepr/crimea               192.168.1.1      D          5060     Unmonitored
502/502                    192.168.5.10     D          39468    Unmonitored
501/501                    192.168.5.12     D          5060     Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 2 offline]
linux5*CLI> quit
Executing last minute cleanups
09:23:44
#vim sip.conf
--- /tmp/l3-saved-4631.4964.21727	2010-05-26 10:23:46.000000000 +0300
+++ sip.conf	2010-05-26 10:24:26.000000000 +0300
@@ -22,20 +22,24 @@
 type=friend
 secret=password
 host=dynamic
+username=crimea
 
 [kiev]
 type=friend
 secret=password
 host=dynamic
+username=crimea
 
 [odessa]
 type=friend
 secret=password
 host=dynamic
+username=crimea
 
 [kharkov]
 type=friend
 secret=password
 host=dynamic
+username=crimea
 
 
09:24:26
#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 (default, 401, 1) exited non-zero on 'SIP/501-081d2108'
    -- Executing [501@default:1] Dial("SIP/crimea-081d2108", "SIP/501") in new stack
    -- Called 501
    -- SIP/501-081d6080 is ringing
    -- SIP/501-081d6080 answered SIP/crimea-081d2108
    -- Native bridging SIP/crimea-081d2108 and SIP/501-081d6080
  == Spawn extension (default, 501, 1) exited non-zero on 'SIP/crimea-081d2108'
[May 26 10:24:55] NOTICE[12826]: chan_sip.c:14668 handle_request_invite: Unable to create/find SIP channel for this INVITE
linux5*CLI> quit
Executing last minute cleanups
09:25:14
#vim sip.conf
09:25:53
#-- INSERT --
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
=========================================================================
...
dnepr/crimea               192.168.1.1      D          5060     Unmonitored
502/502                    192.168.5.10     D          39468    Unmonitored
501/501                    192.168.5.12     D          5060     Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 0 offline]
    -- Executing [201@default:1] Dial("SIP/501-08174cd0", "SIP/kiev/201") in new stack
    -- Called kiev/201
    -- SIP/kiev-0817cbb0 is ringing
  == Spawn extension (default, 201, 1) exited non-zero on 'SIP/501-08174cd0'
linux5*CLI> quit
Executing last minute cleanups
09:31:34
#cd /etc/lilalo/

/dev/pts/2
09:32:02
#ps aux | grep l3
root      4581  3.4  0.2  12480  9208 ?        Ss   May25  46:39 l3-agent
root     13595  0.0  0.0   3116   716 pts/3    R+   10:32   0:00 grep l3
09:32:05
#kill 4581

09:32:10
#l3-agent

09:32:23
#cat /root/.l3rc
l3cd=/users/sergs/asterisk/linux5.unix.nt/root
/dev/tty2
09:32:35
#ls
l3config.pm
09:32:36
#less l3config.pm
/dev/tty2
09:33:16
#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
=========================================================================
...
kharkov/crimea             192.168.4.1      D          5060     Unmonitored
odessa/crimea              192.168.3.1      D          5060     Unmonitored
kiev/crimea                192.168.2.1      D          5060     Unmonitored
dnepr/crimea               192.168.1.1      D          5060     Unmonitored
502/502                    192.168.5.10     D          39468    Unmonitored
501/501                    192.168.5.12     D          5060     Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 0 offline]
[May 26 10:35:52] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
09:37:28
#apt-get install asterisk-doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  asterisk-doc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 32.5MB of archives.
After this operation, 139MB of additional disk space will be used.
Get:1 http://10.0.35.1 lenny/main asterisk-doc 1:1.4.21.2~dfsg-3+lenny1 [32.5MB]
Fetched 32.5MB in 2s (11.7MB/s)
Selecting previously deselected package asterisk-doc.
(Reading database ... 26511 files and directories currently installed.)
Unpacking asterisk-doc (from .../asterisk-doc_1%3a1.4.21.2~dfsg-3+lenny1_all.deb) ...
Setting up asterisk-doc (1:1.4.21.2~dfsg-3+lenny1) ...
09:37:42
#mc
прошло 11 минут
09:48:42
#~

09:48:46
#vim extensions.conf
--- /tmp/l3-saved-13737.21121.21399	2010-05-26 10:48:57.000000000 +0300
+++ extensions.conf	2010-05-26 10:49:42.000000000 +0300
@@ -9,4 +9,4 @@
 exten => _2XX,1,Dial(SIP/kiev/${EXTEN})
 exten => _1XX,1,Dial(SIP/dnepr/${EXTEN})
 
-
+exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN})
09:49:42
#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
=========================================================================
...
    -- Native bridging SIP/501-08174cd0 and SIP/odessa-0817cbb0
  == Spawn extension (default, 380504971180, 1) exited non-zero on 'SIP/501-08174cd0'
[May 26 11:04:59] NOTICE[12826]: chan_sip.c:14668 handle_request_invite: Unable to create/find SIP channel for this INVITE
    -- Executing [302@default:1] Dial("SIP/501-0817cbb0", "SIP/odessa/302") in new stack
    -- Called odessa/302
    -- SIP/odessa-081871a8 is ringing
[May 26 11:05:53] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
  == Spawn extension (default, 302, 1) exited non-zero on 'SIP/501-0817cbb0'
linux5*CLI> quit
Executing last minute cleanups
прошло 17 минут
10:07:16
#vim extensions.conf
10:07:51
#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 11:18:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
[May 26 11:21:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
[May 26 11:24:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
[May 26 11:27:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
[May 26 11:30:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
[May 26 11:33:27] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
[May 26 11:36:27] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
[May 26 11:39:27] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
прошло 33 минуты
10:41:20
#tail -f /var/log/messages
May 26 04:29:53 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:29:53 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:33:29 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0
May 26 04:33:29 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0
May 26 04:34:52 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:34:52 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:38:29 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0
May 26 04:38:29 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0
May 26 04:39:52 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:39:52 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
^C
10:41:49
#tail -f /var/log/syslog
May 26 04:29:53 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:29:53 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:33:29 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0
May 26 04:33:29 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0
May 26 04:34:52 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:34:52 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:38:29 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0
May 26 04:38:29 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0
May 26 04:39:52 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
May 26 04:39:52 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0
q^C
10:42:01
#date
Wed May 26 11:42:03 EEST 2010
прошло 10 минут
10:52:24
#vim sip.conf
10:53:07
#vim sip.conf
10:53:24
#type=friend
[gr3]
include => local
include => corp
include => world
10:53:34
#: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
    -- Executing [502@gr3:1] Dial("SIP/501-081871a8", "SIP/502") in new stack
    -- Called 502
    -- SIP/502-08174cd0 is ringing
  == Spawn extension (gr3, 502, 1) exited non-zero on 'SIP/501-081871a8'
[May 26 11:54:28] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502
linux5*CLI> quit
Executing last minute cleanups
10:54:28
#vim sip.conf
--- /tmp/l3-saved-13737.29175.22029	2010-05-26 11:54:30.000000000 +0300
+++ sip.conf	2010-05-26 11:54:37.000000000 +0300
@@ -7,7 +7,7 @@
 
 
 [501]
-context=gr3
+context=gr2
 type=friend
 secret=password
 host=dynamic
10:54: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
=========================================================================
...
    -- 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'
quiy
No such command 'quiy' (type 'help quiy' for other possible commands)
linux5*CLI> quit
Executing last minute cleanups
10:54:53
#vim sip.conf
10:55:03
#type=friend
[default]
exten => 8000,1, Answer
exten => 8000,n, Wait(1)
exten => 8000,n, Playback(demo-thanks)
[local]
[gr3]
include => local
include => corp
[gr3]
include => local
include => corp
include => world
/dev/pts/2
10:57:04
#mc
/dev/tty2
10:58:15
#: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
=========================================================================
...
    -- Called 501
    -- SIP/501-081d0b78 is ringing
  == Spawn extension (gr1, 501, 1) exited non-zero on 'SIP/502-b5d0fb08'
    -- Executing [402@gr2:1] Dial("SIP/501-b5d0fb08", "SIP/kharkov/402") in new stack
    -- Called kharkov/402
    -- SIP/kharkov-081d0b78 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/501-b5d0fb08' status is 'CONGESTION'
linux5*CLI> quit
Executing last minute cleanups
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

Файлы

  • /root/.l3rc
  • /root/.l3rc
    >
    l3cd=/users/sergs/asterisk/linux5.unix.nt/root
    

    Статистика

    Время первой команды журнала16:14:09 2010- 5-25
    Время последней команды журнала10:59:31 2010- 5-26
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 3.96
    Процент синтаксически неверно набранных команд, % 1.98
    Суммарное время работы с терминалом *, час 2.50
    Количество командных строк в единицу времени, команда/мин 0.67
    Частота использования команд
    vim36|=================================| 33.96%
    asterisk24|======================| 22.64%
    cd4|===| 3.77%
    ~4|===| 3.77%
    ls4|===| 3.77%
    register3|==| 2.83%
    :q3|==| 2.83%
    tail3|==| 2.83%
    type=friend2|=| 1.89%
    less2|=| 1.89%
    grep2|=| 1.89%
    mv2|=| 1.89%
    mc2|=| 1.89%
    crimea2|=| 1.89%
    ps1|| 0.94%
    l3-agent1|| 0.94%
    screen1|| 0.94%
    host=dynamic1|| 0.94%
    vi1|| 0.94%
    apt-get1|| 0.94%
    cat1|| 0.94%
    --1|| 0.94%
    la1|| 0.94%
    kill1|| 0.94%
    ssh1|| 0.94%
    dnepr1|| 0.94%
    date1|| 0.94%
    ____
    *) Интервалы неактивности длительностью 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$