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

Содержание

Журнал

Среда (04/10/13)

/dev/pts/0
13:02:23
#screen
/dev/pts/1
13:02:23
#screen
/dev/pts/4
13:02:38
#cd /etc/asterisk/

13:02:53
#nano meetme.conf
13:03:17
#;
;
; Configuration file for MeetMe simple conference rooms for Asterisk of course.
;
; This configuration file is read every time you call app meetme()
                        ; when feeding audio frames from non-DAHDI channels
                        ; into the conference; larger numbers will allow
                        ; for the conference to 'de-jitter' audio that arrives
[general]               ; at different timing than the conference's timing
                        ; source, but can also allow for latency in hearing
;audiobuffers=32        ; the audio from the speaker. Minimum value is 2,
...
; in the conference and it goes away.  When it is created again, it will have
; the new pin number.
;
;conf => 1234
;conf => 2345,9938
                                                                                         44,1          Bot
conf =>
conf =>
conf =>
                                                                                         49,1          Bot
/dev/pts/6
13:04:29
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 5926)
linux5*CLI> meetme
kick    lock    mute    unlock  unmute  list
...
  == Using SIP RTP CoS mark 5
    -- Executing [1234@user_group3:1] Dial("SIP/2101-00000002", "SIP/minsk/1234") in new stack
  == Using SIP RTP CoS mark 5
    -- Called minsk/1234
    -- SIP/minsk-00000003 answered SIP/2101-00000002
    -- Packet2Packet bridging SIP/2101-00000002 and SIP/minsk-00000003
  == Spawn extension (user_group3, 1234, 1) exited non-zero on 'SIP/2101-00000002'
[Apr 10 14:07:50] NOTICE[5948]: chan_sip.c:18485 handle_response_peerpoke: Peer '2110' is now Lagged. (2062ms / 2000ms)
[Apr 10 14:08:14] NOTICE[5948]: chan_sip.c:18485 handle_response_peerpoke: Peer '2110' is now Reachable. (607ms / 2000ms)
linux5*CLI> exit
13:08:31
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 5926)
Verbosity is at least 3
linux5*CLI> module reload app_meetme.so
...
  == Using SIP RTP CoS mark 5
    -- Executing [2102@user_group3:1] Answer("SIP/2101-00000015", "") in new stack
    -- Executing [2102@user_group3:2] Dial("SIP/2101-00000015", "SIP/2102,10,wWtT") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2102
    -- SIP/2102-00000016 is ringing
    -- SIP/2102-00000016 answered SIP/2101-00000015
    -- Music class default requested but no musiconhold loaded.
  == Spawn extension (user_group3, 2102, 2) exited non-zero on 'SIP/2101-00000015'
linux5*CLI> exit
/dev/pts/4
13:09:17
#~
 same =>      n,Playback(demo-congrats)
exten => _81XX,1,Record(/var/tmp/message/${EXTEN:2}:gsm,1)
exten => _81XX,n,Playback(/var/tmp/message/${EXTEN:2})
exten => _82XX,1,Playback(/var/tmp/message/${EXTEN:2})
exten => _8300,1,Voicemailmain()
[local_monitor]f" 72L, 1588C
exten => _21XX,1,Answer
 same =>       n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
 same =>       n,Monitor(wav,${CALLFILENAME},m)
 same =>       n,Dial(SIP/${EXTEN})
...
[       ]
[xten => ]21XX,1,Answer
[        ]
 same =>       n,Dial(SIP/${EXTEN},10,wWtT)
 same =>       n,Voicemail(${EXTEN}@default)
[national]
exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
exten => _23XX,1,Dial(SIP/minsk/${EXTEN})
exten => _23XX,1,Dial(SIP/minsk/${EXTEN})
-- INSERT --                                                                             19,1          Top
прошло 24 минуты
/dev/pts/10
13:33:32
#apt-get install mpg123
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libmpg123-0
Suggested packages:
  libartsc0 libaudio2
...
Selecting previously deselected package libmpg123-0.
(Reading database ... 128690 files and directories currently installed.)
Unpacking libmpg123-0 (from .../libmpg123-0_1.12.1-3_i386.deb) ...
Selecting previously deselected package mpg123.
Unpacking mpg123 (from .../mpg123_1.12.1-3_i386.deb) ...
Processing triggers for man-db ...
Setting up libmpg123-0 (1.12.1-3) ...
Setting up mpg123 (1.12.1-3) ...
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode.
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode.
13:33:46
#cd /home/user/

13:34:00
#mpg123 -w moh_music.wav moh_music.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
Playing MPEG stream 1 of 1: moh_music.mp3 ...
Title:   Шалай-валяй (zaycev.net)
Artist:  Чайф
Comment: (zaycev.net)
MPEG 1.0 layer III, VBR, 44100 Hz stereo
[4:00] Decoding of moh_music.mp3 finished.
13:34:31
#sox -t wav moh_music.wav -r 8000 -c1 -t gsm moh_music.gsm resample -ql
sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative
sox WARN resample: resample clipped 57 samples; decrease volume?
13:35:38
#sox -t wav moh_music.wav -r 8000 -c1 -t gsm moh_music.gsm rate -ql
sox WARN rate: rate clipped 35 samples; decrease volume?
13:36:30
#cp moh_music.gsm /var/lib/asterisk/moh/

13:36:59
#cd /var/lib/asterisk/moh/

13:37:04
#ls -l
total 392
-rw-r--r-- 1 root root 396825 Apr 10 14:36 moh_music.gsm
13:37:06
#cd /etc/asterisk/

13:37:36
#vim musiconhold.conf
13:37:58
#; understand when it loads.
; /var/lib/asterisk.
; NOTE:
; If you are not using "autoload" in modules.conf, then you
; must ensure that the format modules for any formats you wish
; to use are loaded _before_ res_musiconhold. If you do not do
; this, res_musiconhold will skip the files it is not able to
; understand when it loads.
;
[default]
[       ]
directory=moh
;
;[native-random]
;mode=files
;directory=moh
;digit=#        ; If this option is set for a class, then when callers are
mode=files                                                                               52,1          33%
/dev/pts/6
13:39:35
#cd /etc/asterisk/

13:39:41
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
13:39:51
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 6717)
linux5*CLI> moh show
classes  files
...
in    it    jp    lt    mx    my    nl    no    nz    ph    pl    pt    ru    se    sg    th    tw
uk    us    us-o  ve    za    bg
linux5*CLI> module reload indications
[Apr 10 14:50:34] WARNING[6763]: config.c:1163 process_text_line: No '=' (equal sign) in line 736 of /etc/asterisk/indications.conf
[Apr 10 14:50:39] NOTICE[6739]: chan_sip.c:18485 handle_response_peerpoke: Peer '2110' is now Reachable. (693ms / 2000ms)
linux5*CLI> module reload indications
linux5*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 14:51:42] NOTICE[6739]: chan_sip.c:18485 handle_response_peerpoke: Peer '2110' is now Lagged. (2841ms / 2000ms)
linux5*CLI> exit
/dev/pts/10
13:46:03
#vim indications.conf
--- /tmp/l3-saved-6477.1086.3675	2013-04-10 14:48:57.000000000 +0300
+++ indications.conf	2013-04-10 14:49:30.000000000 +0300
@@ -729,3 +729,9 @@
 record = 1400/500,0/10000
 info = 950/330,1400/330,1800/330,0/330
 stutter = !400*33/100,!0/100,!400*33/100,!0/100,!400*33/100,!0/100,!400*33/100,!0/100,!400*33/100,!0/100,!400*33/100,!0/100,400*33
+
+[starwars](us)
+description = Star Wars Theme Song
+ring = 262/400,392/500,0/100,349/400,330/400,294/400,524/400,392/500,0/100,349/400, \
+       330/400,294/400,524/400,392/500,0/100,349/400,330/400,349/400,294/500,0/2000
+
13:49:32
#description = Star Wars Theme Song
exten => _8300,1,Voicemailmain()
exten => _8301,1,Meetme(1234)
exten => _8302,1,Meetme(1234,m)
exten => _8303,1,Meetme(1234,t)
exten => _8304,1,Meetme(1234,as)
exten => _8305,1,Meetme(1234,s)
exten => _8306,1,Meetme(1234,sq)
exten => _8309,1,Meetme(9999)
[local_monitor]
exten => _21XX,1,Answer
...
exten => _2121,1,Answer
 same =>       n,Dial(SIP/2101&SIP/2102)                                                 2,0-1         Top
[             ]
[             ]
[local]
[     ]
exten => _21XX,1,Answer
 same =>       n,Dial(SIP/${EXTEN},10,wWtT)
 same =>       n,Voicemail(${EXTEN}@default)
                                                                                         39,1           6%
/dev/pts/6
13:51:46
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
13:51:48
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 6894)
linux5*CLI> module reload indications
linux5*CLI> module reload indications
...
linux5*CLI> module reload indications
linux5*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 14:54:58] NOTICE[6916]: chan_sip.c:18485 handle_response_peerpoke: Peer '2110' is now Reachable. (201ms / 2000ms)
[Apr 10 14:56:02] NOTICE[6916]: chan_sip.c:23124 sip_poke_noanswer: Peer '2110' is now UNREACHABLE!  Last qualify: 0
[Apr 10 14:56:43] NOTICE[6916]: chan_sip.c:18485 handle_response_peerpoke: Peer '2110' is now Reachable. (174ms / 2000ms)
linux5*CLI> module reload indications
linux5*CLI> core set verbose 3
Verbosity was 0 and is now 3
linux5*CLI> quit
/dev/pts/10
14:00:30
#vim extensions.conf
--- /tmp/l3-saved-6477.29109.9241	2013-04-10 15:00:32.000000000 +0300
+++ extensions.conf	2013-04-10 15:01:43.000000000 +0300
@@ -35,6 +35,7 @@
  same =>       n,Dial(SIP/2101&SIP/2102) 
 
 exten => _21XX,1,Answer
+ same =>       n,Set(CHANNEL(tonezone)=starwars)
  same =>       n,Dial(SIP/${EXTEN},10,wWtT) 
  same =>       n,Voicemail(${EXTEN}@default)
 
14:01:43
#vim indications.conf
14:01:59
#vim queues.conf
--- /tmp/l3-saved-6477.22967.12696	2013-04-10 15:02:12.000000000 +0300
+++ queues.conf	2013-04-10 15:04:18.000000000 +0300
@@ -498,3 +498,7 @@
 ;member => Agent/:1,1		; Any agent in group 1, wait for first
                                 ; available, but consider with penalty
 
+[queue_main]
+; General queue section
+member => SIP/2101
+member => SIP/2102
14:04:18
#vim extensions.conf
--- /tmp/l3-saved-6477.6749.23014	2013-04-10 15:04:19.000000000 +0300
+++ extensions.conf	2013-04-10 15:05:56.000000000 +0300
@@ -24,6 +24,8 @@
 exten => _8306,1,Meetme(1234,sq)
 exten => _8309,1,Meetme(9999)
 
+exten => 2105,1,Queue(queue_main)
+
 [local_monitor]
 exten => _21XX,1,Answer
  same =>       n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
прошло 11 минут
14:16:04
#vim sip.conf
--- /tmp/l3-saved-6477.1094.19528	2013-04-10 15:40:59.000000000 +0300
+++ sip.conf	2013-04-10 15:42:02.000000000 +0300
@@ -48,6 +48,8 @@
 callgroup=2
 pickupgroup=2
 
+qualify=no
+
 [2111]
 context=user_group3
 type=friend
прошло 25 минут
14:42:02
#vim queues.conf
--- /tmp/l3-saved-6477.16888.9089	2013-04-10 15:42:57.000000000 +0300
+++ queues.conf	2013-04-10 15:52:13.000000000 +0300
@@ -500,5 +500,10 @@
 
 [queue_main]
 ; General queue section
-member => SIP/2101
-member => SIP/2102
+;member => SIP/2101
+;member => SIP/2102
+
+member => Agent/1001
+member => Agent/1002
+
+strategy = linear
прошло 10 минут
14:52:13
#vim agents.conf
--- /tmp/l3-saved-6477.9026.25557	2013-04-10 15:52:16.000000000 +0300
+++ agents.conf	2013-04-10 15:54:25.000000000 +0300
@@ -109,5 +109,5 @@
 ;
 ; agent => agentid,agentpassword,name
 ;
-;agent => 1001,4321,Mark Spencer
-;agent => 1002,4321,Will Meadows
+agent => 1001,4321,Mark Spencer
+agent => 1002,4321,Will Meadows
14:54:25
#vim extensions.conf
--- /tmp/l3-saved-6477.25577.22285	2013-04-10 15:54:31.000000000 +0300
+++ extensions.conf	2013-04-10 15:58:32.000000000 +0300
@@ -26,6 +26,8 @@
 
 exten => 2105,1,Queue(queue_main)
 
+exten => _213X,1,AgentLogin(100${EXTEN:3})
+
 [local_monitor]
 exten => _21XX,1,Answer
  same =>       n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
прошло 10 минут
15:04:38
#{EXTEN})
;    the concept of "joining/mixing" the in/out files now goes away
;    when this is enabled. You can set the default type for all queues
;    here, and then also change monitor-type for individual queues within
;    queue by using the same configuration parameter within a queue
;    configuration block. If you do not specify or comment out this option,
;    it will default to the old 'Monitor' behavior to keep backward
;    compatibility.
;
monitor-type = MixMonitor
;
...
~
~
~
~
~
~
~
~
~
"queues.conf" 509L, 22592C written
15:04:56
#vim agents.conf
15:05:07
#[ ]
exten => _8300,1,Voicemailmain()
[       ]
[       ]
exten => _8301,1,Meetme(1234)
exten => _8302,1,Meetme(1234,m)
exten => _8303,1,Meetme(1234,t)
exten => _8304,1,Meetme(1234,as)
exten => _8305,1,Meetme(1234,s)
exten => _8306,1,Meetme(1234,sq)
exten => _8309,1,Meetme(9999)
exten => 2105,1,Queue(queue_main)
exten => _213X,1,AgentLogin(100${EXTEN:3})
[local_monitor]
exten => _21XX,1,Answer
 same =>       n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
 same =>       n,Monitor(wav,${CALLFILENAME},m)
 same =>       n,Dial(SIP/${EXTEN})                                                      4,0-1         Top
15:14:13
#vim queues.conf
прошло 18 минут
/dev/pts/6
15:32:47
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
прошло 12 минут
/dev/pts/4
15:45:40
#less /etc/asterisk/queues.conf
15:45:46
#!
bash: syntax error near unexpected token `newline'
/dev/pts/10
15:46:02
# same => n,Playback(agent-loginok)
; Note that a timeout to fail out of a queue may be passed as part of
; an application call from extensions.conf:
; Queue(queuename,[options],[optionalurl],[announceoverride],[timeout])
; example: Queue(dave,t,,,45)
; shared_lastcall will make the lastcall and calls received be the same in
; members logged in more than one queue.
; This is useful to make the queue respect the wrapuptime of another queue
; for a shared member
;
shared_lastcall=no
...
queue-callswaiting = queue-callswaiting
queue-holdtime = queue-holdtime
queue-minutes = queue-minutes
queue-seconds = queue-seconds
queue-thankyou = queue-thankyou
queue-reporthold = queue-reporthold
periodic-announce = queue-periodic-announce,your-call-is-important,please-wait
[queue_1002]
strategy = linear
[queue_1003]
15:48:44
#strategy = linear
exten => _1000X,1,Queue(queue_100${EXTEN:4})
[local_monitor]
[             ]
 same =>       n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
 same =>       n,Monitor(wav,${CALLFILENAME},m)
 same =>       n,Dial(SIP/${EXTEN})
[local]
[local]
[     ]
 same =>       n,Dial(SIP/2101&SIP/2102)
exten => _21XX,1,Answer
 same =>       n,Set(CHANNEL(tonezone)=starwars)
 same =>       n,Dial(SIP/${EXTEN},10,wWtT)
 same =>       n,Voicemail(${EXTEN}@default)
exten => _2121,1,Answer                                                                  57,1          33%
 same =>       n,Queue(queue_100${EXTEN:4})
[national]
[        ]
exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
-- INSERT --XX,1,Dial(SIP/minsk/${EXTEN})                                                53,1          38%
прошло 28 минут
16:17:20
#vim agents.conf
16:17:32
#;
[xten =>]_8301,1,Meetme(1234)
[       ]
[xten => ]8302,1,Meetme(1234,m)
[        ]
exten => _8303,1,Meetme(1234,t)
exten => _8304,1,Meetme(1234,as)
exten => _8305,1,Meetme(1234,s)
exten => _8306,1,Meetme(1234,sq)
exten => _8309,1,Meetme(9999)
exten => 2105,1,Queue(queue_main)
exten => _213X,1,AgentLogin(100${EXTEN:3})
exten => _900X,1,AddQueueMember(queue_100${EXTEN:3},SIP/${CALLERID(num)})
 same =>       n,Playback(agent-loginok)
exten => _901X,1,RemoveQueueMember(queue_100${EXTEN:3},SIP/${CALLERID(num)})
 same =>       n,Playback(agent-loggedoff)
"extensions.conf" 98L, 2563C written
16:18:19
#vim queues.conf
--- /tmp/l3-saved-6477.7448.14211	2013-04-10 17:18:21.000000000 +0300
+++ queues.conf	2013-04-10 17:18:44.000000000 +0300
@@ -508,6 +508,25 @@
 
 strategy = linear
 
+announce-frequency = 90
+min-announce-frequency = 15
+periodic-announce-frequency=30
+random-periodic-announce=no
+announce-holdtime = once ; yes| none
+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-minutes = queue-minutes
+queue-seconds = queue-seconds
+queue-thankyou = queue-thankyou
+queue-reporthold = queue-reporthold
+periodic-announce = queue-periodic-announce,your-call-is-important,please-wait
+
 [queue_1001]
 strategy = linear
 
/dev/pts/4
16:19:30
#less /etc/asterisk/sip.conf
/dev/pts/10
16:19:50
#strategy = linear
;ackcall=no
;acceptdtmf=#
;
; Define endcall to allow an agent to hangup a call with a
; DTMF keypress. Default is "yes". Use the enddtmf option to
; configure which DTMF key will end a call. The default is
; '*'.
;
;endcall=yes
;enddtmf=*
...
; automatically logged off (in seconds)
;
;autologoff=15
;
; Define autologoffunavail to have agents automatically logged
; out when the extension that they are at returns a CHANUNAVAIL
; status when a call is attempted to be sent there.
; Default is "no".
;
                                                                                         4,0-1         Top
16:22:57
#[ ]
;    becomes the head caller, and they are then connected with the
;    next available member and all available members and waiting callers
;    waits while this happens. The new behavior, enabled by setting
;    autofill=yes makes sure that when the waiting callers are connecting
;    with available members in a parallel fashion until there are
;    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 no
;    to keep backward compatibility with the old behavior.
...
periodic-announce-frequency=30
random-periodic-announce=no
announce-holdtime = once ; yes| none
announce-position = yes
announce-position-limit = 5
announce-round-seconds = 10
queue-youarenext = queue-youarenext
announce-position-limit = 5
announce-round-seconds = 10
strategy = linear                                                                        525,1         94%

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

/dev/pts/4
08:40:11
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 1425)
linux5*CLI> queue show
queue_1001  queue_1002  queue_1003  queue_main
...
queue_1001  queue_1002  queue_1003  queue_main
linux5*CLI> queue remove member SIP/2102 from queue_1001
Removed interface 'SIP/2102' from queue 'queue_1001'
linux5*CLI> queue show queue_1001
queue_1001 has 0 calls (max unlimited) in 'linear' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
   No Members
   No Callers
linux5*CLI> dialplan reload
Dialplan reloaded.
linux5*CLI> exit
/dev/pts/0
08:40:11
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 1425)
linux5*CLI> queue show
queue_1001  queue_1002  queue_1003  queue_main
...
queue_1001  queue_1002  queue_1003  queue_main
linux5*CLI> queue remove member SIP/2102 from queue_1001
Removed interface 'SIP/2102' from queue 'queue_1001'
linux5*CLI> queue show queue_1001
queue_1001 has 0 calls (max unlimited) in 'linear' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
   No Members
   No Callers
linux5*CLI> dialplan reload
Dialplan reloaded.
linux5*CLI> exit
/dev/pts/6
08:40:48
#cd /etc/asterisk/

/dev/pts/1
08:40:48
#cd /etc/asterisk/

/dev/pts/6
08:40:52
#cd /

/dev/pts/1
08:40:52
#cd /

/dev/pts/6
08:41:11
#screen
/dev/pts/1
08:41:11
#screen
/dev/pts/8
08:41:14
#cd /etc/asterisk/

08:41:19
#vim extensions.conf
--- /dev/null	2013-04-11 09:25:54.932786819 +0300
+++ extensions.conf	2013-04-11 10:03:20.000000000 +0300
@@ -0,0 +1,99 @@
+; extension.conf
+
+[default]
+
+[internal]
+exten => 8000,1,Answer
+ same =>      n,Wait(2)
+ same =>      n,Playback(welcome)
+ same =>      n,Playback(demo-congrats)
+
+exten => _81XX,1,Record(/var/tmp/message/${EXTEN:2}:gsm,1)
+exten => _81XX,n,Playback(/var/tmp/message/${EXTEN:2})
+
+exten => _82XX,1,Playback(/var/tmp/message/${EXTEN:2})
+
+
+exten => _9999,1,Voicemailmain()
+
+exten => _8301,1,Meetme(1234)
+exten => _8302,1,Meetme(1234,m)
+exten => _8303,1,Meetme(1234,t)
+exten => _8304,1,Meetme(1234,as)
+exten => _8305,1,Meetme(1234,s)
+exten => _8306,1,Meetme(1234,sq)
+exten => _8309,1,Meetme(9999)
+
+exten => _2105,1,Answer
+ same =>       n,Queue(queue_main)
+
+exten => _213X,1,AgentLogin(100${EXTEN:3})
+
+exten => _900X,1,AddQueueMember(queue_100${EXTEN:3},SIP/${CALLERID(num)})
+ same =>       n,Playback(agent-loginok)
+exten => _901X,1,RemoveQueueMember(queue_100${EXTEN:3},SIP/${CALLERID(num)})
+ same =>       n,Playback(agent-loggedoff)
+
+;exten => _910X,1,AddQueueMember(queue_100${EXTEN:3},SIP/${CALLERID(num)})
+exten => _910X,1,RemoveQueueMember(queue_100${EXTEN:3},SIP/${DB(queue_record/${EXTEN:3})})
+exten => _910X,n,AddQueueMember(queue_100${EXTEN:3},SIP/${CALLERID(num)})
+exten => _910X,n,Set(DB(queue_record/${EXTEN:3})=${CALLERID(num)})
+ same =>       n,Playback(agent-loginok)
+
+exten => _1000X,1,Queue(queue_100${EXTEN:4})
+
+[local_monitor]
+exten => _21XX,1,Answer
+ same =>       n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
+ same =>       n,Monitor(wav,${CALLFILENAME},m)
+ same =>       n,Dial(SIP/${EXTEN})
+
+[local]
+exten => _2121,1,Answer
+ same =>       n,Queue(queue_1001)
+
+exten => _21XX,1,Answer
+ same =>       n,Set(CHANNEL(tonezone)=starwars)
+ same =>       n,Dial(SIP/${EXTEN},10,wWtT) 
+ same =>       n,Voicemail(${EXTEN}@default)
+
+[national]
+exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
+exten => _23XX,1,Dial(SIP/minsk/${EXTEN})
+
+[international]
+exten => _11XX,1,Dial(SIP/minsk/${EXTEN})
+exten => _12XX,1,Dial(SIP/minsk/${EXTEN})
+exten => _13XX,1,Dial(SIP/minsk/${EXTEN})
+exten => _14XX,1,Dial(SIP/minsk/${EXTEN})
+
+[ukraine]
+exten => _380XXXXXXXXX,1,Answer
+ same =>               n,Dial(SIP/external_sip/${EXTEN},30) 
+
+[user_group1]
+include => internal 
+include => local
+;include => national
+;include => international
+
+[user_group2]
+include => internal 
+include => local
+include => national
+;include => international
+include => ukraine
+
+[user_group3]
+include => internal 
+include => local
+include => national
+include => international
+include => ukraine
+
+[incoming]
+include => internal 
+include => local
+include => ukraine
+;include => national
+;include => international
/dev/pts/10
08:41:21
#cd /etc/asterisk/

прошло 29 минут
/dev/pts/12
09:11:20
#lspci | grep dahdi

/dev/pts/3
09:11:20
#lspci | grep dahdi

/dev/pts/12
09:11:28
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
...
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03)
21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11)
/dev/pts/3
09:11:28
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
...
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03)
21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11)
/dev/pts/12
09:11:31
#dmesg
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.0-0.bpo.4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Debian 3.2.41-2~bpo60+1
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[    0.000000]  BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 00000000defafe00 (usable)
[    0.000000]  BIOS-e820: 00000000defafe00 - 00000000defb1ea0 (ACPI NVS)
[    0.000000]  BIOS-e820: 00000000defb1ea0 - 00000000e0000000 (reserved)
...
[   18.861591] Bluetooth: L2CAP socket layer initialized
[   18.861698] Bluetooth: SCO socket layer initialized
[   18.904318] Bluetooth: RFCOMM TTY layer initialized
[   18.904322] Bluetooth: RFCOMM socket layer initialized
[   18.904324] Bluetooth: RFCOMM ver 1.11
[   18.905049] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   18.905052] Bluetooth: BNEP filters: protocol multicast
[   19.168196] Bridge firewalling registered
[   27.552017] eth0: no IPv6 routers present
[   27.593740] sshd (1781): /proc/1781/oom_adj is deprecated, please use /proc/1781/oom_score_adj instead.
/dev/pts/3
09:11:31
#dmesg
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.0-0.bpo.4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Debian 3.2.41-2~bpo60+1
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[    0.000000]  BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 00000000defafe00 (usable)
[    0.000000]  BIOS-e820: 00000000defafe00 - 00000000defb1ea0 (ACPI NVS)
[    0.000000]  BIOS-e820: 00000000defb1ea0 - 00000000e0000000 (reserved)
...
[   18.861591] Bluetooth: L2CAP socket layer initialized
[   18.861698] Bluetooth: SCO socket layer initialized
[   18.904318] Bluetooth: RFCOMM TTY layer initialized
[   18.904322] Bluetooth: RFCOMM socket layer initialized
[   18.904324] Bluetooth: RFCOMM ver 1.11
[   18.905049] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   18.905052] Bluetooth: BNEP filters: protocol multicast
[   19.168196] Bridge firewalling registered
[   27.552017] eth0: no IPv6 routers present
[   27.593740] sshd (1781): /proc/1781/oom_adj is deprecated, please use /proc/1781/oom_score_adj instead.
/dev/pts/12
09:12:22
#vim /etc/dahdi/xpp.conf
09:12:22
#vim /etc/dahdi/xpp.conf
09:12:22
#vim /etc/dahdi/xpp.conf
09:12:22
#dahdi_scan -vvv
[1]
active=yes
alarms=UNCONFIGURED
description=Wildcard TE121 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE121
location=PCI Bus 33 Slot 09
basechan=1
totchans=31
irq=0
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=
framing=
/dev/pts/3
09:12:22
#vim /etc/dahdi/xpp.conf
09:12:22
#vim /etc/dahdi/xpp.conf
09:12:22
#vim /etc/dahdi/xpp.conf
09:12:22
#dahdi_scan -vvv
[1]
active=yes
alarms=UNCONFIGURED
description=Wildcard TE121 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE121
location=PCI Bus 33 Slot 09
basechan=1
totchans=31
irq=0
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=
framing=
/dev/pts/12
09:12:56
#apt-get install festival
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat
Suggested packages:
  pidgin-festival festival-freebsoft-utils
...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up alsa-oss (1.0.17-4) ...
Setting up libestools2.0 (1:2.0.95~beta-2) ...
Setting up oss-compat (0.0.4+nmu3) ...
FATAL: Module snd_seq_oss not found.
Setting up festival (1:2.0.95~beta-5.1) ...
Setting up festlex-cmu (1.4.0-6) ...
Setting up festlex-poslex (1.4.0-5) ...
Setting up festvox-kallpc16k (1.4.0-5) ...
/dev/pts/3
09:12:56
#apt-get install festival
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat
Suggested packages:
  pidgin-festival festival-freebsoft-utils
...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up alsa-oss (1.0.17-4) ...
Setting up libestools2.0 (1:2.0.95~beta-2) ...
Setting up oss-compat (0.0.4+nmu3) ...
FATAL: Module snd_seq_oss not found.
Setting up festival (1:2.0.95~beta-5.1) ...
Setting up festlex-cmu (1.4.0-6) ...
Setting up festlex-poslex (1.4.0-5) ...
Setting up festvox-kallpc16k (1.4.0-5) ...
/dev/pts/12
09:13:47
#apt-cache search festival ru voice
festvox-italp16k - Italian female speaker for Festival
festvox-itapc16k - Italian male speaker for Festival
flite1-dev - A small run-time speech synthesis engine - static libraries
flite - A small run-time speech synthesis engine
libflite1 - a small run-time speech synthesis engine - shared libraries
/dev/pts/3
09:13:47
#apt-cache search festival ru voice
festvox-italp16k - Italian female speaker for Festival
festvox-itapc16k - Italian male speaker for Festival
flite1-dev - A small run-time speech synthesis engine - static libraries
flite - A small run-time speech synthesis engine
libflite1 - a small run-time speech synthesis engine - shared libraries
/dev/pts/12
09:15:03
#apt-cache search fest ru voice
festvox-italp16k - Italian female speaker for Festival
festvox-itapc16k - Italian male speaker for Festival
flite1-dev - A small run-time speech synthesis engine - static libraries
flite - A small run-time speech synthesis engine
libflite1 - a small run-time speech synthesis engine - shared libraries
/dev/pts/3
09:15:03
#apt-cache search fest ru voice
festvox-italp16k - Italian female speaker for Festival
festvox-itapc16k - Italian male speaker for Festival
flite1-dev - A small run-time speech synthesis engine - static libraries
flite - A small run-time speech synthesis engine
libflite1 - a small run-time speech synthesis engine - shared libraries
/dev/pts/12
09:15:14
#apt-cache search fest ru
festvox-italp16k - Italian female speaker for Festival
festvox-itapc16k - Italian male speaker for Festival
festvox-ru - Russian male speaker for Festival
flite1-dev - A small run-time speech synthesis engine - static libraries
flite - A small run-time speech synthesis engine
libflite1 - a small run-time speech synthesis engine - shared libraries
libjpf-java - Java Plugin Framework: plug-in infrastructure library for Java projects
libtest-manifest-perl - Perl module for interacting with a test manifest file
makepatch - generate/apply patch files with more functionality than plain diff
sisu - documents - structuring, publishing in multiple formats and search
speech-dispatcher-festival - Festival support for Speech Dispatcher
yasr - General-purpose console screen reader
java-propose-classpath - Helper script to suggest a classpath for jar files
/dev/pts/3
09:15:14
#apt-cache search fest ru
festvox-italp16k - Italian female speaker for Festival
festvox-itapc16k - Italian male speaker for Festival
festvox-ru - Russian male speaker for Festival
flite1-dev - A small run-time speech synthesis engine - static libraries
flite - A small run-time speech synthesis engine
libflite1 - a small run-time speech synthesis engine - shared libraries
libjpf-java - Java Plugin Framework: plug-in infrastructure library for Java projects
libtest-manifest-perl - Perl module for interacting with a test manifest file
makepatch - generate/apply patch files with more functionality than plain diff
sisu - documents - structuring, publishing in multiple formats and search
speech-dispatcher-festival - Festival support for Speech Dispatcher
yasr - General-purpose console screen reader
java-propose-classpath - Helper script to suggest a classpath for jar files
/dev/pts/12
09:15:48
#vim /tmp/text1.txt
--- /dev/null	2013-04-11 09:25:54.932786819 +0300
+++ /tmp/text1.txt	2013-04-11 10:16:51.000000000 +0300
@@ -0,0 +1 @@
+Проверка русского голоса
/dev/pts/3
09:15:48
#vim /tmp/text1.txt
/dev/pts/12
09:16:51
#cat /tmp/text1.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > text1.wav

/dev/pts/3
09:16:51