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

Содержание

Журнал

Понедельник (04/08/13)

/dev/pts/1
16:07:41
#nano ./sip.conf
--- /tmp/l3-saved-6269.21131.17736	2013-04-08 17:07:46.000000000 +0300
+++ ./sip.conf	2013-04-08 17:08:26.000000000 +0300
@@ -7,3 +7,13 @@
 type=friend
 secret=1234
 host=dynamic
+
+[1302]
+type=friend
+secret=1234
+host=dynamic
+
+[1303]
+type=friend
+secret=1234
+host=dynamic
/dev/pts/0
16:08:26
#[general]

/dev/pts/1
16:08:26
#[general]

/dev/pts/0
16:08:27
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
    -- Registered SIP '1302' at 192.168.30.100 port 5060
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
/dev/pts/1
16:08:27
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
    -- Registered SIP '1302' at 192.168.30.100 port 5060
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
/dev/pts/0
16:11:30
#nano ./extensions
/dev/pts/1
16:11:30
#nano ./extensions
/dev/pts/0
16:11:30
#nano ./extensions.conf
/dev/pts/1
16:11:30
#nano ./extensions.conf
--- /dev/null	2013-04-08 16:29:52.215249703 +0300
+++ ./extensions.conf	2013-04-08 17:15:00.000000000 +0300
@@ -0,0 +1,4 @@
+[defoult]
+
+exten => 8000,1,Plaback(welcome)
+
/dev/pts/0
16:15:00
#[defoult]

/dev/pts/1
16:15:00
#[defoult]

16:15:59
#[defoult]

/dev/pts/0
16:15:59
#[defoult]

16:16:16
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x94355a0) in local table 0x942f430; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x94355a0)
   -- Time to scan old dialplan and merge leftovers back into the new: 0.000579 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000073 sec
    -- Total time merge_contexts_delete: 0.000653 sec
  == Using SIP RTP CoS mark 5
[Apr  8 17:17:37] NOTICE[6428]: chan_sip.c:20325 handle_request_invite: Call from '1302' to extension '8000' rejected because extension not found in context 'default'.
linux3*CLI> quit
/dev/pts/1
16:16:16
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x94355a0) in local table 0x942f430; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x94355a0)
   -- Time to scan old dialplan and merge leftovers back into the new: 0.000579 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000073 sec
    -- Total time merge_contexts_delete: 0.000653 sec
  == Using SIP RTP CoS mark 5
[Apr  8 17:17:37] NOTICE[6428]: chan_sip.c:20325 handle_request_invite: Call from '1302' to extension '8000' rejected because extension not found in context 'default'.
linux3*CLI> quit
/dev/pts/0
16:18:05
#nano ./extensions.conf
/dev/pts/1
16:18:05
#nano ./extensions.conf
--- /tmp/l3-saved-6269.1763.22394	2013-04-08 17:18:07.000000000 +0300
+++ ./extensions.conf	2013-04-08 17:18:50.000000000 +0300
@@ -1,4 +1,4 @@
-[defoult]
+[default]
 
 exten => 8000,1,Plaback(welcome)
 
/dev/pts/0
16:18:50
#[default]

/dev/pts/1
16:18:50
#[default]

/dev/pts/0
16:18:50
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Time to delete the old dialplan: 0.000032 sec
    -- Total time merge_contexts_delete: 0.000636 sec
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
  == Using SIP RTP CoS mark 5
[Apr  8 17:19:09] WARNING[7094]: pbx.c:3680 pbx_extension_helper: No application 'Plaback' for extension (default, 8000, 1)
  == Spawn extension (default, 8000, 1) exited non-zero on 'SIP/1302-00000000'
linux3*CLI> quit
/dev/pts/1
16:18:50
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Time to delete the old dialplan: 0.000032 sec
    -- Total time merge_contexts_delete: 0.000636 sec
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
  == Using SIP RTP CoS mark 5
[Apr  8 17:19:09] WARNING[7094]: pbx.c:3680 pbx_extension_helper: No application 'Plaback' for extension (default, 8000, 1)
  == Spawn extension (default, 8000, 1) exited non-zero on 'SIP/1302-00000000'
linux3*CLI> quit
/dev/pts/0
16:19:23
#nano ./extensions.conf
/dev/pts/1
16:19:23
#nano ./extensions.conf
--- /tmp/l3-saved-6269.6658.11810	2013-04-08 17:19:25.000000000 +0300
+++ ./extensions.conf	2013-04-08 17:19:33.000000000 +0300
@@ -1,4 +1,4 @@
 [default]
 
-exten => 8000,1,Plaback(welcome)
+exten => 8000,1,Playback(welcome)
 
/dev/pts/0
16:19:33
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Total time merge_contexts_delete: 0.000572 sec
  == Using SIP RTP CoS mark 5
    -- Executing [8000@default:1] Playback("SIP/1302-00000001", "welcome") in new stack
    -- <SIP/1302-00000001> Playing 'welcome.gsm' (language 'en')
    -- Auto fallthrough, channel 'SIP/1302-00000001' status is 'UNKNOWN'
  == Using SIP RTP CoS mark 5
    -- Executing [8000@default:1] Playback("SIP/1302-00000002", "welcome") in new stack
    -- <SIP/1302-00000002> Playing 'welcome.gsm' (language 'en')
    -- Auto fallthrough, channel 'SIP/1302-00000002' status is 'UNKNOWN'
linux3*CLI> quit
/dev/pts/1
16:19:33
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Total time merge_contexts_delete: 0.000572 sec
  == Using SIP RTP CoS mark 5
    -- Executing [8000@default:1] Playback("SIP/1302-00000001", "welcome") in new stack
    -- <SIP/1302-00000001> Playing 'welcome.gsm' (language 'en')
    -- Auto fallthrough, channel 'SIP/1302-00000001' status is 'UNKNOWN'
  == Using SIP RTP CoS mark 5
    -- Executing [8000@default:1] Playback("SIP/1302-00000002", "welcome") in new stack
    -- <SIP/1302-00000002> Playing 'welcome.gsm' (language 'en')
    -- Auto fallthrough, channel 'SIP/1302-00000002' status is 'UNKNOWN'
linux3*CLI> quit
/dev/pts/0
16:22:24
#nano ./extensions.conf
/dev/pts/1
16:22:24
#nano ./extensions.conf
--- /tmp/l3-saved-6269.26514.9511	2013-04-08 17:22:28.000000000 +0300
+++ ./extensions.conf	2013-04-08 17:23:02.000000000 +0300
@@ -2,3 +2,6 @@
 
 exten => 8000,1,Playback(welcome)
 
+exten => 1301,1,Answer
+
+
/dev/pts/0
16:23:02
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- merging incls/swits/igpats from old(app_queue_gosub_virtual_context) to new(app_queue_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x939cfc0)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000562 sec
    -- Time to restore hints and swap in new dialplan: 0.000000 sec
    -- Time to delete the old dialplan: 0.000035 sec
    -- Total time merge_contexts_delete: 0.000597 sec
  == Using SIP RTP CoS mark 5
    -- Executing [1301@default:1] Answer("SIP/1302-00000003", "") in new stack
    -- Auto fallthrough, channel 'SIP/1302-00000003' status is 'UNKNOWN'
linux3*CLI> quit
/dev/pts/1
16:23:02
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- merging incls/swits/igpats from old(app_queue_gosub_virtual_context) to new(app_queue_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x939cfc0)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000562 sec
    -- Time to restore hints and swap in new dialplan: 0.000000 sec
    -- Time to delete the old dialplan: 0.000035 sec
    -- Total time merge_contexts_delete: 0.000597 sec
  == Using SIP RTP CoS mark 5
    -- Executing [1301@default:1] Answer("SIP/1302-00000003", "") in new stack
    -- Auto fallthrough, channel 'SIP/1302-00000003' status is 'UNKNOWN'
linux3*CLI> quit
/dev/pts/0
16:24:45
#nano ./extensions.conf
/dev/pts/1
16:24:45
#nano ./extensions.conf
--- /tmp/l3-saved-6269.21184.30395	2013-04-08 17:24:49.000000000 +0300
+++ ./extensions.conf	2013-04-08 17:27:19.000000000 +0300
@@ -2,6 +2,9 @@
 
 exten => 8000,1,Playback(welcome)
 
-exten => 1301,1,Answer
+exten => 1301,1,Dial(SIP/1301)
+exten => 1302,1,Dial(SIP/1302)
+
+
 
 
/dev/pts/0
16:27:19
#[default]

/dev/pts/1
16:27:19
#[default]

/dev/pts/0
16:27:19
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000035 sec
    -- Total time merge_contexts_delete: 0.000584 sec
  == Using SIP RTP CoS mark 5
    -- Executing [1301@default:1] Dial("SIP/1302-00000004", "SIP/1301") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1301
    -- SIP/1301-00000005 is ringing
  == Spawn extension (default, 1301, 1) exited non-zero on 'SIP/1302-00000004'
linux3*CLI> quit
/dev/pts/1
16:27:19
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000035 sec
    -- Total time merge_contexts_delete: 0.000584 sec
  == Using SIP RTP CoS mark 5
    -- Executing [1301@default:1] Dial("SIP/1302-00000004", "SIP/1301") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1301
    -- SIP/1301-00000005 is ringing
  == Spawn extension (default, 1301, 1) exited non-zero on 'SIP/1302-00000004'
linux3*CLI> quit
/dev/pts/0
16:28:06
#nano ./extensions.conf
/dev/pts/1
16:28:06
#nano ./extensions.conf
--- /tmp/l3-saved-6269.11093.3552	2013-04-08 17:28:09.000000000 +0300
+++ ./extensions.conf	2013-04-08 17:29:53.000000000 +0300
@@ -2,9 +2,10 @@
 
 exten => 8000,1,Playback(welcome)
 
-exten => 1301,1,Dial(SIP/1301)
-exten => 1302,1,Dial(SIP/1302)
+;exten => 1301,1,Dial(SIP/1301)
+;exten => 1302,1,Dial(SIP/1302)
 
+exten => _13XX,1,Dial(SIP/${EXTEN})
 
 
 
/dev/pts/0
16:29:53
#[default]

/dev/pts/1
16:29:53
#[default]

16:29:54
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
linux3*CLI>
linux3*CLI>
linux3*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [1302@default:1] Dial("SIP/1301-00000006", "SIP/1302") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1302
    -- SIP/1302-00000007 is ringing
  == Spawn extension (default, 1302, 1) exited non-zero on 'SIP/1301-00000006'
linux3*CLI> quit
/dev/pts/0
16:29:54
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
linux3*CLI>
linux3*CLI>
linux3*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [1302@default:1] Dial("SIP/1301-00000006", "SIP/1302") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1302
    -- SIP/1302-00000007 is ringing
  == Spawn extension (default, 1302, 1) exited non-zero on 'SIP/1301-00000006'
linux3*CLI> quit
16:35:34
#nano ./extensions.conf
/dev/pts/1
16:35:34
#nano ./extensions.conf
--- /tmp/l3-saved-6269.5779.17708	2013-04-08 17:35:37.000000000 +0300
+++ ./extensions.conf	2013-04-08 17:36:50.000000000 +0300
@@ -6,6 +6,8 @@
 ;exten => 1302,1,Dial(SIP/1302)
 
 exten => _13XX,1,Dial(SIP/${EXTEN})
+exten => _1013XX,1,Dial(SIP/${EXTEN:2})
+exten => _1013XX10,1,Dial(SIP/${EXTEN:2:4})
 
 
 
/dev/pts/0
16:36:53
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Added extension '700' priority 1 to parkedcalls (0xb5063018)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0xb4a03e48) in local table 0x939dcc8; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0xb4a03e48)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000947 sec
    -- Time to restore hints and swap in new dialplan: 0.000000 sec
    -- Time to delete the old dialplan: 0.000041 sec
    -- Total time merge_contexts_delete: 0.000988 sec
  == Using SIP RTP CoS mark 5
linux3*CLI> quit
/dev/pts/1
16:36:53
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Added extension '700' priority 1 to parkedcalls (0xb5063018)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0xb4a03e48) in local table 0x939dcc8; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0xb4a03e48)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000947 sec
    -- Time to restore hints and swap in new dialplan: 0.000000 sec
    -- Time to delete the old dialplan: 0.000041 sec
    -- Total time merge_contexts_delete: 0.000988 sec
  == Using SIP RTP CoS mark 5
linux3*CLI> quit
/dev/pts/0
16:37:41
#nano ./extensions.conf
/dev/pts/1
16:37:41
#nano ./extensions.conf
--- /tmp/l3-saved-6269.26115.2826	2013-04-08 17:37:43.000000000 +0300
+++ ./extensions.conf	2013-04-08 17:38:09.000000000 +0300
@@ -6,6 +6,7 @@
 ;exten => 1302,1,Dial(SIP/1302)
 
 exten => _13XX,1,Dial(SIP/${EXTEN})
+
 exten => _1013XX,1,Dial(SIP/${EXTEN:2})
 exten => _1013XX10,1,Dial(SIP/${EXTEN:2:4})
 
/dev/pts/0
16:38:09
#[default]

/dev/pts/1
16:38:09
#[default]

/dev/pts/0
16:38:10
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Called 1301
    -- SIP/1301-00000009 is ringing
  == Spawn extension (default, 101301, 1) exited non-zero on 'SIP/1302-00000008'
  == Using SIP RTP CoS mark 5
    -- Executing [101302@default:1] Dial("SIP/1301-0000000a", "SIP/1302") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1302
    -- SIP/1302-0000000b is ringing
  == Spawn extension (default, 101302, 1) exited non-zero on 'SIP/1301-0000000a'
linux3*CLI> quit
/dev/pts/1
16:38:10
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 6392)
Verbosity is at least 3
linux3*CLI> dialplan reload
...
    -- Called 1301
    -- SIP/1301-00000009 is ringing
  == Spawn extension (default, 101301, 1) exited non-zero on 'SIP/1302-00000008'
  == Using SIP RTP CoS mark 5
    -- Executing [101302@default:1] Dial("SIP/1301-0000000a", "SIP/1302") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1302
    -- SIP/1302-0000000b is ringing
  == Spawn extension (default, 101302, 1) exited non-zero on 'SIP/1301-0000000a'
linux3*CLI> quit
/dev/pts/0
16:39:10
#nano ./extensions.conf
/dev/pts/1
16:39:10
#nano ./extensions.conf
/dev/pts/0
16:45:12
#[default]

/dev/pts/1
16:45:12
#[default]

/dev/pts/0
16:45:13
#shu
shuf      shutdown
/dev/pts/1
16:45:13
#shu
shuf      shutdown
/dev/pts/0
16:45:13
#shutdown -h now

/dev/pts/1
16:45:13
#shutdown -h now

Вторник (04/09/13)

/dev/pts/5
08:55:39
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 1423)
linux3*CLI>
linux3*CLI>
...
linux3*CLI> features reload
[Apr  9 14:41:57] NOTICE[5055]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.30.101
[Apr  9 14:42:50] NOTICE[5057]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.30.101
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> exit
/dev/pts/4
08:55:39
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux3 (pid = 1423)
linux3*CLI>
linux3*CLI>
...
linux3*CLI> features reload
[Apr  9 14:41:57] NOTICE[5055]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.30.101
[Apr  9 14:42:50] NOTICE[5057]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.30.101
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> exit
/dev/pts/0
08:57:11
#nano /etc/asterisk/sip
/dev/pts/2
08:57:11
#nano /etc/asterisk/sip
/dev/pts/0
08:57:11
#nano /etc/asterisk/sip.conf
/dev/pts/2
08:57:11
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-2187.30766.13678	2013-04-09 09:57:32.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-09 10:03:50.000000000 +0300
@@ -1,6 +1,7 @@
 [general]
 contex=default
 
+register => qweru:1234@192.168.40.1/harare
 ; SIP-peer
 
 [1301]
@@ -17,3 +18,10 @@
 type=friend
 secret=1234
 host=dynamic
+
+[harare]
+type=friend
+secret=1234
+host=dynamic
+username=qweru
+canreinvite=no
/dev/pts/0
09:03:50
#[general]

/dev/pts/2
09:03:50
#[general]

/dev/pts/0
09:10:55
#[general]

/dev/pts/2
09:10:55
#[general]

/dev/pts/0
09:11:03
#nano ./extensions.conf
/dev/pts/2
09:11:03
#nano ./extensions.conf
--- /tmp/l3-saved-2187.21718.16512	2013-04-09 10:11:11.000000000 +0300
+++ ./extensions.conf	2013-04-09 10:13:29.000000000 +0300
@@ -11,4 +11,5 @@
 exten => _1013XX10,1,Dial(SIP/${EXTEN:2:4})
 
 
+exten => _14XX,1,Dial(SIP/harare/${EXTEN})
 
прошло 30 минут
/dev/pts/0
09:42:00
#[general]

/dev/pts/2
09:42:00
#[general]

/dev/pts/0
09:48:07
#nano /etc/asterisk/sip.conf
/dev/pts/2
09:48:07
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-2187.20513.11840	2013-04-09 10:48:15.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-09 10:51:37.000000000 +0300
@@ -8,6 +8,7 @@
 type=friend
 secret=1234
 host=dynamic
+callerid="Gnatishen Yuriy"
 
 [1302]
 type=friend
/dev/pts/0
09:51:37
#[general]

/dev/pts/2
09:51:37
#[general]

/dev/pts/0
09:55:20
#nano /etc/asterisk/sip.conf
/dev/pts/2
09:55:20
#nano /etc/asterisk/sip.conf
прошло 53 минуты
/dev/pts/7
10:49:02
#cd /etc/init
init.d/          initramfs-tools/ inittab
10:49:02
#cd /etc/init.d/
acpid                  dahdi                  isc-dhcp-server        network-manager        single
alsa-utils             dbus                   kbd                    nfs-common             skeleton
anacron                .depend.boot           keyboard-setup         portmap                ssh
asterisk               .depend.start          killprocs              pppd-dns               stop-bootlogd
atd                    .depend.stop           lm-sensors             procps                 stop-bootlogd-single
avahi-daemon           exim4                  loadcpufreq            rc                     sudo
binfmt-support         fancontrol             module-init-tools      rc.local               udev
bluetooth              fuse                   mountall-bootclean.sh  rcS                    udev-mtab
bootlogd               gdm3                   mountall.sh            README                 umountfs
bootlogs               halt                   mountdevsubfs.sh       reboot                 umountnfs.sh
bootmisc.sh            hdparm                 mountkernfs.sh         rmnologin              umountroot
checkfs.sh             hostname.sh            mountnfs-bootclean.sh  rsync                  unattended-upgrades
checkroot.sh           hwclockfirst.sh        mountnfs.sh            rsyslog                urandom
console-setup          hwclock.sh             mountoverflowtmp       saned                  x11-common
cpufrequtils           ifupdown               mtab.sh                screen-cleanup
cron                   ifupdown-clean         networking             sendsigs
10:49:02
#cd /etc/init.d/
acpid                  dahdi                  isc-dhcp-server        network-manager        single
alsa-utils             dbus                   kbd                    nfs-common             skeleton
anacron                .depend.boot           keyboard-setup         portmap                ssh
asterisk               .depend.start          killprocs              pppd-dns               stop-bootlogd
atd                    .depend.stop           lm-sensors             procps                 stop-bootlogd-single
avahi-daemon           exim4                  loadcpufreq            rc                     sudo
binfmt-support         fancontrol             module-init-tools      rc.local               udev
bluetooth              fuse                   mountall-bootclean.sh  rcS                    udev-mtab
bootlogd               gdm3                   mountall.sh            README                 umountfs
bootlogs               halt                   mountdevsubfs.sh       reboot                 umountnfs.sh
bootmisc.sh            hdparm                 mountkernfs.sh         rmnologin              umountroot
checkfs.sh             hostname.sh            mountnfs-bootclean.sh  rsync                  unattended-upgrades
checkroot.sh           hwclockfirst.sh        mountnfs.sh            rsyslog                urandom
console-setup          hwclock.sh             mountoverflowtmp       saned                  x11-common
cpufrequtils           ifupdown               mtab.sh                screen-cleanup
cron                   ifupdown-clean         networking             sendsigs
/dev/pts/8
10:49:02
#cd /etc/init
init.d/          initramfs-tools/ inittab
10:49:02
#cd /etc/init.d/
acpid                  dahdi                  isc-dhcp-server        network-manager        single
alsa-utils             dbus                   kbd                    nfs-common             skeleton
anacron                .depend.boot           keyboard-setup         portmap                ssh
asterisk               .depend.start          killprocs              pppd-dns               stop-bootlogd
atd                    .depend.stop           lm-sensors             procps                 stop-bootlogd-single
avahi-daemon           exim4                  loadcpufreq            rc                     sudo
binfmt-support         fancontrol             module-init-tools      rc.local               udev
bluetooth              fuse                   mountall-bootclean.sh  rcS                    udev-mtab
bootlogd               gdm3                   mountall.sh            README                 umountfs
bootlogs               halt                   mountdevsubfs.sh       reboot                 umountnfs.sh
bootmisc.sh            hdparm                 mountkernfs.sh         rmnologin              umountroot
checkfs.sh             hostname.sh            mountnfs-bootclean.sh  rsync                  unattended-upgrades
checkroot.sh           hwclockfirst.sh        mountnfs.sh            rsyslog                urandom
console-setup          hwclock.sh             mountoverflowtmp       saned                  x11-common
cpufrequtils           ifupdown               mtab.sh                screen-cleanup
cron                   ifupdown-clean         networking             sendsigs
10:49:02
#cd /etc/init.d/
acpid                  dahdi                  isc-dhcp-server        network-manager        single
alsa-utils             dbus                   kbd                    nfs-common             skeleton
anacron                .depend.boot           keyboard-setup         portmap                ssh
asterisk               .depend.start          killprocs              pppd-dns               stop-bootlogd
atd                    .depend.stop           lm-sensors             procps                 stop-bootlogd-single
avahi-daemon           exim4                  loadcpufreq            rc                     sudo
binfmt-support         fancontrol             module-init-tools      rc.local               udev
bluetooth              fuse                   mountall-bootclean.sh  rcS                    udev-mtab
bootlogd               gdm3                   mountall.sh            README                 umountfs
bootlogs               halt                   mountdevsubfs.sh       reboot                 umountnfs.sh
bootmisc.sh            hdparm                 mountkernfs.sh         rmnologin              umountroot
checkfs.sh             hostname.sh            mountnfs-bootclean.sh  rsync                  unattended-upgrades
checkroot.sh           hwclockfirst.sh        mountnfs.sh            rsyslog                urandom
console-setup          hwclock.sh             mountoverflowtmp       saned                  x11-common
cpufrequtils           ifupdown               mtab.sh                screen-cleanup
cron                   ifupdown-clean         networking             sendsigs
/dev/pts/7
10:49:02
#cd /etc/asterisk/

/dev/pts/8
10:49:02
#cd /etc/asterisk/

/dev/pts/7
10:49:22
#reset

/dev/pts/8
10:49:22
#reset

/dev/pts/7
10:49:27
#nano ./sip.conf
/dev/pts/8
10:49:27
#nano ./sip.conf
--- /tmp/l3-saved-3051.14313.15191	2013-04-09 11:49:41.000000000 +0300
+++ ./sip.conf	2013-04-09 11:56:20.000000000 +0300
@@ -8,17 +8,14 @@
 type=friend
 secret=1234
 host=dynamic
-callerid="Gnatishen Yuriy"
+callerid="Gnatishen Yuriy IP"
+contex=gr2
 
 [1302]
 type=friend
 secret=1234
 host=dynamic
-
-[1303]
-type=friend
-secret=1234
-host=dynamic
+contex=gr1
 
 [harare]
 type=friend
/dev/pts/0
10:49:54
#[general]

/dev/pts/2
10:49:54
#[general]

/dev/pts/0
10:52:17
#[default]
  GNU nano 2.2.4                        Файл: /etc/asterisk/extensions.conf                                         Изменен
[default]
exten => 8000,1,Playback(welcome)
^G Помощь      ^O Записать  ^R ЧитФайл    ^Y ПредCтр     ^K Вырезать  ^C ТекПозиц
^X Выход        ^J Выровнять^W Поиск        ^V СледCтр     ^U ОтмВырезк^T Словарь
/dev/pts/2
10:52:17
#[default]
  GNU nano 2.2.4                        Файл: /etc/asterisk/extensions.conf                                         Изменен
[default]
exten => 8000,1,Playback(welcome)
^G Помощь      ^O Записать  ^R ЧитФайл    ^Y ПредCтр     ^K Вырезать  ^C ТекПозиц
^X Выход        ^J Выровнять^W Поиск        ^V СледCтр     ^U ОтмВырезк^T Словарь
/dev/pts/0
10:57:16
#[default]

/dev/pts/2
10:57:16
#[default]

/dev/pts/0
10:57:17
#nano /etc/asterisk/extensions.conf
/dev/pts/2
10:57:17
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2187.5588.4871	2013-04-09 11:57:19.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-09 12:09:01.000000000 +0300
@@ -2,15 +2,21 @@
 
 exten => 8000,1,Playback(welcome)
 
-[national]
+[city]
 	exten => _13XX,1,Dial(SIP/${EXTEN})
+[national]
+	exten => _14XX,1,Dial(SIP/${EXTEN})
 
 [international]
 	exten => _1XXX,1,Dial(SIP/harare/${EXTEN})
 	exten => _2XXX,1,Dial(SIP/harare/${EXTEN})	
 
 [gr1]
-	include => national
+	include => city
 [gr2]
+	include => city
+	include => national
+[gr3]
+	include => city
 	include => national
 	include => international
/dev/pts/7
10:58:15
#[general]

/dev/pts/8
10:58:15
#[general]

Статистика

Время первой команды журнала16:07:41 2013- 4- 8
Время последней команды журнала10:58:15 2013- 4- 9
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 1.98
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 1.26
Количество командных строк в единицу времени, команда/мин 1.34
Частота использования команд
nano35|==================================| 34.65%
[default]18|=================| 17.82%
asterisk16|===============| 15.84%
[general]14|=============| 13.86%
cd8|=======| 7.92%
[defoult]4|===| 3.96%
shu2|=| 1.98%
shutdown2|=| 1.98%
reset2|=| 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$