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

Содержание

Журнал

Вторник (10/18/11)

/dev/pts/4
11:09:44
#vi sip.conf
/dev/pts/1
11:09:44
#vi sip.conf
/dev/pts/4
11:09:53
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip show peers
...
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
linux1*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
1101/1101                  192.168.10.201   D          2049     Unmonitored
1102/1102                  192.168.10.200   D          53558    Unmonitored
lv/kv                      192.168.20.1     D          5060     Unmonitored
tbs/kv                     (Unspecified)    D          5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/1
11:09:53
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip show peers
...
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
linux1*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
1101/1101                  192.168.10.201   D          2049     Unmonitored
1102/1102                  192.168.10.200   D          53558    Unmonitored
lv/kv                      192.168.20.1     D          5060     Unmonitored
tbs/kv                     (Unspecified)    D          5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/4
11:10:03
#vi extensions.
/dev/pts/1
11:10:03
#vi extensions.
/dev/pts/4
11:10:03
#vi extensions.conf
--- /tmp/l3-saved-2251.19205.20049	2011-10-18 12:10:10.000000000 +0300
+++ extensions.conf	2011-10-18 12:10:46.000000000 +0300
@@ -12,3 +12,5 @@
 exten => 1102,1,Dial(SIP/${EXTEN})
 
 exten => _32XXXX,1,Dial(SIP/lv/${EXTEN:2})
+
+exten => _21XX,1,Dial(SIP/tbs/${EXTEN})
/dev/pts/1
11:10:03
#vi extensions.conf
11:10:46
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
<--- SIP read from UDP:192.168.10.200:53558 --->
<------------->
Really destroying SIP dialog '35a108cb60a5c7c1370e51c75266ed9d@192.168.15.21' Method: REGISTER
Really destroying SIP dialog '550cd3f247f30ae8371d9f1f693c840b@192.168.15.21' Method: REGISTER
Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER
Really destroying SIP dialog '3c268bb73935-j76mb84nc8n8' Method: ACK
linux1*CLI> ^V
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:10:46
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
<--- SIP read from UDP:192.168.10.200:53558 --->
<------------->
Really destroying SIP dialog '35a108cb60a5c7c1370e51c75266ed9d@192.168.15.21' Method: REGISTER
Really destroying SIP dialog '550cd3f247f30ae8371d9f1f693c840b@192.168.15.21' Method: REGISTER
Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER
Really destroying SIP dialog '3c268bb73935-j76mb84nc8n8' Method: ACK
linux1*CLI> ^V
Disconnected from Asterisk server
Executing last minute cleanups
11:11:58
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:11:58
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:12:01
#vi sip.conf
/dev/pts/1
11:12:01
#vi sip.conf
/dev/pts/4
11:12:29
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Require: timer
Session-Expires: 1800;refresher=uas
Contact: <sip:2102@192.168.10.1>
Content-Length: 0
<------------>
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:12:29
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Require: timer
Session-Expires: 1800;refresher=uas
Contact: <sip:2102@192.168.10.1>
Content-Length: 0
<------------>
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:14:22
#vi sip.conf
/dev/pts/1
11:14:22
#vi sip.conf
/dev/pts/4
11:14:30
#[1101]
exten => 1198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2)
exten => 1198,n,Playback(/var/lib/asterisk/sounds/recorded-voice)
exten => 1101,1,Dial(SIP/${EXTEN})
exten => _10XX,1,Dial(SIP/lv/${EXTEN})
"extensions.conf" 16L, 419C
~
~
~
~
~
~
"extensions.conf" 16L, 415C записано
/dev/pts/1
11:14:30
#[1101]
exten => 1198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2)
exten => 1198,n,Playback(/var/lib/asterisk/sounds/recorded-voice)
exten => 1101,1,Dial(SIP/${EXTEN})
exten => _10XX,1,Dial(SIP/lv/${EXTEN})
"extensions.conf" 16L, 419C
~
~
~
~
~
~
"extensions.conf" 16L, 415C записано
/dev/pts/4
11:15:00
#vi extensions.conf
--- /tmp/l3-saved-2251.1949.24349	2011-10-18 12:15:01.000000000 +0300
+++ extensions.conf	2011-10-18 12:15:47.000000000 +0300
@@ -14,3 +14,5 @@
 exten => _12XX,1,Dial(SIP/lv/${EXTEN})
 
 exten => _21XX,1,Dial(SIP/tbs/${EXTEN})
+
+exten => _23XX,1,Dial(SIP/msk/${EXTEN})
/dev/pts/1
11:15:00
#vi extensions.conf
/dev/pts/4
11:15:47
#vi sip.conf
--- /tmp/l3-saved-2251.10040.25736	2011-10-18 12:15:51.000000000 +0300
+++ sip.conf	2011-10-18 12:17:17.000000000 +0300
@@ -8,6 +8,7 @@
 canreinvite=no
 register => kv:1234@192.168.20.1/lv
 register => kv:1234@192.168.50.1/tbs
+register => kv:1234@192.168.70.1/msk
 
 [1101]
 type=friend
/dev/pts/1
11:15:47
#vi sip.conf
/dev/pts/4
11:17:17
#vi sip.conf
--- /tmp/l3-saved-2251.20563.5864	2011-10-18 12:17:20.000000000 +0300
+++ sip.conf	2011-10-18 12:17:41.000000000 +0300
@@ -35,3 +35,10 @@
 host=dynamic
 username=kv
 monitor=yes
+
+[msk]
+type=friend
+secret=1234
+host=dynamic
+username=kv
+monitor=yes
/dev/pts/1
11:17:17
#vi sip.conf
/dev/pts/4
11:17:41
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER
...
Contact: <sip:lv@192.168.10.1>;expires=120
Date: Tue, 18 Oct 2011 09:19:32 GMT
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Scheduling destruction of SIP dialog '02bb20ee75de99c60f056d160a54be13@192.168.15.21' in 32000 ms (Method: REGISTER)
[Oct 18 12:19:32] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s)
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:17:41
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER
...
Contact: <sip:lv@192.168.10.1>;expires=120
Date: Tue, 18 Oct 2011 09:19:32 GMT
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Scheduling destruction of SIP dialog '02bb20ee75de99c60f056d160a54be13@192.168.15.21' in 32000 ms (Method: REGISTER)
[Oct 18 12:19:32] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s)
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:19:38
#vi extensions.conf
--- /tmp/l3-saved-2251.25674.15026	2011-10-18 12:19:46.000000000 +0300
+++ extensions.conf	2011-10-18 12:19:53.000000000 +0300
@@ -14,5 +14,6 @@
 exten => _12XX,1,Dial(SIP/lv/${EXTEN})
 
 exten => _21XX,1,Dial(SIP/tbs/${EXTEN})
+exten => _22XX,1,Dial(SIP/tbs/${EXTEN})
 
 exten => _23XX,1,Dial(SIP/msk/${EXTEN})
/dev/pts/1
11:19:38
#vi extensions.conf
/dev/pts/4
11:19:53
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> dialplan reload
...
Contact: <sip:lv@192.168.10.1>;expires=120
Date: Tue, 18 Oct 2011 09:21:17 GMT
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Scheduling destruction of SIP dialog '02bb20ee75de99c60f056d160a54be13@192.168.15.21' in 32000 ms (Method: REGISTER)
[Oct 18 12:21:17] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s)
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:19:53
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> dialplan reload
...
Contact: <sip:lv@192.168.10.1>;expires=120
Date: Tue, 18 Oct 2011 09:21:17 GMT
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Scheduling destruction of SIP dialog '02bb20ee75de99c60f056d160a54be13@192.168.15.21' in 32000 ms (Method: REGISTER)
[Oct 18 12:21:17] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s)
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:21:24
#vi extensions.conf
--- /tmp/l3-saved-2251.15146.18334	2011-10-18 12:21:26.000000000 +0300
+++ extensions.conf	2011-10-18 12:23:18.000000000 +0300
@@ -13,7 +13,7 @@
 
 exten => _12XX,1,Dial(SIP/lv/${EXTEN})
 
-exten => _21XX,1,Dial(SIP/tbs/${EXTEN})
-exten => _22XX,1,Dial(SIP/tbs/${EXTEN})
+exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN})
 
-exten => _23XX,1,Dial(SIP/msk/${EXTEN})
+exten => _2[3,4]XX,1,Dial(SIP/msk/${EXTEN})
+exten => _1[3,4]XX,1,Dial(SIP/msk/${EXTEN})
/dev/pts/1
11:21:24
#vi extensions.conf
/dev/pts/4
11:23:18
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> dialplan reload
...
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER
linux1*CLI>
linux1*CLI>
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:23:18
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> dialplan reload
...
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER
linux1*CLI>
linux1*CLI>
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:23:48
#vi extensions.conf
--- /tmp/l3-saved-2251.2026.9937	2011-10-18 12:23:49.000000000 +0300
+++ extensions.conf	2011-10-18 12:26:01.000000000 +0300
@@ -15,5 +15,5 @@
 
 exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN})
 
-exten => _2[3,4]XX,1,Dial(SIP/msk/${EXTEN})
-exten => _1[3,4]XX,1,Dial(SIP/msk/${EXTEN})
+exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN})
+exten => _31XX,1,Dial(SIP/msk/${EXTEN})
/dev/pts/1
11:23:48
#vi extensions.conf
/dev/pts/4
11:26:01
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> dialplan reload
...
linux1*CLI>
linux1*CLI> sip show registry
Host                           dnsmgr Username       Refresh State                Reg.Time
192.168.70.1:5060              N      kv                 120 Rejected
192.168.50.1:5060              N      kv                 105 Registered           Tue, 18 Oct 2011 12:30:02
192.168.20.1:5060              N      kv                 105 Registered           Tue, 18 Oct 2011 12:30:02
3 SIP registrations.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:26:01
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> dialplan reload
...
linux1*CLI>
linux1*CLI> sip show registry
Host                           dnsmgr Username       Refresh State                Reg.Time
192.168.70.1:5060              N      kv                 120 Rejected
192.168.50.1:5060              N      kv                 105 Registered           Tue, 18 Oct 2011 12:30:02
192.168.20.1:5060              N      kv                 105 Registered           Tue, 18 Oct 2011 12:30:02
3 SIP registrations.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:30:42
#less sip.conf
/dev/pts/1
11:30:42
#less sip.conf
/dev/pts/4
11:31:15
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
    -- Executing [1101@default:1] Dial("SIP/msk-00000090", "SIP/1101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1101
    -- SIP/1101-00000091 is ringing
    -- SIP/1101-00000091 answered SIP/msk-00000090
    -- Packet2Packet bridging SIP/msk-00000090 and SIP/1101-00000091
  == Spawn extension (default, 1101, 1) exited non-zero on 'SIP/msk-00000090'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:31:15
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
    -- Executing [1101@default:1] Dial("SIP/msk-00000090", "SIP/1101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1101
    -- SIP/1101-00000091 is ringing
    -- SIP/1101-00000091 answered SIP/msk-00000090
    -- Packet2Packet bridging SIP/msk-00000090 and SIP/1101-00000091
  == Spawn extension (default, 1101, 1) exited non-zero on 'SIP/msk-00000090'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:33:39
#vi sip.conf
--- /tmp/l3-saved-2251.1546.5389	2011-10-18 12:33:43.000000000 +0300
+++ sip.conf	2011-10-18 12:34:17.000000000 +0300
@@ -15,6 +15,7 @@
 secret=1234
 host=dynamic
 monitor=yes
+callerid="Kiev" <1101>
 
 [1102]
 type=friend
/dev/pts/1
11:33:39
#vi sip.conf
/dev/pts/4
11:34:17
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
    -- Called tbs/2201
    -- SIP/tbs-000000ad is ringing
    -- SIP/msk-000000ab is ringing
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/msk-000000ac'
    -- SIP/msk-000000ab answered SIP/lv-000000aa
    -- Packet2Packet bridging SIP/lv-000000aa and SIP/msk-000000ab
  == Spawn extension (default, 2401, 1) exited non-zero on 'SIP/lv-000000aa'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:34:17
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
    -- Called tbs/2201
    -- SIP/tbs-000000ad is ringing
    -- SIP/msk-000000ab is ringing
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/msk-000000ac'
    -- SIP/msk-000000ab answered SIP/lv-000000aa
    -- Packet2Packet bridging SIP/lv-000000aa and SIP/msk-000000ab
  == Spawn extension (default, 2401, 1) exited non-zero on 'SIP/lv-000000aa'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:37:14
#vi extensions.conf
/dev/pts/1
11:37:14
#vi extensions.conf
/dev/pts/4
11:38:04
#[ ]
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
  == Using SIP RTP CoS mark 5
...
Contact: <sip:kv@192.168.70.1>;expires=120
Date: Tue, 18 Oct 2011 09:43:20 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '153c9b954eb5a957326dd09e2ee66aa3@192.168.15.27' in 32000 ms (Method: REGISTER)
Really destroying SIP dialog '6c46bfe44e542fa509402f753517897e@192.168.15.21' Method: REGISTER
Really destroying SIP dialog '153c9b954eb5a957326dd09e2ee66aa3@192.168.15.27' Method: REGISTER
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:38:04
#[ ]
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
  == Using SIP RTP CoS mark 5
...
Contact: <sip:kv@192.168.70.1>;expires=120
Date: Tue, 18 Oct 2011 09:43:20 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '153c9b954eb5a957326dd09e2ee66aa3@192.168.15.27' in 32000 ms (Method: REGISTER)
Really destroying SIP dialog '6c46bfe44e542fa509402f753517897e@192.168.15.21' Method: REGISTER
Really destroying SIP dialog '153c9b954eb5a957326dd09e2ee66aa3@192.168.15.27' Method: REGISTER
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:44:03
#vi extensions.conf
--- /tmp/l3-saved-2251.29933.6468	2011-10-18 12:44:10.000000000 +0300
+++ extensions.conf	2011-10-18 12:49:24.000000000 +0300
@@ -1,19 +1,40 @@
 [default]
 
-exten => 1199,1,Playback(demo-thanks)
-exten => 1199,n,Playback(demo-thanks)
-exten => 1199,n,Playback(demo-thanks)
-
-exten => 1198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2)
-exten => 1198,n,Playback(/var/lib/asterisk/sounds/recorded-voice)
 
+[local]
 exten => 1101,1,Dial(SIP/${EXTEN})
-
 exten => 1102,1,Dial(SIP/${EXTEN})
 
+[national]
 exten => _12XX,1,Dial(SIP/lv/${EXTEN})
 
+[international]
 exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN})
-
 exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN})
 exten => _31XX,1,Dial(SIP/msk/${EXTEN})
+
+[internal]
+exten => 1199,1,Playback(demo-thanks)
+exten => 1199,n,Playback(demo-thanks)
+exten => 1199,n,Playback(demo-thanks)
+
+exten => 1198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2)
+exten => 1198,n,Playback(/var/lib/asterisk/sounds/recorded-voice)
+
+[gr1]
+include => internal
+include => local
+
+[gr2]
+include => internal
+include => local
+include => national
+
+[gr2]
+include => internal
+include => local
+include => national
+include => international
+
+[gr4]
+include => local
/dev/pts/1
11:44:03
#vi extensions.conf
11:49:24
#vi sip.conf
/dev/pts/4
11:49:24
#vi sip.conf
--- /tmp/l3-saved-2251.31286.4011	2011-10-18 12:49:30.000000000 +0300
+++ sip.conf	2011-10-18 12:50:46.000000000 +0300
@@ -16,6 +16,7 @@
 host=dynamic
 monitor=yes
 callerid="Kiev" <1101>
+context=
 
 [1102]
 type=friend
11:50:46
#vi extensions.conf
--- /tmp/l3-saved-2251.13577.32519	2011-10-18 12:50:47.000000000 +0300
+++ extensions.conf	2011-10-18 12:55:53.000000000 +0300
@@ -30,7 +30,7 @@
 include => local
 include => national
 
-[gr2]
+[gr3]
 include => internal
 include => local
 include => national
/dev/pts/1
11:50:46
#vi extensions.conf
/dev/pts/11
11:52:19
#cd /etc/asterisk/

/dev/pts/10
11:52:19
#cd /etc/asterisk/

/dev/pts/11
11:52:23
#vi sip.conf
--- /tmp/l3-saved-4474.23465.23071	2011-10-18 12:52:26.000000000 +0300
+++ sip.conf	2011-10-18 12:54:47.000000000 +0300
@@ -15,14 +15,15 @@
 secret=1234
 host=dynamic
 monitor=yes
-callerid="Kiev" <1101>
-context=
+callerid="Kiev"
+context=gr3
 
 [1102]
 type=friend
 secret=1234
 host=dynamic
 monitor=yes
+context=gr2
 
 [lv]
 type=friend
@@ -30,6 +31,7 @@
 host=dynamic
 username=kv
 monitor=yes
+context=gr3
 
 [tbs]
 type=friend
@@ -37,6 +39,7 @@
 host=dynamic
 username=kv
 monitor=yes
+context=gr3
 
 [msk]
 type=friend
@@ -44,3 +47,4 @@
 host=dynamic
 username=kv
 monitor=yes
+context=gr3
/dev/pts/10
11:52:23
#vi sip.conf
/dev/pts/11
11:54:47
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
[Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.50.1 is 120 sec (Scheduling reregistration in 105 s)
[Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:11655 sip_reregister:    -- Re-registration for  kv@192.168.20.1
[Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s)
linux1*CLI>
linux1*CLI>
  == Using SIP RTP CoS mark 5
[Oct 18 12:55:02] NOTICE[1303]: chan_sip.c:20276 handle_request_invite: Call from '1101' to extension '1102' rejected because extension not found in context 'gr3'.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/10
11:54:47
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
[Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.50.1 is 120 sec (Scheduling reregistration in 105 s)
[Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:11655 sip_reregister:    -- Re-registration for  kv@192.168.20.1
[Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s)
linux1*CLI>
linux1*CLI>
  == Using SIP RTP CoS mark 5
[Oct 18 12:55:02] NOTICE[1303]: chan_sip.c:20276 handle_request_invite: Call from '1101' to extension '1102' rejected because extension not found in context 'gr3'.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/11
11:55:13
#vi sip.conf
/dev/pts/10
11:55:13
#vi sip.conf
/dev/pts/11
11:55:18
#[ecret=1]34
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> dialplan reload
...
    -- Total time merge_contexts_delete: 0.000678 sec
  == Using SIP RTP CoS mark 5
    -- Executing [1102@gr3:1] Dial("SIP/1101-000000d0", "SIP/1102") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1102
    -- SIP/1102-000000d1 is ringing
  == Spawn extension (gr3, 1102, 1) exited non-zero on 'SIP/1101-000000d0'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/10
11:55:18
#[ecret=1]34
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> dialplan reload
...
    -- Total time merge_contexts_delete: 0.000678 sec
  == Using SIP RTP CoS mark 5
    -- Executing [1102@gr3:1] Dial("SIP/1101-000000d0", "SIP/1102") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1102
    -- SIP/1102-000000d1 is ringing
  == Spawn extension (gr3, 1102, 1) exited non-zero on 'SIP/1101-000000d0'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
11:55:53
#vi extensions.conf
/dev/pts/1
11:55:53
#vi extensions.conf
/dev/pts/11
11:56:36
#vi sip.conf
--- /tmp/l3-saved-4474.29240.31285	2011-10-18 12:56:37.000000000 +0300
+++ sip.conf	2011-10-18 12:59:06.000000000 +0300
@@ -14,7 +14,6 @@
 type=friend
 secret=1234
 host=dynamic
-monitor=yes
 callerid="Kiev"
 context=gr3
 
@@ -22,7 +21,6 @@
 type=friend
 secret=1234
 host=dynamic
-monitor=yes
 context=gr2
 
 [lv]
@@ -30,7 +28,7 @@
 secret=1234
 host=dynamic
 username=kv
-monitor=yes
+callerid="Lvov"
 context=gr3
 
 [tbs]
@@ -38,7 +36,6 @@
 secret=1234
 host=dynamic
 username=kv
-monitor=yes
 context=gr3
 
 [msk]
@@ -46,5 +43,5 @@
 secret=1234
 host=dynamic
 username=kv
-monitor=yes
+callerid="Russia"
 context=gr3
/dev/pts/10
11:56:36
#vi sip.conf
/dev/pts/11
11:59:06
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
  Reg. Contact : sip:1102@192.168.10.200:53558;rinstance=2535e764b9d4e490;transport=udp
  Qualify Freq : 60000 ms
  Sess-Timers  : Accept
  Sess-Refresh : uas
  Sess-Expires : 1800 secs
  Min-Sess     : 90 secs
  Parkinglot   :
linux1*CLI>
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/10
11:59:06
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
  Reg. Contact : sip:1102@192.168.10.200:53558;rinstance=2535e764b9d4e490;transport=udp
  Qualify Freq : 60000 ms
  Sess-Timers  : Accept
  Sess-Refresh : uas
  Sess-Expires : 1800 secs
  Min-Sess     : 90 secs
  Parkinglot   :
linux1*CLI>
linux1*CLI> exit
Executing last minute cleanups
прошло 42 минуты
/dev/pts/11
12:41:07
#vi sip.conf
--- /tmp/l3-saved-4474.20081.28096	2011-10-18 13:41:09.000000000 +0300
+++ sip.conf	2011-10-18 13:41:16.000000000 +0300
@@ -21,7 +21,7 @@
 type=friend
 secret=1234
 host=dynamic
-context=gr2
+context=gr1
 
 [lv]
 type=friend
/dev/pts/10
12:41:07
#vi sip.conf
/dev/pts/11
12:41:16
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
Expires: 120
Contact: <sip:kv@192.168.70.1>;expires=120
Date: Tue, 18 Oct 2011 10:41:49 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '2e8649bc0c5e432106fbaee42274c1e6@192.168.15.27' in 32000 ms (Method: REGISTER)
Really destroying SIP dialog '5bfbff590e0934191a02445b1bc9057e@192.168.15.21' Method: REGISTER
linux1*CLI> 31
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/10
12:41:16
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
Expires: 120
Contact: <sip:kv@192.168.70.1>;expires=120
Date: Tue, 18 Oct 2011 10:41:49 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '2e8649bc0c5e432106fbaee42274c1e6@192.168.15.27' in 32000 ms (Method: REGISTER)
Really destroying SIP dialog '5bfbff590e0934191a02445b1bc9057e@192.168.15.21' Method: REGISTER
linux1*CLI> 31
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/11
12:41:52
#vi sip.conf
--- /tmp/l3-saved-4474.25371.11731	2011-10-18 13:41:53.000000000 +0300
+++ sip.conf	2011-10-18 13:42:05.000000000 +0300
@@ -21,6 +21,7 @@
 type=friend
 secret=1234
 host=dynamic
+callerid="Kiev"
 context=gr1
 
 [lv]
/dev/pts/10
12:41:52
#vi sip.conf
/dev/pts/11
12:42:05
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
  == Using SIP RTP CoS mark 5
    -- Executing [1101@gr1:1] Dial("SIP/1102-000000d4", "SIP/1101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1101
    -- SIP/1101-000000d5 is ringing
  == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1102-000000d4'
Really destroying SIP dialog '2e8649bc0c5e432106fbaee42274c1e6@192.168.15.27' Method: REGISTER
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/10
12:42:05
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
  == Using SIP RTP CoS mark 5
    -- Executing [1101@gr1:1] Dial("SIP/1102-000000d4", "SIP/1101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1101
    -- SIP/1101-000000d5 is ringing
  == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1102-000000d4'
Really destroying SIP dialog '2e8649bc0c5e432106fbaee42274c1e6@192.168.15.27' Method: REGISTER
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/11
12:42:33
#vi sip.conf
--- /tmp/l3-saved-4474.31421.8359	2011-10-18 13:42:34.000000000 +0300
+++ sip.conf	2011-10-18 13:42:52.000000000 +0300
@@ -14,14 +14,14 @@
 type=friend
 secret=1234
 host=dynamic
-callerid="Kiev"
+callerid="Kiev" 
 context=gr3
 
 [1102]
 type=friend
 secret=1234
 host=dynamic
-callerid="Kiev"
+callerid="Kiev" <1102>
 context=gr1
 
 [lv]
/dev/pts/10
12:42:33
#vi sip.conf
/dev/pts/11
12:42:52
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
[Oct 18 13:42:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s)
  == Using SIP RTP CoS mark 5
    -- Executing [1101@gr1:1] Dial("SIP/1102-000000d6", "SIP/1101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1101
    -- SIP/1101-000000d7 is ringing
  == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1102-000000d6'
linux1*CLI> sip reload
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/10
12:42:52
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
[Oct 18 13:42:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s)
  == Using SIP RTP CoS mark 5
    -- Executing [1101@gr1:1] Dial("SIP/1102-000000d6", "SIP/1101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1101
    -- SIP/1101-000000d7 is ringing
  == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1102-000000d6'
linux1*CLI> sip reload
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/11
12:43:02
#vi sip.conf
--- /tmp/l3-saved-4474.18119.24634	2011-10-18 13:43:03.000000000 +0300
+++ sip.conf	2011-10-18 13:43:51.000000000 +0300
@@ -21,7 +21,7 @@
 type=friend
 secret=1234
 host=dynamic
-callerid="Kiev" <1102>
+callerid="Kiev"
 context=gr1
 
 [lv]
/dev/pts/10
12:43:02
#vi sip.conf
/dev/pts/11
12:43:52
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:1101@192.168.10.1>
Content-Length: 0
<------------>
<--- SIP read from UDP:192.168.10.200:53558 --->
<------------->
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/10
12:43:52
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI> sip reload
...
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:1101@192.168.10.1>
Content-Length: 0
<------------>
<--- SIP read from UDP:192.168.10.200:53558 --->
<------------->
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/11
12:48:41
#vi sip.conf
/dev/pts/10
12:48:41
#vi sip.conf
прошло 19 минут
/dev/pts/11
13:08:10
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
CSeq: 2 ACK
Max-Forwards: 70
Contact: <sip:1101@192.168.10.201:2049;line=2txv9129>;reg-id=1
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '034939981b7bbced6c9965c37f84aac2@192.168.10.1' Method: INVITE
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/10
13:08:10
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
linux1*CLI>
...
CSeq: 2 ACK
Max-Forwards: 70
Contact: <sip:1101@192.168.10.201:2049;line=2txv9129>;reg-id=1
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '034939981b7bbced6c9965c37f84aac2@192.168.10.1' Method: INVITE
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/11
13:10:18
#vi sip.conf
--- /tmp/l3-saved-4474.24384.803	2011-10-18 14:11:01.000000000 +0300
+++ sip.conf	2011-10-18 14:14:01.000000000 +0300
@@ -37,6 +37,7 @@
 secret=1234
 host=dynamic
 username=kv
+;callerid="Geog"
 context=gr3
 
 [msk]
@@ -44,5 +45,4 @@
 secret=1234
 host=dynamic
 username=kv
-callerid="Russia"
 context=gr3
/dev/pts/10
13:10:18
#vi sip.conf
/dev/pts/11
13:14:01
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
<--- SIP read from UDP:192.168.50.1:5060 --->
...
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Expires: 120
Contact: <sip:kv@192.168.20.1>;expires=120
Date: Tue, 18 Oct 2011 11:15:46 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '2807bac02b87f6e25992511121a646a3@192.168.15.22' in 32000 ms (Method: REGISTER)
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/10
13:14:01
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256)
Verbosity is at least 10
<--- SIP read from UDP:192.168.50.1:5060 --->
...
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Expires: 120
Contact: <sip:kv@192.168.20.1>;expires=120
Date: Tue, 18 Oct 2011 11:15:46 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '2807bac02b87f6e25992511121a646a3@192.168.15.22' in 32000 ms (Method: REGISTER)
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/11
13:15:54
#apt-get install sendmail sendmail-bin sensible-mda
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
  mysql-common libmysqlclient16
Для их удаления используйте 'apt-get autoremove'.
Будут установлены следующие дополнительные пакеты:
  libmysqlclient16 mysql-common sendmail-base sendmail-cf
Предлагаемые пакеты:
  sendmail-doc rmail logcheck resolvconf sasl2-bin
...
Распаковывается пакет libmysqlclient16 (из файла .../libmysqlclient16_5.1.49-3_i386.deb)...
Выбор ранее не выбранного пакета sensible-mda.
Распаковывается пакет sensible-mda (из файла .../sensible-mda_8.14.3-9.4_i386.deb)...
Выбор ранее не выбранного пакета sendmail.
Распаковывается пакет sendmail (из файла .../sendmail_8.14.3-9.4_all.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет mysql-common (5.1.49-3) ...
Настраивается пакет libmysqlclient16 (5.1.49-3) ...
Настраивается пакет sensible-mda (8.14.3-9.4) ...
Настраивается пакет sendmail (8.14.3-9.4) ...
/dev/pts/10
13:15:54
#apt-get install sendmail sendmail-bin sensible-mda
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
  mysql-common libmysqlclient16
Для их удаления используйте 'apt-get autoremove'.
Будут установлены следующие дополнительные пакеты:
  libmysqlclient16 mysql-common sendmail-base sendmail-cf
Предлагаемые пакеты:
  sendmail-doc rmail logcheck resolvconf sasl2-bin
...
Распаковывается пакет libmysqlclient16 (из файла .../libmysqlclient16_5.1.49-3_i386.deb)...
Выбор ранее не выбранного пакета sensible-mda.
Распаковывается пакет sensible-mda (из файла .../sensible-mda_8.14.3-9.4_i386.deb)...
Выбор ранее не выбранного пакета sendmail.
Распаковывается пакет sendmail (из файла .../sendmail_8.14.3-9.4_all.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет mysql-common (5.1.49-3) ...
Настраивается пакет libmysqlclient16 (5.1.49-3) ...
Настраивается пакет sensible-mda (8.14.3-9.4) ...
Настраивается пакет sendmail (8.14.3-9.4) ...
/dev/pts/11
13:16:33
#cd /etc/sensors
bash: cd: /etc/sensors: Нет такого файла или каталога

Статистика

Время первой команды журнала11:09:44 2011-10-18
Время последней команды журнала13:16:33 2011-10-18
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 0.99
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 1.41
Количество командных строк в единицу времени, команда/мин 1.19
Частота использования команд
vi52|===================================================| 51.49%
asterisk36|===================================| 35.64%
cd3|==| 2.97%
[ecret=1]342|=| 1.98%
[2|=| 1.98%
less2|=| 1.98%
apt-get2|=| 1.98%
[1101]2|=| 1.98%
____
*) Интервалы неактивности длительностью 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$