/l3/users/vadik/nt-voip/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 |
|
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip show peers ... 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] linux1*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1101/1101 192.168.10.201 D 2049 Unmonitored 1102/1102 192.168.10.200 D 53558 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored tbs/kv (Unspecified) D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] linux1*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip show peers ... 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] linux1*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1101/1101 192.168.10.201 D 2049 Unmonitored 1102/1102 192.168.10.200 D 53558 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored tbs/kv (Unspecified) D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] linux1*CLI> exit Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2251.19205.20049 2011-10-18 12:10:10.000000000 +0300 +++ extensions.conf 2011-10-18 12:10:46.000000000 +0300 @@ -12,3 +12,5 @@ exten => 1102,1,Dial(SIP/${EXTEN}) exten => _32XXXX,1,Dial(SIP/lv/${EXTEN:2}) + +exten => _21XX,1,Dial(SIP/tbs/${EXTEN}) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog '35a108cb60a5c7c1370e51c75266ed9d@192.168.15.21' Method: REGISTER Really destroying SIP dialog '550cd3f247f30ae8371d9f1f693c840b@192.168.15.21' Method: REGISTER Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER Really destroying SIP dialog '3c268bb73935-j76mb84nc8n8' Method: ACK linux1*CLI> ^V Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog '35a108cb60a5c7c1370e51c75266ed9d@192.168.15.21' Method: REGISTER Really destroying SIP dialog '550cd3f247f30ae8371d9f1f693c840b@192.168.15.21' Method: REGISTER Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER Really destroying SIP dialog '3c268bb73935-j76mb84nc8n8' Method: ACK linux1*CLI> ^V Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Require: timer Session-Expires: 1800;refresher=uas Contact: <sip:2102@192.168.10.1> Content-Length: 0 <------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Require: timer Session-Expires: 1800;refresher=uas Contact: <sip:2102@192.168.10.1> Content-Length: 0 <------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[1101]
exten => 1198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) exten => 1198,n,Playback(/var/lib/asterisk/sounds/recorded-voice) exten => 1101,1,Dial(SIP/${EXTEN}) exten => _10XX,1,Dial(SIP/lv/${EXTEN}) "extensions.conf" 16L, 419C ~ ~ ~ ~ ~ ~ "extensions.conf" 16L, 415C записано |
#[1101]
exten => 1198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) exten => 1198,n,Playback(/var/lib/asterisk/sounds/recorded-voice) exten => 1101,1,Dial(SIP/${EXTEN}) exten => _10XX,1,Dial(SIP/lv/${EXTEN}) "extensions.conf" 16L, 419C ~ ~ ~ ~ ~ ~ "extensions.conf" 16L, 415C записано |
#vi extensions.conf
--- /tmp/l3-saved-2251.1949.24349 2011-10-18 12:15:01.000000000 +0300 +++ extensions.conf 2011-10-18 12:15:47.000000000 +0300 @@ -14,3 +14,5 @@ exten => _12XX,1,Dial(SIP/lv/${EXTEN}) exten => _21XX,1,Dial(SIP/tbs/${EXTEN}) + +exten => _23XX,1,Dial(SIP/msk/${EXTEN}) |
#vi sip.conf
--- /tmp/l3-saved-2251.10040.25736 2011-10-18 12:15:51.000000000 +0300 +++ sip.conf 2011-10-18 12:17:17.000000000 +0300 @@ -8,6 +8,7 @@ canreinvite=no register => kv:1234@192.168.20.1/lv register => kv:1234@192.168.50.1/tbs +register => kv:1234@192.168.70.1/msk [1101] type=friend |
#vi sip.conf
--- /tmp/l3-saved-2251.20563.5864 2011-10-18 12:17:20.000000000 +0300 +++ sip.conf 2011-10-18 12:17:41.000000000 +0300 @@ -35,3 +35,10 @@ host=dynamic username=kv monitor=yes + +[msk] +type=friend +secret=1234 +host=dynamic +username=kv +monitor=yes |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER ... Contact: <sip:lv@192.168.10.1>;expires=120 Date: Tue, 18 Oct 2011 09:19:32 GMT Content-Length: 0 <-------------> --- (13 headers 0 lines) --- Scheduling destruction of SIP dialog '02bb20ee75de99c60f056d160a54be13@192.168.15.21' in 32000 ms (Method: REGISTER) [Oct 18 12:19:32] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER ... Contact: <sip:lv@192.168.10.1>;expires=120 Date: Tue, 18 Oct 2011 09:19:32 GMT Content-Length: 0 <-------------> --- (13 headers 0 lines) --- Scheduling destruction of SIP dialog '02bb20ee75de99c60f056d160a54be13@192.168.15.21' in 32000 ms (Method: REGISTER) [Oct 18 12:19:32] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2251.25674.15026 2011-10-18 12:19:46.000000000 +0300 +++ extensions.conf 2011-10-18 12:19:53.000000000 +0300 @@ -14,5 +14,6 @@ exten => _12XX,1,Dial(SIP/lv/${EXTEN}) exten => _21XX,1,Dial(SIP/tbs/${EXTEN}) +exten => _22XX,1,Dial(SIP/tbs/${EXTEN}) exten => _23XX,1,Dial(SIP/msk/${EXTEN}) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... Contact: <sip:lv@192.168.10.1>;expires=120 Date: Tue, 18 Oct 2011 09:21:17 GMT Content-Length: 0 <-------------> --- (13 headers 0 lines) --- Scheduling destruction of SIP dialog '02bb20ee75de99c60f056d160a54be13@192.168.15.21' in 32000 ms (Method: REGISTER) [Oct 18 12:21:17] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... Contact: <sip:lv@192.168.10.1>;expires=120 Date: Tue, 18 Oct 2011 09:21:17 GMT Content-Length: 0 <-------------> --- (13 headers 0 lines) --- Scheduling destruction of SIP dialog '02bb20ee75de99c60f056d160a54be13@192.168.15.21' in 32000 ms (Method: REGISTER) [Oct 18 12:21:17] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2251.15146.18334 2011-10-18 12:21:26.000000000 +0300 +++ extensions.conf 2011-10-18 12:23:18.000000000 +0300 @@ -13,7 +13,7 @@ exten => _12XX,1,Dial(SIP/lv/${EXTEN}) -exten => _21XX,1,Dial(SIP/tbs/${EXTEN}) -exten => _22XX,1,Dial(SIP/tbs/${EXTEN}) +exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN}) -exten => _23XX,1,Dial(SIP/msk/${EXTEN}) +exten => _2[3,4]XX,1,Dial(SIP/msk/${EXTEN}) +exten => _1[3,4]XX,1,Dial(SIP/msk/${EXTEN}) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER linux1*CLI> linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER linux1*CLI> linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2251.2026.9937 2011-10-18 12:23:49.000000000 +0300 +++ extensions.conf 2011-10-18 12:26:01.000000000 +0300 @@ -15,5 +15,5 @@ exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN}) -exten => _2[3,4]XX,1,Dial(SIP/msk/${EXTEN}) -exten => _1[3,4]XX,1,Dial(SIP/msk/${EXTEN}) +exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN}) +exten => _31XX,1,Dial(SIP/msk/${EXTEN}) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... linux1*CLI> linux1*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time 192.168.70.1:5060 N kv 120 Rejected 192.168.50.1:5060 N kv 105 Registered Tue, 18 Oct 2011 12:30:02 192.168.20.1:5060 N kv 105 Registered Tue, 18 Oct 2011 12:30:02 3 SIP registrations. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... linux1*CLI> linux1*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time 192.168.70.1:5060 N kv 120 Rejected 192.168.50.1:5060 N kv 105 Registered Tue, 18 Oct 2011 12:30:02 192.168.20.1:5060 N kv 105 Registered Tue, 18 Oct 2011 12:30:02 3 SIP registrations. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... -- Executing [1101@default:1] Dial("SIP/msk-00000090", "SIP/1101") in new stack == Using SIP RTP CoS mark 5 -- Called 1101 -- SIP/1101-00000091 is ringing -- SIP/1101-00000091 answered SIP/msk-00000090 -- Packet2Packet bridging SIP/msk-00000090 and SIP/1101-00000091 == Spawn extension (default, 1101, 1) exited non-zero on 'SIP/msk-00000090' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... -- Executing [1101@default:1] Dial("SIP/msk-00000090", "SIP/1101") in new stack == Using SIP RTP CoS mark 5 -- Called 1101 -- SIP/1101-00000091 is ringing -- SIP/1101-00000091 answered SIP/msk-00000090 -- Packet2Packet bridging SIP/msk-00000090 and SIP/1101-00000091 == Spawn extension (default, 1101, 1) exited non-zero on 'SIP/msk-00000090' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-2251.1546.5389 2011-10-18 12:33:43.000000000 +0300 +++ sip.conf 2011-10-18 12:34:17.000000000 +0300 @@ -15,6 +15,7 @@ secret=1234 host=dynamic monitor=yes +callerid="Kiev" <1101> [1102] type=friend |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... -- Called tbs/2201 -- SIP/tbs-000000ad is ringing -- SIP/msk-000000ab is ringing == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/msk-000000ac' -- SIP/msk-000000ab answered SIP/lv-000000aa -- Packet2Packet bridging SIP/lv-000000aa and SIP/msk-000000ab == Spawn extension (default, 2401, 1) exited non-zero on 'SIP/lv-000000aa' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... -- Called tbs/2201 -- SIP/tbs-000000ad is ringing -- SIP/msk-000000ab is ringing == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/msk-000000ac' -- SIP/msk-000000ab answered SIP/lv-000000aa -- Packet2Packet bridging SIP/lv-000000aa and SIP/msk-000000ab == Spawn extension (default, 2401, 1) exited non-zero on 'SIP/lv-000000aa' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[ ]
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 == Using SIP RTP CoS mark 5 ... Contact: <sip:kv@192.168.70.1>;expires=120 Date: Tue, 18 Oct 2011 09:43:20 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '153c9b954eb5a957326dd09e2ee66aa3@192.168.15.27' in 32000 ms (Method: REGISTER) Really destroying SIP dialog '6c46bfe44e542fa509402f753517897e@192.168.15.21' Method: REGISTER Really destroying SIP dialog '153c9b954eb5a957326dd09e2ee66aa3@192.168.15.27' Method: REGISTER linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[ ]
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 == Using SIP RTP CoS mark 5 ... Contact: <sip:kv@192.168.70.1>;expires=120 Date: Tue, 18 Oct 2011 09:43:20 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '153c9b954eb5a957326dd09e2ee66aa3@192.168.15.27' in 32000 ms (Method: REGISTER) Really destroying SIP dialog '6c46bfe44e542fa509402f753517897e@192.168.15.21' Method: REGISTER Really destroying SIP dialog '153c9b954eb5a957326dd09e2ee66aa3@192.168.15.27' Method: REGISTER linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2251.29933.6468 2011-10-18 12:44:10.000000000 +0300 +++ extensions.conf 2011-10-18 12:49:24.000000000 +0300 @@ -1,19 +1,40 @@ [default] -exten => 1199,1,Playback(demo-thanks) -exten => 1199,n,Playback(demo-thanks) -exten => 1199,n,Playback(demo-thanks) - -exten => 1198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) -exten => 1198,n,Playback(/var/lib/asterisk/sounds/recorded-voice) +[local] exten => 1101,1,Dial(SIP/${EXTEN}) - exten => 1102,1,Dial(SIP/${EXTEN}) +[national] exten => _12XX,1,Dial(SIP/lv/${EXTEN}) +[international] exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN}) - exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN}) exten => _31XX,1,Dial(SIP/msk/${EXTEN}) + +[internal] +exten => 1199,1,Playback(demo-thanks) +exten => 1199,n,Playback(demo-thanks) +exten => 1199,n,Playback(demo-thanks) + +exten => 1198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) +exten => 1198,n,Playback(/var/lib/asterisk/sounds/recorded-voice) + +[gr1] +include => internal +include => local + +[gr2] +include => internal +include => local +include => national + +[gr2] +include => internal +include => local +include => national +include => international + +[gr4] +include => local |
#vi sip.conf
|
#vi sip.conf
--- /tmp/l3-saved-2251.31286.4011 2011-10-18 12:49:30.000000000 +0300 +++ sip.conf 2011-10-18 12:50:46.000000000 +0300 @@ -16,6 +16,7 @@ host=dynamic monitor=yes callerid="Kiev" <1101> +context= [1102] type=friend |
#vi extensions.conf
--- /tmp/l3-saved-2251.13577.32519 2011-10-18 12:50:47.000000000 +0300 +++ extensions.conf 2011-10-18 12:55:53.000000000 +0300 @@ -30,7 +30,7 @@ include => local include => national -[gr2] +[gr3] include => internal include => local include => national |
#vi sip.conf
--- /tmp/l3-saved-4474.23465.23071 2011-10-18 12:52:26.000000000 +0300 +++ sip.conf 2011-10-18 12:54:47.000000000 +0300 @@ -15,14 +15,15 @@ secret=1234 host=dynamic monitor=yes -callerid="Kiev" <1101> -context= +callerid="Kiev" +context=gr3 [1102] type=friend secret=1234 host=dynamic monitor=yes +context=gr2 [lv] type=friend @@ -30,6 +31,7 @@ host=dynamic username=kv monitor=yes +context=gr3 [tbs] type=friend @@ -37,6 +39,7 @@ host=dynamic username=kv monitor=yes +context=gr3 [msk] type=friend @@ -44,3 +47,4 @@ host=dynamic username=kv monitor=yes +context=gr3 |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... [Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.50.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.20.1 [Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> linux1*CLI> == Using SIP RTP CoS mark 5 [Oct 18 12:55:02] NOTICE[1303]: chan_sip.c:20276 handle_request_invite: Call from '1101' to extension '1102' rejected because extension not found in context 'gr3'. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... [Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.50.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.20.1 [Oct 18 12:54:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> linux1*CLI> == Using SIP RTP CoS mark 5 [Oct 18 12:55:02] NOTICE[1303]: chan_sip.c:20276 handle_request_invite: Call from '1101' to extension '1102' rejected because extension not found in context 'gr3'. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[ecret=1]34
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... -- Total time merge_contexts_delete: 0.000678 sec == Using SIP RTP CoS mark 5 -- Executing [1102@gr3:1] Dial("SIP/1101-000000d0", "SIP/1102") in new stack == Using SIP RTP CoS mark 5 -- Called 1102 -- SIP/1102-000000d1 is ringing == Spawn extension (gr3, 1102, 1) exited non-zero on 'SIP/1101-000000d0' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[ecret=1]34
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... -- Total time merge_contexts_delete: 0.000678 sec == Using SIP RTP CoS mark 5 -- Executing [1102@gr3:1] Dial("SIP/1101-000000d0", "SIP/1102") in new stack == Using SIP RTP CoS mark 5 -- Called 1102 -- SIP/1102-000000d1 is ringing == Spawn extension (gr3, 1102, 1) exited non-zero on 'SIP/1101-000000d0' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-4474.29240.31285 2011-10-18 12:56:37.000000000 +0300 +++ sip.conf 2011-10-18 12:59:06.000000000 +0300 @@ -14,7 +14,6 @@ type=friend secret=1234 host=dynamic -monitor=yes callerid="Kiev" context=gr3 @@ -22,7 +21,6 @@ type=friend secret=1234 host=dynamic -monitor=yes context=gr2 [lv] @@ -30,7 +28,7 @@ secret=1234 host=dynamic username=kv -monitor=yes +callerid="Lvov" context=gr3 [tbs] @@ -38,7 +36,6 @@ secret=1234 host=dynamic username=kv -monitor=yes context=gr3 [msk] @@ -46,5 +43,5 @@ secret=1234 host=dynamic username=kv -monitor=yes +callerid="Russia" context=gr3 |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... Reg. Contact : sip:1102@192.168.10.200:53558;rinstance=2535e764b9d4e490;transport=udp Qualify Freq : 60000 ms Sess-Timers : Accept Sess-Refresh : uas Sess-Expires : 1800 secs Min-Sess : 90 secs Parkinglot : linux1*CLI> linux1*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... Reg. Contact : sip:1102@192.168.10.200:53558;rinstance=2535e764b9d4e490;transport=udp Qualify Freq : 60000 ms Sess-Timers : Accept Sess-Refresh : uas Sess-Expires : 1800 secs Min-Sess : 90 secs Parkinglot : linux1*CLI> linux1*CLI> exit Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-4474.20081.28096 2011-10-18 13:41:09.000000000 +0300 +++ sip.conf 2011-10-18 13:41:16.000000000 +0300 @@ -21,7 +21,7 @@ type=friend secret=1234 host=dynamic -context=gr2 +context=gr1 [lv] type=friend |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... Expires: 120 Contact: <sip:kv@192.168.70.1>;expires=120 Date: Tue, 18 Oct 2011 10:41:49 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '2e8649bc0c5e432106fbaee42274c1e6@192.168.15.27' in 32000 ms (Method: REGISTER) Really destroying SIP dialog '5bfbff590e0934191a02445b1bc9057e@192.168.15.21' Method: REGISTER linux1*CLI> 31 Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... Expires: 120 Contact: <sip:kv@192.168.70.1>;expires=120 Date: Tue, 18 Oct 2011 10:41:49 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '2e8649bc0c5e432106fbaee42274c1e6@192.168.15.27' in 32000 ms (Method: REGISTER) Really destroying SIP dialog '5bfbff590e0934191a02445b1bc9057e@192.168.15.21' Method: REGISTER linux1*CLI> 31 Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-4474.25371.11731 2011-10-18 13:41:53.000000000 +0300 +++ sip.conf 2011-10-18 13:42:05.000000000 +0300 @@ -21,6 +21,7 @@ type=friend secret=1234 host=dynamic +callerid="Kiev" context=gr1 [lv] |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... == Using SIP RTP CoS mark 5 -- Executing [1101@gr1:1] Dial("SIP/1102-000000d4", "SIP/1101") in new stack == Using SIP RTP CoS mark 5 -- Called 1101 -- SIP/1101-000000d5 is ringing == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1102-000000d4' Really destroying SIP dialog '2e8649bc0c5e432106fbaee42274c1e6@192.168.15.27' Method: REGISTER linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... == Using SIP RTP CoS mark 5 -- Executing [1101@gr1:1] Dial("SIP/1102-000000d4", "SIP/1101") in new stack == Using SIP RTP CoS mark 5 -- Called 1101 -- SIP/1101-000000d5 is ringing == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1102-000000d4' Really destroying SIP dialog '2e8649bc0c5e432106fbaee42274c1e6@192.168.15.27' Method: REGISTER linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-4474.31421.8359 2011-10-18 13:42:34.000000000 +0300 +++ sip.conf 2011-10-18 13:42:52.000000000 +0300 @@ -14,14 +14,14 @@ type=friend secret=1234 host=dynamic -callerid="Kiev" +callerid="Kiev" context=gr3 [1102] type=friend secret=1234 host=dynamic -callerid="Kiev" +callerid="Kiev" <1102> context=gr1 [lv] |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... [Oct 18 13:42:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) == Using SIP RTP CoS mark 5 -- Executing [1101@gr1:1] Dial("SIP/1102-000000d6", "SIP/1101") in new stack == Using SIP RTP CoS mark 5 -- Called 1101 -- SIP/1101-000000d7 is ringing == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1102-000000d6' linux1*CLI> sip reload Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... [Oct 18 13:42:54] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) == Using SIP RTP CoS mark 5 -- Executing [1101@gr1:1] Dial("SIP/1102-000000d6", "SIP/1101") in new stack == Using SIP RTP CoS mark 5 -- Called 1101 -- SIP/1101-000000d7 is ringing == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1102-000000d6' linux1*CLI> sip reload Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-4474.18119.24634 2011-10-18 13:43:03.000000000 +0300 +++ sip.conf 2011-10-18 13:43:51.000000000 +0300 @@ -21,7 +21,7 @@ type=friend secret=1234 host=dynamic -callerid="Kiev" <1102> +callerid="Kiev" context=gr1 [lv] |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Contact: <sip:1101@192.168.10.1> Content-Length: 0 <------------> <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Contact: <sip:1101@192.168.10.1> Content-Length: 0 <------------> <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... CSeq: 2 ACK Max-Forwards: 70 Contact: <sip:1101@192.168.10.201:2049;line=2txv9129>;reg-id=1 Content-Length: 0 <-------------> --- (9 headers 0 lines) --- Really destroying SIP dialog '034939981b7bbced6c9965c37f84aac2@192.168.10.1' Method: INVITE linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... CSeq: 2 ACK Max-Forwards: 70 Contact: <sip:1101@192.168.10.201:2049;line=2txv9129>;reg-id=1 Content-Length: 0 <-------------> --- (9 headers 0 lines) --- Really destroying SIP dialog '034939981b7bbced6c9965c37f84aac2@192.168.10.1' Method: INVITE linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-4474.24384.803 2011-10-18 14:11:01.000000000 +0300 +++ sip.conf 2011-10-18 14:14:01.000000000 +0300 @@ -37,6 +37,7 @@ secret=1234 host=dynamic username=kv +;callerid="Geog" context=gr3 [msk] @@ -44,5 +45,4 @@ secret=1234 host=dynamic username=kv -callerid="Russia" context=gr3 |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 <--- SIP read from UDP:192.168.50.1:5060 ---> ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Expires: 120 Contact: <sip:kv@192.168.20.1>;expires=120 Date: Tue, 18 Oct 2011 11:15:46 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '2807bac02b87f6e25992511121a646a3@192.168.15.22' in 32000 ms (Method: REGISTER) linux1*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 <--- SIP read from UDP:192.168.50.1:5060 ---> ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Expires: 120 Contact: <sip:kv@192.168.20.1>;expires=120 Date: Tue, 18 Oct 2011 11:15:46 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '2807bac02b87f6e25992511121a646a3@192.168.15.22' in 32000 ms (Method: REGISTER) linux1*CLI> exit Executing last minute cleanups |
#apt-get install sendmail sendmail-bin sensible-mda
ЧÑение ÑпиÑков пакеÑов... ÐоÑово ÐоÑÑÑоение деÑева завиÑимоÑÑей ЧÑение инÑоÑмаÑии о ÑоÑÑоÑнии... ÐоÑово СледÑÑÑие пакеÑÑ ÑÑÑанавливалиÑÑ Ð°Ð²ÑомаÑиÑеÑки и болÑÑе не ÑÑебÑÑÑÑÑ: mysql-common libmysqlclient16 ÐÐ»Ñ Ð¸Ñ ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¸ÑполÑзÑйÑе 'apt-get autoremove'. ÐÑдÑÑ ÑÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ñ ÑледÑÑÑие дополниÑелÑнÑе пакеÑÑ: libmysqlclient16 mysql-common sendmail-base sendmail-cf ÐÑедлагаемÑе пакеÑÑ: sendmail-doc rmail logcheck resolvconf sasl2-bin ... РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ libmysqlclient16 (из Ñайла .../libmysqlclient16_5.1.49-3_i386.deb)... ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа sensible-mda. РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ sensible-mda (из Ñайла .../sensible-mda_8.14.3-9.4_i386.deb)... ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа sendmail. РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ sendmail (из Ñайла .../sendmail_8.14.3-9.4_all.deb)... ÐбÑабаÑÑваÑÑÑÑ ÑÑиггеÑÑ Ð´Ð»Ñ man-db ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ mysql-common (5.1.49-3) ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ libmysqlclient16 (5.1.49-3) ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ sensible-mda (8.14.3-9.4) ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ sendmail (8.14.3-9.4) ... |
#apt-get install sendmail sendmail-bin sensible-mda
ЧÑение ÑпиÑков пакеÑов... ÐоÑово ÐоÑÑÑоение деÑева завиÑимоÑÑей ЧÑение инÑоÑмаÑии о ÑоÑÑоÑнии... ÐоÑово СледÑÑÑие пакеÑÑ ÑÑÑанавливалиÑÑ Ð°Ð²ÑомаÑиÑеÑки и болÑÑе не ÑÑебÑÑÑÑÑ: mysql-common libmysqlclient16 ÐÐ»Ñ Ð¸Ñ ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¸ÑполÑзÑйÑе 'apt-get autoremove'. ÐÑдÑÑ ÑÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ñ ÑледÑÑÑие дополниÑелÑнÑе пакеÑÑ: libmysqlclient16 mysql-common sendmail-base sendmail-cf ÐÑедлагаемÑе пакеÑÑ: sendmail-doc rmail logcheck resolvconf sasl2-bin ... РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ libmysqlclient16 (из Ñайла .../libmysqlclient16_5.1.49-3_i386.deb)... ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа sensible-mda. РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ sensible-mda (из Ñайла .../sensible-mda_8.14.3-9.4_i386.deb)... ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа sendmail. РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ sendmail (из Ñайла .../sendmail_8.14.3-9.4_all.deb)... ÐбÑабаÑÑваÑÑÑÑ ÑÑиггеÑÑ Ð´Ð»Ñ man-db ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ mysql-common (5.1.49-3) ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ libmysqlclient16 (5.1.49-3) ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ sensible-mda (8.14.3-9.4) ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ sendmail (8.14.3-9.4) ... |
Время первой команды журнала | 11:09:44 2011-10-18 | ||||||||||||||||||||||||
Время последней команды журнала | 13:16:33 2011-10-18 | ||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 0.99 | ||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.41 | ||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.19 | ||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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