Denis писал(а):
1. Так сделать можно. В dial-p pots пропишите команду no reg для этих номеров.
2. К сожалению так сделать нельзя. Можно сделать, чтобы при неответе телефоны переключались по очереди.
Код:
!
!
no bridge spanning-tree
!
!
no ip-share enable
ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface ether0.0
ip address 172.1.1.210 255.255.255.252
encapsulation vlan
vlan 40
!
interface ether1.0
ip address 192.168.0.1 255.255.255.0
!
snmp community 0.0.0.0 eewqqwe ro
snmp name AP1100-FXS8
snmp enable-trap dn-register 300
!
no arp reset
!
route 0.0.0.0 0.0.0.0 172.1.1.209
!
utilization cpu period 5
!
logging event all
logging on
!
remote-log primary-server 192.168.0.254
!
ntp offset 05:00
ntp server 172.1.1.1
!
service snmpd
no service httpd
!
ftp-access 192.168.0.0 255.255.255.0
!
telnet-access 192.168.0.0 255.255.255.0
!
ip-tos rtp precedence 5
ip-tos rtp delay
ip-tos rtp throughput
ip-tos rtp reliability
!
!
!
!
!
! VoIP configuration.
!
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 5
fax rate 9600
h323 call start fast
h323 call tunnel enable
hold-tone-play ring-back
max-frame g729 4
busyout monitor gatekeeper
busyout monitor voip-interface
!
!
! Voice port configuration.
!
! FXS
voice-port 0/0
caller-id enable
caller-id name disable
!
! FXS
voice-port 0/1
caller-id enable
caller-id name disable
!
! FXS
voice-port 0/2
caller-id enable
caller-id name disable
!
! FXS
voice-port 0/3
caller-id enable
caller-id name disable
!
! FXS
voice-port 1/0
caller-id enable
caller-id name disable
!
! FXS
voice-port 1/1
caller-id enable
caller-id name disable
!
! FXS
voice-port 1/2
caller-id enable
caller-id name disable
!
! FXS
voice-port 1/3
caller-id enable
caller-id name disable
!
!
!
!
! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern 111111
port 0/0
preference 1
huntstop
!
dial-peer voice 2 pots
destination-pattern 222222
port 0/1
preference 2
!
dial-peer voice 3 pots
destination-pattern 222222
port 0/2
preference 3
!
dial-peer voice 4 pots
destination-pattern 222222
port 0/3
preference 4
!
dial-peer voice 5 pots
destination-pattern 222222
port 1/0
preference 5
!
dial-peer voice 6 pots
destination-pattern 222222
port 1/1
preference 6
!
dial-peer voice 7 pots
destination-pattern 222222
port 1/2
preference 7
!
dial-peer voice 8 pots
destination-pattern 222222
port 1/3
preference 8
huntstop
!
dial-peer voice 11 pots
destination-pattern 108
port 0/0
preference 9
huntstop
no register
!
dial-peer voice 12 pots
destination-pattern 101
port 0/1
no register
!
dial-peer voice 13 pots
destination-pattern 102
port 0/2
no register
!
dial-peer voice 14 pots
destination-pattern 103
port 0/3
no register
!
dial-peer voice 15 pots
destination-pattern 104
port 1/0
no register
!
dial-peer voice 16 pots
destination-pattern 105
port 1/1
no register
!
dial-peer voice 17 pots
destination-pattern 222
port 1/2
no register
!
dial-peer voice 18 pots
destination-pattern 107
port 1/3
huntstop
no register
!
!
!
! Voip peer configuration.
!
dial-peer voice 100 voip
destination-pattern .T
session target ras
voice-class codec 1
dtmf-relay h245-alphanumeric
no vad
preference 1
huntstop
!
!
!
dial-peer call-pickup 40
dial-peer call-hold h
dial-peer call-transfer h
dial-peer translate-digit # !
!
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id 222222:password
endpoint-type terminal
gkip 172.1.1.2 1719 128
discovery
keep-gk-on-rrj
no ignore-msg-from-other-gk
register
!
!
! Codec classes configuration.
!
voice class codec 1
codec preference 1 g729
!
!
!
! SIP UA configuration.
!
sip-ua
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
vad
!
!
! Tones
voice class ring-back-tone 425 0 1000 4000 0 0 -12
!
voice class line-busy-tone 425 0 200 110 0 0 -12
!
voice class reorder-tone 425 0 350 350 0 0 -12
!
voice class line-lock-tone 425 0 350 355 0 0 -12
1. прописал, результата нет, все равно на ГК видно внутренние номера
2. таким образом не актуально, все сидят в помещении 10х10 метров, и слышат звонки, просто снимают и перехватывают вызов, хотелось сделать без перехвата, чтобы кто снял первым тот и говорит.