/l3/users/madara/nt-voip-2011-06/linux7.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 |
|
#ls /etc/asterisk/mobile
ls: невозможно получить доступ к /etc/asterisk/mobile: Нет такого файла или каталога |
#ls /etc/asterisk
adsi.conf codecs.conf iaxprov.conf res_ldap.conf adtranvofr.conf console.conf indications.conf res_odbc.conf agents.conf dbsep.conf jabber.conf res_pgsql.conf ais.conf dnsmgr.conf jingle.conf res_snmp.conf alarmreceiver.conf dsp.conf logger.conf rpt.conf alsa.conf dundi.conf manager.conf rtp.conf amd.conf enum.conf manager.d say.conf asterisk.adsi extconfig.conf meetme.conf sip.conf asterisk.conf extensions.ael mgcp.conf sip.conf.SAVE cdr_adaptive_odbc.conf extensions.conf minivm.conf sip_notify.conf cdr.conf extensions.conf.SAVE misdn.conf skinny.conf cdr_custom.conf extensions.lua modules.conf sla.conf cdr_manager.conf extensions_minivm.conf musiconhold.conf smdi.conf cdr_odbc.conf features.conf muted.conf telcordia-1.adsi cdr_pgsql.conf festival.conf osp.conf udptl.conf cdr_sqlite3_custom.conf followme.conf oss.conf unistim.conf cdr_tds.conf func_odbc.conf phone.conf usbradio.conf chan_dahdi.conf gtalk.conf phoneprov.conf users.conf cli_aliases.conf h323.conf queuerules.conf voicemail.conf cli.conf http.conf queues.conf vpb.conf cli_permissions.conf iax.conf res_config_sqlite.conf |
#ls /etc/asterisk
adsi.conf codecs.conf iaxprov.conf res_ldap.conf adtranvofr.conf console.conf indications.conf res_odbc.conf agents.conf dbsep.conf jabber.conf res_pgsql.conf ais.conf dnsmgr.conf jingle.conf res_snmp.conf alarmreceiver.conf dsp.conf logger.conf rpt.conf alsa.conf dundi.conf manager.conf rtp.conf amd.conf enum.conf manager.d say.conf asterisk.adsi extconfig.conf meetme.conf sip.conf asterisk.conf extensions.ael mgcp.conf sip.conf.SAVE cdr_adaptive_odbc.conf extensions.conf minivm.conf sip_notify.conf cdr.conf extensions.conf.SAVE misdn.conf skinny.conf cdr_custom.conf extensions.lua modules.conf sla.conf cdr_manager.conf extensions_minivm.conf musiconhold.conf smdi.conf cdr_odbc.conf features.conf muted.conf telcordia-1.adsi cdr_pgsql.conf festival.conf osp.conf udptl.conf cdr_sqlite3_custom.conf followme.conf oss.conf unistim.conf cdr_tds.conf func_odbc.conf phone.conf usbradio.conf chan_dahdi.conf gtalk.conf phoneprov.conf users.conf cli_aliases.conf h323.conf queuerules.conf voicemail.conf cli.conf http.conf queues.conf vpb.conf cli_permissions.conf iax.conf res_config_sqlite.conf |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... /jid/2303 : user2@kiev.unix.nt /jid/2304 : user1@kiev.unix.nt /mobile/2320 : 380976335163 /mobile/2321 : 380979691759 9 results found. -- Registered SIP '2304' at 192.168.107.2 port 18628 [Jun 24 09:19:14] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 [Jun 24 09:20:14] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... /jid/2303 : user2@kiev.unix.nt /jid/2304 : user1@kiev.unix.nt /mobile/2320 : 380976335163 /mobile/2321 : 380979691759 9 results found. -- Registered SIP '2304' at 192.168.107.2 port 18628 [Jun 24 09:19:14] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 [Jun 24 09:20:14] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... == Using SIP RTP CoS mark 5 [Jun 24 09:23:48] WARNING[8053]: chan_sip.c:5467 create_addr: No such host: external [Jun 24 09:23:48] WARNING[8053]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) == Everyone is busy/congested at this time (1:0/0/1) -- Executing [2321@gr3:2] Monitor("SIP/2303-00000022", "wav,,m") in new stack -- Executing [2321@gr3:3] SetMusicOnHold("SIP/2303-00000022", "") in new stack [Jun 24 09:23:48] WARNING[8053]: res_musiconhold.c:750 set_moh_exec: SetMusicOnHold requires an argument (class) == Spawn extension (gr3, 2321, 3) exited non-zero on 'SIP/2303-00000022' linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... == Using SIP RTP CoS mark 5 [Jun 24 09:23:48] WARNING[8053]: chan_sip.c:5467 create_addr: No such host: external [Jun 24 09:23:48] WARNING[8053]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) == Everyone is busy/congested at this time (1:0/0/1) -- Executing [2321@gr3:2] Monitor("SIP/2303-00000022", "wav,,m") in new stack -- Executing [2321@gr3:3] SetMusicOnHold("SIP/2303-00000022", "") in new stack [Jun 24 09:23:48] WARNING[8053]: res_musiconhold.c:750 set_moh_exec: SetMusicOnHold requires an argument (class) == Spawn extension (gr3, 2321, 3) exited non-zero on 'SIP/2303-00000022' linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.16108.14914 2011-06-24 09:29:15.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-24 09:30:21.000000000 +0300 @@ -119,7 +119,7 @@ [local] exten => 2310,1,Dial(SIP/2303&SIP/2304.10) -exten => 2321,1,Dial(SIP/msk/${DB(mobile/{EXTEN})),20) +exten => 2321,1,Dial(SIP/msk/${DB(mobile/{EXTEN}),20) exten => _23XX,1,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLERID(num)}) exten => _23XX,n,Monitor(wav,${MON_FILENAME},m) ;exten => _23XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLER(num)}) |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... == Using SIP RTP CoS mark 5 [Jun 24 09:31:27] WARNING[8169]: pbx.c:3473 pbx_substitute_variables_helper_full: Error in extension logic (missing '}') -- Executing [2321@gr3:1] Dial("SIP/2303-00000035", "SIP/msk/") in new stack == Using SIP RTP CoS mark 5 -- Called msk/ -- SIP/msk-00000036 answered SIP/2303-00000035 -- Packet2Packet bridging SIP/2303-00000035 and SIP/msk-00000036 == Spawn extension (gr3, 2321, 1) exited non-zero on 'SIP/2303-00000035' linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... == Using SIP RTP CoS mark 5 [Jun 24 09:31:27] WARNING[8169]: pbx.c:3473 pbx_substitute_variables_helper_full: Error in extension logic (missing '}') -- Executing [2321@gr3:1] Dial("SIP/2303-00000035", "SIP/msk/") in new stack == Using SIP RTP CoS mark 5 -- Called msk/ -- SIP/msk-00000036 answered SIP/2303-00000035 -- Packet2Packet bridging SIP/2303-00000035 and SIP/msk-00000036 == Spawn extension (gr3, 2321, 1) exited non-zero on 'SIP/2303-00000035' linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.20244.24361 2011-06-24 09:37:24.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-24 09:38:07.000000000 +0300 @@ -119,7 +119,7 @@ [local] exten => 2310,1,Dial(SIP/2303&SIP/2304.10) -exten => 2321,1,Dial(SIP/msk/${DB(mobile/{EXTEN})},20) +exten => 2321,1,Dial(SIP/msk/${DB(mobile/2321)},20) exten => _23XX,1,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLERID(num)}) exten => _23XX,n,Monitor(wav,${MON_FILENAME},m) ;exten => _23XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLER(num)}) |
#ls /var/tmp/asterisk/
02 - theme of SSS.mp3 record10.gsm record1.gsm record4.gsm record7.gsm reel_around_the_sun.gsm 1 record11.gsm record2.gsm record5.gsm record8.gsm theme_of_SSS.gsm record06.gsm record11.txt record3.gsm record6.gsm record9.gsm wav |
#ls /var/tmp/asterisk/
02 - theme of SSS.mp3 record10.gsm record1.gsm record4.gsm record7.gsm reel_around_the_sun.gsm 1 record11.gsm record2.gsm record5.gsm record8.gsm theme_of_SSS.gsm record06.gsm record11.txt record3.gsm record6.gsm record9.gsm wav |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... /SIP/Registry/msk : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1 /dundi/secret : EBVBXwcUX1GsdalhLu8TMg==;WQWSBw5ZbD+dtn5oFvXUAA== /dundi/secretexpiry : 1308898236 /jid/2303 : user2@kiev.unix.nt /jid/2304 : user1@kiev.unix.nt /mobile/2320 : 380976335163 /mobile/2321 : 380979691759 10 results found. linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... /SIP/Registry/msk : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1 /dundi/secret : EBVBXwcUX1GsdalhLu8TMg==;WQWSBw5ZbD+dtn5oFvXUAA== /dundi/secretexpiry : 1308898236 /jid/2303 : user2@kiev.unix.nt /jid/2304 : user1@kiev.unix.nt /mobile/2320 : 380976335163 /mobile/2321 : 380979691759 10 results found. linux7*CLI> exit Executing last minute cleanups |
#vim /tmp/call
--- /dev/null 2011-06-20 11:55:56.325714881 +0300 +++ /tmp/call 2011-06-24 10:01:47.000000000 +0300 @@ -0,0 +1,3 @@ +channel:SIP/1101 +Extension:8500 +Context:internal |
#vim /tmp/call.call
--- /tmp/l3-saved-2126.22065.30680 2011-06-24 10:04:00.000000000 +0300 +++ /tmp/call.call 2011-06-24 10:04:52.000000000 +0300 @@ -1,3 +1,3 @@ -channel:SIP/1101 +channel:SIP/2304 Extension:8500 Context:internal |
#vim /tmp/call.call
--- /tmp/l3-saved-2126.13579.17027 2011-06-24 10:07:06.000000000 +0300 +++ /tmp/call.call 2011-06-24 10:07:25.000000000 +0300 @@ -1,3 +1,3 @@ -channel:SIP/2304 +channel:SIP/380676335163 Extension:8500 Context:internal |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) Verbosity is at least 3 linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) Verbosity is at least 3 linux7*CLI> exit Executing last minute cleanups |
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/
|
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/
|
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... [Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:163 apply_outgoing: Channel should be in form Tech/Dest at line 4 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 7 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:234 apply_outgoing: Unknown keyword ' chown asterisk' at line 8 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 9 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 10 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:242 apply_outgoing: At least one of app or extension must be specified, along with tech and dest in file /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:400 scan_service: Invalid file contents in /var/spool/asterisk/outgoing/call.call, deleting [Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:492 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/call.call' linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... [Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:163 apply_outgoing: Channel should be in form Tech/Dest at line 4 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 7 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:234 apply_outgoing: Unknown keyword ' chown asterisk' at line 8 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 9 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 10 of /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:242 apply_outgoing: At least one of app or extension must be specified, along with tech and dest in file /var/spool/asterisk/outgoing/call.call [Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:400 scan_service: Invalid file contents in /var/spool/asterisk/outgoing/call.call, deleting [Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:492 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/call.call' linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.12934.8059 2011-06-24 10:16:31.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-24 10:17:06.000000000 +0300 @@ -125,7 +125,7 @@ exten => _23XX,1,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLERID(num)}) exten => _23XX,n,Monitor(wav,${MON_FILENAME},m) ;exten => _23XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLER(num)}) -exten => _23XX,n,SetMusicOnHold(${DB(moh/${EXTEN})}) +;exten => _23XX,n,SetMusicOnHold(${DB(moh/${EXTEN})}) exten => _23XX,n,Dial(SIP/${EXTEN},10) exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?voicemail) exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?voicemail) |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... == Using SIP RTP CoS mark 5 -- Called lvov/2402 -- SIP/lvov-0000008b answered SIP/2303-0000008a -- Packet2Packet bridging SIP/2303-0000008a and SIP/lvov-0000008b == Using SIP RTP CoS mark 5 [Jun 24 10:30:20] WARNING[5293]: chan_sip.c:12856 check_auth: username mismatch, have <2303>, digest has <lvov> [Jun 24 10:30:20] NOTICE[5293]: chan_sip.c:20200 handle_request_invite: Failed to authenticate device "VOIP Phone" <sip:2303@192.168.108.1>;tag=as56dc56eb == Spawn extension (gr3, 2402, 1) exited non-zero on 'SIP/2303-0000008a' linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... == Using SIP RTP CoS mark 5 -- Called lvov/2402 -- SIP/lvov-0000008b answered SIP/2303-0000008a -- Packet2Packet bridging SIP/2303-0000008a and SIP/lvov-0000008b == Using SIP RTP CoS mark 5 [Jun 24 10:30:20] WARNING[5293]: chan_sip.c:12856 check_auth: username mismatch, have <2303>, digest has <lvov> [Jun 24 10:30:20] NOTICE[5293]: chan_sip.c:20200 handle_request_invite: Failed to authenticate device "VOIP Phone" <sip:2303@192.168.108.1>;tag=as56dc56eb == Spawn extension (gr3, 2402, 1) exited non-zero on 'SIP/2303-0000008a' linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2126.25701.17184 2011-06-24 10:30:29.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-24 10:31:54.000000000 +0300 @@ -37,6 +37,7 @@ callerid="Softphone <2304>" context=gr1 language=ru +callgroup=100 [lvov] type=friend |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2126.17728.17683 2011-06-24 10:32:15.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-24 10:32:28.000000000 +0300 @@ -26,8 +26,8 @@ context=gr3 mailbox=2301@default language=ru -callgroup=100 -pickupgroup=100 +callgroup=20 +pickupgroup=20 [2304] type=friend @@ -37,7 +37,7 @@ callerid="Softphone <2304>" context=gr1 language=ru -callgroup=100 +callgroup=20 [lvov] type=friend |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2126.3789.21158 2011-06-24 10:32:58.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-24 10:33:10.000000000 +0300 @@ -38,6 +38,7 @@ context=gr1 language=ru callgroup=20 +pickupgroup=20 [lvov] type=friend |
#vim /etc/asterisk/queues.conf
--- /tmp/l3-saved-2126.28305.18302 2011-06-24 11:19:03.000000000 +0300 +++ /etc/asterisk/queues.conf 2011-06-24 11:21:37.000000000 +0300 @@ -498,3 +498,6 @@ ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty +[queue1] +member => SIP/2303 +member => SIP/2304 |
#asterisk -rx 'dialplan reload'
Dialplan reloaded. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... -- Executing [2303@gr1:3] Dial("SIP/2304-000000b3", "SIP/2303,10") in new stack == Using SIP RTP CoS mark 5 -- Called 2303 -- SIP/2303-000000b4 is ringing -- SIP/2303-000000b4 answered SIP/2304-000000b3 -- Started music on hold, class 'default', on SIP/2304-000000b3 -- Stopped music on hold on SIP/2304-000000b3 == Spawn extension (gr1, 2303, 3) exited non-zero on 'SIP/2304-000000b3' linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269) ... -- Executing [2303@gr1:3] Dial("SIP/2304-000000b3", "SIP/2303,10") in new stack == Using SIP RTP CoS mark 5 -- Called 2303 -- SIP/2303-000000b4 is ringing -- SIP/2303-000000b4 answered SIP/2304-000000b3 -- Started music on hold, class 'default', on SIP/2304-000000b3 -- Stopped music on hold on SIP/2304-000000b3 == Spawn extension (gr1, 2303, 3) exited non-zero on 'SIP/2304-000000b3' linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/agents.conf
--- /tmp/l3-saved-2126.20365.21069 2011-06-24 11:40:07.000000000 +0300 +++ /etc/asterisk/agents.conf 2011-06-24 11:40:24.000000000 +0300 @@ -109,5 +109,5 @@ ; ; agent => agentid,agentpassword,name ; -;agent => 1001,4321,Mark Spencer -;agent => 1002,4321,Will Meadows +agent => 1001,4321,Mark Spencer +agent => 1002,4321,Will Meadows |
#vim /etc/asterisk/agents.conf
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#apt-get install dahdi-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Следующие пакеты устанавливались автоматически и больше не требуются: libmysqlclient16 mysql-common Для их удаления используйте 'apt-get autoremove'. НОВЫЕ пакеты, которые будут установлены: dahdi-source обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. Необходимо скачать 912 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 1.044 kB. Получено:1 http://10.0.35.1/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Получено 912 kБ за 0с (10,3 MБ/c) Выбор ранее не выбранного пакета dahdi-source. (Чтение базы данных ... на данный момент установлено 135212 файлов и каталогов.) Распаковывается пакет dahdi-source (из файла .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb)... Настраивается пакет dahdi-source (1:2.3.0.1+dfsg-2) ... |
#apt-get install dahdi-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Следующие пакеты устанавливались автоматически и больше не требуются: libmysqlclient16 mysql-common Для их удаления используйте 'apt-get autoremove'. НОВЫЕ пакеты, которые будут установлены: dahdi-source обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. Необходимо скачать 912 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 1.044 kB. Получено:1 http://10.0.35.1/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Получено 912 kБ за 0с (10,3 MБ/c) Выбор ранее не выбранного пакета dahdi-source. (Чтение базы данных ... на данный момент установлено 135212 файлов и каталогов.) Распаковывается пакет dahdi-source (из файла .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb)... Настраивается пакет dahdi-source (1:2.3.0.1+dfsg-2) ... |
#m-a a-i dahdi
ÐолÑÑено:5 http://10.0.35.1/debian/ squeeze/main linux-kbuild-2.6.32 amd64 2.6.32-1 [238 kB] ÐолÑÑено:6 http://security.debian.org/ squeeze/updates/main linux-headers-2.6.32-5-amd64 amd64 2.6.32-34squeeze1 [526 kB] ÐолÑÑено 10,7 MРза 26Ñ (400 kÐ/c) ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа gcc-4.3-base. (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 135223 Ñайла и каÑалога.) РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ gcc-4.3-base (из Ñайла .../gcc-4.3-base_4.3.5-4_amd64.deb)... ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа cpp-4.3. РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ cpp-4.3 (из Ñайла .../cpp-4.3_4.3.5-4_amd64.deb)... ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа gcc-4.3. РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ gcc-4.3 (из Ñайла .../gcc-4.3_4.3.5-4_amd64.deb)... ... â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ ÐавеÑÑено Ñ /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb . dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа dahdi-modules-2.6.32-5-amd64. (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 142814 Ñайлов и каÑалогов.) РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ dahdi-modules-2.6.32-5-amd64 (из Ñайла .../dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb)... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ dahdi-modules-2.6.32-5-amd64 (1:2.3.0.1+dfsg-2+2.6.32-34squeeze1) ... |
#m-a a-i dahdi
cpp-4.3 gcc-4.3 gcc-4.3-base linux-headers-2.6.32-5-common linux-kbuild-2.6.32 ÐÑедлагаемÑе пакеÑÑ: gcc-4.3-locales gcc-4.3-multilib libmudflap0-4.3-dev gcc-4.3-doc libgcc1-dbg libgomp1-dbg libmudflap0-dbg ÐÐÐЫРпакеÑÑ, коÑоÑÑе бÑдÑÑ ÑÑÑановленÑ: cpp-4.3 gcc-4.3 gcc-4.3-base linux-headers-2.6.32-5-amd64 linux-headers-2.6.32-5-common linux-kbuild-2.6.32 обновлено 0, ÑÑÑановлено 6 новÑÑ Ð¿Ð°ÐºÐµÑов, Ð´Ð»Ñ ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¾ÑмеÑено 0 пакеÑов, и 4 пакеÑов не обновлено. ÐÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ ÑкаÑаÑÑ 10,7 MРаÑÑ Ð¸Ð²Ð¾Ð². ÐоÑле данной опеÑаÑии, обÑÑм занÑÑого диÑкового пÑоÑÑÑанÑÑва возÑаÑÑÑÑ Ð½Ð° 41,5 MB. ... â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ ÐавеÑÑено Ñ /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb . dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа dahdi-modules-2.6.32-5-amd64. (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 142814 Ñайлов и каÑалогов.) РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ dahdi-modules-2.6.32-5-amd64 (из Ñайла .../dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb)... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ dahdi-modules-2.6.32-5-amd64 (1:2.3.0.1+dfsg-2+2.6.32-34squeeze1) ... |
#lsmod |head
Module Size Used by dahdi 188201 0 crc_ccitt 1323 1 dahdi snd_pcm_oss 32591 0 snd_mixer_oss 12606 1 snd_pcm_oss acpi_cpufreq 5571 0 cpufreq_stats 2659 0 cpufreq_conservative 5162 0 cpufreq_powersave 902 0 cpufreq_userspace 1992 0 |
#lsmod |head
Module Size Used by dahdi 188201 0 crc_ccitt 1323 1 dahdi snd_pcm_oss 32591 0 snd_mixer_oss 12606 1 snd_pcm_oss acpi_cpufreq 5571 0 cpufreq_stats 2659 0 cpufreq_conservative 5162 0 cpufreq_powersave 902 0 cpufreq_userspace 1992 0 |
#vim /etc/asterisk/meetme.conf
--- /tmp/l3-saved-2126.20951.6585 2011-06-24 12:05:44.000000000 +0300 +++ /etc/asterisk/meetme.conf 2011-06-24 12:06:23.000000000 +0300 @@ -43,3 +43,4 @@ ; ;conf => 1234 ;conf => 2345,9938 +conf =>5555,5555 |
#[local]
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14319) ... Dynamic Feature Default Current --------------- ------- ------- (none) Call parking (Parking lot: default) ------------ Parking extension : 700 Parking context : parkedcalls Parked call extensions: 701-720 linux7*CLI> quit Executing last minute cleanups |
#[local]
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14319) ... Dynamic Feature Default Current --------------- ------- ------- (none) Call parking (Parking lot: default) ------------ Parking extension : 700 Parking context : parkedcalls Parked call extensions: 701-720 linux7*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-2126.27465.17075 2011-06-24 12:28:35.000000000 +0300 +++ /etc/asterisk/features.conf 2011-06-24 12:30:32.000000000 +0300 @@ -61,7 +61,7 @@ ;blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;disconnect => *0 ; Disconnect (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call! ;automon => *1 ; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call! -;atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call! ;automixmon => *3 ; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call! |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14502) ... == Using SIP RTP CoS mark 5 -- Executing [2303@gr4:1] Set("SIP/lvov-00000008", "MON_FILENAME=record-2011-06-24-12-34-52-2303-2402") in new stack -- Executing [2303@gr4:2] Monitor("SIP/lvov-00000008", "wav,record-2011-06-24-12-34-52-2303-2402,m") in new stack -- Executing [2303@gr4:3] Dial("SIP/lvov-00000008", "SIP/2303,10.tT") in new stack == Using SIP RTP CoS mark 5 -- Called 2303 -- SIP/2303-00000009 is ringing -- SIP/2303-00000009 answered SIP/lvov-00000008 linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14502) ... == Using SIP RTP CoS mark 5 -- Executing [2303@gr4:1] Set("SIP/lvov-00000008", "MON_FILENAME=record-2011-06-24-12-34-52-2303-2402") in new stack -- Executing [2303@gr4:2] Monitor("SIP/lvov-00000008", "wav,record-2011-06-24-12-34-52-2303-2402,m") in new stack -- Executing [2303@gr4:3] Dial("SIP/lvov-00000008", "SIP/2303,10.tT") in new stack == Using SIP RTP CoS mark 5 -- Called 2303 -- SIP/2303-00000009 is ringing -- SIP/2303-00000009 answered SIP/lvov-00000008 linux7*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14775) ... -- Called msk/1101 -- SIP/msk-00000007 answered SIP/lvov-00000006 -- Packet2Packet bridging SIP/lvov-00000006 and SIP/msk-00000007 == Spawn extension (gr4, 1101, 1) exited non-zero on 'SIP/lvov-00000006' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux7*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/iax.conf
|
#vim /etc/asterisk/iax.conf
|
channel:SIP/1101 Extension:8500 Context:internal
Время первой команды журнала | 08:17:01 2011- 6-24 | ||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:20:04 2011- 6-24 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 96 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.62 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.54 | ||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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