/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 |
|
#asterisk-jabber-logger hello
/usr/local/bin/asterisk-jabber-logger: line 1: endxmpp: команда не найдена |
#asterisk-jabber-logger hello
/usr/local/bin/asterisk-jabber-logger: line 1: endxmpp: команда не найдена |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.22012.12528 2011-06-23 15:07:44.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-23 15:09:35.000000000 +0300 @@ -121,6 +121,7 @@ exten => 2310,1,Dial(SIP/2303&SIP/2304.10) 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,Dial(SIP/${EXTEN},10) exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?voicemail) exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?voicemail) |
#freetalk
Loading dictionary [/usr/share/dict/words]... [98569] words Connecting ... Connected. Authenticating ... [iq received: (unhandled yet)] logger@kiev.unix.nt> user@kiev.unix.nt re No such command or buddy. See /help logger@kiev.unix.nt> user@kiev.unix.nt ÐºÑ No such command or buddy. See /help logger@kiev.unix.nt> .йгÑе ... ## `................. ** .............. . ** ..... v .. .. `* `. .. ...... .... .. .. .... .. .. WW WW WW WW ---------------------------------------- Thank you for using freetalk ---------------------------------------- |
#freetalk
Loading dictionary [/usr/share/dict/words]... [98569] words Connecting ... Connected. Authenticating ... [iq received: (unhandled yet)] logger@kiev.unix.nt> user@kiev.unix.nt re No such command or buddy. See /help logger@kiev.unix.nt> user@kiev.unix.nt ÐºÑ No such command or buddy. See /help logger@kiev.unix.nt> .йгÑе ... ## `................. ** .............. . ** ..... v .. .. `* `. .. ...... .... .. .. .... .. .. WW WW WW WW ---------------------------------------- Thank you for using freetalk ---------------------------------------- |
#/etc/init.d/ejabberder restart
bash: /etc/init.d/ejabberder: Нет такого файла или каталога |
#/etc/init.d/ejabberder restart
bash: /etc/init.d/ejabberder: Нет такого файла или каталога |
#ps aux | grep ejabber
ejabberd 4486 2.4 0.5 101880 47068 ? S 15:17 0:00 /usr/lib/erlang/erts-5.8/bin/beam -K false -P 250000 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd -- -sname ejabberd -pa /usr/lib/ejabberd/ebin -s ejabberd -kernel inetrc "/etc/ejabberd/inetrc" -ejabberd config "/etc/ejabberd/ejabberd.cfg" log_path "/var/log/ejabberd/ejabberd.log" erlang_log_path "/var/log/ejabbe root 4533 0.0 0.0 7568 868 pts/2 S+ 15:17 0:00 grep ejabber ejabberd 31351 0.0 0.0 10560 524 ? S 12:07 0:00 /usr/lib/erlang/erts-5.8/bin/epmd -daemon |
#ps aux | grep ejabber
ejabberd 4486 2.4 0.5 101880 47068 ? S 15:17 0:00 /usr/lib/erlang/erts-5.8/bin/beam -K false -P 250000 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd -- -sname ejabberd -pa /usr/lib/ejabberd/ebin -s ejabberd -kernel inetrc "/etc/ejabberd/inetrc" -ejabberd config "/etc/ejabberd/ejabberd.cfg" log_path "/var/log/ejabberd/ejabberd.log" erlang_log_path "/var/log/ejabbe root 4533 0.0 0.0 7568 868 pts/2 S+ 15:17 0:00 grep ejabber ejabberd 31351 0.0 0.0 10560 524 ? S 12:07 0:00 /usr/lib/erlang/erts-5.8/bin/epmd -daemon |
#asterisk -rv
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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604) Verbosity is at least 3 linux7*CLI> database put jid2303 user@kiev.unix.nt ... /SIP/Registry/2303 : 192.168.107.200:5060:3600:2303:sip:2303@192.168.107.200:5060 /SIP/Registry/2304 : 192.168.107.2:5538:3600:2304:sip:2304@192.168.107.2:5538;rinstance=f5cc086acb542949 /SIP/Registry/lvov : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1 /SIP/Registry/msk : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1 /dundi/secret : XEufWMPCpAjvEu1m+lsrHw==;1uScfUZ1qj14dPg8JCmCSA== /dundi/secretexpiry : 1308833436 6 results found. [Jun 23 15:33:03] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#asterisk -rv
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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604) Verbosity is at least 3 linux7*CLI> database put jid2303 user@kiev.unix.nt ... /SIP/Registry/2303 : 192.168.107.200:5060:3600:2303:sip:2303@192.168.107.200:5060 /SIP/Registry/2304 : 192.168.107.2:5538:3600:2304:sip:2304@192.168.107.2:5538;rinstance=f5cc086acb542949 /SIP/Registry/lvov : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1 /SIP/Registry/msk : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1 /dundi/secret : XEufWMPCpAjvEu1m+lsrHw==;1uScfUZ1qj14dPg8JCmCSA== /dundi/secretexpiry : 1308833436 6 results found. [Jun 23 15:33:03] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#asterisk -rv
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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604) Verbosity is at least 3 linux7*CLI> database sh ... /SIP/Registry/lvov : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1 /SIP/Registry/msk : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1 /dundi/secret : XEufWMPCpAjvEu1m+lsrHw==;1uScfUZ1qj14dPg8JCmCSA== /dundi/secretexpiry : 1308833436 /jid/2303 : user2@kiev.unix.nt /jid/2304 : user1@kiev.unix.nt 8 results found. [Jun 23 15:39:04] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> quit Executing last minute cleanups |
#asterisk -rv
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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux7 (pid = 30604) Verbosity is at least 3 linux7*CLI> database sh ... /SIP/Registry/lvov : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1 /SIP/Registry/msk : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1 /dundi/secret : XEufWMPCpAjvEu1m+lsrHw==;1uScfUZ1qj14dPg8JCmCSA== /dundi/secretexpiry : 1308833436 /jid/2303 : user2@kiev.unix.nt /jid/2304 : user1@kiev.unix.nt 8 results found. [Jun 23 15:39:04] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> quit Executing last minute cleanups |
#asterisk -rx 'dialplan reload'
Dialplan reloaded. |
#/charset
exten => 9,1,Goto(menu,s,start-menu) exten => 0,1,Playback(/var/tmp/asterisk/record4) [menu_uk] exten => s,1(start-menu_uk),Background(/var/tmp/asterisk/record11) ;privet_uk [kievmenu] exten => s,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/ru-kiev.txt) exten => s,n,Goto(menu,s,start-menu) exten => 9,1,Goto(menu,s,start-menu) [submenu] exten => s,1,Wait(1) ... include => local include => national [gr1] [gr3] [gr2] include => local [gr3]de => national include => international [gr4] "/etc/asterisk/extensions.conf" 162L, 5205C записано |
#/charset
exten => s,n,WaitExten(2) exten => s,n(start-menu),Background(/var/tmp/asterisk/record2) ;glavnoe menu exten => s,n,WaitExten(5) exten => s,n,Background(/var/tmp/asterisk/record8) ; sdelaite svoy vybor exten => s,n,WaitExten(3) exten => s,n,Background(/var/tmp/asterisk/record9) ; vy slihkom dolgo zhdete exten => i,1,Background(/var/tmp/asterisk/record5) ; oshibka exten => s,n,Wait(5) (5) exten => s,n,Wait(3) ... include => local include => national [gr1] [gr3] [gr2] include => local [gr3]de => national include => international [gr4] "/etc/asterisk/extensions.conf" 162L, 5205C записано |
#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 = 30604) ... -- Called 2303 -- Music class default requested but no musiconhold loaded. -- SIP/2303-00000014 is ringing -- SIP/2303-00000014 answered SIP/2304-00000013 -- Music class default requested but no musiconhold loaded. [Jun 23 16:25:32] NOTICE[5041]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0' [Jun 23 16:25:42] NOTICE[5041]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0' == Spawn extension (gr1, 2303, 4) exited non-zero on 'SIP/2304-00000013' 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 = 30604) ... -- Called 2303 -- Music class default requested but no musiconhold loaded. -- SIP/2303-00000014 is ringing -- SIP/2303-00000014 answered SIP/2304-00000013 -- Music class default requested but no musiconhold loaded. [Jun 23 16:25:32] NOTICE[5041]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0' [Jun 23 16:25:42] NOTICE[5041]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0' == Spawn extension (gr1, 2303, 4) exited non-zero on 'SIP/2304-00000013' 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 = 30604) ... -- Executing [2303@gr1:3] Dial("SIP/2304-00000017", "SIP/2303,10,m") in new stack == Using SIP RTP CoS mark 5 -- Called 2303 -- Music class default requested but no musiconhold loaded. -- SIP/2303-00000018 is ringing -- SIP/2303-00000018 answered SIP/2304-00000017 -- Music class default requested but no musiconhold loaded. == Spawn extension (gr1, 2303, 3) exited non-zero on 'SIP/2304-00000017' 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 = 30604) ... -- Executing [2303@gr1:3] Dial("SIP/2304-00000017", "SIP/2303,10,m") in new stack == Using SIP RTP CoS mark 5 -- Called 2303 -- Music class default requested but no musiconhold loaded. -- SIP/2303-00000018 is ringing -- SIP/2303-00000018 answered SIP/2304-00000017 -- Music class default requested but no musiconhold loaded. == Spawn extension (gr1, 2303, 3) exited non-zero on 'SIP/2304-00000017' 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 = 30604) Verbosity is at least 3 linux7*CLI> moh show files [Jun 23 16:33:06] NOTICE[30628]: 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 = 30604) Verbosity is at least 3 linux7*CLI> moh show files [Jun 23 16:33:06] NOTICE[30628]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#asterisk
asterisk asterisk-jabber-logger |
#asterisk
asterisk asterisk-jabber-logger |
#/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. |
#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 = 5162) Verbosity was 0 and is now 3 linux7*CLI> moh show files 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 = 5162) Verbosity was 0 and is now 3 linux7*CLI> moh show files linux7*CLI> exit Executing last minute cleanups |
#vim /var/lib/asterisk/moh/theme_of_SSS.gsm .
|
#vim /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-2126.22198.6927 2011-06-23 16:34:55.000000000 +0300 +++ /etc/asterisk/musiconhold.conf 2011-06-23 16:35:17.000000000 +0300 @@ -44,7 +44,7 @@ [default] mode=files -directory=moh +directory=/var/lib/asterisk/moh ; ;[native-random] ;mode=files |
#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 [Jun 23 16:51:07] 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) Verbosity is at least 3 [Jun 23 16:51:07] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304 linux7*CLI> exit Executing last minute cleanups |
#vim /tmp/redirect.txt
--- /dev/null 2011-06-20 11:55:56.325714881 +0300 +++ /tmp/redirect.txt 2011-06-23 16:53:31.000000000 +0300 @@ -0,0 +1,2 @@ +2320 80976335163 +2321 80979691759 |
#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/lvov : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1 /SIP/Registry/msk : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1 /dundi/secret : yqieYKIYSyVS+I9qoipEFg==;asmGXQ8gK1rL+UFyvI2JYQ== /dundi/secretexpiry : 1308840636 /jid/2303 : user2@kiev.unix.nt /jid/2304 : user1@kiev.unix.nt /mobile/2320 : 380976335163 9 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/lvov : 192.168.108.1:5060:120:kiev:sip:kiev@192.168.108.1 /SIP/Registry/msk : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1 /dundi/secret : yqieYKIYSyVS+I9qoipEFg==;asmGXQ8gK1rL+UFyvI2JYQ== /dundi/secretexpiry : 1308840636 /jid/2303 : user2@kiev.unix.nt /jid/2304 : user1@kiev.unix.nt /mobile/2320 : 380976335163 9 results found. linux7*CLI> exit Executing last minute cleanups |
#ls /etc/asterisk/
adsi.conf extconfig.conf osp.conf adtranvofr.conf extensions.ael oss.conf agents.conf extensions.conf phone.conf ais.conf extensions.conf.SAVE phoneprov.conf alarmreceiver.conf extensions.lua queuerules.conf alsa.conf extensions_minivm.conf queues.conf amd.conf features.conf res_config_sqlite.conf asterisk.adsi festival.conf res_ldap.conf asterisk.conf followme.conf res_odbc.conf cdr_adaptive_odbc.conf func_odbc.conf res_pgsql.conf ... cli_aliases.conf logger.conf sla.conf cli.conf manager.conf smdi.conf cli_permissions.conf manager.d/ telcordia-1.adsi codecs.conf meetme.conf udptl.conf console.conf mgcp.conf unistim.conf dbsep.conf minivm.conf usbradio.conf dnsmgr.conf misdn.conf users.conf dsp.conf modules.conf voicemail.conf dundi.conf musiconhold.conf vpb.conf enum.conf muted.conf |
#ls /etc/asterisk/
adsi.conf extconfig.conf osp.conf adtranvofr.conf extensions.ael oss.conf agents.conf extensions.conf phone.conf ais.conf extensions.conf.SAVE phoneprov.conf alarmreceiver.conf extensions.lua queuerules.conf alsa.conf extensions_minivm.conf queues.conf amd.conf features.conf res_config_sqlite.conf asterisk.adsi festival.conf res_ldap.conf asterisk.conf followme.conf res_odbc.conf cdr_adaptive_odbc.conf func_odbc.conf res_pgsql.conf ... cli_aliases.conf logger.conf sla.conf cli.conf manager.conf smdi.conf cli_permissions.conf manager.d/ telcordia-1.adsi codecs.conf meetme.conf udptl.conf console.conf mgcp.conf unistim.conf dbsep.conf minivm.conf usbradio.conf dnsmgr.conf misdn.conf users.conf dsp.conf modules.conf voicemail.conf dundi.conf musiconhold.conf vpb.conf enum.conf muted.conf |
#ls /etc/asterisk/modules.conf .
./ .bash_history .gconf/ .rnd .viminfo ../ .bash_profile .l3rc .sendxmpprc .aptitude/ .bashrc .lilalo/ .ssh/ .asterisk_history .freetalk/ .profile .vim/ |
#ls /etc/asterisk/modules.conf .
./ .bash_history .gconf/ .rnd .viminfo ../ .bash_profile .l3rc .sendxmpprc .aptitude/ .bashrc .lilalo/ .ssh/ .asterisk_history .freetalk/ .profile .vim/ |
#ls /var/
backups/ games/ local/ log/ opt/ spool/ cache/ lib/ lock/ mail/ run/ tmp/ |
#ls /var/
backups/ games/ local/ log/ opt/ spool/ cache/ lib/ lock/ mail/ run/ tmp/ |
#ls /var/loc
local/ lock/ |
#ls /var/loc
local/ lock/ |
#ls /var/
backups/ games/ local/ log/ opt/ spool/ cache/ lib/ lock/ mail/ run/ tmp/ |
#ls /var/
backups/ games/ local/ log/ opt/ spool/ cache/ lib/ lock/ mail/ run/ tmp/ |
#ls /var/loc
local/ lock/ |
#ls /var/loc
local/ lock/ |
#ls /var/lib/
alsa/ gcj-4.4/ nfs/ tex-common/ apt/ gconf/ ntpdate/ ucf/ aptitude/ gdm3/ openoffice/ udisks/ apt-xapian-index/ ghostscript/ os-prober/ update-notifier/ aspell/ hp/ pam/ update-rc.d/ asterisk/ iceweasel/ polkit-1/ upower/ bind/ initramfs-tools/ pycentral/ urandom/ binfmts/ initscripts/ python-support/ usb_modeswitch/ dbus/ insserv/ samba/ usbutils/ defoma/ libuuid/ security/ vim/ dhcp/ logrotate/ sendmail/ x11/ dictionaries-common/ menu-xdg/ sgml-base/ xfonts/ dpkg/ misc/ snmp/ xkb/ ejabberd/ mlocate/ sudo/ xml-core/ exim4/ NetworkManager/ synaptic/ |
#ls /var/lib/
alsa/ gcj-4.4/ nfs/ tex-common/ apt/ gconf/ ntpdate/ ucf/ aptitude/ gdm3/ openoffice/ udisks/ apt-xapian-index/ ghostscript/ os-prober/ update-notifier/ aspell/ hp/ pam/ update-rc.d/ asterisk/ iceweasel/ polkit-1/ upower/ bind/ initramfs-tools/ pycentral/ urandom/ binfmts/ initscripts/ python-support/ usb_modeswitch/ dbus/ insserv/ samba/ usbutils/ defoma/ libuuid/ security/ vim/ dhcp/ logrotate/ sendmail/ x11/ dictionaries-common/ menu-xdg/ sgml-base/ xfonts/ dpkg/ misc/ snmp/ xkb/ ejabberd/ mlocate/ sudo/ xml-core/ exim4/ NetworkManager/ synaptic/ |
#ls /var/lib/
alsa/ gcj-4.4/ nfs/ tex-common/ apt/ gconf/ ntpdate/ ucf/ aptitude/ gdm3/ openoffice/ udisks/ apt-xapian-index/ ghostscript/ os-prober/ update-notifier/ aspell/ hp/ pam/ update-rc.d/ asterisk/ iceweasel/ polkit-1/ upower/ bind/ initramfs-tools/ pycentral/ urandom/ binfmts/ initscripts/ python-support/ usb_modeswitch/ dbus/ insserv/ samba/ usbutils/ defoma/ libuuid/ security/ vim/ dhcp/ logrotate/ sendmail/ x11/ dictionaries-common/ menu-xdg/ sgml-base/ xfonts/ dpkg/ misc/ snmp/ xkb/ ejabberd/ mlocate/ sudo/ xml-core/ exim4/ NetworkManager/ synaptic/ |
#ls /var/lib/
alsa/ gcj-4.4/ nfs/ tex-common/ apt/ gconf/ ntpdate/ ucf/ aptitude/ gdm3/ openoffice/ udisks/ apt-xapian-index/ ghostscript/ os-prober/ update-notifier/ aspell/ hp/ pam/ update-rc.d/ asterisk/ iceweasel/ polkit-1/ upower/ bind/ initramfs-tools/ pycentral/ urandom/ binfmts/ initscripts/ python-support/ usb_modeswitch/ dbus/ insserv/ samba/ usbutils/ defoma/ libuuid/ security/ vim/ dhcp/ logrotate/ sendmail/ x11/ dictionaries-common/ menu-xdg/ sgml-base/ xfonts/ dpkg/ misc/ snmp/ xkb/ ejabberd/ mlocate/ sudo/ xml-core/ exim4/ NetworkManager/ synaptic/ |
#exten => s,n(start-menu),Background(/var/tmp/asterisk/record2) ;glavnoe menu
[2301] type=friend secret=password host=dynamic [2303] [2303]304 callerid="Softphone <2304>" context=gr1 language=ru [2304] ... context=gr4 [msk] [msk] secret=password host=dynamic username=kiev canreinvite=no contex=gr4 xtsdsdsd`uu=gr4 53,7 Внизу 53,16 Внизу |
#exten => s,n(start-menu),Background(/var/tmp/asterisk/record2) ;glavnoe menu
[general] context=default allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=no tcpbindaddr=0.0.0.0 srvlookup=yes register => kiev:password@192.168.108.1/lvov register => kiev:password@192.168.101.1/msk [2301] ... xtsdsdsd`uu=gr4 53,7 Внизу 53,16 Внизу type=friend secret=password host=dynamic username=kiev canreinvite=no context=gr4 [msk] type=friend |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.2057.24045 2011-06-23 17:05:33.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-23 17:07:15.000000000 +0300 @@ -139,6 +139,7 @@ exten => _3XXX,1,Dial(SIP/msk/${EXTEN},10) exten => _21XX,1,Dial(SIP/msk/${EXTEN},10) exten => _22XX,1,Dial(SIP/msk/${EXTEN},10) +exten => _ ;------------------- |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.20021.16864 2011-06-23 17:07:30.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-23 17:08:31.000000000 +0300 @@ -139,7 +139,7 @@ exten => _3XXX,1,Dial(SIP/msk/${EXTEN},10) exten => _21XX,1,Dial(SIP/msk/${EXTEN},10) exten => _22XX,1,Dial(SIP/msk/${EXTEN},10) -exten => _ +exten => _380XXXXXXXXX,1,Dial(SIP/msk/${EXTEN},10) ;------------------- |
#rm /etc/asterisk/ext
adsi.conf extconfig.conf muted.conf adtranvofr.conf extensions.ael osp.conf agents.conf extensions.conf oss.conf ais.conf extensions.conf.SAVE phone.conf alarmreceiver.conf .extensions.conf.swp phoneprov.conf alsa.conf extensions.lua queuerules.conf amd.conf extensions_minivm.conf queues.conf asterisk.adsi features.conf res_config_sqlite.conf asterisk.conf festival.conf res_ldap.conf cdr_adaptive_odbc.conf followme.conf res_odbc.conf ... cli_aliases.conf jingle.conf skinny.conf cli.conf logger.conf sla.conf cli_permissions.conf manager.conf smdi.conf codecs.conf manager.d/ telcordia-1.adsi console.conf meetme.conf udptl.conf dbsep.conf mgcp.conf unistim.conf dnsmgr.conf minivm.conf usbradio.conf dsp.conf misdn.conf users.conf dundi.conf modules.conf voicemail.conf enum.conf musiconhold.conf vpb.conf |
#rm /etc/asterisk/ext
adsi.conf extconfig.conf muted.conf adtranvofr.conf extensions.ael osp.conf agents.conf extensions.conf oss.conf ais.conf extensions.conf.SAVE phone.conf alarmreceiver.conf .extensions.conf.swp phoneprov.conf alsa.conf extensions.lua queuerules.conf amd.conf extensions_minivm.conf queues.conf asterisk.adsi features.conf res_config_sqlite.conf asterisk.conf festival.conf res_ldap.conf cdr_adaptive_odbc.conf followme.conf res_odbc.conf ... cli_aliases.conf jingle.conf skinny.conf cli.conf logger.conf sla.conf cli_permissions.conf manager.conf smdi.conf codecs.conf manager.d/ telcordia-1.adsi console.conf meetme.conf udptl.conf dbsep.conf mgcp.conf unistim.conf dnsmgr.conf minivm.conf usbradio.conf dsp.conf misdn.conf users.conf dundi.conf modules.conf voicemail.conf enum.conf musiconhold.conf vpb.conf |
#include => internal
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) ... 9 results found. == Using SIP RTP CoS mark 5 -- Executing [2321@gr3:1] Set("SIP/2303-0000001c", "MON_FILENAME=record-2011-06-24-09-12-15-2321-2303") in new stack -- Executing [2321@gr3:2] Monitor("SIP/2303-0000001c", "wav,record-2011-06-24-09-12-15-2321-2303,m") in new stack -- Executing [2321@gr3:3] SetMusicOnHold("SIP/2303-0000001c", "") in new stack [Jun 24 09:12:15] WARNING[7819]: res_musiconhold.c:746 set_moh_exec: SetMusicOnHold application is deprecated and will be removed. Use Set(CHANNEL(musicclass)=...) instead [Jun 24 09:12:15] WARNING[7819]: res_musiconhold.c:750 set_moh_exec: SetMusicOnHold requires an argument (class) == Spawn extension (gr3, 2321, 3) exited non-zero on 'SIP/2303-0000001c' linux7*CLI> exit Executing last minute cleanups |
#include => internal
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) ... 9 results found. == Using SIP RTP CoS mark 5 -- Executing [2321@gr3:1] Set("SIP/2303-0000001c", "MON_FILENAME=record-2011-06-24-09-12-15-2321-2303") in new stack -- Executing [2321@gr3:2] Monitor("SIP/2303-0000001c", "wav,record-2011-06-24-09-12-15-2321-2303,m") in new stack -- Executing [2321@gr3:3] SetMusicOnHold("SIP/2303-0000001c", "") in new stack [Jun 24 09:12:15] WARNING[7819]: res_musiconhold.c:746 set_moh_exec: SetMusicOnHold application is deprecated and will be removed. Use Set(CHANNEL(musicclass)=...) instead [Jun 24 09:12:15] WARNING[7819]: res_musiconhold.c:750 set_moh_exec: SetMusicOnHold requires an argument (class) == Spawn extension (gr3, 2321, 3) exited non-zero on 'SIP/2303-0000001c' linux7*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.22020.29112 2011-06-24 09:15:16.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-24 09:15:34.000000000 +0300 @@ -139,7 +139,7 @@ exten => _3XXX,1,Dial(SIP/msk/${EXTEN},10) exten => _21XX,1,Dial(SIP/msk/${EXTEN},10) exten => _22XX,1,Dial(SIP/msk/${EXTEN},10) -exten => _380XXXXXXXXX,1,Dial(SIP/msk/${EXTEN},10) +exten => _380XXXXXXXXX,1,Dial(SIP/msk/${EXTEN},20) ;------------------- |
#ls /var/lo
local/ lock/ log/ |
#ls /etc/asterisk/mobile
ls: невозможно получить доступ к /etc/asterisk/mobile: Нет такого файла или каталога |
#ls /etc/asterisk/mobile
ls: невозможно получить доступ к /etc/asterisk/mobile: Нет такого файла или каталога |
Время первой команды журнала | 14:05:58 2011- 6-23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 08:17:01 2011- 6-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.59 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.06 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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