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

Содержание

Журнал

Пятница (07/01/11)

/dev/pts/4
13:20:39
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze2, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 6350)
...
    -- Accepting call from '2201' to '1205' on channel 0/1, span 1
    -- Executing [1205@from-pstn:1] Queue("DAHDI/1-1", "queue1") in new stack
    -- Started music on hold, class 'default', on DAHDI/1-1
       > Saved useragent "Asterisk PBX 1.6.2.9-2+squeeze2" for peer ny
    -- Channel 0/1, span 1 got hangup request, cause 16
    -- Stopped music on hold on DAHDI/1-1
  == Spawn extension (from-pstn, 1205, 1) exited non-zero on 'DAHDI/1-1'
    -- Hungup 'DAHDI/1-1'
linux2*CLI> quit
Executing last minute cleanups
13:22:27
#member => Agent/2
[default]
mode=files
directory=/var/lib/asterisk/moh
[nomusic]
;
;[native-random]
;mode=files
;directory=moh
;digit=#        ; If this option is set for a class, then when callers are
;               ; they will switch to listening to this music class.
[       ]
[sort=ra]dom    ; Sort the files in random order
[       ]
mode=files
directory=/dev/null
[[native]alphabetical]
;mode=files
;directory=moh
;sort=alpha     ; Sort the files in alphabetical order.  If this option is
;               ; not specified, the sort order is undefined.
"/etc/asterisk/musiconhold.conf" 89L, 2784C записано
13:22:50
#vim /etc/asterisk/queues.conf
/dev/pts/0
13:25:38
#vim extensions.conf
/dev/pts/2
13:25:38
#vim extensions.conf
--- /tmp/l3-saved-2529.25364.31476	2011-07-01 15:26:42.000000000 +0400
+++ extensions.conf	2011-07-01 15:27:26.000000000 +0400
@@ -104,7 +104,7 @@
 ;exten => 120[12],1,Dial(SIP/1201$SIP/1202,10)
 
 ;Moi call center
-exten => 1205,1,Queue(queue1,r) 
+exten => 1205,1,Queue(queue1,r) ; r- gudok pri ozhidanii v ocheredi 
 
 ;tests
 exten => 1297,1,MeetMe(1,m) ;m - monitor - only listen
/dev/pts/0
13:27:26
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 6577)
...
    -- Stopped music on hold on SIP/1202-00000002
    -- agent_call, call to agent '1' call on 'SIP/1202-00000002'
    -- <SIP/1202-00000002> Playing 'beep.gsm' (language 'ru')
    -- Agent/1 answered SIP/ast-00000005
  == Spawn extension (gr4, 1205, 1) exited non-zero on 'SIP/ast-00000005'
  == Agent '1' logged out
  == Spawn extension (gr3, 8601, 1) exited non-zero on 'SIP/1202-00000002'
linux2*CLI>
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/2
13:27:26
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 6577)
...
    -- Stopped music on hold on SIP/1202-00000002
    -- agent_call, call to agent '1' call on 'SIP/1202-00000002'
    -- <SIP/1202-00000002> Playing 'beep.gsm' (language 'ru')
    -- Agent/1 answered SIP/ast-00000005
  == Spawn extension (gr4, 1205, 1) exited non-zero on 'SIP/ast-00000005'
  == Agent '1' logged out
  == Spawn extension (gr3, 8601, 1) exited non-zero on 'SIP/1202-00000002'
linux2*CLI>
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/4
13:29:25
## http://en.wikipedia.org/wiki/7_World_Trade_Center

13:32:49
#asterisk -rx 'queue show queue1'
queue1 has 0 calls (max unlimited) in 'ringall' strategy (2s holdtime, 4s talktime), W:0, C:2, A:0, SL:0.0% within 0s
   Members:
      Agent/2 (Unavailable) has taken no calls yet
      Agent/1 (Unavailable) has taken 2 calls (last was 385 secs ago)
   No Callers
/dev/pts/0
13:35:23
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 6577)
Verbosity is at least 4
linux2*CLI> queue show queue1
queue1 has 0 calls (max unlimited) in 'ringall' strategy (4s holdtime, 9s talktime), W:0, C:6, A:0, SL:33.3% within 0s
   Members:
      Agent/2 (Unavailable) has taken no calls yet
      Agent/1 (Unavailable) has taken 6 calls (last was 42 secs ago)
   No Callers
    -- Remote UNIX connection disconnected
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/2
13:35:23
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 6577)
Verbosity is at least 4
linux2*CLI> queue show queue1
queue1 has 0 calls (max unlimited) in 'ringall' strategy (4s holdtime, 9s talktime), W:0, C:6, A:0, SL:33.3% within 0s
   Members:
      Agent/2 (Unavailable) has taken no calls yet
      Agent/1 (Unavailable) has taken 6 calls (last was 42 secs ago)
   No Callers
    -- Remote UNIX connection disconnected
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/0
13:36:11
#vim queues.conf
/dev/pts/2
13:36:11
#vim queues.conf
/dev/pts/4
13:36:14
#{EXTEN:2})
;
; ringall - ring all available channels until one answers (default)
; leastrecent - ring interface which was least recently called by this queue
; fewestcalls - ring the one with fewest completed calls from this queue
; random - ring random interface
; rrmemory - round robin with memory, remember where we left off last ring pass
; linear - rings interfaces in the order specified in this configuration file.
;          If you use dynamic members, the members will be rung in the order in
;          which they were added
; wrandom - rings random interface, but uses the member's penalty as a weight
...
musicclass = nomusic
;member => Agent/@1             ; Any agent in group 1
;member => Agent/:1,1           ; Any agent in group 1, wait for first
;member => SIP/1201
;member => SIP/1202
;member => SIP/ast/1103
member => Agent/1
member => Agent/2                                             510,0-1     Внизу
maxlen = 1
"/etc/asterisk/queues.conf" 511L, 22613C записано
/dev/pts/0
13:36:52
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 7014)
...
[Jul  1 15:47:16] WARNING[7214]: app_queue.c:5137 queue_exec: Unable to join queue 'queue1'
    -- Executing [1205@gr3:2] GotoIf("SIP/1202-00000006", "1?queuefull") in new stack
    -- Goto (gr3,1205,4)
    -- Executing [1205@gr3:4] Playback("SIP/1202-00000006", "/var/tmp/asterisk/message12") in new stack
    -- <SIP/1202-00000006> Playing '/var/tmp/asterisk/message12.slin' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1202-00000006' status is 'UNKNOWN'
  == Spawn extension (gr4, 1205, 1) exited non-zero on 'SIP/ast-00000005'
    -- Remote UNIX connection disconnected
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/2
13:36:52
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 7014)
...
[Jul  1 15:47:16] WARNING[7214]: app_queue.c:5137 queue_exec: Unable to join queue 'queue1'
    -- Executing [1205@gr3:2] GotoIf("SIP/1202-00000006", "1?queuefull") in new stack
    -- Goto (gr3,1205,4)
    -- Executing [1205@gr3:4] Playback("SIP/1202-00000006", "/var/tmp/asterisk/message12") in new stack
    -- <SIP/1202-00000006> Playing '/var/tmp/asterisk/message12.slin' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1202-00000006' status is 'UNKNOWN'
  == Spawn extension (gr4, 1205, 1) exited non-zero on 'SIP/ast-00000005'
    -- Remote UNIX connection disconnected
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/4
13:42:24
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-6225.18931.5003	2011-07-01 15:42:25.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-07-01 15:43:49.000000000 +0400
@@ -105,7 +105,7 @@
 
 ;Moi call center
 exten => 1205,1,Queue(queue1,r) ; r- gudok pri ozhidanii v ocheredi 
-exten => 1205,n,NoOp("${DIALSTATUS}")
+exten => 1205,n,NoOp("${QUEUESTATUS}")
 
 ;tests
 exten => 1297,1,MeetMe(1,m) ;m - monitor - only listen
13:43:49
#vim /etc/asterisk/queues.conf
13:44:25
#vim /etc/asterisk/queues.conf
13:44:33
#;

13:44:39
#~
exten => s,1,Background(/var/tmp/asterisk/ru-moskva,m)
exten => 0,1,Goto(submenu,s,1)
[submenu-burunduk]
exten => s,1,Background(/var/tmp/asterisk/ru-burunduk,m)
exten => 0,1,Goto(submenu,s,1)
;Local
[local]
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message04,m)
exten => s,n,WaitExten(2)
...
;exten => 120[12],1,Dial(SIP/1201$SIP/1202,10)
                        (                    )
;Moi call center
exten => 1205,1,Queue(queue1,r) ; r- gudok pri ozhidanii v ocheredi
exten => 1205,n,GotoIf($["${QUEUESTATUS}" = "FULL"]?queuefull)
exten => 1205,n,Hangup
                                                              108,62        63%
;tests
exten => 1297,1,MeetMe(1,m) ;m - monitor - only listen
"/etc/asterisk/extensions.conf" 157L, 4187C записаноe1
13:47:26
#vim /etc/asterisk/extensions.conf
13:48:23
#exten => 1299,1,MeetMe(1)

13:48:25
#echo ${a}
2
13:48:28
#echo a
a
13:48:30
#echo ${2+2}

13:48:36
#echo $[2+2]
4
13:48:39
#vim /etc/asterisk/extensions.conf
/dev/pts/0
13:50:16
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 7014)
Verbosity is at least 4
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/2
13:50:16
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux2 (pid = 7014)
Verbosity is at least 4
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/0
13:53:38
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
13:53:38
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/0
13:57:23
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
13:57:23
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/0
13:59:24
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
13:59:24
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
прошло 14 минут
/dev/pts/4
14:13:58
#ls /usr/share/asterisk/
agi-bin/       documentation/ keys/          static-http/
conf/          firmware/      sounds/
14:13:58
#ls /usr/share/asterisk/sounds/qu
quality-assurance.gsm  quarter.gsm            quote.gsm
quality-control.gsm    quickly.gsm
14:13:58
#ls /usr/share/asterisk/sounds/qu
quality-assurance.gsm  quarter.gsm            quote.gsm
quality-control.gsm    quickly.gsm
14:13:58