/l3/users/angell2807/nt-voip/linux2.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#vi extensions.conf
--- /tmp/l3-saved-5552.18156.10322 2010-10-28 10:26:38.000000000 +0300 +++ extensions.conf 2010-10-28 10:28:41.000000000 +0300 @@ -102,6 +102,7 @@ ;;Ресурсы [local] +exten => _1295,1,Dial(SIP/1201 & SIP/1202) exten => _12XX,1,Macro(answer-with-monitor,${EXTEN}) |
#exit
-- Executing [1195@grup2:1] Macro("SIP/1201-08fdbd50", "dial-with-callerid|SIP/nk/1195") in new stack -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08fdbd50", "CALLERID(name)="Igor (Rivne)"") in new stack -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-08fdbd50", "SIP/nk/1195") in new stack -- Called nk/1195 -- SIP/nk-08fe2b18 answered SIP/1201-08fdbd50 -- Packet2Packet bridging SIP/1201-08fdbd50 and SIP/nk-08fe2b18 == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fdbd50' in macro 'dial-with-callerid' == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fdbd50' -- Executing [1195@grup2:1] Macro("SIP/1201-08fdd2e0", "dial-with-callerid|SIP/nk/1195") in new stack -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08fdd2e0", "CALLERID(name)="Igor (Rivne)"") in new stack ... -- Including context 'servise' in context 'grup1' -- Including context 'local' in context 'grup1' -- Including context 'national' in context 'grup1' -- Registered extension context 'grup3' -- Including context 'servise' in context 'grup3' -- Including context 'local' in context 'grup3' == Parsing '/etc/asterisk/users.conf': Found linux2*CLI> linux2*CLI> linux2*CLI> ! |
#vi extensions.conf
![]() --- /tmp/l3-saved-5656.22042.6170 2010-10-28 10:29:15.000000000 +0300 +++ extensions.conf 2010-10-28 10:29:41.000000000 +0300 @@ -102,7 +102,7 @@ ;;Ресурсы [local] -exten => _1295,1,Dial(SIP/1201 & SIP/1202) +exten => _1295,1,Dial(SIP/1201&SIP/1202) exten => _12XX,1,Macro(answer-with-monitor,${EXTEN}) |
#exit
-- Executing [1195@grup2:1] Macro("SIP/1201-08fe0238", "dial-with-callerid|SIP/nk/1195") in new stack -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08fe0238", "CALLERID(name)="Igor (Rivne)"") in new stack -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-08fe0238", "SIP/nk/1195") in new stack -- Called nk/1195 -- SIP/nk-08fdce98 is ringing == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fe0238' in macro 'dial-with-callerid' == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fe0238' linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': Found ... -- Registered extension context 'grup1' -- Including context 'servise' in context 'grup1' -- Including context 'local' in context 'grup1' -- Including context 'national' in context 'grup1' -- Registered extension context 'grup3' -- Including context 'servise' in context 'grup3' -- Including context 'local' in context 'grup3' == Parsing '/etc/asterisk/users.conf': Found linux2*CLI> linux2*CLI> ! |
#exit
linux2*CLI> ! |
#vi queues.conf
![]() |
#vi queues.conf
--- /tmp/l3-saved-5862.4914.2592 2010-10-28 10:31:50.000000000 +0300 +++ queues.conf 2010-10-28 10:36:21.000000000 +0300 @@ -309,3 +309,9 @@ ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty +[queue1] + +member => SIP/1201 +member => SIP/1202 + + |
#vi queues.conf
--- /tmp/l3-saved-2910.26791.24565 2010-10-28 10:36:36.000000000 +0300 +++ queues.conf 2010-10-28 10:37:20.000000000 +0300 @@ -313,5 +313,5 @@ member => SIP/1201 member => SIP/1202 - +strategy = ringall |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... No Callers linux2*CLI> queue add remove show linux2*CLI> queue add remove show linux2*CLI> queue add member 1203 Usage: queue add member <channel> to <queue> [penalty <penalty>] linux2*CLI> queue add member 1203 queue1 Usage: queue add member <channel> to <queue> [penalty <penalty>] linux2*CLI> |
#vi extensions.conf
--- /tmp/l3-saved-2910.14007.3689 2010-10-28 10:39:41.000000000 +0300 +++ extensions.conf 2010-10-28 10:42:14.000000000 +0300 @@ -102,7 +102,8 @@ ;;Ресурсы [local] -exten => _1295,1,Dial(SIP/1201&SIP/1202) +;exten => _1295,1,Dial(SIP/1201&SIP/1202) +exten => _1295,1,Queue(queue1) exten => _12XX,1,Macro(answer-with-monitor,${EXTEN}) |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [s@macro-answer-with-monitor:5] Dial("SIP/rv-08fe9218", "SIP/1201|10") in new stack -- Called 1201 -- SIP/1201-08fed190 is ringing -- SIP/1201-08fed190 is ringing -- SIP/1201-08fed190 is ringing -- SIP/1201-08fed190 is ringing == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/rv-08fe9218' in macro 'answer-with-monitor' == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/rv-08fe9218' [Oct 28 10:43:29] NOTICE[6038]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1201-1101-1288251802-in.wav" "/var/spool/asterisk/monitor/voice-1201-1101-1288251802-out.wav" "/var/spool/asterisk/monitor/voice-1201-1101-1288251802.wav" & linux2*CLI> |
#vi extensions.conf
--- /tmp/l3-saved-2910.19580.30303 2010-10-28 10:44:03.000000000 +0300 +++ extensions.conf 2010-10-28 10:44:27.000000000 +0300 @@ -103,7 +103,7 @@ ;;Ресурсы [local] ;exten => _1295,1,Dial(SIP/1201&SIP/1202) -exten => _1295,1,Queue(queue1) +exten => 1295,1,Queue(queue1) exten => _12XX,1,Macro(answer-with-monitor,${EXTEN}) |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 28 10:45:36] WARNING[6077]: app_queue.c:3014 try_calling: The device state of this queue member, SIP/1201, is still 'Not in Use' when it probably should not be! Please check UPGRADE.txt for correct configuration settings. -- Packet2Packet bridging SIP/rv-08fe67f8 and SIP/1201-08fea770 queue show queue1 has 0 calls (max unlimited) in 'ringall' strategy (7s holdtime), W:0, C:0, A:1, SL:0.0% within 0s Members: SIP/1201 (Not in use) has taken no calls yet SIP/1202 (Unavailable) has taken no calls yet No Callers == Spawn extension (grup3, 1295, 1) exited non-zero on 'SIP/rv-08fe67f8' linux2*CLI> |
#vi queues.conf
|
# 61 ; An announcement may be specified which is played for the member as
68 ; 69 ;updatecdr=no 70 ; 71 ; Group memberships for agents (may change in mid-file) 72 ; 73 ;group=3 74 ;group=1,2 75 ;group= 76 ; 77 ; -------------------------------------------------- ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "agents.conf" 114L, 2849C записано |
#vi extensions.conf
|
#vi queues.conf
--- /tmp/l3-saved-2910.20589.24632 2010-10-28 10:50:25.000000000 +0300 +++ queues.conf 2010-10-28 10:51:06.000000000 +0300 @@ -311,7 +311,7 @@ [queue1] -member => SIP/1201 -member => SIP/1202 +;member => SIP/1201 +;member => SIP/1202 strategy = ringall - +member => Agent/@1 |
#vi agents.conf
--- /tmp/l3-saved-2910.14020.21715 2010-10-28 10:51:09.000000000 +0300 +++ agents.conf 2010-10-28 10:53:17.000000000 +0300 @@ -106,9 +106,9 @@ [agents] -108 -109 group=1 -110 agent => 1001,1234,Agent 1 -111 agent => 1002,1234,Agent 2 -112 agent => 1007,1234,Agent 007 + +group=1 +agent => 1001,1234,Agent 1 +agent => 1002,1234,Agent 2 +agent => 1007,1234,Agent 007 |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Everyone is busy/congested at this time (1:1/0/0) == Auto fallthrough, channel 'SIP/1201-08fe67c8' status is 'BUSY' -- Executing [1195@grup2:1] Macro("SIP/1201-08fdcac8", "dial-with-callerid|SIP/nk/1195") in new stack -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08fdcac8", "CALLERID(name)="Igor (Rivne)"") in new stack -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-08fdcac8", "SIP/nk/1195") in new stack -- Called nk/1195 -- SIP/nk-08fe8de0 answered SIP/1201-08fdcac8 -- Packet2Packet bridging SIP/1201-08fdcac8 and SIP/nk-08fe8de0 == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fdcac8' in macro 'dial-with-callerid' == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08fdcac8' |
#vi extensions.conf
|
# 61 [default]2,1,Background(/usr/share/asterisk/ivr/5)
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 28 11:28:11] WARNING[6372]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found == Agent '1001' logged in (format gsm/gsm) linux2*CLI> agent show 1001 (Agent 1) logged in on SIP/1201-08fe67c8 is idle (musiconhold is 'default') 1002 (Agent 2) not logged in (musiconhold is 'default') 1007 (Agent 007) not logged in (musiconhold is 'default') 3 agents configured [1 online , 2 offline] -- Executing [1295@grup3:1] Queue("SIP/rv-08ff77e0", "queue1") in new stack [Oct 28 11:28:34] WARNING[6379]: app_queue.c:3930 queue_exec: Unable to join queue 'queue1' == Auto fallthrough, channel 'SIP/rv-08ff77e0' status is 'UNKNOWN' |
#vi agents.conf
|
#~
68 ; 69 ; A strategy may be specified. Valid strategies include: 70 ; 71 ; ringall - ring all available channels until one answers (default) 72 ; roundrobin - take turns ringing each available interface 73 ; leastrecent - ring interface which was least recently called by this queue 74 ; fewestcalls - ring the one with fewest completed calls from this queue 75 ; random - ring random interface 76 ; rrmemory - round robin with memory, remember where we left off last ring pass 77 ; ... 308 ;member => Agent/@1 ; Any agent in group 1 309 ;member => Agent/:1,1 ; Any agent in group 1, wait for first 310 ; available, but consider with penalty 311 312 [queue1] 313 314 ;member => SIP/1201 315 ;member => SIP/1202 316 strategy = ringall 317 member => Agent/@1 |
#302 ;
68 ; 69 ;updatecdr=no 70 ; 71 ; Group memberships for agents (may change in mid-file) 72 ; 73 ;group=3 74 ;group=1,2 75 ;group= 76 ; 77 ; -------------------------------------------------- ... 105 ;agent => 1002,4321,Will Meadows 106 107 108 [agents] 109 110 group=1 111 agent => 1001,1234,Agent 1 112 agent => 1002,1234,Agent 2 113 agent => 1007,1234,Agent 007 114 |
#~
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime), W:0, C:0, A:0, SL:0.0% within 0s Members: Agent/@1 (Unavailable) has taken no calls yet No Callers linux2*CLI> agent show 1001 (Agent 1) not logged in (musiconhold is 'default') 1002 (Agent 2) logged in on SIP/1202-09f090d8 is idle (musiconhold is 'default') 1007 (Agent 007) not logged in (musiconhold is 'default') 3 agents configured [1 online , 2 offline] linux2*CLI> |
#vi queues.conf
|
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 28 11:43:39] WARNING[6658]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found == Spawn extension (grup3, 1295, 1) exited non-zero on 'SIP/rv-09ef42b0' linux2*CLI> agent show 1001 (Agent 1) not logged in (musiconhold is 'default') 1002 (Agent 2) logged in on SIP/1202-09f090d8 is idle (musiconhold is 'default') 1007 (Agent 007) not logged in (musiconhold is 'default') 3 agents configured [1 online , 2 offline] linux2*CLI> linux2*CLI> linux2*CLI> |
#ll
итого 4 -rw-r--r-- 1 root root 7 Окт 27 09:37 vimrc |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [12001@grup2:1] AgentLogin("SIP/1201-09f047f8", "1001") in new stack -- <SIP/1201-09f047f8> Playing 'agent-pass' (language 'ru') -- <SIP/1201-09f047f8> Playing 'agent-loginok' (language 'ru') [Oct 28 11:50:48] WARNING[6950]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found [Oct 28 11:50:48] WARNING[6950]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found [Oct 28 11:50:48] WARNING[6950]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found == Agent '1001' logged in (format gsm/gsm) == Agent '1001' logged out == Spawn extension (grup2, 12001, 1) exited non-zero on 'SIP/1201-09f047f8' linux2*CLI> |
#vi musiconhold.conf
--- /tmp/l3-saved-2910.5880.25687 2010-10-28 11:51:25.000000000 +0300 +++ musiconhold.conf 2010-10-28 11:52:07.000000000 +0300 @@ -35,6 +35,13 @@ [default] mode=files directory=/var/lib/asterisk/moh + +[rock] +mode=files +directory=/var/lib/asterisk/moh/rock + + + ; ;[native-random] ;mode=files |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vi agents.conf
--- /tmp/l3-saved-2910.20925.1928 2010-10-28 12:01:34.000000000 +0300 +++ agents.conf 2010-10-28 12:01:55.000000000 +0300 @@ -105,9 +105,17 @@ ;agent => 1002,4321,Will Meadows -[agents] +;[agents] -group= 1 +;group= 1 +;agent => 1001,1234,Agent 1 +;agent => 1002,1234,Agent 2 +;agent => 1007,1234,Agent 007 + + +[agents] +group=1 +custom_beep=because-paranoid agent => 1001,1234,Agent 1 agent => 1002,1234,Agent 2 agent => 1007,1234,Agent 007 |
#vi extensions.conf
--- /tmp/l3-saved-2910.20906.19620 2010-10-28 12:03:05.000000000 +0300 +++ extensions.conf 2010-10-28 12:03:23.000000000 +0300 @@ -36,7 +36,7 @@ exten => 1295,1,Answer exten => 1295,n,SetMusicOnhold(default) -exten => 1295,n,Queue(queue1) +exten => 1295,n,Queue(queine1,m) ;exten => 1198,1,Record(/tmp/warning1:gsm,,3) ; Запись сообщения в формате gsm 3 секундыa |
#vi agents.conf
|
#109
68 ; 69 ; A strategy may be specified. Valid strategies include: 70 ; 71 ; ringall - ring all available channels until one answers (default) 72 ; roundrobin - take turns ringing each available interface 73 ; leastrecent - ring interface which was least recently called by this queue 74 ; fewestcalls - ring the one with fewest completed calls from this queue 75 ; random - ring random interface 76 ; rrmemory - round robin with memory, remember where we left off last ring pass 77 ; ... 317 318 319 [queine1] 320 strategy = ringall 321 ;member => SIP/1301 322 ;member => SIP/1302 323 member => Agent/@1 324 amusicclass = defaul 325 tnnounce-holdtime = yes 326 |
#316 ;strategy = ringall
"sip.conf" 75L, 1238C 32 host=dynamic 33 callerid="Igor Softphone" 34 context=grup1 35 language=ru 36 37 38 ; откл кодеки - вкл только определенные 39 [1203] [a ] ... 56 ; Создаем клиентов 57 [kv] 58 type=friend secret=1234 59 host=dynamic username=rv 60 context=grup3 "sip.conf" 77L, 1262C записано |
#vi sip.conf
|
# 61 [general]
|
#vi sip.conf
--- /tmp/l3-saved-2910.324.27201 2010-10-28 12:08:26.000000000 +0300 +++ sip.conf 2010-10-28 12:08:38.000000000 +0300 @@ -26,6 +26,7 @@ context=grup2 language=ru callgroup=1 +pickupgroup=1 [1202] type=friend @@ -35,7 +36,7 @@ context=grup1 language=ru callgroup=1 - +pickupgroup=1 ; откл кодеки - вкл только определенные [1203] |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Park Call Dynamic Feature Default Current --------------- ------- ------- (none) Call parking ------------ Parking extension : 700 Parking context : parkedcalls Parked call extensions: 701-720 linux2*CLI> |
#vi features.conf
|
# 61 ; DYNAMIC_FEATURES variable to enable usage of this feature.
|
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; ty |