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

Содержание

Журнал

Среда (11/20/13)

/dev/pts/5
13:09:38
#ls -la
total 56
drwxrwxrwx 2 asterisk asterisk  4096 Nov 20 14:11 .
drwxrwxrwx 3 asterisk asterisk  4096 Nov 19 19:10 ..
-rw-rw---- 1 asterisk asterisk  8217 Nov 20 14:10 00.gsm
-rw-rw---- 1 asterisk asterisk 35046 Nov 20 14:11 01.gsm
-rw-rw---- 1 asterisk asterisk     0 Nov 19 19:23 record02.gsm
13:12:05
#cp 01.gsm 04.gsm

13:12:14
#ls -la
total 140
drwxrwxrwx 2 asterisk asterisk  4096 Nov 20 14:15 .
drwxrwxrwx 3 asterisk asterisk  4096 Nov 19 19:10 ..
-rw-rw---- 1 asterisk asterisk  8217 Nov 20 14:10 00.gsm
-rw-rw---- 1 asterisk asterisk 25245 Nov 20 14:12 01.gsm
-rw-rw---- 1 asterisk asterisk  4785 Nov 20 14:13 02.gsm
-rw-rw---- 1 asterisk asterisk  4059 Nov 20 14:13 03.gsm
-rw-r----- 1 root     root     35046 Nov 20 14:12 04.gsm
-rw-rw---- 1 asterisk asterisk  3333 Nov 20 14:13 05.gsm
-rw-rw---- 1 asterisk asterisk  4059 Nov 20 14:14 06.gsm
-rw-rw---- 1 asterisk asterisk  2574 Nov 20 14:14 07.gsm
-rw-rw---- 1 asterisk asterisk  4158 Nov 20 14:14 08.gsm
-rw-rw---- 1 asterisk asterisk  4389 Nov 20 14:15 09.gsm
-rw-rw---- 1 asterisk asterisk  5841 Nov 20 14:15 10.gsm
-rw-rw---- 1 asterisk asterisk  4521 Nov 20 14:15 11.gsm
-rw-rw---- 1 asterisk asterisk     0 Nov 19 19:23 record02.gsm
13:16:07
#play *.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
00.gsm:
 File Size: 8.22k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:04.98 [00:00:00.00] Out:39.8k [ =====|===== ]        Clip:0
01.gsm:
...
In:0.00% 00:00:02.74 [00:00:00.00] Out:515k  [      |      ]        Clip:0
record02.gsm:
 File Size: 0
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:00.00 [00:00:00.00] Out:515k  [      |      ]        Clip:0
Done.
13:17:28
#pwd
/var/tmp/asterisk/records
прошло 19 минут
13:37:11
#ls -la
total 140
drwxrwxrwx 2 asterisk asterisk  4096 Nov 20 14:15 .
drwxrwxrwx 3 asterisk asterisk  4096 Nov 19 19:10 ..
-rw-rw---- 1 asterisk asterisk  8217 Nov 20 14:10 00.gsm
-rw-rw---- 1 asterisk asterisk 25245 Nov 20 14:12 01.gsm
-rw-rw---- 1 asterisk asterisk  4785 Nov 20 14:13 02.gsm
-rw-rw---- 1 asterisk asterisk  4059 Nov 20 14:13 03.gsm
-rw-r----- 1 root     root     35046 Nov 20 14:12 04.gsm
-rw-rw---- 1 asterisk asterisk  3333 Nov 20 14:13 05.gsm
-rw-rw---- 1 asterisk asterisk  4059 Nov 20 14:14 06.gsm
-rw-rw---- 1 asterisk asterisk  2574 Nov 20 14:14 07.gsm
-rw-rw---- 1 asterisk asterisk  4158 Nov 20 14:14 08.gsm
-rw-rw---- 1 asterisk asterisk  4389 Nov 20 14:15 09.gsm
-rw-rw---- 1 asterisk asterisk  5841 Nov 20 14:15 10.gsm
-rw-rw---- 1 asterisk asterisk  4521 Nov 20 14:15 11.gsm
-rw-rw---- 1 asterisk asterisk     0 Nov 19 19:23 record02.gsm
прошла 31 минута
14:09:02
#chown asterisk:asterisk 04.gsm

14:09:14
#joe /usr/local/bin/asterisk-festival.pl
  local $/;                                                                 8
use Asterisk::AGI;
}   File::Basename;
my $Digest::MD5 qw(md5_hex);
$AGI = new Asterisk::AGI;/"."tts-$hash.wav";
my %input = $AGI->ReadParse();
 print fileOUT "$text";
 close(       );
 my $execf="text2wave -eval '(voice_msu_ru_nsh_clunits)' $sounddir/say-text-$hash.txt -F 8000 -o $wavefile";
 unlink($sounddir."/say-text-$hash.txt");
...
unless (-f $wavefile) {
 open(fileOUT, ">$sounddir"."/say-text-$hash.txt");
 print fileOUT "$text";
 close(       );
 my $execf="text2wave -eval '(voice_msu_ru_nsh_clunits)' $sounddir/say-text-$hash.txt -F 8000 -o $wavefile";
 system($execf);
 unlink($sounddir."/say-text-$hash.txt");
}
File /usr/local/bin/asterisk-festival.pl not changed so no update needed
$AGI->exec('Background', $wavefile);
прошло 30 минут
14:40:01
#pwd
/var/tmp/asterisk/records
14:40:02
#ls
00.gsm  01.gsm  02.gsm  03.gsm  04.gsm  05.gsm  06.gsm  07.gsm  08.gsm  09.gsm  10.gsm  11.gsm  record02.gsm
14:40:04
#ls
00.gsm  02.gsm  04.gsm  06.gsm  08.gsm  10.gsm  12.gsm
01.gsm  03.gsm  05.gsm  07.gsm  09.gsm  11.gsm  record02.gsm
14:40:35
#for i in `seq 100 200`; do asterisk -rx "database put ord|
> er $i $((RANDOM%3+6))";done
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
...
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
прошло 70 минут
15:50:51
#asterisk -rx 'database show order'
0 results found.
15:52:52
#asterisk -rx 'database show order'
0 results found.
15:53:32
#joe /etc/asterisk/sip.conf
type=friend awa
[3101]
type=friend
secret=1234
host=dynamic
context=bank
callgroup=1
pickupgroup=1
host=dynamic
context=vip
...
[allgroup=1
File /etc/asterisk/sip.conf not changed so no update needed
[3103]
type=friend
secret=1234
host=dynamic
context=vip
language=ru
callgroup=1
pickupgroup=1

Четверг (11/21/13)

/dev/pts/3
12:44:39
#joe /etc/asterisk/sip.conf
[3102]
type=friend
register => ottawa:1234@192.168.15.8/montreal
callgroup=1
type=friend                        254/quebec
                                   4/london
[3102]
                                   1/kiev
type=friend
secret=1234
...
File /etc/asterisk/sip.conf not changed so no update needed
language=ru
callgroup=1
pickupgroup=1
[montreal]
type=friend
secret=1234
host=dynamic
username=ottawa
context=vip
12:50:08
#joe /etc/asterisk/extensions.conf
[local]
exten => _33XX,1,Answer
exten => 3101,1,Dial(SIP/3101)
exten => _33XX,n,Dial(SIP/quebec/${EXTEN})
exten => 3102,1,Dial(SIP/3102)
exten => _31xx,1,Dial(SIP/${EXTEN},2)
[international]
exten => _2XXX,1,Answer
exten => _2XXX,1,Answer
File /etc/asterisk/extensions.conf not changed so no update needed
12:51:14
#joe /etc/asterisk/features.conf
;automixmon => *3                 One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x
; Note that the DTMF features listed below only work when two channels have answered and are bridged together.
; They can not be used while the remote party is ringing or in progress. If you require this feature you can u
[applicationmap]
blindxfer => #1 combination wit; Blind transfer  (default is #) -- Make sure to set the T and/or t option in t
; Note that the DYNAMIC_FEATURES channel variable must be set to use the features
atxfer => *2 e.  The value of D; Attended transfer  -- Make sure to set the T and/or t option in the Dial() or
; to allow the channel to use separated by '#'.  For example:
[featuremap]
;
 blindxfer => #1                  Blind transfer  (default is #) -- Make sure to set the T and/or t option in
     Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3)
 disconnect => *0                 Disconnect  (default is *) -- Make sure to set the H and/or h option in the
;automon => *1                    One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w opt
; (Note: The two leading underscores allow these feature settings to be set on
File /etc/asterisk/features.conf saved
13:00:20
#joe /etc/asterisk/extensions.conf
           national                                                      75        6
;exten => _3301,1,Dial(SIP/31${EXTEN:2})
include => local  tional
include => national
include => internal
exten => s,n,WaitExten(3)P/3101)
[menu]
exten => s,n(main),Background(/var/tmp/asterisk/records/01)
exten => s,n,WaitExten(3)
exten => s,1,Answer
...
           natio
File /etc/asterisk/extensions.conf saved
Name of file to save (^C to abort): /etc/asterisk/extensions.conf
File /etc/asterisk/extensions.conf not changed so no update needed
[super]
           local
           national
include => international
             XX              01)
;exten => _3301,1,Dial(SIP/31${EXTEN:2})
/dev/pts/1
13:08:09
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
13:08:32
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 19070)
...
debian*CLI> queue show queue1
No such queue: queue1.
debian*CLI> queue show queue1
No such queue: queue1.
debian*CLI> queue show queue1
No such queue: queue1.
  == Using SIP RTP CoS mark 5
[Nov 21 15:05:38] NOTICE[19106]: chan_sip.c:22753 handle_request_invite: Call from '3101' (192.168.15.208:5060) to extension '8201' rejected because extension not found in context 'bank'.
debian*CLI> exit
Executing last minute cleanups
прошло 50 минут
/dev/pts/3
13:59:18
#joe /etc/asterisk/queues.conf
     with available members in a parallel fashion until there are
;    with available members in a parallel fashion until there are
     no more available members or no more waiting callers. This is
     no more available members or no more waiting callers. This is
     probably more along the lines of how a queue should work and
     in most cases, you will want to enable this behavior. If you
     do not specify or comment out this option, it will default to yes.
 autofill = no
  Monitor Type
     By setting monitor-type = MixMonitor, when specifying monitor-format
...
 member => Agent/1001
 member => Agent/1002
 member => Local/1000@default,0,John Smith,SIP/1000
^K                                 (Modified)                             38      19   3:01
           Agent/@1             ; Any agent in group 1
                 :1,            ; Any agent in group 1, wait for first
                                ; available, but consider with penalty
[queue1]
member => sip SIP/3101
File /etc/asterisk/queues.conf saved
14:01:35
#joe /etc/asterisk/extensions.conf
include => local
           national
include => internal
                  tional
include => national
include => international
[menu]
[vip]
exten => s,1,Answerial(SIP/31${EXTEN:2})
include => local
...
exten => 8201,1
[local]
exten => _311x,1,Dial(SIP/${1,,tT),2)
         3102,1,Dial(SIP/3102)
[national]
exten => _31xx,1,Dial(SIP/${EXTEN},2)2&SIP/montreal/3201)
File /etc/asterisk/extensions.conf not changed so no update needed
exten => 3104,1,Dial(SIP/montreal/3202&SIP/montreal/3201)
[national]
[national]
14:04:33
#joe /etc/asterisk/queues.conf
;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]
File /etc/asterisk/queues.conf not changed so no update needed
14:05:17
#joe /etc/asterisk/extensions.conf
          201,1,Queue(queue1)
exten => 8105X,2,Record(/var/tmp/asterisk/records/record${EXTEN:2}:gsm)
               1,Answer
         8105X,3,Playback(/var/tmp         /records/record${EXTEN:2})
[local]
exten => 8105,n,Dial(SIP/montreal/3201)
[national]
exten => _32XX,1,Answer  3102)
          9
exten => _32XX,n,Dial(SIP/montreal/${EXTEN})
...
File /etc/asterisk/extensions.conf not changed so no update needed
[vip]
include => local
           natio
include => internal
[super]
include => local   ional
           national
include => international
;exten => _33XX,1,Dial(SIP/3101)
/dev/pts/1
14:06:41
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
14:09:48
#joe /etc/asterisk/queues.conf
  by setting defaultrule to the rule's name
; ringinuse = no
  timeoutrestart = no
  defaultrule = myruleled.
                 have a delay before the member is connected to the caller (or
  before the member hears any announcement messages), set this to the number of
  Each member of this call queue is listed on a separate line in
  seconds to delay.
  the form technology/dialstring.  "member" means a normal member of a' will
  be used.
...
  QUEUEMAX maxmimum number of calls allowed
  QUEUESRVLEVEL queue service level
  QUEUESTRATEGY the strategy of the queue;
  QUEUESRVLEVELPERF current service level performance
  QUEUECALLS number of calls currently in the queue
 setqueuevar=no
  if set, run this macro when connected to the queue member
  you can override this macro by setting the macro option on
  the queue application
File /etc/asterisk/queues.conf not changed so no update needed
14:10:36
#joe /etc/asterisk/extensions.conf
include =_33XX,n,Dial(SIP/quebec/${EXTEN})
exten => _1XXX,1,Answer
[international]
exten => _1XXX,n,Dial(SIP/kiev/${EXTEN})
exten => _2XXX,1,Answerl
         _2XXX,n,Dial(SIP/london/${EXTEN})
[bank]]
exten => _1XXX,1,Answer
include => local
exten => _1XXX,n,Dial(SIP/kiev/${EXTEN})
...
exten => i,1,Playback(/var/tmp/asterisk/records/12)
         0,1,Goto(menu,0,1)
Lose changes to this file (y,n,^C)?
File /etc/asterisk/extensions.conf not saved
exten => 1,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/texts/burunduki.txt)
         1,n,Goto(s,main)
         2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/texts/pescy.txt)
exten => 2,n,Goto(s,main)
exten => i,1,Playback(/var/tmp/asterisk/records/12)
           n,Goto(s,main)
14:19:55
#joe /etc/asterisk/extensions.conf
exten => i,1,Playback(/var/tmp/asterisk/records/12)
exten => i,n,Goto(s,main)
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File /etc/asterisk/extensions.conf not changed so no update needed
14:20:01
#joe /etc/asterisk/queues.conf
  How often to announce queue position and/or estimated
  The absolute minimum time between the start of each
  Should the periodic announcements be played in a random order? Default is no.
 mqueue position and/or estimated holdtime announcement
  This is useful for avoiding constant announcements
 random-periodic-announce=no
  when the caller's queue position is changing frequentlyic-announce)
; Should we include estimated hold time in position announcements?
  If set to yes, the periodic announcment frequency will be timed from the end
  Either yes, no, or only once.
...
File /etc/asterisk/queues.conf saved
  not propagate down to the Agent system so if you want round robin, least
File /etc/asterisk/queues.conf not changed so no update needed
  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
                 :1,1                                 , wait for first
                                  available, but consider with penalty
[queue1]
;member => sip SIP/3101
14:20:24
#joe /etc/asterisk/agents.conf
  Define maxlogintries to allow agent to try max logins before
  Define autologoff times if appropriate.  This is how long
  failed.
  the phone has to ring with no answer before the agent is
  default to 3
[agents] ically logged off (in seconds)
 maxlogintries=5
  Define autologoff times if appropriate.  This is how long
  the phone has to ring with no answer before the agent is
; automatically logged off (in seconds)
File /etc/asterisk/agents.conf saved
14:21:16
#joe /etc/asterisk/extensions.conf
exten => 2,n,Playback(/var/tmp/asterisk/records/0${DB(order/${ORDER})})
         s,n,Background(/var/tmp/asterisk/records/03)
         s
         2,n(invalid_order),Playback(/var/tmp/asterisk/records/09)
[menu]
         2,1,Read(ORDER,/var/tmp/asterisk/records/05
exten => 2,n,SayDigits(${ORDER})
         s,1,Answer
         2,n,GotoIf($[ "${DB(order/${ORDER})}" = "" ]?invalid_order)
         s,n,Background(/var/tmp/asterisk/records/00)
...
exten => _31xx,1,Dial(SIP/${EXTEN},2)
exten => 8105,1,Answer
         8105,n,Playback(demo-thanks)2&SIP/montreal/3201)
         8105,n          montreal/3201)
exten => _83XX,1,AgentLogin(0${EXTEN:2})
[local]
            1               1,,tT)
         3102,1,Dial(SIP/3102)
File /etc/asterisk/extensions.conf not changed so no update needed
exten => _31xx,1,Dial(SIP/${EXTEN},2)
/dev/pts/1
14:22:55
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
14:24:20
#joe /etc/asterisk/agents.conf
;
; Define autologoff times if appropriate.  This is how long
[agents]
; the phone has to ring with no answer before the agent is
; automatically logged off (in seconds)
; automatically logged off (in seconds)
File /etc/asterisk/agents.conf not changed so no update needed
14:25:48
#joe /etc/asterisk/extensions.conf
  ten => _31xx,1,Dial(SIP/${EXTEN},2)                                    18               9
exten => _90XX,n,Record(/var/tmp/asterisk/records/${EXTEN:2}:gsm)
exten => _90XX,n,Playback(/var/tmp/asterisk/records/${EXTEN:2})
exten => 3104,1,Dial(SIP/montreal/3202&SIP/montreal/3201)
exten => 8200,1,Goto(menu,s,1)
[national]
exten => 8201,1,Queue(queue1)
exten => _32XX,1,Answer
exten => _32XX,1,Answer
                                                                          3
...
exten => _2XXX,n,Dial(SIP/london/${EXTEN})
         _33XX,n,Dial(SIP/quebec/${EXTEN})
[international]
exten => _2XXX,1,Answer
         _2XXX,n,Dial(SIP/london/${EXTEN})
^Knternational]                                                           0       32
exten => _2XXX,1,Answer
               n,Dial(SIP/london/${EXTEN})
exten => 3101,1,Dial(SIP/3101,5,tT)
File /etc/asterisk/extensions.conf saved
14:29:51
#joe /etc/asterisk/queues.conf
  defaultrule = myruleled.
                 have a delay before the member is connected to the caller (or
  before the member hears any announcement messages), set this to the number of
  Each member of this call queue is listed on a separate line in
  seconds to delay.
  the form technology/dialstring.  "member" means a normal member of a' will
  queue.  An optional penalty may be specified after a comma, such that
  memberdelay = 0ultrule to the rule's name
  entries with higher penalties are considered last.  An optional member
  It is important to ensure that channel drivers used for members are loaded
...
     to enable recording of queue member conversations, app_queue will
     now use the new MixMonitor application instead of Monitor so  s option,
     the concept of "joining/mixing" the in/out files now goes away
     when this is enabled. If you do not specify or comment out this option,
     it will default to the old 'Monitor' behavior to keep backward
  moncompatibility.xMonitor
  monitor-type = MixMonitorYPE MIXMONITOR OPTIONS -----------------------------
compatibility.                                                             0              3
  monitor-type = MixMonitor
File /etc/asterisk/queues.conf not changed so no update needed
прошло 14 минут
14:43:53
#cat > /etc/asterisk/queues.conf
announce-frequency = 90                                                       |
min-announce-frequency = 15                                                   |
periodic-announce-frequency=60
announce-holdtime = once
announce-position = yes
announce-position-limit = 5
announce-round-seconds = 10
queue-youarenext = queue-youarenext
queue-thereare  = queue-thereare
queue-callswaiting = queue-callswaiting
queue-holdtime = queue-holdtime
queue-minute = queue-minute
queue-minutes = queue-minutes
queue-seconds = queue-seconds
queue-thankyou = queue-thankyou
queue-reporthold = queue-reporthold
periodic-announce = queue-periodic-announce
member => Agent/007
^C
14:44:00
#cat /etc/asterisk/queues.conf
announce-frequency = 90                                                       |
min-announce-frequency = 15                                                   |
periodic-announce-frequency=60
announce-holdtime = once
announce-position = yes
announce-position-limit = 5
announce-round-seconds = 10
queue-youarenext = queue-youarenext
queue-thereare  = queue-thereare
queue-callswaiting = queue-callswaiting
queue-holdtime = queue-holdtime
queue-minute = queue-minute
queue-minutes = queue-minutes
queue-seconds = queue-seconds
queue-thankyou = queue-thankyou
queue-reporthold = queue-reporthold
periodic-announce = queue-periodic-announce
member => Agent/007
прошло 17 минут
15:01:21
#cat /etc/asterisk/queues.conf
announce-frequency = 90                                                       |
min-announce-frequency = 15                                                   |
periodic-announce-frequency=60
announce-holdtime = once
announce-position = yes
announce-position-limit = 5
announce-round-seconds = 10
queue-youarenext = queue-youarenext
queue-thereare  = queue-thereare
queue-callswaiting = queue-callswaiting
queue-holdtime = queue-holdtime
queue-minute = queue-minute
queue-minutes = queue-minutes
queue-seconds = queue-seconds
queue-thankyou = queue-thankyou
queue-reporthold = queue-reporthold
periodic-announce = queue-periodic-announce
member => Agent/007
15:02:07
#joe /etc/asterisk/queues.conf
             = queue-minute
      minute          minute
      seconds = queue-seconds
      thankyou = queue-thankyou
queue-reporthold = queue-reporthold
periodic-announce = queue-periodic-announce
member => Agent/007
File /etc/asterisk/queues.conf not changed so no update needed
прошло 45 минут
15:47:57
#cat /etc/asterisk/agents.conf^C

Пятница (11/22/13)

/dev/pts/5
09:45:21
#joe /etc/asterisk/sip.conf
host=dynamic                                                          7
type=friend
secret=1234
host=dynamic
context=vip
language=ru
callgroup=1
pickupgroup=1
[montreal]
type=friend
...
type=friend
File /etc/asterisk/sip.conf saved
secret=1234
host=dynamic
context=vip
language=ru
callgroup=1
pickupgroup=1
[montreal]
type=friend
/dev/pts/3
09:47:09
#apt-cache search dahdi
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver
dahdi - utilities for using the DAHDI kernel modules
libtonezone-dev - tonezone library (development)
libtonezone2.0 - tonezone library (runtime)
libopenr2-3 - MFC/R2 (telephony) call setup library
libopenr2-bin - MFC/R2 (telephony) call setup library - test programs
libopenr2-dev - MFC/R2 (telephony) call setup library - development headers
yate-dahdi - Dahdi support for YATE
dahdi-modules-3.2.0-4-amd64 - DAHDI modules for Linux (kernel 3.2.0-4-amd64)
/dev/pts/5
09:47:49
#joe /etc/asterisk/extensions.conf
exten => 8105,n,Dial(SIP/montreal/3201)
exten => _90XX,1,Answer
[local]
exten => 3101,1,Dial(SIP/3101,5,tT)
exten => 3102,1,Dial(SIP/3102)
exten => 3103,1,Dial(SIP/3103)
;exten => _31xx,1,Dial(SIP/${EXTEN},2)
exten => 3104,1,Dial(SIP/montreal/3202&SIP/montreal/3201)
  ten => _90XX,n,Record(/var/tmp/asterisk/records/${EXTEN:2}:gsm)    43
               n,Playback(/var/tmp/asterisk/records/${EXTEN:2})
...
exten => 3,n,Dial(SIP/3103)
exten => 2,n,Hangupional
exten => 3,n,Hangup
exten => 2,n(invalid_order),Playback(/var/tmp/asterisk/records/09)
exten => 9,1,Goto(s,main)
exten => 3,1,Playback(/var/tmp/asterisk/records/10)
exten => 0,1,Playback(/var/tmp/asterisk/records/11)
File /etc/asterisk/extensions.conf not changed so no update needed
         1,1,Goto(submenu,s,1)
Not found
прошло 11 минут
/dev/pts/3
09:58:54
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX)
asterisk-config - Configuration files for Asterisk
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
asterisk-dbg - Debugging symbols for Asterisk
asterisk-dev - Development files for Asterisk
asterisk-doc - Source code documentation for Asterisk
asterisk-mobile - Bluetooth phone support for the Asterisk PBX
asterisk-modules - loadable modules for the Asterisk PBX
asterisk-mp3 - MP3 playback support for the Asterisk PBX
asterisk-mysql - MySQL database protocol support for the Asterisk PBX
...
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
python-asterisk - Asterisk Manager API interface module for Python
libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files
libsipwitch1 - secure peer-to-peer SIP VoIP server - development files
libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files
sipwitch - secure peer-to-peer VoIP server for the SIP protocol
sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface
python-starpy - Asterisk (AMI) protocols for Twisted Python
dahdi-modules-3.2.0-4-amd64 - DAHDI modules for Linux (kernel 3.2.0-4-amd64)
10:04:10
#joe /etc/asterisk/sip.conf
context=vip
type=friend
language=ru
secret=1234
callgroup=1
host=dynamic
pickupgroup=1
 ontext=vip
callgroup=1
[montreal]
...
type=friend
secret=1234
host=dynamic
context=vip
                                                                         7       20   1:29
callerid="Big Boss"
secret=1234
host=dynamic
File /etc/asterisk/sip.conf saved
File /etc/asterisk/sip.conf not changed so no update needed
прошло >2 часов
12:29:33
#cd /usr/src/

12:29:39
#ls -la
total 40344
drwxr-xr-x  5 root root     4096 Nov 22 13:23 .
drwxr-xr-x 10 root root     4096 Nov 18 15:20 ..
-rw-r--r--  1 root root 34767605 Nov 22 13:23 asterisk-11.6.0.tar.gz
-rw-r--r--  1 root root  5605980 Nov 19 16:24 dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb
-rw-r--r--  1 root root   843676 Jan 30  2013 dahdi.tar.bz2
lrwxrwxrwx  1 root root       27 Nov 19 16:23 linux -> linux-headers-3.2.0-4-amd64
drwxr-xr-x  4 root root     4096 Nov 19 16:22 linux-headers-3.2.0-4-amd64
drwxr-xr-x  4 root root     4096 Nov 19 16:22 linux-headers-3.2.0-4-common
lrwxrwxrwx  1 root root       23 Jun 24  2012 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2
drwxr-xr-x  3 root root     4096 Jan 30  2013 modules
-rw-r--r--  1 root root    69129 May  9  2012 vpb-driver.tar.bz2
12:29:40
#tar -xf asterisk-11.6.0.tar.gz

12:29:58
#ls -la
total 40348
drwxr-xr-x  6 root root     4096 Nov 22 13:29 .
drwxr-xr-x 10 root root     4096 Nov 18 15:20 ..
drwxr-xr-x 29 root root     4096 Oct 21 17:51 asterisk-11.6.0
-rw-r--r--  1 root root 34767605 Nov 22 13:23 asterisk-11.6.0.tar.gz
-rw-r--r--  1 root root  5605980 Nov 19 16:24 dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb
-rw-r--r--  1 root root   843676 Jan 30  2013 dahdi.tar.bz2
lrwxrwxrwx  1 root root       27 Nov 19 16:23 linux -> linux-headers-3.2.0-4-amd64
drwxr-xr-x  4 root root     4096 Nov 19 16:22 linux-headers-3.2.0-4-amd64
drwxr-xr-x  4 root root     4096 Nov 19 16:22 linux-headers-3.2.0-4-common
lrwxrwxrwx  1 root root       23 Jun 24  2012 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2
drwxr-xr-x  3 root root     4096 Jan 30  2013 modules
-rw-r--r--  1 root root    69129 May  9  2012 vpb-driver.tar.bz2
12:30:00
#cd asterisk-11.6.0

12:30:05
#ll
l3script: ll: command not found
12:30:06
#ls -la
total 3000
drwxr-xr-x 29 root root    4096 Oct 21 17:51 .
drwxr-xr-x  6 root root    4096 Nov 22 13:29 ..
drwxr-xr-x  3 root root    4096 Oct 21 17:51 addons
drwxr-xr-x  2 root root    4096 Oct 21 17:51 agi
drwxr-xr-x  3 root root    4096 Oct 21 17:51 apps
-rw-r--r--  1 root root   38935 Oct 21 17:51 asterisk-11.6.0-summary.html
-rw-r--r--  1 root root   34332 Oct 21 17:51 asterisk-11.6.0-summary.txt
drwxr-xr-x  2 root root    4096 Oct 21 17:51 autoconf
-rwxr-xr-x  1 root root    1041 Jan 13  2012 bootstrap.sh
...
drwxr-xr-x  2 root root    4096 Oct 21 17:51 tests
-rw-r--r--  1 root root    3871 Jul 16  2012 UPGRADE-10.txt
-rw-r--r--  1 root root    9318 Nov 21  2008 UPGRADE-1.2.txt
-rw-r--r--  1 root root   25890 Aug 18  2009 UPGRADE-1.4.txt
-rw-r--r--  1 root root   13965 May  7  2010 UPGRADE-1.6.txt
-rw-r--r--  1 root root   17779 Sep  6  2012 UPGRADE-1.8.txt
-rw-r--r--  1 root root   13874 Aug 24 00:57 UPGRADE.txt
drwxr-xr-x  3 root root    4096 Oct 21 17:51 utils
-rw-r--r--  1 root root       7 Oct 21 17:46 .version
-rw-r--r--  1 root root    1723 Aug 14  2008 Zaptel-to-DAHDI.txt
12:30:07
#./con
config.guess  configs/      config.sub    configure     contrib/
12:30:07
#./con
config.guess  configs/      config.sub    configure     contrib/
12:30:07
#./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
...
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking sys/io.h usability... yes
checking sys/io.h presence... yes
checking for sys/io.h... yes
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for initscr in -lcurses... no
checking for initscr in -lncurses... no
configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)
12:30:23
#apt-cache serache ncurses dev
E: Invalid operation serache
12:30:57
#apt-cache searche ncurses dev
E: Invalid operation searche
12:31:04
#apt-cache search ncurses dev
bochs-term - Terminal (ncurses-based) plugin for Bochs
btscanner - ncurses-based scanner for Bluetooth devices
libcunit1-ncurses-dev - Unit Testing Library for C (ncurses) -- development files
dav-text - A minimalist ncurses-based text editor
libghc-hscurses-dev - ncurses bindings for Haskell - development files for GHC
libghc-ncurses-dev - Haskell bindings to the GNU ncurses library
libkaya-ncurses-dev - Ncurses binding for kaya
libkaya-ncursesw-dev - Ncurses binding for kaya
libncursesada2-dev - Ada binding to the ncurses text interface library: development
moc - ncurses based console audio player
...
lib32tinfo-dev - developer's library for the low-level terminfo library (32-bit)
libncurses5-dev - developer's libraries for ncurses
libncursesw5-dev - developer's libraries for ncursesw
libtinfo-dev - developer's library for the low-level terminfo library
ncurses-doc - developer's guide and documentation for ncurses
whiptail - Displays user-friendly dialog boxes from shell scripts
libcurses-ocaml-dev - OCaml bindings for the ncurses library
petitboot - ncurses version of petitboot, a kexec based bootloader
powerman - Centralized Power Distribution Unit (PDU) management
siggen - Waveform generation tools
12:31:11
#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 0 not upgraded.
...
Get:1 http://192.168.15.254/debian/ wheezy/main libtinfo-dev amd64 5.9-10 [105 kB]
Get:2 http://192.168.15.254/debian/ wheezy/main libncurses5-dev amd64 5.9-10 [223 kB]
Fetched 328 kB in 0s (14.8 MB/s)
Selecting previously unselected package libtinfo-dev:amd64.
(Reading database ... 142336 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) ...
12:31:51
#./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
...
checking for initscr in -lcurses... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for initscr in -lncurses... yes
checking for curses.h... (cached) yes
checking for xml2-config... no
configure: *** XML documentation will not be available because the 'libxml2' development package is missing.
configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option
configure: *** or install the 'libxml2' development package.
12:31:58
#./configure --disablexml-doc
configure: error: unrecognized option: `--disablexml-doc'
Try `./configure --help' for more information
12:32:31
#./configure --disable-xmldoc
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
...
checking for rc_read_config in -lradiusclient-ng... no
checking for cpg_join in -lcpg... no
checking for corosync_cfg_state_track in -lcfg... no
checking for speex_encode in -lspeex... no
checking for speex_preprocess_ctl in -lspeex... no
checking for speex_preprocess_ctl in -lspeexdsp... no
checking for sqlite_exec in -lsqlite... no
checking for sqlite3_open in -lsqlite3... no
configure: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database.
configure: WARNING: *** Please install the SQLite3 development package.
12:32:55
#apt-get install 3xml-doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package 3xml-doc
12:33:10
#apt-cache search 3xml-doc

12:33:21
#apt-cache search 3xml

12:33:23
#apt-cache search xml
libacexml-6.0.3 - ACE SAX based XML parsing library
libacexml-dev - ACE SAX based XML parsing library - development files
adabrowse - HTML generator for Ada 95 library unit specifications
libadios-dev - ADIOS Adaptable IO system for simulations
aephea - text-based authoring tool for HTML
aft - "free form" document preparation system
amarok-utils - utilities for Amarok media player
ampache-themes - Themes for Ampache
libamrita2-ruby - a xml/xhtml template library for Ruby
ant - Java based build tool like make
...
yafaray - modern, xml-speaking raytracing-based rendering system
yafaray-exporter - modern, xml-speaking raytracing-based rendering system
yodl - Your Own Document Language (Yodl) is a pre-document language
yodl-doc - Documenation for Your Own Document Language (Yodl)
yum - Advanced front-end for rpm
python-sqlitecachec - A fast metadata parser for YUM
monodoc-zeitgeist-manual - compiled XML documentation for zeitgeist-sharp
libicexml34 - ZeroC Ice for C++ XML parser library
python-zope.configuration - Zope Configuration Markup Language (ZCML)
python-zope.publisher - Zope publisher publishes Python objects on the web
12:33:25
#./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
...
checking for initscr in -lcurses... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for initscr in -lncurses... yes
checking for curses.h... (cached) yes
checking for xml2-config... no
configure: *** XML documentation will not be available because the 'libxml2' development package is missing.
configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option
configure: *** or install the 'libxml2' development package.
12:33:37
#apt-get install libxml2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxml2 is already the newest version.
libxml2 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
12:33:49
#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 0 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.15.254/debian/ wheezy/main libsqlite3-dev amd64 3.7.13-1+deb7u1 [578 kB]
Fetched 578 kB in 0s (20.5 MB/s)
Selecting previously unselected package libsqlite3-dev.
(Reading database ... 142384 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) ...
12:34:07
#./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
...
checking for initscr in -lcurses... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for initscr in -lncurses... yes
checking for curses.h... (cached) yes
checking for xml2-config... no
configure: *** XML documentation will not be available because the 'libxml2' development package is missing.
configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option
configure: *** or install the 'libxml2' development package.
12:34:13
#apt-get install libxml2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libxml2-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 901 kB of archives.
After this operation, 2,863 kB of additional disk space will be used.
Get:1 http://192.168.15.254/debian/ wheezy/main libxml2-dev amd64 2.8.0+dfsg1-7+nmu1 [901 kB]
Fetched 901 kB in 3s (230 kB/s)
Selecting previously unselected package libxml2-dev:amd64.
(Reading database ... 142395 files and directories currently installed.)
Unpacking libxml2-dev:amd64 (from .../libxml2-dev_2.8.0+dfsg1-7+nmu1_amd64.deb) ...
Processing triggers for man-db ...
Setting up libxml2-dev:amd64 (2.8.0+dfsg1-7+nmu1) ...
12:34:28
#./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 :
12:35:11
#apt-cache search lib-ssl

12:36:14
#apt-cache search ssl
libadminutil-data - Utility library for 389ds administration -- data files
libadminutil-dev - Utility library for 389ds administration - development files
libadminutil0 - Utility library for 389ds administration
libace-inet-ssl-6.0.3 - ACE SSL-enabled Inet protocol library
libace-inet-ssl-dev - ACE SSL-enabled Inet protocol library - development files
libace-ssl-6.0.3 - ACE secure socket layer library
libace-ssl-dev - ACE secure socket layer library - development files
activemq - Java message broker - server
libactivemq-java - Java message broker core libraries
libactivemq-java-doc - Java message broker core libraries - documentation
...
yorick-z - zlib, jpeg and png support for the Yorick language
libicessl34 - Ice for C++ SSL plug-in
znc - advanced modular IRC bouncer
znc-dbg - advanced modular IRC bouncer (debugging symbols)
znc-dev - advanced modular IRC bouncer (development headers)
znc-extra - extra modules for znc
znc-perl - advanced modular IRC bouncer (Perl extension)
znc-python - advanced modular IRC bouncer (Python extension)
znc-tcl - advanced modular IRC bouncer (Tcl extension)
zorp-modules - Default proxy modules for Zorp
12:36:18
#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 0 not upgraded.
Need to get 3,120 kB of archives.
After this operation, 8,248 kB of additional disk space will be used.
...
(Reading database ... 142459 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_amd64.deb) ...
Selecting previously unselected package libssl-doc.
Unpacking libssl-doc (from .../libssl-doc_1.0.1e-2_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) ...
Setting up libssl-doc (1.0.1e-2) ...
12:36:45
#apt-get install srtp
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package srtp
12:36:56
#apt-cache search srtp
libsrtp0 - Secure RTP (SRTP) and UST Reference Implementations - shared library
libsrtp0-dev - Secure RTP (SRTP) and UST Reference Implementations - development files
srtp-docs - Secure RTP (SRTP) and UST Reference Implementations - documentation
srtp-utils - Secure RTP (SRTP) and UST Reference Implementations - utilities
uanytun - tiny implementation of the secure anycast tunneling protocol
12:37:03
#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 0 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.15.254/debian/ wheezy/main libsrtp0-dev amd64 1.4.4+20100615~dfsg-2 [117 kB]
Fetched 117 kB in 0s (9,570 kB/s)
Selecting previously unselected package libsrtp0-dev.
(Reading database ... 143897 files and directories currently installed.)
Unpacking libsrtp0-dev (from .../libsrtp0-dev_1.4.4+20100615~dfsg-2_amd64.deb) ...
Setting up libsrtp0-dev (1.4.4+20100615~dfsg-2) ...
12:37:18
#./configure --with-srtp --with-ssl
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 :
12:38:21
#make config
update-rc.d: using dependency based boot sequencing
12:39:54
#make menuconfig
                                                                                **************************************************
                                                                                                Press 'h' for help.
                                                                                                   --- core ---
                                                                                               [*] app_authenticate
                                                                                               [*] app_cdr
                                                                                               [*] app_celgenuserevent
                                                                                               [*] app_channelredirect
                                                                                               [*] app_chanspy
                                                                                               [*] app_confbridge
                                                                                               [*] app_controlplayback
...
                                                                                               [ ] res_pktccops
                                                                                               XXX res_snmp
                                                                                               XXX res_timing_kqueue
                                                                                               [*] res_timing_pthread
                                                                                                   --- deprecated ---
                                                                                               XXX res_jabber
                                                                                         Realtime Data Lookup/Rewrite
                                                                                         Depends on: srtp(E))
                                                                                         Can use: uuid(E)
                                                                                         Support Level: core
прошло 12 минут
12:51:57
#apt-cache search dahdi
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver
dahdi - utilities for using the DAHDI kernel modules
libtonezone-dev - tonezone library (development)
libtonezone2.0 - tonezone library (runtime)
libopenr2-3 - MFC/R2 (telephony) call setup library
libopenr2-bin - MFC/R2 (telephony) call setup library - test programs
libopenr2-dev - MFC/R2 (telephony) call setup library - development headers
yate-dahdi - Dahdi support for YATE
dahdi-modules-3.2.0-4-amd64 - DAHDI modules for Linux (kernel 3.2.0-4-amd64)
12:52:02
#apt-cache search libpri
libpri-dev - Primary Rate ISDN specification development files
libpri1.4 - Primary Rate ISDN specification library
libprinterconf-dev - Printer autodetection library
libprinterconf0c2a - Printer autodetection library
libprintsys - printcap parser, helper for gnulpr's printfilters
libprintsys-dev - printcap parser, helper for gnulpr's printfilters, dev files
libprivileges-drop-perl - module to make it simple to drop all privileges
libprima-perl - multi-platform GUI development toolkit for Perl
libprison-dbg - barcode API for Qt - debugging symbols
libprison-dev - barcode API for Qt - development files
libprison0 - barcode API for Qt
12:53:22
#./configure --help
`configure' configures asterisk trunk to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
...
  LIBEDIT_LIBS
              linker flags for LIBEDIT, overriding pkg-config
  GMIME_CFLAGS
              C compiler flags for GMIME, overriding pkg-config
  GMIME_LIBS  linker flags for GMIME, overriding pkg-config
  GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
  GTK2_LIBS   linker flags for GTK2, overriding pkg-config
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to <https://issues.asterisk.org>.
12:53:34
#./configure --help | grep dahdi
  --with-dahdi=PATH       use DAHDI files in PATH
12:54:14
#./configure --help | grep pri
  -q, --quiet, --silent   do not print `checking ...' messages
  --with-pri=PATH         use ISDN PRI files in PATH
12:54:18
#./configure --with-srtp --with-ssl --with-dahdi --with-pri
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 :
12:56:35
#./configure --with-srtp --with-ssl --with-dahdi --with-pri --with-tonezone
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
...
checking for LOG_LPR in syslog.h... yes
checking for LOG_MAIL in syslog.h... yes
checking for LOG_NEWS in syslog.h... yes
checking for LOG_SYSLOG in syslog.h... yes
checking for LOG_UUCP in syslog.h... yes
checking for mandatory modules:  DAHDI PRI SRTP OPENSSL TONEZONE... fail
configure: ***
configure: *** The TONEZONE installation appears to be missing or broken.
configure: *** Either correct the installation, or run configure
configure: *** including --without-tonezone.
12:57:37
#./configure --with-srtp --with-ssl --with-dahdi --with-pri --with-tonezone
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 :
прошло 12 минут
13:09:38
#make -j32
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-11.6.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-11.6.0/menuselect'
Building Documentation For: Generating embedded module rules ...
channels pbx apps codecs formats cdr cel bridges funcs tests main res    [CC] astcanary.c -> astcanary.o
   [CC] pbx_ael.c -> pbx_ael.o
   [CC] astdb2sqlite3.c -> astdb2sqlite3.o
   [CC] format_g719.c -> format_g719.o
   [CC] chan_agent.c -> chan_agent.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 audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o config.o config_options.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o format.o forma
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+
13:10:59
#cp -R /etc/asterisk /etc/asterisk.SAVE

прошло 33 минуты
13:44:40
#cd /etc/asterisk.SAVE

13:44:57
#ls -la
total 824
drwxr-xr-x   3 root root  4096 Nov 22 14:44 .
drwxr-xr-x 128 root root 12288 Nov 22 14:44 ..
-rw-r-----   1 root root   140 Nov 22 14:44 adsi.conf
-rw-r-----   1 root root  2791 Nov 22 14:44 agents.conf
-rw-r-----   1 root root  2760 Nov 22 14:44 agents.conf~
-rw-r-----   1 root root  2904 Nov 22 14:44 ais.conf
-rw-r-----   1 root root  2084 Nov 22 14:44 alarmreceiver.conf
-rw-r-----   1 root root  3498 Nov 22 14:44 alsa.conf
-rw-r-----   1 root root   767 Nov 22 14:44 amd.conf
...
-rw-r-----   1 root root   742 Nov 22 14:44 sip_notify.conf
-rw-r-----   1 root root  9185 Nov 22 14:44 skinny.conf
-rw-r-----   1 root root  6774 Nov 22 14:44 sla.conf
-rw-r-----   1 root root  2669 Nov 22 14:44 smdi.conf
-rw-r-----   1 root root  1384 Nov 22 14:44 telcordia-1.adsi
-rw-r-----   1 root root   656 Nov 22 14:44 udptl.conf
-rw-r-----   1 root root  5096 Nov 22 14:44 unistim.conf
-rw-r-----   1 root root  2423 Nov 22 14:44 users.conf
-rw-r-----   1 root root 21238 Nov 22 14:44 voicemail.conf
-rw-r-----   1 root root  5939 Nov 22 14:44 vpb.conf
13:45:00
#apt-get remove asteris
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package asteris
13:45:12
#apt-get remove asterisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm freetds-common libcurl3 libiksemel3
  libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3 libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2
  libsqlite0 libsybdb5 libvpb0 sox vpb-driver-source
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  asterisk asterisk-voicemail
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 4,700 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 143963 files and directories currently installed.)
Removing asterisk-voicemail ...
Removing asterisk ...
[ ok ] Stopping Asterisk PBX: asterisk.
Processing triggers for man-db ...
/dev/pts/1
13:45:23
#asterisk -rvvv
Asterisk 11.6.0, Copyright (C) 1999 - 2013 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 11.6.0 currently running on debian (pid = 21732)
[Nov 22 14:51:10] NOTICE[21732]: db.c:246 db_open: Database conversion succeeded!
  == Manager registered action DBGet
...
    -- Executing [3110@bank:1] MeetMe("SIP/3101-00000004", "101") in new stack
  == Parsing '/etc/asterisk/meetme.conf': Found
[Nov 22 15:21:27] WARNING[21868][C-00000003]: app_meetme.c:1296 build_conf: Unable to open DAHDI pseudo device
  == Spawn extension (bank, 3110, 1) exited non-zero on 'SIP/3101-00000004'
[Nov 22 15:21:30] NOTICE[21789]: chan_sip.c:15071 sip_reg_timeout:    -- Registration for 'ottawa@192.168.15.254' timed out, trying again (Attempt #92)
[Nov 22 15:21:50] NOTICE[21789]: chan_sip.c:15071 sip_reg_timeout:    -- Registration for 'ottawa@192.168.15.254' timed out, trying again (Attempt #93)
[Nov 22 15:22:10] NOTICE[21789]: chan_sip.c:15071 sip_reg_timeout:    -- Registration for 'ottawa@192.168.15.254' timed out, trying again (Attempt #94)
debian*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/3
13:45:27
#cd /usr/src/
asterisk-11.6.0/                                              linux-headers-3.2.0-4-amd64/
asterisk-11.6.0.tar.gz                                        linux-headers-3.2.0-4-common/
dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb  linux-kbuild-3.2/
dahdi.tar.bz2                                                 modules/
linux/                                                        vpb-driver.tar.bz2
13:45:27
#cd /usr/src/asterisk-11.6.0/

13:46:48
#ls -la
total 4036
drwxr-xr-x 29 root root    4096 Nov 22 14:10 .
drwxr-xr-x  6 root root    4096 Nov 22 13:29 ..
drwxr-xr-x  3 root root    4096 Nov 22 13:39 addons
drwxr-xr-x  2 root root    4096 Oct 21 17:51 agi
drwxr-xr-x  3 root root   20480 Nov 22 14:10 apps
-rw-r--r--  1 root root   38935 Oct 21 17:51 asterisk-11.6.0-summary.html
-rw-r--r--  1 root root   34332 Oct 21 17:51 asterisk-11.6.0-summary.txt
drwxr-xr-x  2 root root    4096 Oct 21 17:51 autoconf
-rwxr-xr-x  1 root root    1041 Jan 13  2012 bootstrap.sh
...
drwxr-xr-x  2 root root    4096 Nov 22 13:39 tests
-rw-r--r--  1 root root    3871 Jul 16  2012 UPGRADE-10.txt
-rw-r--r--  1 root root    9318 Nov 21  2008 UPGRADE-1.2.txt
-rw-r--r--  1 root root   25890 Aug 18  2009 UPGRADE-1.4.txt
-rw-r--r--  1 root root   13965 May  7  2010 UPGRADE-1.6.txt
-rw-r--r--  1 root root   17779 Sep  6  2012 UPGRADE-1.8.txt
-rw-r--r--  1 root root   13874 Aug 24 00:57 UPGRADE.txt
drwxr-xr-x  3 root root    4096 Nov 22 14:10 utils
-rw-r--r--  1 root root       7 Oct 21 17:46 .version
-rw-r--r--  1 root root    1723 Aug 14  2008 Zaptel-to-DAHDI.txt
13:47:32
#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 saved!
make[1]: Leaving directory `/usr/src/asterisk-11.6.0'

Файлы

  • /etc/asterisk/queues.conf
  • /etc/asterisk/queues.conf
    >
    announce-frequency = 90                                                       |
    min-announce-frequency = 15                                                   |
    periodic-announce-frequency=60
    announce-holdtime = once
    announce-position = yes
    announce-position-limit = 5
    announce-round-seconds = 10
    queue-youarenext = queue-youarenext
    queue-thereare  = queue-thereare
    queue-callswaiting = queue-callswaiting
    queue-holdtime = queue-holdtime
    queue-minute = queue-minute
    queue-minutes = queue-minutes
    queue-seconds = queue-seconds
    queue-thankyou = queue-thankyou
    queue-reporthold = queue-reporthold
    periodic-announce = queue-periodic-announce
    member => Agent/007
    

    Статистика

    Время первой команды журнала13:09:38 2013-11-20
    Время последней команды журнала13:47:32 2013-11-22
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %11.88
    Процент синтаксически неверно набранных команд, % 0.99
    Суммарное время работы с терминалом *, час 3.01
    Количество командных строк в единицу времени, команда/мин 0.56
    Частота использования команд
    joe23|=====================| 21.90%
    configure14|=============| 13.33%
    apt-cache13|============| 12.38%
    apt-get10|=========| 9.52%
    ls10|=========| 9.52%
    cd5|====| 4.76%
    asterisk4|===| 3.81%
    make4|===| 3.81%
    cat4|===| 3.81%
    /etc/init.d/asterisk3|==| 2.86%
    pwd2|=| 1.90%
    cp2|=| 1.90%
    con2|=| 1.90%
    grep2|=| 1.90%
    chown1|| 0.95%
    play1|| 0.95%
    for1|| 0.95%
    ll1|| 0.95%
    /etc/asterisk/queues.conf1|| 0.95%
    do1|| 0.95%
    tar1|| 0.95%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$