/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 |
|
#vi extensions.conf
--- /tmp/l3-saved-2558.22947.6151 2011-10-21 09:07:48.000000000 +0300 +++ extensions.conf 2011-10-21 09:08:05.000000000 +0300 @@ -75,8 +75,8 @@ exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN}) exten => _31XX,1,Dial(SIP/msk/${EXTEN}) -exten => _380XXXXXXXXX,1,Dial(SIP/world/${EXTEN}) -exten => _995XXXXXXXXX,1,Dial(SIP/world/${EXTEN}) +exten => _380XXXXXXXXX,1,Dial(SIP/ntl/${EXTEN}) +exten => _995XXXXXXXXX,1,Dial(SIP/ntl/${EXTEN}) [internal] exten => 9501,1,GotoIfTime(13:00-14:00,thu,*,*?obed) |
#mcedit extensions.conf
exten => s,n,Waitexten(2) 101+ 0 101 2926 0101 0x065 exten => _99XX,n,Record(${FILENAME}:gsm)/asterisk/sounds/menu/${EXTEN:2}) exten => _99XX,n,Playback(${FILENAME}) exten => _98XX,n,Set(FILENAME=/var/spool/asterisk/sounds/menu/${EXTEN:2}) exten => _98XX,1,Answerck(${FILENAME}) exten => _98XX,n,Playback(${FILENAME}) exten => _117X,1,AgentLogin(${EXTEN:3}) 1,GotoIf($[ "${CALLERID(num)}" != "110${EXTEN:3}" ]?password) exten => _118X,n,VoicemailMain(110${EXTEN:3},s) exten => _118X,n,Hangup ... 99XX,n,Playback(${FILENAME}) 1,Answer exten => _99XX,n,Record(${FILENAME}:gsm)/asterisk/sounds/menu/${EXTEN:2}) exten => _99XX,1,Playback(${FILENAME}) exten => _98XX,n,Playback(${FILENAME})(num)}" != "110${EXTEN:3}" ]?password) ) 98XX,n,Set(FILENAME=/var/spool/asterisk/sounds/menu/${EXTEN:2}) exten => _98XX,1,Answer($[ "${CALLERID(num)}" != "110${EXTEN:3}" ]?password) exten => _98XX,n,Playback(${FILENAME})TEN:3},s) include => local |
#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 = 1663) Verbosity is at least 4 linux1*CLI> dialplan re ... Content-Length: 0 <------------> Scheduling destruction of SIP dialog '6148aba40b4eec155f8a69d6591da38f@192.168.70.1' in 32000 ms (Method: REGISTER) linux1*CLI> sip set debug peer ntl No such peer 'ntl' linux1*CLI> sip set debug peer nt1 SIP Debugging Enabled for IP: 91.205.16.235:5060 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 = 1663) Verbosity is at least 4 linux1*CLI> dialplan re ... Content-Length: 0 <------------> Scheduling destruction of SIP dialog '6148aba40b4eec155f8a69d6591da38f@192.168.70.1' in 32000 ms (Method: REGISTER) linux1*CLI> sip set debug peer ntl No such peer 'ntl' linux1*CLI> sip set debug peer nt1 SIP Debugging Enabled for IP: 91.205.16.235:5060 linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1663) ... CSeq: 102 ACK User-Agent: Asterisk PBX 1.6.2.9-2+squeeze3 Content-Length: 0 --- -- SIP/nt1-0000001a is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/msk-00000019' status is 'CONGESTION' Really destroying SIP dialog '0eeff9e5422764db108168a8339794e9@192.168.10.1' Method: INVITE linux1*CLI> quit Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2558.6191.26194 2011-10-21 09:09:36.000000000 +0300 +++ extensions.conf 2011-10-21 09:09:43.000000000 +0300 @@ -75,8 +75,8 @@ exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN}) exten => _31XX,1,Dial(SIP/msk/${EXTEN}) -exten => _380XXXXXXXXX,1,Dial(SIP/ntl/${EXTEN}) -exten => _995XXXXXXXXX,1,Dial(SIP/ntl/${EXTEN}) +exten => _380XXXXXXXXX,1,Dial(SIP/nt1/${EXTEN}) +exten => _995XXXXXXXXX,1,Dial(SIP/nt1/${EXTEN}) [internal] exten => 9501,1,GotoIfTime(13:00-14:00,thu,*,*?obed) |
#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 = 1663) Verbosity is at least 4 linux1*CLI> dialplan reload ... [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.70.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.50.1 [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.50.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.20.1 [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) Really destroying SIP dialog '7ce37b1053238d6f04e2d99654ae10ae@192.168.10.1' Method: REGISTER 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 = 1663) Verbosity is at least 4 linux1*CLI> dialplan reload ... [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.70.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.50.1 [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.50.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.20.1 [Oct 21 09:11:32] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) Really destroying SIP dialog '7ce37b1053238d6f04e2d99654ae10ae@192.168.10.1' Method: REGISTER linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#mcedit /etc/asterisk/extensions.conf
exten => _110X,n,Voicemail(${EXTEN}@default) exten => _1103,1,Answer exten => _1103,n,Queue(queue1) exten => _1111,1,MeetMe(1,McI) [national] [internatio[1,2]XX,1,Dial(SIP/tbs/${EXTEN}) exten => _[1,2][3,4]XX,1,Dial(SIP/msk/$ } exten => _380XXXXXXXXX,1,Dial(SIP/nt1/${EXTEN}) [internal] |
#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 = 1663) Verbosity is at least 4 linux1*CLI> ... linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> 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 = 1663) Verbosity is at least 4 linux1*CLI> ... linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvvvvvvvvvvvvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1663) ... Expires: 120 Contact: <sip:world@192.168.10.1>;expires=120 Date: Fri, 21 Oct 2011 06:31:10 GMT Content-Length: 0 <-------------> --- (13 headers 0 lines) --- Scheduling destruction of SIP dialog '63bf27fa19839a5635ba36ba17c05887@192.168.10.1' in 32000 ms (Method: REGISTER) [Oct 21 09:31:10] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 91.205.16.235 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> exit Executing last minute cleanups |
#asterisk -rvvvvvvvvvvvvvvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1663) ... Expires: 120 Contact: <sip:world@192.168.10.1>;expires=120 Date: Fri, 21 Oct 2011 06:31:10 GMT Content-Length: 0 <-------------> --- (13 headers 0 lines) --- Scheduling destruction of SIP dialog '63bf27fa19839a5635ba36ba17c05887@192.168.10.1' in 32000 ms (Method: REGISTER) [Oct 21 09:31:10] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 91.205.16.235 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> exit Executing last minute cleanups |
#mcedit /etc/asterisk/sip.conf
secret=1234 ;callerid="Kiev" mailbox=1104@default pickupgroup=1 [lv] host=dynamic callerid="Lvov" [tbs] secret=1234 host=dynamic ... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "ru_UA.UTF-8", LC_COLLATE = "ru_UA.UTF-8", LC_CTYPE = "ru_UA.UTF-8", LANG = "ru_RU.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
#asterisk -vvvvvr
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1663) ... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "ru_UA.UTF-8", LC_COLLATE = "ru_UA.UTF-8", LC_CTYPE = "ru_UA.UTF-8", LANG = "ru_RU.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2724.29160.21117 2011-10-21 09:23:10.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-21 09:23:57.000000000 +0300 @@ -97,7 +97,7 @@ [nt1] type=friend context=gr3 -regexten=115 +;regexten=115 callerid="Networking Technologies" host=91.205.16.235 canreinvite=no @@ -108,6 +108,6 @@ allow=alaw nat=yes mailbox=105 -secret=1234aa +secret=1234 trunk=yes |
#tcpdump -i eth0 host 91.205.16.235
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 09:24:40.686833 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 385 09:24:40.688448 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 516 09:24:40.688575 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 544 09:24:40.715353 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 528 09:24:43.477556 IP linux1.unix.nt.45453 > chub.in.18030: Flags [S], seq 129293121, win 5840, options [mss 1460,sackOK,TS val 559548 ecr 0,nop,wscale 6], length 0 09:24:43.478630 IP chub.in.18030 > linux1.unix.nt.45453: Flags [R.], seq 0, ack 129293122, win 0, length 0 09:24:52.991962 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 890 09:24:52.993865 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 530 ... 09:33:37.985878 IP chub.in.17174 > linux1.unix.nt.10654: UDP, length 172 09:33:37.985892 IP chub.in.17174 > linux1.unix.nt.10654: UDP, length 172 09:33:38.037296 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 361 09:33:38.050291 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 460 09:33:38.050301 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 444 09:33:38.050420 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 404 ^C 10911 packets captured 10911 packets received by filter 0 packets dropped by kernel |
#tcpdump -i eth0 host 91.205.16.235
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 09:24:40.686833 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 385 09:24:40.688448 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 516 09:24:40.688575 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 544 09:24:40.715353 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 528 09:24:43.477556 IP linux1.unix.nt.45453 > chub.in.18030: Flags [S], seq 129293121, win 5840, options [mss 1460,sackOK,TS val 559548 ecr 0,nop,wscale 6], length 0 09:24:43.478630 IP chub.in.18030 > linux1.unix.nt.45453: Flags [R.], seq 0, ack 129293122, win 0, length 0 09:24:52.991962 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 890 09:24:52.993865 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 530 ... 09:33:37.985878 IP chub.in.17174 > linux1.unix.nt.10654: UDP, length 172 09:33:37.985892 IP chub.in.17174 > linux1.unix.nt.10654: UDP, length 172 09:33:38.037296 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 361 09:33:38.050291 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 460 09:33:38.050301 IP chub.in.sip > linux1.unix.nt.sip: SIP, length: 444 09:33:38.050420 IP linux1.unix.nt.sip > chub.in.sip: SIP, length: 404 ^C 10911 packets captured 10911 packets received by filter 0 packets dropped by kernel |
#mcedit /etc/asterisk/sip.conf
[1102] type=friend secret=1234 host=dynamic callerid="Kiev" context=gr3 [msk] mailbox=1102@default type=friend callgroup=1 ... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "ru_UA.UTF-8", LC_COLLATE = "ru_UA.UTF-8", LC_CTYPE = "ru_UA.UTF-8", LANG = "ru_RU.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
#vi extensions.conf
--- /tmp/l3-saved-2558.26769.18309 2011-10-21 09:31:51.000000000 +0300 +++ extensions.conf 2011-10-21 09:34:24.000000000 +0300 @@ -50,15 +50,15 @@ exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "11" ]?dial) exten => s,n,SetMusicOnHold(class2) exten => s,n(dial),Dial(${ARG1},10,tTxX) -;exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup) -;exten => s,n,GotoIf($[ "${ARG2}" = "" ]?hangup) -;exten => s,n,Dial(${ARG2},10,tT) -;exten => s,n(hangup),Hangup +exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup) +exten => s,n,GotoIf($[ "${ARG2}" = "" ]?hangup) +exten => s,n,Dial(${ARG2},10,tT) +exten => s,n(hangup),Hangup [local] exten => _110X,1,Answer -exten => _110X,n,Macro(monitor,SIP/${EXTEN}) +exten => _110X,n,Macro(monitor,SIP/${EXTEN},SIP/380675794458) exten => _110X,n,Voicemail(${EXTEN}@default) exten => _1103,1,Answer |
#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 = 1663) Verbosity is at least 15 == Using SIP RTP CoS mark 5 ... [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.70.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.20.1 [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.50.1 [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.50.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 10:46:37] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for nt1@91.205.16.235 [Oct 21 10:46:37] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 91.205.16.235 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 = 1663) Verbosity is at least 15 == Using SIP RTP CoS mark 5 ... [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.70.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.20.1 [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.50.1 [Oct 21 10:46:25] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.50.1 is 120 sec (Scheduling reregistration in 105 s) [Oct 21 10:46:37] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for nt1@91.205.16.235 [Oct 21 10:46:37] NOTICE[1749]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 91.205.16.235 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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... Supported: replaces, timer Require: timer Session-Expires: 1800;refresher=uas Contact: <sip:380632543912@91.205.16.235> Content-Length: 0 <-------------> --- (13 headers 0 lines) --- 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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... Supported: replaces, timer Require: timer Session-Expires: 1800;refresher=uas Contact: <sip:380632543912@91.205.16.235> Content-Length: 0 <-------------> --- (13 headers 0 lines) --- linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2558.1197.6507 2011-10-21 09:35:02.000000000 +0300 +++ extensions.conf 2011-10-21 09:35:20.000000000 +0300 @@ -58,7 +58,7 @@ [local] exten => _110X,1,Answer -exten => _110X,n,Macro(monitor,SIP/${EXTEN},SIP/380675794458) +exten => _110X,n,Macro(monitor,SIP/${EXTEN},SIP/nt1/380675794458) exten => _110X,n,Voicemail(${EXTEN}@default) exten => _1103,1,Answer |
#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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... Server: Asterisk PBX 1.6.2.9-2 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Content-Length: 0 <-------------> --- (10 headers 0 lines) --- Really destroying SIP dialog '60f71f7e4cdbea7215cedce94103ea17@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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... Server: Asterisk PBX 1.6.2.9-2 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Content-Length: 0 <-------------> --- (10 headers 0 lines) --- Really destroying SIP dialog '60f71f7e4cdbea7215cedce94103ea17@192.168.10.1' Method: INVITE linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2558.31285.17922 2011-10-21 09:35:56.000000000 +0300 +++ extensions.conf 2011-10-21 09:36:22.000000000 +0300 @@ -49,10 +49,10 @@ exten => s,n,System(echo Call from ${CALLERID(num)} | sendxmpp -f /var/lib/asterisk/.sendxmpprc user@linux1.unix.nt) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "11" ]?dial) exten => s,n,SetMusicOnHold(class2) -exten => s,n(dial),Dial(${ARG1},10,tTxX) +exten => s,n(dial),Dial(${ARG1},20,tTxX) exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup) exten => s,n,GotoIf($[ "${ARG2}" = "" ]?hangup) -exten => s,n,Dial(${ARG2},10,tT) +exten => s,n,Dial(${ARG2},20,tT) exten => s,n(hangup),Hangup |
#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 = 1663) Verbosity is at least 15 [Oct 21 09:36:25] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.70.1 ... User-Agent: Asterisk PBX 1.6.2.9-2+squeeze3 Content-Length: 0 --- -- SIP/nt1-00000074 is busy == Everyone is busy/congested at this time (1:1/0/0) -- Auto fallthrough, channel 'SIP/msk-00000073' status is 'BUSY' Really destroying SIP dialog '0dc787ba4545adce36a22a2f6fd54007@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 = 1663) Verbosity is at least 15 [Oct 21 09:36:25] NOTICE[1749]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.70.1 ... User-Agent: Asterisk PBX 1.6.2.9-2+squeeze3 Content-Length: 0 --- -- SIP/nt1-00000074 is busy == Everyone is busy/congested at this time (1:1/0/0) -- Auto fallthrough, channel 'SIP/msk-00000073' status is 'BUSY' Really destroying SIP dialog '0dc787ba4545adce36a22a2f6fd54007@192.168.10.1' Method: INVITE linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2558.27374.19657 2011-10-21 09:37:33.000000000 +0300 +++ extensions.conf 2011-10-21 09:37:58.000000000 +0300 @@ -49,10 +49,10 @@ exten => s,n,System(echo Call from ${CALLERID(num)} | sendxmpp -f /var/lib/asterisk/.sendxmpprc user@linux1.unix.nt) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "11" ]?dial) exten => s,n,SetMusicOnHold(class2) -exten => s,n(dial),Dial(${ARG1},20,tTxX) +exten => s,n(dial),Dial(${ARG1},10,tTxX) exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup) exten => s,n,GotoIf($[ "${ARG2}" = "" ]?hangup) -exten => s,n,Dial(${ARG2},20,tT) +exten => s,n,Dial(${ARG2},10,tT) exten => s,n(hangup),Hangup |
#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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... Supported: replaces, timer Require: timer Session-Expires: 1800;refresher=uas Contact: <sip:380632543912@91.205.16.235> Content-Length: 0 <-------------> --- (13 headers 0 lines) --- 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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... Supported: replaces, timer Require: timer Session-Expires: 1800;refresher=uas Contact: <sip:380632543912@91.205.16.235> Content-Length: 0 <-------------> --- (13 headers 0 lines) --- linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2558.11747.6220 2011-10-21 09:39:40.000000000 +0300 +++ extensions.conf 2011-10-21 09:40:04.000000000 +0300 @@ -49,7 +49,7 @@ exten => s,n,System(echo Call from ${CALLERID(num)} | sendxmpp -f /var/lib/asterisk/.sendxmpprc user@linux1.unix.nt) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "11" ]?dial) exten => s,n,SetMusicOnHold(class2) -exten => s,n(dial),Dial(${ARG1},10,tTxX) +exten => s,n(dial),Dial(${ARG1},05,tTxX) exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup) exten => s,n,GotoIf($[ "${ARG2}" = "" ]?hangup) exten => s,n,Dial(${ARG2},10,tT) |
#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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... User-Agent: Asterisk PBX 1.6.2.9-2+squeeze3 Content-Length: 0 --- -- SIP/nt1-00000087 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/tbs-00000086' status is 'CONGESTION' Really destroying SIP dialog '240a12846e7c78625f8258927ae94e18@192.168.10.1' Method: INVITE linux1*CLI> dialplan 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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... User-Agent: Asterisk PBX 1.6.2.9-2+squeeze3 Content-Length: 0 --- -- SIP/nt1-00000087 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/tbs-00000086' status is 'CONGESTION' Really destroying SIP dialog '240a12846e7c78625f8258927ae94e18@192.168.10.1' Method: INVITE linux1*CLI> dialplan reload Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2558.16206.20495 2011-10-21 09:41:23.000000000 +0300 +++ extensions.conf 2011-10-21 09:42:08.000000000 +0300 @@ -49,7 +49,7 @@ exten => s,n,System(echo Call from ${CALLERID(num)} | sendxmpp -f /var/lib/asterisk/.sendxmpprc user@linux1.unix.nt) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "11" ]?dial) exten => s,n,SetMusicOnHold(class2) -exten => s,n(dial),Dial(${ARG1},05,tTxX) +exten => s,n(dial),Dial(${ARG1},03,tTxX) exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup) exten => s,n,GotoIf($[ "${ARG2}" = "" ]?hangup) exten => s,n,Dial(${ARG2},10,tT) |
#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 = 1663) Verbosity is at least 15 == Using SIP RTP CoS mark 5 ... == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 -- Executing [2101@gr3:1] Dial("SIP/msk-0000009b", "SIP/tbs/2101") in new stack == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 -- Called tbs/2101 -- SIP/tbs-0000009c answered SIP/msk-0000009b 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 = 1663) Verbosity is at least 15 == Using SIP RTP CoS mark 5 ... == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 -- Executing [2101@gr3:1] Dial("SIP/msk-0000009b", "SIP/tbs/2101") in new stack == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 -- Called tbs/2101 -- SIP/tbs-0000009c answered SIP/msk-0000009b linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#context=gr3
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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... CSeq: 103 ACK User-Agent: Asterisk PBX 1.6.2.9-2+squeeze3 Content-Length: 0 <-------------> --- (10 headers 0 lines) --- Really destroying SIP dialog '3335d1016e3c6f262e819ec930ddc602@192.168.20.1' Method: ACK == Spawn extension (gr3, 995322456190, 1) exited non-zero on 'SIP/tbs-000000b2' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#context=gr3
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 = 1663) Verbosity is at least 15 linux1*CLI> dialplan reload ... CSeq: 103 ACK User-Agent: Asterisk PBX 1.6.2.9-2+squeeze3 Content-Length: 0 <-------------> --- (10 headers 0 lines) --- Really destroying SIP dialog '3335d1016e3c6f262e819ec930ddc602@192.168.20.1' Method: ACK == Spawn extension (gr3, 995322456190, 1) exited non-zero on 'SIP/tbs-000000b2' 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 = 1663) Verbosity is at least 15 Really destroying SIP dialog '5ad6d84e16c71e5c36f54dd500473bbc@192.168.20.1' Method: ACK ... CSeq: 2 ACK Max-Forwards: 70 Contact: <sip:1101@192.168.10.201:2048;line=vf2u2u93>;reg-id=1 Content-Length: 0 <-------------> --- (9 headers 0 lines) --- [Oct 21 09:50:58] NOTICE[1749]: chan_sip.c:12897 check_auth: Correct auth, but based on stale nonce received from '"Test1000"<sip:1102@192.168.10.1>;tag=as75dddcfb' 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 = 1663) Verbosity is at least 15 Really destroying SIP dialog '5ad6d84e16c71e5c36f54dd500473bbc@192.168.20.1' Method: ACK ... CSeq: 2 ACK Max-Forwards: 70 Contact: <sip:1101@192.168.10.201:2048;line=vf2u2u93>;reg-id=1 Content-Length: 0 <-------------> --- (9 headers 0 lines) --- [Oct 21 09:50:58] NOTICE[1749]: chan_sip.c:12897 check_auth: Correct auth, but based on stale nonce received from '"Test1000"<sip:1102@192.168.10.1>;tag=as75dddcfb' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2558.26279.26897 2011-10-21 10:22:08.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-21 10:22:44.000000000 +0300 @@ -58,7 +58,8 @@ [local] exten => _110X,1,Answer -exten => _110X,n,Macro(monitor,SIP/${EXTEN},SIP/nt1/380675794458) +;exten => _110X,n,Macro(monitor,SIP/${EXTEN},SIP/nt1/380675794458) +exten => _110X,n,Macro(monitor,SIP/${EXTEN}) exten => _110X,n,Voicemail(${EXTEN}@default) exten => _1103,1,Answer |
#lspci
00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04) 00:16.3 Serial controller: Intel Corporation Cougar Point KT Controller (rev 04) 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04) 00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4) 00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b4) 00:1c.6 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 7 (rev b4) 00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4) 00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4) 00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 04) 00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 04) |
#lspci
00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04) 00:16.3 Serial controller: Intel Corporation Cougar Point KT Controller (rev 04) 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04) 00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4) 00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b4) 00:1c.6 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 7 (rev b4) 00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4) 00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4) 00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 04) 00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 04) |
#lspci | grep -i D
00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09) 00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4) 00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b4) 00:1c.6 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 7 (rev b4) 00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4) 00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4) 00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04) |
#lspci | grep -i D
00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09) 00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4) 00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b4) 00:1c.6 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 7 (rev b4) 00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4) 00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4) 00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04) |
#lspci | grep -i Di
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04) |
#lspci | grep -i Di
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04) |
#da
dahdi_cfg dahdi_monitor dahdi_tool dahdi_diag dahdi_registration dash dahdi_genconf dahdi_scan dasher dahdi_hardware dahdi_test date |
#dahdi_genconf
Empty configuration -- no spans Empty configuration -- no spans |
#da
dahdi_cfg dahdi_monitor dahdi_tool dahdi_diag dahdi_registration dash dahdi_genconf dahdi_scan dasher dahdi_hardware dahdi_test date |
#dahdi_genconf
Empty configuration -- no spans Empty configuration -- no spans |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-686 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 04:15:24 UTC 2011 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] NSC Geode by NSC [ 0.000000] Cyrix CyrixInstead [ 0.000000] Centaur CentaurHauls [ 0.000000] Transmeta GenuineTMx86 ... [ 26.619346] domain 1: span 0-7 level MC [ 26.619348] groups: group c3103778 cpus 2,6 (cpu_power = 1178) group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) [ 26.619359] CPU7 attaching sched-domain: [ 26.619361] domain 0: span 3,7 level SIBLING [ 26.619363] groups: group c338370c cpus 7 (cpu_power = 589) group c318370c cpus 3 (cpu_power = 589) [ 26.619370] domain 1: span 0-7 level MC [ 26.619372] groups: group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) group c3103778 cpus 2,6 (cpu_power = 1178) [ 26.836218] eth0: no IPv6 routers present [ 2521.354608] device eth0 entered promiscuous mode [ 3067.341328] device eth0 left promiscuous mode |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-686 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 04:15:24 UTC 2011 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] NSC Geode by NSC [ 0.000000] Cyrix CyrixInstead [ 0.000000] Centaur CentaurHauls [ 0.000000] Transmeta GenuineTMx86 ... [ 26.619346] domain 1: span 0-7 level MC [ 26.619348] groups: group c3103778 cpus 2,6 (cpu_power = 1178) group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) [ 26.619359] CPU7 attaching sched-domain: [ 26.619361] domain 0: span 3,7 level SIBLING [ 26.619363] groups: group c338370c cpus 7 (cpu_power = 589) group c318370c cpus 3 (cpu_power = 589) [ 26.619370] domain 1: span 0-7 level MC [ 26.619372] groups: group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) group c3103778 cpus 2,6 (cpu_power = 1178) [ 26.836218] eth0: no IPv6 routers present [ 2521.354608] device eth0 entered promiscuous mode [ 3067.341328] device eth0 left promiscuous mode |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 Notice: Configuration file is /etc/dahdi/system.conf line 0: Unable to open master device '/dev/dahdi/ctl' 1 error(s) detected |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 Notice: Configuration file is /etc/dahdi/system.conf line 0: Unable to open master device '/dev/dahdi/ctl' 1 error(s) detected |
Время первой команды журнала | 08:05:36 2011-10-21 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:55:19 2011-10-21 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.40 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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