/l3/users/gnatishen/nt-voip/linux3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#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 |
#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 |
#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 |
#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) + |
#[defoult]
|
#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 |
#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 |
#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) |
#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 |
#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 |
#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) |
#[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 |
#[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 |
#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 + + |
#[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 |
#[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 |
#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) + + |
#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 |
#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 |
#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}) |
#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 |
#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 |
#nano ./extensions.conf
|
#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}) |
#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 |
#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 |
#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}) |
#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 |
#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 |
#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 |
#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 |
#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 |
#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}) |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#[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 Словарь |
#[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 Словарь |
#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 |
Время первой команды журнала | 16:07:41 2013- 4- 8 | |||||||||||||||||||||||||||
Время последней команды журнала | 10:58:15 2013- 4- 9 | |||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 1.98 | |||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.26 | |||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.34 | |||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008