Журнал лабораторных работ

Содержание

Журнал

Среда (04/23/14)

/dev/pts/2
14:57:00
#nano extensions.conf
--- /tmp/l3-saved-8435.19117.11744	2014-04-23 15:57:08.509058148 +0300
+++ extensions.conf	2014-04-23 15:58:32.509059997 +0300
@@ -13,9 +13,10 @@
 [internal]
 
 [local]
-
 exten => _13XX,1,Dial(SIP/${EXTEN})
 
+
+
 [national]
 exten => _23XX,1,Dial(SIP/frankfurt/${EXTEN})
 ;exten => _14XX,1,Dial(SIP/frankfurt/${EXTEN}) 
14:58:34
#mkdir /var/tmp/asterisk/

14:58:52
#chown asterisk:asterisk /var/tmp/asterisk/

15:01:36
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:01:55
#nano extensions.conf
--- /tmp/l3-saved-8435.28396.24904	2014-04-23 16:03:14.461066212 +0300
+++ extensions.conf	2014-04-23 16:03:55.493067116 +0300
@@ -34,7 +34,7 @@
 exten => _3[3]XX,1,Dial(SIP/vienna/${EXTEN})
 
 [fallback]
-exten => _.,1,Playback(vm-review)
+exten => _.,1,Playback(/var/tmp/asterisk/message)
 
 [gr_relay]
 include => internal
15:03:55
#[default]
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:03:57
#nano extensions.conf
--- /tmp/l3-saved-8435.22872.18087	2014-04-23 16:06:56.925071112 +0300
+++ extensions.conf	2014-04-23 16:07:42.073072107 +0300
@@ -33,7 +33,7 @@
 exten => _3[12]XX,1,Dial(SIP/kiev/${EXTEN})
 exten => _3[3]XX,1,Dial(SIP/vienna/${EXTEN})
 
-[fallback]
+[failback]
 exten => _.,1,Playback(/var/tmp/asterisk/message)
 
 [gr_relay]
@@ -41,22 +41,22 @@
 include => local
 include => national
 include => international
-include => fallback
+include => failback
 
 [gr1]
 include => internal
 include => local
 include => national
 include => international
-include => fallback
+include => failback
 
 [gr2]
 include => internal
 include => local
 include => national
-include => fallback
+include => failback
 
 [gr3]
 include => internal
 include => local
-include => fallback
+include => failback
15:07:42
#[default]
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:08:21
#ls /var/tmp/asterisk
message.gsm
прошло 18 минут
15:26:36
#nano extensions.conf
15:27:05
#[default]

15:32:52
#[default]

15:33:47
#[default]

15:35:53
#nano extensions.conf
--- /tmp/l3-saved-8435.21552.11672	2014-04-23 16:39:37.057114299 +0300
+++ extensions.conf	2014-04-23 16:40:04.417114965 +0300
@@ -21,6 +21,7 @@
 [local]
 ;exten => _13XX,1,Dial(SIP/${EXTEN})
 exten => _1301,1,Dial(SIP/1301,2)
+exten => _1301,n,NoOp(Dial Status: ${DIALSTATUS})
 exten => _1301,n,Dial(SIP/1302)
 
 
15:40:04
#[default]
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:40:06
#asterisk -rcvvvvvvvvvvvvvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on aster-3 (pid = 11036)
...
  == Everyone is busy/congested at this time (1:1/0/0)
    -- Auto fallthrough, channel 'SIP/vienna-00000010' status is 'BUSY'
    -- Executing [h@gr_relay:1] Playback("SIP/vienna-00000010", "/var/tmp/asterisk/message") in new stack
  == Spawn extension (gr_relay, h, 1) exited non-zero on 'SIP/vienna-00000010'
       > Saved useragent "Grandstream GXP2124 1.0.5.26" for peer 1302
aster-3*CLI>
aster-3*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk cleanly ending (0).
прошло 25 минут
16:05:40
#service asterisk restart^C

16:07:40
#asterisk -rcvvvvvvvvvvvvvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on aster-3 (pid = 11147)
...
[Apr 23 17:09:27] NOTICE[11216]: pbx.c:4530 pbx_extension_helper: No such label 's-NOANSWER' in extension 's' in context 'macro-localcall'
[Apr 23 17:09:27] WARNING[11216]: pbx.c:10836 pbx_parseable_goto: Priority 's-NOANSWER' must be a number > 0, or valid label
  == Spawn extension (macro-localcall, s, 3) exited non-zero on 'SIP/1301-0000000d' in macro 'localcall'
  == Spawn extension (gr2, 1302, 1) exited non-zero on 'SIP/1301-0000000d'
    -- Executing [h@gr2:1] Playback("SIP/1301-0000000d", "/var/tmp/asterisk/message") in new stack
  == Spawn extension (gr2, h, 1) exited non-zero on 'SIP/1301-0000000d'
aster-3*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk cleanly ending (0).
16:15:50
#[default]

прошло 10 минут
16:26:13
#less /etc/asterisk/extensions.conf
16:32:04
#less /etc/asterisk/extensions.conf
прошло 10 минут
16:42:39
#touch extensions.conf.include

16:43:17
#nano extensions.conf
16:43:55
#{ARG1} - первый аргумент

16:45:57
#[default]

16:49:09
#nano extensions.conf
--- /tmp/l3-saved-8435.22055.15378	2014-04-23 17:49:15.241206354 +0300
+++ extensions.conf	2014-04-23 17:49:49.889207114 +0300
@@ -10,6 +10,8 @@
 ;exten => _3[12]XX,1,Dial(SIP/kiev/${EXTEN})
 ;exten => _[23]XXX,1,Dial(SIP/vienna/${EXTEN})
 
+#include("/etc/asterisk/extension.conf.local")
+
 [internal]
 exten => 8001,1,Answer
 exten => 8001,n,Record(/var/tmp/asterisk/message:gsm,2)
@@ -28,7 +30,6 @@
 exten => s-ANSWER,1,Hangup
 exten => s-BUSY,1,Busy
 
-#include("/etc/asterisk/extension.conf.local")
 
 [national]
 exten => _23XX,1,Dial(SIP/frankfurt/${EXTEN})
16:49:59
#nano extensions.conf
16:50:35
#[default]

16:51:03
#[default]
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:52:19
#ls|grep exte
extensions.conf
extensions.local
extensions_minivm.conf
16:52:38
#ls
adsi.conf                cli_permissions.conf    musiconhold.conf
agents.conf              codecs.conf             muted.conf
ais.conf                 console.conf            OLDCONFIGS
alarmreceiver.conf       dbsep.conf              osp.conf
alsa.conf                dnsmgr.conf             oss.conf
amd.conf                 dsp.conf                phone.conf
app_mysql.conf           dundi.conf              phoneprov.conf
asterisk.adsi            enum.conf               queuerules.conf
asterisk.conf            extconfig.conf          queues.conf
calendar.conf            extensions.conf         res_config_mysql.conf
...
cel_custom.conf          jabber.conf             sip_notify.conf
cel_odbc.conf            jingle.conf             skinny.conf
cel_pgsql.conf           logger.conf             sla.conf
cel_sqlite3_custom.conf  manager.conf            smdi.conf
cel_tds.conf             manager.d               telcordia-1.adsi
chan_dahdi.conf          meetme.conf             udptl.conf
chan_mobile.conf         mgcp.conf               unistim.conf
chan_ooh323.conf         minivm.conf             users.conf
cli_aliases.conf         misdn.conf              voicemail.conf
cli.conf                 modules.conf            vpb.conf
16:52:48
#nano extensions.local
16:54:35
#ls
adsi.conf                cli_permissions.conf    musiconhold.conf
agents.conf              codecs.conf             muted.conf
ais.conf                 console.conf            OLDCONFIGS
alarmreceiver.conf       dbsep.conf              osp.conf
alsa.conf                dnsmgr.conf             oss.conf
amd.conf                 dsp.conf                phone.conf
app_mysql.conf           dundi.conf              phoneprov.conf
asterisk.adsi            enum.conf               queuerules.conf
asterisk.conf            extconfig.conf          queues.conf
calendar.conf            extensions.conf         res_config_mysql.conf
...
cel_custom.conf          jabber.conf             sip_notify.conf
cel_odbc.conf            jingle.conf             skinny.conf
cel_pgsql.conf           logger.conf             sla.conf
cel_sqlite3_custom.conf  manager.conf            smdi.conf
cel_tds.conf             manager.d               telcordia-1.adsi
chan_dahdi.conf          meetme.conf             udptl.conf
chan_mobile.conf         mgcp.conf               unistim.conf
chan_ooh323.conf         minivm.conf             users.conf
cli_aliases.conf         misdn.conf              voicemail.conf
cli.conf                 modules.conf            vpb.conf
16:54:45
#nano extensions.conf
--- /tmp/l3-saved-8435.31697.5699	2014-04-23 17:54:58.661213936 +0300
+++ extensions.conf	2014-04-23 17:55:13.277214254 +0300
@@ -10,7 +10,7 @@
 ;exten => _3[12]XX,1,Dial(SIP/kiev/${EXTEN})
 ;exten => _[23]XXX,1,Dial(SIP/vienna/${EXTEN})
 
-#include "/etc/asterisk/extension.conf.local"
+#include "/etc/asterisk/extensions.conf.local"
 
 [internal]
 exten => 8001,1,Answer
16:55:13
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on aster-3 (pid = 11954)
...
[ Context 'local' created by 'pbx_config' ]
  '_13XX' =>        1. Macro(localcall,${EXTEN})                  [pbx_config]
[ Context 'default' created by 'pbx_config' ]
-= 16 extensions (21 priorities) in 14 contexts. =-
aster-3*CLI> dialplan show local
[ Context 'local' created by 'pbx_config' ]
  '_13XX' =>        1. Macro(localcall,${EXTEN})                  [pbx_config]
-= 1 extension (1 priority) in 1 context. =-
aster-3*CLI> exit
Executing last minute cleanups
16:56:07
#poweroff

Четверг (04/24/14)

/dev/pts/0
08:25:28
#whois
Usage: whois [OPTION]... OBJECT...
-h HOST, --host HOST   connect to server HOST
-p PORT, --port PORT   connect to PORT
-H                     hide legal disclaimers
      --verbose        explain what is being done
      --help           display this help and exit
      --version        output version information and exit
These flags are supported by whois.ripe.net and some RIPE-like servers:
-l                     find the one level less specific match
-L                     find all levels less specific matches
...
-K                     only primary keys are returned
-r                     turn off recursive look-ups for contact information
-R                     force to show local copy of the domain object even
                       if it contains referral
-a                     also search all the mirrored databases
-s SOURCE[,SOURCE]...  search the database mirrored from SOURCE
-g SOURCE:FIRST-LAST   find updates from SOURCE from serial FIRST to LAST
-t TYPE                request template for object of TYPE
-v TYPE                request verbose template for object of TYPE
-q [version|sources|types]  query specified server info
08:35:27
#whois ya.ru
% By submitting a query to RIPN's Whois Service
% you agree to abide by the following terms of use:
% http://www.ripn.net/about/servpol.html#3.2 (in Russian)
% http://www.ripn.net/about/en/servpol.html#3.2 (in English).
domain:        YA.RU
nserver:       ns1.yandex.ru.
nserver:       ns2.yandex.ru.
state:         REGISTERED, DELEGATED, VERIFIED
org:           YANDEX, LLC.
registrar:     RU-CENTER-REG-RIPN
admin-contact: https://www.nic.ru/whois
created:       1999.07.12
paid-till:     2014.08.01
free-date:     2014.09.01
source:        TCI
Last updated on 2014.04.24 10:31:44 MSK
08:35:33
#whois telworks.net
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
   Domain Name: TELWORKS.NET
   Registrar: CENTER OF UKRAINIAN INTERNET NAMES
   Whois Server: whois.ukrnames.com
   Referral URL: http://www.ukrnames.com
   Name Server: NS1.HOSTING-SERVICE.COM.UA
   Name Server: NS2.HOSTING-SERVICE.COM.UA
...
Tech Phone Ext:
Tech Fax:
Tech Fax Ext:
Tech Email: telworks@ukr.net
Domain servers in listed order:
ns1.hosting-service.com.ua
ns2.hosting-service.com.ua
DNSSEC: Unsigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
>>> Last update of WHOIS database: 2014-04-24T09:35:57 <<<
08:35:57
#ps aux screen
error: conflicting format options
Usage:
 ps [options]
 Try 'ps --help <simple|list|output|threads|misc|all>'
  or 'ps --help <s|l|o|t|m|a>'
 for additional help text.
For more details see ps(1).
08:38:00
#ps aux|grep screen
root      8261  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:11
#ps aux|grep screen
root      8334  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:24
#ps aux|grep screen
root      8351  0.0  0.0   7832   872 pts/1    S+   09:38   0:00 grep screen
08:38:25
#ps aux|grep screen
root      8360  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:27
#ps aux|grep screen
root      8377  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:28
#ps aux|grep screen
root      8386  0.0  0.0   7832   872 pts/1    S+   09:38   0:00 grep screen
08:38:28
#ps aux|grep screen
root      8403  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:29
#ps aux|grep screen
root      8412  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:29
#ps aux|grep screen
root      8421  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:30
#ps aux|grep screen
root      8432  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:30
#ps aux|grep screen
root      8447  0.0  0.0   7832   872 pts/1    S+   09:38   0:00 grep screen
08:38:31
#ps aux|grep screen
root      8456  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:31
#ps aux|grep screen
root      8465  0.0  0.0   7832   872 pts/1    S+   09:38   0:00 grep screen
08:38:31
#ps aux|grep screen
root      8474  0.0  0.0   7832   872 pts/1    S+   09:38   0:00 grep screen
08:38:32
#ps aux|grep screen
root      8483  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:32
#ps aux|grep screen
root      8500  0.0  0.0   7832   872 pts/1    S+   09:38   0:00 grep screen
08:38:32
#ps aux|grep screen
root      8509  0.0  0.0   7832   872 pts/1    S+   09:38   0:00 grep screen
08:38:33
#ps aux|grep screen
root      8518  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:33
#ps aux|grep screen
root      8527  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:34
#ps aux|grep screen
root      8544  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:34
#ps aux|grep screen
root      8553  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:35
#ps aux|grep screen
root      8562  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:35
#ps aux|grep screen
root      8579  0.0  0.0   7832   872 pts/1    S+   09:38   0:00 grep screen
08:38:36
#ps aux|grep screen
root      8588  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:37
#ps aux|grep screen
root      8597  0.0  0.0   7832   876 pts/1    S+   09:38   0:00 grep screen
08:38:37