Здравствуйте. Есть два sccp аппарата и две физ. линии (fxo). Со входящими все отлично. Беда с исходящими. При звонке с любого из аппаратов используется свободная линия, а нужна жесткая привязка линии к аппарату. Как это можно реализовать ?
no aaa new-model
clock timezone UTC 3
voice-card 0
!
voice-card 1
!
ip cef
!
!
!
!
multilink bundle-name authenticated
!
!
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
supplementary-service h450.12
sip
registrar server expires max 3600 min 3600
!
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729br8
!
!
!
!
!
!
!
voice register global
mode cme
source-address 172.17.254.185 port 5060
max-dn 50
max-pool 24
create profile sync 0334252563688826
!
voice register dn 1
number 201
!
voice register pool 1
id mac E02F.6D63.C027
number 1 dn 1
voice-class codec 1
username 201 password cisco
!
!
!
!
!
!
!
archive
log config
hidekeys
!
!
!
!
!
!
interface FastEthernet0/0
ip address xxxxxxxxxxxx 255.255.0.0
speed auto
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 xxxxxxxxxx
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
!
voice-port 0/0
cptone NL
connection plar opx 604
impedance complex2
caller-id enable
!
voice-port 0/1
!
voice-port 0/2
!
voice-port 0/3
!
voice-port 1/0
cptone NL
connection plar opx 644
impedance complex2
caller-id enable
!
voice-port 1/1
cptone RU
connection plar opx xxxxxxx
station-id name City
station-id number xxxxxxx
!
!
!
!
!
!
dial-peer voice 101 pots
destination-pattern ^6..$
port 1/0
!
dial-peer voice 2 pots
incoming called-number xxxxxx
direct-inward-dial
port 1/1
!
dial-peer voice 102 pots
destination-pattern ^9......$
port 1/1
forward-digits 6
!
dial-peer voice 103 pots
destination-pattern ^8..........$
port 1/1
!
dial-peer voice 104 pots
destination-pattern ^0[1-9]$
port 1/1
!
dial-peer voice 105 pots
destination-pattern ^911$
port 1/1
!
dial-peer voice 6 voip
destination-pattern ^6..$
session target ipv4:xxxxxxxxxxxxx
!
dial-peer voice 1 pots
incoming called-number 644
direct-inward-dial
port 1/0
!
dial-peer voice 202 pots
destination-pattern ^6..$
port 0/0
!
dial-peer voice 201 pots
incoming called-number 604
direct-inward-dial
port 0/0
!
!
telephony-service
max-ephones 5
max-dn 5
ip source-address xxxxxxxxxx port 2000
system message Ryazan
max-conferences 4 gain -6
call-forward pattern .T
transfer-system full-consult
transfer-pattern .T
directory entry 1 8xxxxxxx name xxx
directory entry 2 8xxxxxxxx name xxx
create cnf-files version-stamp 7960 Mar 29 2016 17:04:53
!
!
ephone-dn 1
number 644
!
!
ephone-dn 2
number xxxxxx
name Gorod
!
!
ephone-dn 3
number 604
!
!
ephone 1
mac-address xxxxxxxxxxxx
type 7940
button 1:3
!
!
!
ephone 2
mac-address xxxxxxxxxxxx
speed-dial 1 xxxxxxxxxxxx
speed-dial 2 623
speed-dial 3 623
speed-dial 4 650
type 7941
button 1:1 2:2
!
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
ntp clock-period 17208121
ntp server xxxxxxxxxxxxxx
end
возможно cor list поможет в данном случае.
а поподробнее можно ?
> а поподробнее можно ?как то так
dial-peer cor custom
name call1
name call2dial-peer cor list user-1
member call1dial-peer cor list user-2
member call2
dial-peer voice 10 pots
corlist outgoing user-1dial-peer voice 11 pots
corlist outgoing user-2
еще не забыть на ephone-dn повесить cor list.
> еще не забыть на ephone-dn повесить cor list.забыл скопировать :-)
ephone-dn 1 dual-line
corlist incoming call1ephone-dn 2 dual-line
corlist incoming call2
>> еще не забыть на ephone-dn повесить cor list.
> забыл скопировать :-)
> ephone-dn 1 dual-line
> corlist incoming call1
> ephone-dn 2 dual-line
> corlist incoming call2тогда сразу еще и cor list сразу показать call1 и call2 :). Или я ошибаюсь :)
>>> еще не забыть на ephone-dn повесить cor list.
>> забыл скопировать :-)
>> ephone-dn 1 dual-line
>> corlist incoming call1
>> ephone-dn 2 dual-line
>> corlist incoming call2
> тогда сразу еще и cor list сразу показать call1 и call2 :).
> Или я ошибаюсь :)ephone-dn 1 dual-line
corlist incoming user-1
ephone-dn 2 dual-line
corlist incoming user-2общий смысл понятен, что непонятно автор сам найдет.
Либо я ни фига не понял, либо наихудший вариант, который даже озвучивать не хочется. И так для простоты : есть два аппарат 7940 и 7942 и две линии 604 и 644. Соответствие 7940 - 604, 7942 - 644. Делаю так:
dial-peer cor custom
name 604
name 644
!
!
dial-peer cor list 7942
member 644
!
dial-peer cor list 7940
member 604
!
!
dial-peer voice 101 pots
corlist outgoing 7942
destination-pattern ^6..$
port 1/0
!
dial-peer voice 2 pots
incoming called-number *******
direct-inward-dial
port 1/1
!
dial-peer voice 102 pots
destination-pattern ^9......$
port 1/1
forward-digits 6
!
dial-peer voice 103 pots
destination-pattern ^8..........$
port 1/1
!
dial-peer voice 104 pots
destination-pattern ^0[1-9]$
port 1/1
!
dial-peer voice 105 pots
destination-pattern ^911$
port 1/1
!
dial-peer voice 6 voip
destination-pattern ^6..$
session target ipv4:************
dial-peer voice 1 pots
incoming called-number 644
direct-inward-dial
port 1/0
!
dial-peer voice 202 pots
corlist outgoing 7940
destination-pattern ^6..$
port 0/0
!
dial-peer voice 201 pots
incoming called-number 604
direct-inward-dial
port 0/0
!
!
telephony-service
max-ephones 5
max-dn 5
ip source-address *********** port 2000
system message Ryazan
max-conferences 4 gain -6
call-forward pattern .T
transfer-system full-consult
transfer-pattern .T
directory entry 1 ********** name Li
directory entry 2 ********** name Kanishev
create cnf-files version-stamp 7960 Mar 29 2016 17:04:53
!
!
ephone-dn 1
number 644
corlist incoming 7942
!
!
ephone-dn 2
number *********
name Gorod
!
!
ephone-dn 3
number 604
corlist incoming 7940И ни фига не работает. В чем ошибаюсь ?
а куда вы звоните при проверке?Вы уверены что звонок уходит через
dial-peer voice 101 pots
corlist outgoing 7942
destination-pattern ^6..$
port 1/0а не через
dial-peer voice 6 voip
destination-pattern ^6..$
session target ipv4:***********
?
Убрал dial-peer voice 6 voip, звонит как надо, СПАСИБО.
Другой вопрос - при звонке с 604 на 644 и наоборот, звонки идут только с cisco на cisco, на другие аналоги, висящие на этой линии звонки не проходят. Почему (где опять косячу) ?