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

Содержание

Журнал

Пятница (11/28/14)

/dev/pts/6
14:40:17
#vi /etc/asterisk/cdr.conf
14:40:17
#vi /etc/asterisk/cdr.conf
14:41:23
#asterisk reboot
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/8
14:43:49
#less /var/log/asterisk/messages
14:45:01
#; executing. By enabling this option, the CDR will be ended before executing

14:45:02
#asterisk -rvvv
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 debian2 (pid = 11300)
...
  == Using SIP RTP CoS mark 5
    -- Called SIP/kiev/1101
    -- SIP/kiev-00000005 is ringing
    -- SIP/kiev-00000005 answered SIP/1201-00000004
    -- Locally bridging SIP/1201-00000004 and SIP/kiev-00000005
  == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1201-00000004'
    -- [dongle0] Trying to connect on /dev/ttyUSB2...
[Nov 28 15:45:30] WARNING[11346]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB2: No such file or directory
debian2*CLI> quit
Executing last minute cleanups
/dev/pts/8
14:45:43
#less /var/log/asterisk/messages
прошло 12 минут
/dev/pts/8
14:58:22
#less /etc/hosts
14:58:54
#ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.038 ms
^C
--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.038/0.038/0.038/0.000 ms
14:59:02
#vim /etc/asterisk/cdr_
14:59:02
#vim /etc/asterisk/cdr_mysql.conf
--- /tmp/l3-saved-11841.18859.2618	2014-11-28 15:59:15.871003499 +0200
+++ /etc/asterisk/cdr_mysql.conf	2014-11-28 15:59:34.299003729 +0200
@@ -12,7 +12,7 @@
 ;
 [global]
 
-hostname=localhost
+hostname=127.0.0.1
 dbname=asterisk
 table=cdr
 password=password
14:59:34
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:59:40
#less /var/log/asterisk/messages
15:00:06
#apt-get install asterisk-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  asterisk-mysql
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 658 kB of archives.
After this operation, 783 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main asterisk-mysql amd64 1:1.8.13.1~dfsg1-3+deb7u3 [658 kB]
Fetched 658 kB in 0s (14.4 MB/s)
Selecting previously unselected package asterisk-mysql.
(Reading database ... 145614 files and directories currently installed.)
Unpacking asterisk-mysql (from .../asterisk-mysql_1%3a1.8.13.1~dfsg1-3+deb7u3_amd64.deb) ...
Setting up asterisk-mysql (1:1.8.13.1~dfsg1-3+deb7u3) ...
15:00:29
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:00:32
#less /var/log/asterisk/messages
/dev/pts/6
15:01:05
#mysql -u asterisk -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 79
Server version: 5.5.40-0+wheezy1 (Debian)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use asterisk
...
mysql> select * from cdr;
+---------------------+------+------+------+----------+-------------------+-------------------+---------+---------------+----------+---------+-------------+----------+-------------+-----------+--------------+
| calldate            | clid | src  | dst  | dcontext | channel           | dstchannel        | lastapp | lastdata      | duration | billsec | disposition | amaflags | accountcode | userfield | uniqueid     |
+---------------------+------+------+------+----------+-------------------+-------------------+---------+---------------+----------+---------+-------------+----------+-------------+-----------+--------------+
| 2014-11-28 16:01:19 | 1201 | 1201 | 1101 | gr1      | SIP/1201-00000000 | SIP/kiev-00000001 | Dial    | SIP/kiev/1101 |        4 |       2 | ANSWERED    |        3 |             |           | 1417183279.0 |
+---------------------+------+------+------+----------+-------------------+-------------------+---------+---------------+----------+---------+-------------+----------+-------------+-----------+--------------+
1 row in set (0.00 sec)
mysql>
mysql> ^CCtrl-C -- exit!
Aborted
прошло 24 минуты
15:25:18
#asterisk -v
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.
=========================================================================
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
прошло 12 минут
15:37:28
#cp /usr/share/nginx/www/asterisk-13-current.tar.gz
cp: missing destination file operand after `/usr/share/nginx/www/asterisk-13-current.tar.gz'
Try `cp --help' for more information.
15:45:08
#apt-get install libncurses5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libtinfo-dev
Suggested packages:
  ncurses-doc
The following NEW packages will be installed:
  libncurses5-dev libtinfo-dev
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
...
Get:1 http://192.168.12.254/debian/ wheezy/main libtinfo-dev amd64 5.9-10 [105 kB]
Get:2 http://192.168.12.254/debian/ wheezy/main libncurses5-dev amd64 5.9-10 [223 kB]
Fetched 328 kB in 0s (11.3 MB/s)
Selecting previously unselected package libtinfo-dev:amd64.
(Reading database ... 145622 files and directories currently installed.)
Unpacking libtinfo-dev:amd64 (from .../libtinfo-dev_5.9-10_amd64.deb) ...
Selecting previously unselected package libncurses5-dev.
Unpacking libncurses5-dev (from .../libncurses5-dev_5.9-10_amd64.deb) ...
Setting up libtinfo-dev:amd64 (5.9-10) ...
Setting up libncurses5-dev (5.9-10) ...
15:46:27
#tar xfz asterisk-13-current.tar.gz
tar (child): asterisk-13-current.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
15:47:37
#./configure
bash: ./configure: No such file or directory
15:47:52
#apt-get install uuid-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  uuid-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 72.4 kB of archives.
After this operation, 98.3 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main uuid-dev amd64 2.20.1-5.3 [72.4 kB]
Fetched 72.4 kB in 0s (3,750 kB/s)
Selecting previously unselected package uuid-dev.
(Reading database ... 145670 files and directories currently installed.)
Unpacking uuid-dev (from .../uuid-dev_2.20.1-5.3_amd64.deb) ...
Processing triggers for man-db ...
Setting up uuid-dev (2.20.1-5.3) ...
15:48:14
#./configure
bash: ./configure: No such file or directory
15:49:22
#apt-get install libncurses5-dev uuid-dev libjansson-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5-dev is already the newest version.
uuid-dev is already the newest version.
The following extra packages will be installed:
  libjansson4
The following NEW packages will be installed:
  libjansson-dev libjansson4
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
...
Get:1 http://192.168.12.254/debian/ wheezy/main libjansson4 amd64 2.3.1-2 [31.6 kB]
Get:2 http://192.168.12.254/debian/ wheezy/main libjansson-dev amd64 2.3.1-2 [34.6 kB]
Fetched 66.2 kB in 0s (3,175 kB/s)
Selecting previously unselected package libjansson4:amd64.
(Reading database ... 145692 files and directories currently installed.)
Unpacking libjansson4:amd64 (from .../libjansson4_2.3.1-2_amd64.deb) ...
Selecting previously unselected package libjansson-dev:amd64.
Unpacking libjansson-dev:amd64 (from .../libjansson-dev_2.3.1-2_amd64.deb) ...
Setting up libjansson4:amd64 (2.3.1-2) ...
Setting up libjansson-dev:amd64 (2.3.1-2) ...
15:49:48
#./configure
bash: ./configure: No such file or directory
15:50:44
#apt-get install libsqlite3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  sqlite3-doc
The following NEW packages will be installed:
  libsqlite3-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 578 kB of archives.
After this operation, 1,382 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main libsqlite3-dev amd64 3.7.13-1+deb7u1 [578 kB]
Fetched 578 kB in 0s (16.9 MB/s)
Selecting previously unselected package libsqlite3-dev.
(Reading database ... 145710 files and directories currently installed.)
Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.13-1+deb7u1_amd64.deb) ...
Setting up libsqlite3-dev (3.7.13-1+deb7u1) ...
15:55:46
#./configure
bash: ./configure: No such file or directory
15:56:00
#make menuconfig
make: *** No rule to make target `menuconfig'.  Stop.
15:56:48
#cd /usr/src/

15:57:20
#ls
asterisk-13-current.tar.gz
dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb
dahdi.tar.bz2
linux
linux-headers-3.2.0-4-amd64
linux-headers-3.2.0-4-common
linux-kbuild-3.2
linux-OLDVERSION.1417003897
modules
vpb-driver.tar.bz2
15:57:22
#tar xfz asterisk-13-current.tar.gz

15:57:31
#cd asterisk-13.0.1/

15:57:44
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
15:58:22
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
gcc  -g -D_GNU_SOURCE -Wall -I/usr/include/libxml2   -c -o menuselect.o menuselect.c
gcc  -g -D_GNU_SOURCE -Wall   -c -o strcompat.o strcompat.c
gcc  -g -D_GNU_SOURCE -Wall    -c -o menuselect_curses.o menuselect_curses.c
gcc  -o cmenuselect menuselect.o strcompat.o menuselect_curses.o -lncurses  -L/usr/lib -lxml2
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: Nothing to be done for `nmenuselect'.
...
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: Nothing to be done for `gmenuselect'.
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: Entering directory `/usr/src/asterisk-13.0.1'
Generating input for menuselect ...
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect
make[2]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
gcc  -g -D_GNU_SOURCE -Wall   -c -o menuselect_stub.o menuselect_stub.c
gcc  -o menuselect menuselect.o strcompat.o menuselect_stub.o -L/usr/lib -lxml2
make[2]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
16:04:40
#./configure

16:04:40
#asterisk -v

16:04:40
#apt-get install libncurses5-dev

16:04:40
#asterisk -v

16:04:40
#apt-get install libncurses5-dev

16:04:40
#./configure
               **************************************************
                   Asterisk Module and Build Option Selection
               **************************************************
                               Press 'h' for help.
                                  --- Core ---
                              [*] res_adsi
                              [*] res_agi
                              [*] res_ari
                              [*] res_ari_applications
                              [*] res_ari_asterisk
...
                              XXX res_calendar_icalendar
                              [*] res_clialiases
                              [*] res_clioriginate
                              XXX res_config_curl
                              XXX res_config_odbc
                              [*] res_config_sqlite3
                                  ... More ...
                        Realtime ODBC configuration
                        Depends on: curl(E)E)
                        Support Level: core
16:06:35
#apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libssl-doc zlib1g-dev
The following NEW packages will be installed:
  libssl-dev libssl-doc zlib1g-dev
0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
Need to get 3,168 kB of archives.
After this operation, 8,364 kB of additional disk space will be used.
...
(Reading database ... 145785 files and directories currently installed.)
Unpacking zlib1g-dev:amd64 (from .../zlib1g-dev_1%3a1.2.7.dfsg-13_amd64.deb) ...
Selecting previously unselected package libssl-dev.
Unpacking libssl-dev (from .../libssl-dev_1.0.1e-2+deb7u13_amd64.deb) ...
Selecting previously unselected package libssl-doc.
Unpacking libssl-doc (from .../libssl-doc_1.0.1e-2+deb7u13_all.deb) ...
Processing triggers for man-db ...
Setting up zlib1g-dev:amd64 (1:1.2.7.dfsg-13) ...
Setting up libssl-dev (1.0.1e-2+deb7u13) ...
Setting up libssl-doc (1.0.1e-2+deb7u13) ...
16:07:10
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
16:08:32
#apt-get install libtonezone-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libtonezone-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 50.2 kB of archives.
After this operation, 299 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main libtonezone-dev amd64 1:2.5.0.1-2 [50.2 kB]
Fetched 50.2 kB in 0s (2,863 kB/s)
Selecting previously unselected package libtonezone-dev.
(Reading database ... 147223 files and directories currently installed.)
Unpacking libtonezone-dev (from .../libtonezone-dev_1%3a2.5.0.1-2_amd64.deb) ...
Setting up libtonezone-dev (1:2.5.0.1-2) ...
16:08:49
#apt-get install libpri-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libpri-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 290 kB of archives.
After this operation, 987 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main libpri-dev amd64 1.4.12-2 [290 kB]
Fetched 290 kB in 0s (8,184 kB/s)
Selecting previously unselected package libpri-dev.
(Reading database ... 147230 files and directories currently installed.)
Unpacking libpri-dev (from .../libpri-dev_1.4.12-2_amd64.deb) ...
Setting up libpri-dev (1.4.12-2) ...
16:09:05
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
16:09:51
#make menuconfig
                               Press 'h' for help.
                               Add-ons (See README-addons.txt)
                               Applications
                               Bridging Modules
                               Call Detail Recording
                               Channel Event Logging
                               Channel Drivers
                               Codec Translators
                               Format Interpreters
                               Dialplan Functions
...
                               Compiler Flags
                               Voicemail Build Options
                               Utilities
                               AGI Samples
                         --->  Module Embedding
                               Core Sound Packages
                               Music On Hold File Packages
                               Extras Sound Packages
menuselect changes NOT saved!
make[1]: Leaving directory `/usr/src/asterisk-13.0.1'
16:10:29
#apt-cach srtp
bash: apt-cach: command not found
16:11:33
#apt-get install libsrtp0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libsrtp0-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 117 kB of archives.
After this operation, 390 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main libsrtp0-dev amd64 1.4.4+20100615~dfsg-2+deb7u1 [117 kB]
Fetched 117 kB in 0s (4,934 kB/s)
Selecting previously unselected package libsrtp0-dev.
(Reading database ... 147238 files and directories currently installed.)
Unpacking libsrtp0-dev (from .../libsrtp0-dev_1.4.4+20100615~dfsg-2+deb7u1_amd64.deb) ...
Setting up libsrtp0-dev (1.4.4+20100615~dfsg-2+deb7u1) ...
16:12:06
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
16:12:39
#make menuconfig
               **************************************************
                   Asterisk Module and Build Option Selection
               **************************************************
                               Press 'h' for help.
                              [*] app_adsiprog
                              [*] app_alarmreceiver
                              [*] app_amd
                              [*] app_chanisavail
                              [*] app_dahdiras
                              [*] app_dictate
...
                              [ ] app_saycounted
                              [*] app_sms
                              [*] app_talkdetect
                              [*] app_test
                              [*] app_url
                              [*] app_waitforring
                                  ... More ...
                        Silly NBS Stream Application
                        Depends on: osptk(E), openssl(E)
                        Support Level: extended
16:17:45
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: Nothing to be done for `nmenuselect'.
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" gmenuselect
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: Nothing to be done for `gmenuselect'.
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: Entering directory `/usr/src/asterisk-13.0.1'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[2]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[2]: `makeopts' is up to date.
make[2]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
16:18:52
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: Nothing to be done for `nmenuselect'.
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" gmenuselect
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: Nothing to be done for `gmenuselect'.
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: Entering directory `/usr/src/asterisk-13.0.1'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[2]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[2]: `makeopts' is up to date.
make[2]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
16:19:42
#s
bash: s: command not found
16:19:50
#make -j4
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
Building Documentation For: menuselect/menuselect --check-deps menuselect.makeopts
menuselect/menuselect --check-deps menuselect.makeopts
channels Generating embedded module rules ...
pbx apps codecs formats cdr cel bridges funcs tests main    [CC] astcanary.c -> astcanary.o
   [CC] chan_bridge_media.c -> chan_bridge_media.o
   [CC] pbx_ael.c -> pbx_ael.o
...
creating Makefile
creating makelist
creating config.h
   [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o astobj2_container.o astobj2_hash.o astobj2_rbtree.o audiohook.o autochan.o autoservice.o backtrace.o bridge.o bridge_after.o bridge_basic.o bridge_channel.o bridge_roles.o bucket.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o codec.o codec_builtin.o
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+
16:22:06
#сÐcp -R /etc/asterisk /etc/asterisk.bak

16:24:42
#apt-get remove asterisk asterisk-modules
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  asterisk asterisk-dahdi asterisk-modules asterisk-mysql asterisk-prompt-de
  asterisk-voicemail
0 upgraded, 0 newly installed, 6 to remove and 5 not upgraded.
After this operation, 15.3 MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
16:25:11
#./configure

16:25:11
#./configure
                                 apt-get install libsqlite3-dev
ansson-dev uuid-dev libncurses5-dev-get install libsqlite3-dev  libxml2-dev libja
16:25:11
#./configure

16:25:11
#asterisk -v

16:25:11
#ysql -u root -p

16:25:11
#mysql -u root -p

16:25:11
#mysql -u root -p

16:25:11
#vi /etc/asterisk/cdr.conf
16:25:11
#ysql -u root -p

16:25:11
#mysql -u root -p
                                apt-get remove asterisk asterisk-modules
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  asterisk asterisk-dahdi asterisk-modules asterisk-mysql asterisk-prompt-de
  asterisk-voicemail
0 upgraded, 0 newly installed, 6 to remove and 5 not upgraded.
After this operation, 15.3 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 147284 files and directories currently installed.)
Removing asterisk-prompt-de ...
Removing asterisk-voicemail ...
Removing asterisk-mysql ...
Removing asterisk-dahdi ...
Removing asterisk ...
Stopping Asterisk PBX: asterisk.
Removing asterisk-modules ...
dpkg: warning: while removing asterisk-modules, directory '/usr/lib/asterisk/modules' not empty so not removed
Processing triggers for man-db ...
16:27:14
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect'
Installing modules from channels...
Installing modules from pbx...
Installing modules from apps...
Installing modules from codecs...
Installing modules from formats...
Installing modules from cdr...
...
 +-------------------------------------------+
 WARNING WARNING WARNING
 Your Asterisk modules directory, located at
 /usr/lib/asterisk/modules
 contains modules that were not installed by this
 version of Asterisk. Please ensure that these
 modules are compatible with this version before
 attempting to run Asterisk.
    chan_dongle.so
 WARNING WARNING WARNING
16:27:23
#^C

16:32:42
#asterisk -rvv
Asterisk 13.0.1, Copyright (C) 1999 - 2014, 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 13.0.1 currently running on debian2 (pid = 27463)
debian2*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
16:33:44
#asterisk -v
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
16:36:21
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-5889.20246.23896	2014-11-28 17:37:55.079073568 +0200
+++ /etc/asterisk/sip.conf	2014-11-28 17:38:42.475074129 +0200
@@ -1,6 +1,7 @@
 [general]
 context=default
 qualify=yes
+encription=yes
 register=> komsomolsk:1234@192.168.10.1/kiev
 
 [1201]
16:38:58
#vi /etc/asterisk/extension.conf
16:39:33
#~
Asterisk 13.0.1, Copyright (C) 1999 - 2014, 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 13.0.1 currently running on debian2 (pid = 27463)
  == Using SIP RTP CoS mark 5
  == Using SIP RTP CoS mark 5
  == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1201-0000000d'
debian2*CLI>
  == Using SIP RTP CoS mark 5
  == Using SIP RTP CoS mark 5
  == Everyone is busy/congested at this time (1:0/1/0)
debian2*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
16:43:25
#vi /etc/asterisk/sip.conf
16:44:01
#[kiev] ]

16:44:56
#~

16:44:58
#vi /etc/asterisk/extensions.conf
прошло 33 минуты
/dev/pts/8
17:18:02
#ex^C

17:18:03
#^C

17:18:04
#^C

Суббота (11/29/14)

/dev/tty1
15:54:50
#clear

15:54:52
#vi /etc/network/interfaces
--- /tmp/l3-saved-4036.7150.19358	2014-11-29 16:55:01.515565960 +0200
+++ /etc/network/interfaces	2014-11-29 16:55:30.779566298 +0200
@@ -7,7 +7,7 @@
 
 # The primary network interface
 allow-hotplug eth0
-iface eth0 inet static
-	address 192.168.20.1
-	netmask 255.255.255.0
-	gateway 192.168.20.254
+iface eth0 inet dhcp
+	# address 192.168.20.1
+	# netmask 255.255.255.0
+	# gateway 192.168.20.254
15:55:30
#ifconfig
eth0      Link encap:Ethernet  HWaddr 6c:3b:e5:3a:e8:25
          inet addr:192.168.20.1  Bcast:192.168.20.255  Mask:255.255.255.0
          inet6 addr: fe80::6e3b:e5ff:fe3a:e825/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:65 errors:0 dropped:0 overruns:0 frame:0
          TX packets:208 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11258 (10.9 KiB)  TX bytes:19150 (18.7 KiB)
          Interrupt:18
eth1      Link encap:Ethernet  HWaddr 00:1b:21:9d:59:ff
...
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 Memory:ff6c0000-ff6e0000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:107 errors:0 dropped:0 overruns:0 frame:0
          TX packets:107 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:31855 (31.1 KiB)  TX bytes:31855 (31.1 KiB)
15:55:34
#ifdown eth0
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/6c:3b:e5:3a:e8:25
Sending on   LPF/eth0/6c:3b:e5:3a:e8:25
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.10.240 port 67
15:55:41
#ifup eth0
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/6c:3b:e5:3a:e8:25
Sending on   LPF/eth0/6c:3b:e5:3a:e8:25
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.10.240
DHCPACK from 192.168.10.240
bound to 192.168.12.104 -- renewal in 35534 seconds.
15:56:03
#ping ya.ru
PING ya.ru (93.158.134.3) 56(84) bytes of data.
64 bytes from www.yandex.ru (93.158.134.3): icmp_req=1 ttl=55 time=17.9 ms
64 bytes from www.yandex.ru (93.158.134.3): icmp_req=2 ttl=55 time=18.1 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 17.954/18.037/18.120/0.083 ms

Понедельник (12/01/14)