/l3/users/sergs/asterisk/linux5.unix.nt/root :1 :2 :3 :4 :5 :6 |
|
#vim extensions.conf
--- /tmp/l3-saved-4631.32548.20143 2010-05-25 17:14:17.000000000 +0300 +++ extensions.conf 2010-05-25 17:15:00.000000000 +0300 @@ -5,3 +5,8 @@ exten => 8000,n,Playback(demo-thanks) exten => _5XX,1,Dial(SIP/${EXTEN}) +exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) +exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) +exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _1XX,1,Dial(SIP/dnepr/${EXTEN}) + |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux5 (pid = 10673) Verbosity is at least 3 linux5*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/sip_notify.conf': Found [May 25 17:15:08] WARNING[10684]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service crimea@192.168.1.1, giving up [May 25 17:15:08] WARNING[10684]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service crimea@192.168.2.1, giving up linux5*CLI> sip reload |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Added extension '_5XX' priority 1 to default -- Added extension '_4XX' priority 1 to default -- Added extension '_3XX' priority 1 to default -- Added extension '_2XX' priority 1 to default -- Added extension '_1XX' priority 1 to default == Parsing '/etc/asterisk/users.conf': Found [May 25 17:15:26] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <odessa>, digest has <crimea> [May 25 17:15:26] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "Linksys Phone" <sip:301@192.168.3.1>;tag=as514cc682 linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#register => crimea:password@192.168.4.1/crimea
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux5*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/sip_notify.conf': Found [May 25 17:16:40] WARNING[10684]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service crimea@192.168.1.1, giving up [May 25 17:16:40] WARNING[10684]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service crimea@192.168.2.1, giving up [May 25 17:16:55] NOTICE[10684]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-4631.4194.18698 2010-05-25 17:17:01.000000000 +0300 +++ sip.conf 2010-05-25 17:17:08.000000000 +0300 @@ -2,8 +2,8 @@ context=default register => crimea:password@192.168.4.1/crimea register => crimea:password@192.168.3.1/crimea -register => crimea:password@192.168.2.1/crimea -register => crimea:password@192.168.1.1/crimea +#register => crimea:password@192.168.2.1/crimea +#register => crimea:password@192.168.1.1/crimea [501] |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... kiev 192.168.2.1 5060 Unmonitored odessa 192.168.3.1 5060 Unmonitored kharkov 192.168.4.1 5060 Unmonitored 502/502 192.168.5.10 D 37094 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 0 offline] [May 25 17:17:51] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <odessa>, digest has <crimea> [May 25 17:17:51] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "Linksys Phone" <sip:301@192.168.3.1>;tag=as5286cdb7 linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [May 25 17:18:52] WARNING[10684]: chan_sip.c:12620 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'crimea' to '192.168.3.1' [May 25 17:19:13] ERROR[10684]: chan_sip.c:8802 register_verify: Peer 'odessa' is trying to register, but not configured as host=dynamic [May 25 17:19:13] NOTICE[10684]: chan_sip.c:15642 handle_request_register: Registration from '<sip:odessa@192.168.5.1>' failed for '192.168.3.1' - Peer is not supposed to register [May 25 17:19:23] ERROR[10684]: chan_sip.c:8802 register_verify: Peer 'odessa' is trying to register, but not configured as host=dynamic [May 25 17:19:23] NOTICE[10684]: chan_sip.c:15642 handle_request_register: Registration from '<sip:odessa@192.168.5.1>' failed for '192.168.3.1' - Peer is not supposed to register [May 25 17:19:28] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <odessa>, digest has <crimea> [May 25 17:19:28] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "Linksys Phone" <sip:301@192.168.3.1>;tag=as074aab95 [May 25 17:19:56] NOTICE[10684]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-4631.6686.12021 2010-05-25 17:20:21.000000000 +0300 +++ sip.conf 2010-05-25 17:20:30.000000000 +0300 @@ -2,7 +2,7 @@ context=default register => crimea:password@192.168.4.1/crimea register => crimea:password@192.168.3.1/crimea -#register => crimea:password@192.168.2.1/crimea +register => crimea:password@192.168.2.1/crimea #register => crimea:password@192.168.1.1/crimea |
#vim extensions.conf
--- /tmp/l3-saved-4631.30059.6422 2010-05-25 17:20:32.000000000 +0300 +++ extensions.conf 2010-05-25 17:20:37.000000000 +0300 @@ -7,6 +7,6 @@ exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) -#exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) #exten => _1XX,1,Dial(SIP/dnepr/${EXTEN}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [May 25 17:22:04] NOTICE[10684]: chan_sip.c:15642 handle_request_register: Registration from '<sip:odessa@192.168.5.1>' failed for '192.168.3.1' - Peer is not supposed to register [May 25 17:22:50] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <odessa>, digest has <crimea> [May 25 17:22:50] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "Linksys Phone" <sip:301@192.168.3.1>;tag=as14142307 [May 25 17:22:56] NOTICE[10684]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 -- Executing [301@default:1] Dial("SIP/501-081d7b98", "SIP/odessa/301") in new stack -- Called odessa/301 [May 25 17:23:11] NOTICE[10684]: chan_sip.c:12412 handle_response_invite: Failed to authenticate on INVITE to '"VoIP phone" <sip:501@192.168.5.1>;tag=as3cb487f1' -- SIP/odessa-081dfc78 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/501-081d7b98' status is 'CONGESTION' |
#vim extensions.conf
|
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/sip_notify.conf': Found [May 25 17:24:50] WARNING[10684]: chan_sip.c:8505 check_auth: username mismatch, have <kharkov>, digest has <crimea> [May 25 17:24:50] NOTICE[10684]: chan_sip.c:14377 handle_request_invite: Failed to authenticate user "LinkSys phone" <sip:401@192.168.4.1>;tag=as08f0c6ec -- Executing [401@default:1] Dial("SIP/501-081d2108", "SIP/kharkov/401") in new stack -- Called kharkov/401 [May 25 17:25:37] NOTICE[10684]: chan_sip.c:12412 handle_response_invite: Failed to authenticate on INVITE to '"VoIP phone" <sip:501@192.168.5.1>;tag=as58ccd403' -- SIP/kharkov-081d9a70 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/501-081d2108' status is 'CONGESTION' |
#vim sip.conf
|
#vim sip.conf
--- /tmp/l3-saved-4631.19096.12306 2010-05-25 17:27:30.000000000 +0300 +++ sip.conf 2010-05-25 17:35:42.000000000 +0300 @@ -21,7 +21,7 @@ [kharkov] type=friend secret=password -host=192.168.4.1 +host=dynamic [odessa] type=friend |
#vim sip.conf
--- /tmp/l3-saved-4631.25009.671 2010-05-25 17:35:43.000000000 +0300 +++ sip.conf 2010-05-25 17:35:52.000000000 +0300 @@ -1,6 +1,6 @@ [general] context=default -#register => crimea:password@192.168.4.1/crimea +register => crimea:password@192.168.4.1/crimea register => crimea:password@192.168.3.1/crimea register => crimea:password@192.168.2.1/crimea #register => crimea:password@192.168.1.1/crimea |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/501-081d2108' status is 'CONGESTION' -- Executing [402@default:1] Dial("SIP/501-081dd290", "SIP/kharkov/402") in new stack -- Called kharkov/402 -- SIP/kharkov-081e1208 is ringing == Spawn extension (default, 402, 1) exited non-zero on 'SIP/501-081dd290' [May 25 17:36:39] ERROR[10684]: chan_sip.c:8802 register_verify: Peer 'odessa' is trying to register, but not configured as host=dynamic [May 25 17:36:39] NOTICE[10684]: chan_sip.c:15642 handle_request_register: Registration from '<sip:odessa@192.168.5.1>' failed for '192.168.3.1' - Peer is not supposed to register linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-4631.31281.6953 2010-05-25 17:36:42.000000000 +0300 +++ sip.conf 2010-05-25 17:37:09.000000000 +0300 @@ -3,7 +3,7 @@ register => crimea:password@192.168.4.1/crimea register => crimea:password@192.168.3.1/crimea register => crimea:password@192.168.2.1/crimea -#register => crimea:password@192.168.1.1/crimea +register => crimea:password@192.168.1.1/crimea [501] @@ -26,17 +26,17 @@ [odessa] type=friend secret=password -host=192.168.3.1 +host=dynamic [kiev] type=friend secret=password -host=192.168.2.1 +host=dynamic [dnepr] type=friend secret=password -host=192.168.1.1 +host=dynamic |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/501-081d2108' status is 'CONGESTION' -- Executing [401@default:1] Dial("SIP/501-081d7b98", "SIP/kharkov/401") in new stack -- Called kharkov/401 [May 25 17:38:36] WARNING[10684]: chan_sip.c:12424 handle_response_invite: Received response: "Forbidden" from '"VoIP phone" <sip:501@192.168.5.1>;tag=as7b67ff18' -- SIP/kharkov-081d4f00 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/501-081d7b98' status is 'CONGESTION' quit Executing last minute cleanups |
#vim sip.conf
|
#register => crimea:password@192.168.4.1/crimea
exten => 8000,1,Answer exten => 8000,n,Wait(1) exten => 8000,n,Playback(demo-thanks) exten => _1XX,1,Dial(SIP/dnepr/${EXTEN}) exten => _5XX,1,Dial(SIP/${EXTEN}) ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "extensions.conf" 12L, 299C written |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Name/username Host Dyn Nat ACL Port Status dnepr (Unspecified) D 0 Unmonitored kiev (Unspecified) D 0 Unmonitored odessa/odessa 192.168.3.1 D 5060 Unmonitored kharkov/kharkov 192.168.4.1 D 5060 Unmonitored 502/502 (Unspecified) D 0 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 3 offline] linux5*CLI> quit Executing last minute cleanups |
#ssh 192.168.15.6
root@192.168.15.6's password: Linux linux6.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue May 25 20:56:08 2010 from 192.168.4.204 l3-agent is already running: pid=4374; pidfile=/root/.lilalo/l3-agent.pid |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [302@default:1] Dial("SIP/501-b5d0b7b8", "SIP/odessa/302") in new stack -- Called odessa/302 -- SIP/odessa-081cb4b0 is ringing == Spawn extension (default, 302, 1) exited non-zero on 'SIP/501-b5d0b7b8' -- Executing [501@default:1] Dial("SIP/crimea-b5d10c50", "SIP/501") in new stack -- Called 501 -- SIP/501-081cb4b0 is ringing == Spawn extension (default, 501, 1) exited non-zero on 'SIP/crimea-b5d10c50' linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#host=dynamic
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... odessa/crimea (Unspecified) D 0 Unmonitored kharkov/crimea 192.168.4.1 D 5060 Unmonitored 502/502 (Unspecified) D 0 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 2 offline] -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#cd /etc
|
#ls -al | grep aste
|
#cd /etc/init.d/
|
#./asterisk restart
\Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#./asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cd /etc/asterisk/
|
#la -sl
bash: la: command not found |
#ls
adsi.conf enum.conf manager.conf rtp.conf adtranvofr.conf esel.conf manager.d say.conf agents.conf extconfig.conf meetme.conf sip.conf alarmreceiver.conf extensions.ael mgcp.conf sip_notify.conf alsa.conf extensions.conf misdn.conf skinny.conf amd.conf features.conf modules.conf sla.conf asterisk.adsi festival.conf musiconhold.conf smdi.conf asterisk.conf followme.conf muted.conf telcordia-1.adsi cdr.conf func_odbc.conf osp.conf udptl.conf cdr_custom.conf gtalk.conf oss.conf users.conf cdr_manager.conf h323.conf phone.conf voicemail.conf cdr_odbc.conf http.conf privacy.conf vpb.conf cdr_pgsql.conf iax.conf queues.conf watchdog.conf cdr_tds.conf iaxprov.conf res_odbc.conf zapata.conf codecs.conf indications.conf res_pgsql.conf dnsmgr.conf jabber.conf res_snmp.conf dundi.conf logger.conf rpt.conf |
#mv sip.conf sip.conf.SAVE
|
#mv extensions.conf extensions.conf.SAVE
|
#vi sip.conf
|
#~
[501] type=friend secert=password host=dynamic [502] type=friend secert=password host=dynamic ~ ~ ~ ~ ~ ~ ~ ~ ~ "sip.conf" [New] 15L, 125C written |
#vim extensions.conf
--- /dev/null 2010-05-25 11:13:09.502286417 +0300 +++ extensions.conf 2010-05-26 09:58:07.000000000 +0300 @@ -0,0 +1,8 @@ +[default] +exten => 8000,1, HangUp +exten => 8000,n, Wait(1) +exten => 8000,n, Playback(demo-thanks) + +exten => _5XX,1,Dial,(SIP/$(EXTEN)) + + |
#vim extensions.conf
|
#less extensions.conf.SAVE
|
#vim extensions.conf
--- /tmp/l3-saved-4631.6625.22990 2010-05-26 10:02:15.000000000 +0300 +++ extensions.conf 2010-05-26 10:02:27.000000000 +0300 @@ -1,5 +1,5 @@ [default] -exten => 8000,1, HangUp +exten => 8000,1, Hangup exten => 8000,n, Wait(1) exten => 8000,n, Playback(demo-thanks) |
#ls
cdr-csv cdr-custom event_log messages queue_log |
#tail messages
[May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [May 26 10:00:23] NOTICE[12996] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [May 26 10:00:23] WARNING[12996] chan_zap.c: Ignoring switchtype [May 26 10:00:23] WARNING[12996] chan_zap.c: Ignoring signalling [May 26 10:00:23] WARNING[12996] chan_zap.c: Ignoring rxwink [May 26 10:00:23] NOTICE[12996] app_playback.c: Reloading say.conf |
#vim sip.conf
|
#~
|
#vim sip.conf
--- /tmp/l3-saved-4631.28249.26640 2010-05-26 10:03:29.000000000 +0300 +++ sip.conf 2010-05-26 10:06:15.000000000 +0300 @@ -5,11 +5,32 @@ type=friend secert=password host=dynamic +callerid="Crimea Phone" [502] type=friend secert=password host=dynamic +callerid="Crimea SoftPhone" +[dnepr] +type=friend +secret=password +host=dynamic + +[kiev] +type=friend +secret=password +host=dynamic + +[odessa] +type=friend +secret=password +host=dynamic + +[kharkov] +type=friend +secret=password +host=dynamic |
#vim extensions.conf
--- /tmp/l3-saved-4631.19240.10318 2010-05-26 10:06:18.000000000 +0300 +++ extensions.conf 2010-05-26 10:07:51.000000000 +0300 @@ -4,5 +4,9 @@ exten => 8000,n, Playback(demo-thanks) exten => _5XX,1,Dial,(SIP/$(EXTEN)) +exten => _4XX,1,Dial,(SIP/kharkov/$(EXTEN)) +exten => _3XX,1,Dial,(SIP/odessa/$(EXTEN)) +exten => _2XX,1,Dial,(SIP/kiev/$(EXTEN)) +exten => _1XX,1,Dial,(SIP/dnepr/$(EXTEN)) |
#vim sip.conf
--- /tmp/l3-saved-4631.14381.5672 2010-05-26 10:07:52.000000000 +0300 +++ sip.conf 2010-05-26 10:09:43.000000000 +0300 @@ -1,6 +1,7 @@ [general] context=default + [501] type=friend secert=password |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... 502/502 192.168.5.10 D 39468 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] -- Executing [502@default:1] Dial("SIP/501-08174cd0", "(SIP/$(EXTEN))") in new stack [May 26 10:09:56] WARNING[13189]: channel.c:3068 ast_request_with_uniqueid: No channel type registered for '(SIP' [May 26 10:09:56] WARNING[13189]: app_dial.c:1202 dial_exec_full: Unable to create channel of type '(SIP' (cause 66 - Channel not implemented) == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/501-08174cd0' status is 'CHANUNAVAIL' quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-4631.30730.14950 2010-05-26 10:10:08.000000000 +0300 +++ extensions.conf 2010-05-26 10:12:18.000000000 +0300 @@ -3,10 +3,10 @@ exten => 8000,n, Wait(1) exten => 8000,n, Playback(demo-thanks) -exten => _5XX,1,Dial,(SIP/$(EXTEN)) -exten => _4XX,1,Dial,(SIP/kharkov/$(EXTEN)) -exten => _3XX,1,Dial,(SIP/odessa/$(EXTEN)) -exten => _2XX,1,Dial,(SIP/kiev/$(EXTEN)) -exten => _1XX,1,Dial,(SIP/dnepr/$(EXTEN)) +exten => _5XX,1,Dial(SIP/${EXTEN}) +exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) +exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) +exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _1XX,1,Dial(SIP/dnepr/${EXTEN}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [502@default:1] Dial("SIP/501-081cf608", "SIP/502") in new stack -- Called 502 -- SIP/502-081d3580 is ringing == Spawn extension (default, 502, 1) exited non-zero on 'SIP/501-081cf608' -- Executing [8000@default:1] Hangup("SIP/501-081cf608", "") in new stack == Spawn extension (default, 8000, 1) exited non-zero on 'SIP/501-081cf608' q No such command 'q' (type 'help q' for other possible commands) linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-4631.11178.5279 2010-05-26 10:13:00.000000000 +0300 +++ extensions.conf 2010-05-26 10:13:14.000000000 +0300 @@ -1,5 +1,5 @@ [default] -exten => 8000,1, Hangup +exten => 8000,1, Answer exten => 8000,n, Wait(1) exten => 8000,n, Playback(demo-thanks) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [8000@default:3] Playback("SIP/501-081ba0f8", "demo-thanks") in new stack -- <SIP/501-081ba0f8> Playing 'demo-thanks' (language 'en') == Spawn extension (default, 8000, 3) exited non-zero on 'SIP/501-081ba0f8' -- Executing [8000@default:1] Answer("SIP/501-081ba0f8", "") in new stack -- Executing [8000@default:2] Wait("SIP/501-081ba0f8", "1") in new stack -- Executing [8000@default:3] Playback("SIP/501-081ba0f8", "demo-thanks") in new stack -- <SIP/501-081ba0f8> Playing 'demo-thanks' (language 'en') == Spawn extension (default, 8000, 3) exited non-zero on 'SIP/501-081ba0f8' linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#:q
[default] exten => 8000,1, Answer exten => 8000,n, Wait(1) exten => 8000,n, Playback(demo-thanks) exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Name/username Host Dyn Nat ACL Port Status kharkov (Unspecified) D 0 Unmonitored odessa (Unspecified) D 0 Unmonitored kiev (Unspecified) D 0 Unmonitored dnepr (Unspecified) D 0 Unmonitored 502/502 192.168.5.10 D 39468 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 4 offline] linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
|
#~
secert=password register => crimea:password@192.168.3.1/odessa 4.1/kharkov callerid="Crimea SoftPhone" [dnepr] type=friend secret=password host=dynamic "sip.conf" 41L, 565C written |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Name/username Host Dyn Nat ACL Port Status kharkov (Unspecified) D 0 Unmonitored odessa (Unspecified) D 0 Unmonitored kiev (Unspecified) D 0 Unmonitored dnepr (Unspecified) D 0 Unmonitored 502/502 192.168.5.10 D 39468 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 4 offline] linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#vim sip.conf
--- /tmp/l3-saved-4631.21779.11881 2010-05-26 10:17:59.000000000 +0300 +++ sip.conf 2010-05-26 10:18:41.000000000 +0300 @@ -8,13 +8,13 @@ [501] type=friend -secert=password +secret=password host=dynamic callerid="Crimea Phone" [502] type=friend -secert=password +secret=password host=dynamic callerid="Crimea SoftPhone" |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2)) == Parsing '/etc/asterisk/iax.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' [May 26 10:19:09] WARNING[12826]: chan_sip.c:12620 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'crimea' to '192.168.4.1' [May 26 10:19:09] WARNING[12826]: chan_sip.c:12620 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'crimea' to '192.168.3.1' [May 26 10:19:09] WARNING[12826]: chan_sip.c:12620 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'crimea' to '192.168.2.1' linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#register => crimea:password@192.168.1.1/dnepr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Name/username Host Dyn Nat ACL Port Status kharkov/crimea 192.168.4.1 D 5060 Unmonitored odessa (Unspecified) D 0 Unmonitored kiev (Unspecified) D 0 Unmonitored dnepr/crimea 192.168.1.1 D 5060 Unmonitored 502/502 192.168.5.10 D 39468 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 2 offline] linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-4631.4964.21727 2010-05-26 10:23:46.000000000 +0300 +++ sip.conf 2010-05-26 10:24:26.000000000 +0300 @@ -22,20 +22,24 @@ type=friend secret=password host=dynamic +username=crimea [kiev] type=friend secret=password host=dynamic +username=crimea [odessa] type=friend secret=password host=dynamic +username=crimea [kharkov] type=friend secret=password host=dynamic +username=crimea |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Spawn extension (default, 401, 1) exited non-zero on 'SIP/501-081d2108' -- Executing [501@default:1] Dial("SIP/crimea-081d2108", "SIP/501") in new stack -- Called 501 -- SIP/501-081d6080 is ringing -- SIP/501-081d6080 answered SIP/crimea-081d2108 -- Native bridging SIP/crimea-081d2108 and SIP/501-081d6080 == Spawn extension (default, 501, 1) exited non-zero on 'SIP/crimea-081d2108' [May 26 10:24:55] NOTICE[12826]: chan_sip.c:14668 handle_request_invite: Unable to create/find SIP channel for this INVITE linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#-- INSERT --
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... dnepr/crimea 192.168.1.1 D 5060 Unmonitored 502/502 192.168.5.10 D 39468 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 0 offline] -- Executing [201@default:1] Dial("SIP/501-08174cd0", "SIP/kiev/201") in new stack -- Called kiev/201 -- SIP/kiev-0817cbb0 is ringing == Spawn extension (default, 201, 1) exited non-zero on 'SIP/501-08174cd0' linux5*CLI> quit Executing last minute cleanups |
#cd /etc/lilalo/
|
#ps aux | grep l3
root 4581 3.4 0.2 12480 9208 ? Ss May25 46:39 l3-agent root 13595 0.0 0.0 3116 716 pts/3 R+ 10:32 0:00 grep l3 |
#kill 4581
|
#l3-agent
|
#cat /root/.l3rc
l3cd=/users/sergs/asterisk/linux5.unix.nt/root |
#less l3config.pm
|
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... kharkov/crimea 192.168.4.1 D 5060 Unmonitored odessa/crimea 192.168.3.1 D 5060 Unmonitored kiev/crimea 192.168.2.1 D 5060 Unmonitored dnepr/crimea 192.168.1.1 D 5060 Unmonitored 502/502 192.168.5.10 D 39468 Unmonitored 501/501 192.168.5.12 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 0 offline] [May 26 10:35:52] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#apt-get install asterisk-doc
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: asterisk-doc 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 32.5MB of archives. After this operation, 139MB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main asterisk-doc 1:1.4.21.2~dfsg-3+lenny1 [32.5MB] Fetched 32.5MB in 2s (11.7MB/s) Selecting previously deselected package asterisk-doc. (Reading database ... 26511 files and directories currently installed.) Unpacking asterisk-doc (from .../asterisk-doc_1%3a1.4.21.2~dfsg-3+lenny1_all.deb) ... Setting up asterisk-doc (1:1.4.21.2~dfsg-3+lenny1) ... |
#mc
|
#~
|
#vim extensions.conf
--- /tmp/l3-saved-13737.21121.21399 2010-05-26 10:48:57.000000000 +0300 +++ extensions.conf 2010-05-26 10:49:42.000000000 +0300 @@ -9,4 +9,4 @@ exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _1XX,1,Dial(SIP/dnepr/${EXTEN}) - +exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Native bridging SIP/501-08174cd0 and SIP/odessa-0817cbb0 == Spawn extension (default, 380504971180, 1) exited non-zero on 'SIP/501-08174cd0' [May 26 11:04:59] NOTICE[12826]: chan_sip.c:14668 handle_request_invite: Unable to create/find SIP channel for this INVITE -- Executing [302@default:1] Dial("SIP/501-0817cbb0", "SIP/odessa/302") in new stack -- Called odessa/302 -- SIP/odessa-081871a8 is ringing [May 26 11:05:53] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 == Spawn extension (default, 302, 1) exited non-zero on 'SIP/501-0817cbb0' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
|
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [May 26 11:18:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 [May 26 11:21:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 [May 26 11:24:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 [May 26 11:27:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 [May 26 11:30:26] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 [May 26 11:33:27] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 [May 26 11:36:27] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 [May 26 11:39:27] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#tail -f /var/log/messages
May 26 04:29:53 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:29:53 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:33:29 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 26 04:33:29 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 26 04:34:52 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:34:52 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:38:29 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 26 04:38:29 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 26 04:39:52 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:39:52 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 ^C |
#tail -f /var/log/syslog
May 26 04:29:53 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:29:53 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:33:29 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 26 04:33:29 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 26 04:34:52 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:34:52 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:38:29 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 26 04:38:29 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 26 04:39:52 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 26 04:39:52 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 q^C |
#date
Wed May 26 11:42:03 EEST 2010 |
#vim sip.conf
|
#vim sip.conf
|
#type=friend
[gr3] include => local include => corp include => world |
#:q
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux5 (pid = 12808) Verbosity is at least 3 -- Executing [502@gr3:1] Dial("SIP/501-081871a8", "SIP/502") in new stack -- Called 502 -- SIP/502-08174cd0 is ringing == Spawn extension (gr3, 502, 1) exited non-zero on 'SIP/501-081871a8' [May 26 11:54:28] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-13737.29175.22029 2010-05-26 11:54:30.000000000 +0300 +++ sip.conf 2010-05-26 11:54:37.000000000 +0300 @@ -7,7 +7,7 @@ [501] -context=gr3 +context=gr2 type=friend secret=password host=dynamic |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Reloading module 'chan_gtalk.so' (Gtalk Channel Driver) -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2)) == Parsing '/etc/asterisk/iax.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' quiy No such command 'quiy' (type 'help quiy' for other possible commands) linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#type=friend
[default] exten => 8000,1, Answer exten => 8000,n, Wait(1) exten => 8000,n, Playback(demo-thanks) [local] [gr3] include => local include => corp [gr3] include => local include => corp include => world |
#:q
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called 501 -- SIP/501-081d0b78 is ringing == Spawn extension (gr1, 501, 1) exited non-zero on 'SIP/502-b5d0fb08' -- Executing [402@gr2:1] Dial("SIP/501-b5d0fb08", "SIP/kharkov/402") in new stack -- Called kharkov/402 -- SIP/kharkov-081d0b78 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/501-b5d0fb08' status is 'CONGESTION' linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-13737.20160.9138 2010-05-26 11:59:35.000000000 +0300 +++ sip.conf 2010-05-26 12:00:14.000000000 +0300 @@ -1,6 +1,6 @@ [general] context=default -register => crimea:password@192.168.1.1/dnepr +register => crimea:password@192.168.7.1/dnepr register => crimea:password@192.168.2.1/kiev register => crimea:password@192.168.3.1/odessa register => crimea:password@192.168.4.1/kharkov |
l3cd=/users/sergs/asterisk/linux5.unix.nt/root
Время первой команды журнала | 16:14:09 2010- 5-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:59:31 2010- 5-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.50 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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