/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 musiconhold.conf
--- /tmp/l3-saved-2090.267.3190 2011-10-19 12:14:01.000000000 +0300 +++ musiconhold.conf 2011-10-19 12:14:21.000000000 +0300 @@ -45,6 +45,10 @@ [default] mode=files directory=/var/lib/asterisk/moh + +[class2] +mode=files +directory=/var/lib/asterisk/moh2 ; ;[native-random] ;mode=files |
#ls -l
итого 240 -rw-rw---- 1 asterisk asterisk 8192 Окт 19 12:15 astdb drwxr-xr-x 2 asterisk asterisk 4096 Окт 19 12:15 moh drwxr-xr-x 2 root root 4096 Окт 19 12:15 moh2 drwxr-xr-x 3 asterisk asterisk 4096 Окт 18 10:37 sounds -rw-r----- 1 asterisk asterisk 219136 Окт 19 12:04 sqlite.db |
#ls -l
итого 240 -rw-rw---- 1 asterisk asterisk 8192 Окт 19 12:15 astdb drwxr-xr-x 2 asterisk asterisk 4096 Окт 19 12:15 moh drwxr-xr-x 2 root root 4096 Окт 19 12:15 moh2 drwxr-xr-x 3 asterisk asterisk 4096 Окт 18 10:37 sounds -rw-r----- 1 asterisk asterisk 219136 Окт 19 12:04 sqlite.db |
#ls -l
итого 240 -rw-rw---- 1 asterisk asterisk 8192 Окт 19 12:15 astdb drwxr-xr-x 2 asterisk asterisk 4096 Окт 19 12:15 moh drwxr-xr-x 2 asterisk asterisk 4096 Окт 19 12:15 moh2 drwxr-xr-x 3 asterisk asterisk 4096 Окт 18 10:37 sounds -rw-r----- 1 asterisk asterisk 219136 Окт 19 12:04 sqlite.db |
#ls -l
итого 240 -rw-rw---- 1 asterisk asterisk 8192 Окт 19 12:15 astdb drwxr-xr-x 2 asterisk asterisk 4096 Окт 19 12:15 moh drwxr-xr-x 2 asterisk asterisk 4096 Окт 19 12:15 moh2 drwxr-xr-x 3 asterisk asterisk 4096 Окт 18 10:37 sounds -rw-r----- 1 asterisk asterisk 219136 Окт 19 12:04 sqlite.db |
#ls -l
итого 1212 -rw-r--r-- 1 asterisk asterisk 359865 Окт 19 11:56 jsmailo.gsm -rwxr--r-- 1 asterisk asterisk 868400 Окт 19 12:00 jsmailo.mp3 |
#ls -l
итого 1212 -rw-r--r-- 1 asterisk asterisk 359865 Окт 19 11:56 jsmailo.gsm -rwxr--r-- 1 asterisk asterisk 868400 Окт 19 12:00 jsmailo.mp3 |
#vi extensions.conf
--- /tmp/l3-saved-2090.18931.32127 2011-10-19 12:16:11.000000000 +0300 +++ extensions.conf 2011-10-19 12:22:34.000000000 +0300 @@ -3,7 +3,9 @@ [macro-monitor] exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)}) exten => s,n,Monitor(wav,${CALLFILENAME},m) -exten => s,n,Dial(${ARG1},10) +exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "31" ]?dial) +exten => s,n,SetMusicOnHold(class2) +exten => s,n(dial),Dial(${ARG1},10) [local] exten => _110X,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 = 3989) Verbosity is at least 1 linux1*CLI> mo ... Directory: /var/lib/asterisk/moh Class: class2 Mode: files Directory: /var/lib/asterisk/moh2 linux1*CLI> dialplan reload Dialplan reloaded. [Oct 19 12:23:24] NOTICE[4420]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989) Verbosity is at least 1 linux1*CLI> mo ... Directory: /var/lib/asterisk/moh Class: class2 Mode: files Directory: /var/lib/asterisk/moh2 linux1*CLI> dialplan reload Dialplan reloaded. [Oct 19 12:23:24] NOTICE[4420]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2090.7433.22628 2011-10-19 12:23:35.000000000 +0300 +++ extensions.conf 2011-10-19 12:23:42.000000000 +0300 @@ -3,7 +3,7 @@ [macro-monitor] exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)}) exten => s,n,Monitor(wav,${CALLFILENAME},m) -exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "31" ]?dial) +exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "11" ]?dial) exten => s,n,SetMusicOnHold(class2) exten => s,n(dial),Dial(${ARG1},10) |
#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 = 3989) Verbosity is at least 1 linux1*CLI> dialplan reload ... 5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 0 offline] linux1*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time 192.168.70.1:5060 N kv 105 Registered Wed, 19 Oct 2011 12:52:22 192.168.50.1:5060 N kv 105 Registered Wed, 19 Oct 2011 12:52:53 192.168.20.1:5060 N kv 105 Registered Wed, 19 Oct 2011 12:52:22 3 SIP registrations. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989) Verbosity is at least 1 linux1*CLI> dialplan reload ... 5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 0 offline] linux1*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time 192.168.70.1:5060 N kv 105 Registered Wed, 19 Oct 2011 12:52:22 192.168.50.1:5060 N kv 105 Registered Wed, 19 Oct 2011 12:52:53 192.168.20.1:5060 N kv 105 Registered Wed, 19 Oct 2011 12:52:22 3 SIP registrations. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2090.6749.24921 2011-10-19 12:53:58.000000000 +0300 +++ extensions.conf 2011-10-19 12:54:49.000000000 +0300 @@ -12,6 +12,8 @@ exten => _110X,n,Macro(monitor,SIP/${EXTEN}) exten => _110X,n,Voicemail(${EXTEN}@default) +exten => _1103,1,Dial(SIP/1102&SIP/1102) + [national] exten => _12XX,1,Macro(monitor,SIP/lv/${EXTEN}) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989) Verbosity is at least 1 linux1*CLI> dialplan reload Dialplan reloaded. [Oct 19 12:55:10] WARNING[4594]: app_dial.c:1714 dial_exec_full: Skipping dialing interface 'SIP/1102' again since it has already been dialed 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 = 3989) Verbosity is at least 1 linux1*CLI> dialplan reload Dialplan reloaded. [Oct 19 12:55:10] WARNING[4594]: app_dial.c:1714 dial_exec_full: Skipping dialing interface 'SIP/1102' again since it has already been dialed linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2090.23261.25865 2011-10-19 12:55:25.000000000 +0300 +++ extensions.conf 2011-10-19 12:55:35.000000000 +0300 @@ -12,7 +12,7 @@ exten => _110X,n,Macro(monitor,SIP/${EXTEN}) exten => _110X,n,Voicemail(${EXTEN}@default) -exten => _1103,1,Dial(SIP/1102&SIP/1102) +exten => _1103,1,Dial(SIP/1101&SIP/1102) [national] exten => _12XX,1,Macro(monitor,SIP/lv/${EXTEN}) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989) Verbosity is at least 1 linux1*CLI> dialplan reload ... [Oct 19 14:00:01] WARNING[4788]: chan_sip.c:6358 sip_write: Asked to transmit frame type 2, while native formats is 0x8 (alaw)(8) read/write = 0x8 (alaw)(8)/0x8 (alaw)(8) [Oct 19 14:00:01] WARNING[4788]: chan_sip.c:6358 sip_write: Asked to transmit frame type 2, while native formats is 0x8 (alaw)(8) read/write = 0x8 (alaw)(8)/0x8 (alaw)(8) [Oct 19 14:00:01] NOTICE[4788]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0' [Oct 19 14:01:17] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'. [Oct 19 14:02:13] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2202' rejected because extension not found in context 'gr1'. [Oct 19 14:02:52] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'. [Oct 19 14:03:30] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'. linux1*CLI> 11 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 = 3989) Verbosity is at least 1 linux1*CLI> dialplan reload ... [Oct 19 14:00:01] WARNING[4788]: chan_sip.c:6358 sip_write: Asked to transmit frame type 2, while native formats is 0x8 (alaw)(8) read/write = 0x8 (alaw)(8)/0x8 (alaw)(8) [Oct 19 14:00:01] WARNING[4788]: chan_sip.c:6358 sip_write: Asked to transmit frame type 2, while native formats is 0x8 (alaw)(8) read/write = 0x8 (alaw)(8)/0x8 (alaw)(8) [Oct 19 14:00:01] NOTICE[4788]: rtp.c:1808 ast_rtp_read: Unknown RTP codec 126 received from '0.0.0.0' [Oct 19 14:01:17] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'. [Oct 19 14:02:13] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2202' rejected because extension not found in context 'gr1'. [Oct 19 14:02:52] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'. [Oct 19 14:03:30] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '2102' rejected because extension not found in context 'gr1'. linux1*CLI> 11 Disconnected from Asterisk server Executing last minute cleanups |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-2090.15622.31258 2011-10-19 14:04:06.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-19 14:04:14.000000000 +0300 @@ -27,7 +27,7 @@ secret=1234 host=dynamic callerid="Kiev" -context=gr1 +context=gr3 mailbox=1102@default [lv] |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989) Verbosity is at least 1 linux1*CLI> sip reload l ... res_crypto.so res_http_post.so res_jabber.so res_musiconhold.so res_odbc.so res_phoneprov.so res_smdi.so rtp udptl plc linux1*CLI> c cdr channel cli config console core linux1*CLI> co config console core linux1*CLI> core restart gracefully now when 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 = 3989) Verbosity is at least 1 linux1*CLI> sip reload l ... res_crypto.so res_http_post.so res_jabber.so res_musiconhold.so res_odbc.so res_phoneprov.so res_smdi.so rtp udptl plc linux1*CLI> c cdr channel cli config console core linux1*CLI> co config console core linux1*CLI> core restart gracefully now when linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-2090.29032.31736 2011-10-19 14:10:36.000000000 +0300 +++ sip.conf 2011-10-19 14:11:52.000000000 +0300 @@ -21,6 +21,8 @@ callerid="Kiev" context=gr3 mailbox=1101@default +callgroup=1 +pickupgroup=1 [1102] type=friend @@ -29,6 +31,7 @@ callerid="Kiev" context=gr3 mailbox=1102@default +callgroup=1 [lv] type=friend |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989) Verbosity is at least 1 linux1*CLI> sip reload Reloading SIP 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 = 3989) Verbosity is at least 1 linux1*CLI> sip reload Reloading SIP linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-2090.10259.4589 2011-10-19 14:22:03.000000000 +0300 +++ sip.conf 2011-10-19 14:22:12.000000000 +0300 @@ -22,7 +22,6 @@ context=gr3 mailbox=1101@default callgroup=1 -pickupgroup=1 [1102] type=friend @@ -32,6 +31,7 @@ context=gr3 mailbox=1102@default callgroup=1 +pickupgroup=1 [lv] type=friend |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989) Verbosity is at least 1 linux1*CLI> sip reload Reloading SIP [Oct 19 14:22:35] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '*8#' rejected because extension not found in context 'gr3'. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989) Verbosity is at least 1 linux1*CLI> sip reload Reloading SIP [Oct 19 14:22:35] NOTICE[4024]: chan_sip.c:20276 handle_request_invite: Call from '1102' to extension '*8#' rejected because extension not found in context 'gr3'. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
|
#vi sip.conf
--- /tmp/l3-saved-2090.414.21912 2011-10-19 14:22:59.000000000 +0300 +++ sip.conf 2011-10-19 14:23:06.000000000 +0300 @@ -22,6 +22,7 @@ context=gr3 mailbox=1101@default callgroup=1 +pickupgroup=1 [1102] type=friend |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 3989) Verbosity is at least 1 linux1*CLI> sip reload ... linux1*CLI> core show application applications calls channel channels channeltype channeltypes codec codecs config file function functions help hint hints image license profile settings switches sysinfo taskprocessors threads translation uptime version warranty linux1*CLI> core show version Asterisk 1.6.2.9-2+squeeze3 built by buildd @ murphy on a i686 running Linux on 2011-07-07 09:23:09 UTC 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 = 3989) Verbosity is at least 1 linux1*CLI> sip reload ... linux1*CLI> core show application applications calls channel channels channeltype channeltypes codec codecs config file function functions help hint hints image license profile settings switches sysinfo taskprocessors threads translation uptime version warranty linux1*CLI> core show version Asterisk 1.6.2.9-2+squeeze3 built by buildd @ murphy on a i686 running Linux on 2011-07-07 09:23:09 UTC linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#запись
; an application call from extensions.conf: ; Queue(queuename,[options],[optionalurl],[announceoverride],[timeout]) ; example: Queue(dave,t,,,45) ; shared_lastcall will make the lastcall and calls received be the same in ; members logged in more than one queue. ; This is useful to make the queue respect the wrapuptime of another queue ; for a shared member ; shared_lastcall=no ; an application call from extensions.conf: ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "queues.conf" 505L, 22518C записано |
#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 = 3989) Verbosity is at least 1 linux1*CLI> queue show ... [Oct 19 14:31:14] NOTICE[5098]: app_queue.c:5650 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action. [Oct 19 14:31:14] WARNING[5098]: app_queue.c:1569 queue_set_param: Unknown keyword in queue 'queue1': memeber at line 504 of queues.conf [Oct 19 14:31:14] WARNING[5098]: app_queue.c:1569 queue_set_param: Unknown keyword in queue 'queue1': memeber at line 505 of queues.conf linux1*CLI> queue show queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s No Members No Callers 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 = 3989) Verbosity is at least 1 linux1*CLI> queue show ... [Oct 19 14:31:14] NOTICE[5098]: app_queue.c:5650 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action. [Oct 19 14:31:14] WARNING[5098]: app_queue.c:1569 queue_set_param: Unknown keyword in queue 'queue1': memeber at line 504 of queues.conf [Oct 19 14:31:14] WARNING[5098]: app_queue.c:1569 queue_set_param: Unknown keyword in queue 'queue1': memeber at line 505 of queues.conf linux1*CLI> queue show queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s No Members No Callers linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[ ]
[ ] [xten => _110X]n,Macro(monitor,SIP/${EXTEN}) exten => _110X,n,Voicemail(${EXTEN}@default) "extensions.conf" 63L, 1697C exten => _1103,1,Dial(SIP/1101&SIP/1102) [local] [local] [national] exten => _12XX,1,Queue(queue1) [international] exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN}) "extensions.conf" 63L, 1687C записано |
#[ ]
[ ] [xten => _110X]n,Macro(monitor,SIP/${EXTEN}) exten => _110X,n,Voicemail(${EXTEN}@default) "extensions.conf" 63L, 1697C exten => _1103,1,Dial(SIP/1101&SIP/1102) [local] [local] [national] exten => _12XX,1,Queue(queue1) [international] exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN}) "extensions.conf" 63L, 1687C записано |
#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 = 3989) Verbosity is at least 1 linux1*CLI> queue show ... linux1*CLI> sip show peers 1103 Usage: sip show peers [like <pattern>] Lists all known SIP peers. Optional regular expression pattern is used to filter the peer list. linux1*CLI> sip show peer 1103 Peer 1103 not found. 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 = 3989) Verbosity is at least 1 linux1*CLI> queue show ... linux1*CLI> sip show peers 1103 Usage: sip show peers [like <pattern>] Lists all known SIP peers. Optional regular expression pattern is used to filter the peer list. linux1*CLI> sip show peer 1103 Peer 1103 not found. linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[local]
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 = 3989) Verbosity is at least 1 linux1*CLI> dialplan s ... Session-Expires: 1800;refresher=uas Contact: <sip:1103@192.168.10.1> Content-Length: 0 <------------> Really destroying SIP dialog 'OGY2ODQ2MGE3MDI2MjNjZDA1YmE4OTAxNDVmNDM3MmE.' Method: REGISTER <--- SIP read from UDP:192.168.10.200:23834 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[local]
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 = 3989) Verbosity is at least 1 linux1*CLI> dialplan s ... Session-Expires: 1800;refresher=uas Contact: <sip:1103@192.168.10.1> Content-Length: 0 <------------> Really destroying SIP dialog 'OGY2ODQ2MGE3MDI2MjNjZDA1YmE4OTAxNDVmNDM3MmE.' Method: REGISTER <--- SIP read from UDP:192.168.10.200:23834 ---> <-------------> 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 = 3989) Verbosity is at least 1 [Oct 19 14:35:22] NOTICE[4024]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.70.1 ... Server: Asterisk PBX 1.6.2.9-2+squeeze3 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="36cb56bf", stale=true Content-Length: 0 <-------------> --- (11 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 = 3989) Verbosity is at least 1 [Oct 19 14:35:22] NOTICE[4024]: chan_sip.c:11655 sip_reregister: -- Re-registration for kv@192.168.70.1 ... Server: Asterisk PBX 1.6.2.9-2+squeeze3 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="36cb56bf", stale=true Content-Length: 0 <-------------> --- (11 headers 0 lines) --- linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#ÑÑÑÑ.Ñ/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. |
#{EXTEN})
[general] ; ; Global settings for call queues ; ; Persistent Members ; Store each dynamic member in each queue in the astdb so that ; when asterisk is restarted, each member will be automatically ; read into their recorded queues. Default is 'yes'. ; persistentmembers = yes ... ; recent, etc, you should list all the agents in this file individually and not ; use agent groups. ; ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty [queue1] strategy=ringall memeber => SIP/1101 memeber => SIP/1102 |
#{EXTEN})
[general] ; ; Global settings for call queues ; ; Persistent Members ; Store each dynamic member in each queue in the astdb so that ; when asterisk is restarted, each member will be automatically ; read into their recorded queues. Default is 'yes'. ; persistentmembers = yes ... ; recent, etc, you should list all the agents in this file individually and not ; use agent groups. ; ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty [queue1] strategy=ringall memeber => SIP/1101 memeber => SIP/1102 |
#vi queues.conf
--- /tmp/l3-saved-2090.2137.11565 2011-10-19 14:38:03.000000000 +0300 +++ queues.conf 2011-10-19 14:38:08.000000000 +0300 @@ -501,5 +501,5 @@ [queue1] strategy=ringall -memeber => SIP/1101 -memeber => SIP/1102 +member => SIP/1101 +member => SIP/1102 |
#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 = 5209) Verbosity is at least 1 linux1*CLI> queue ... linux1*CLI> voicemail show users Context Mbox User Zone NewMsg default general New User 0 default 1101 User User 0 default 1102 User User 3 other 1234 Company2 User 0 4 voicemail users configured. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
Время первой команды журнала | 11:13:53 2011-10-19 | |||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:38:09 2011-10-19 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.76 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.21 | |||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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