Звонки на Addpac 1100F
Добрый день всем
подскажите. как перенастроить адпак и * чтобы в * отдельные порты были определены отдельными пирами.
в настоящий момент адпак сам выбирает свободную линию по приоритету, а нужно чтобы я в * прямо звонил с определенной линии
!
version 8.30U
!
hostname AP1100F
!
!
no bridge spanning-tree
!
dhcp-list 1 type server
dhcp-list 1 address server 10.1.1.2 10.1.1.126 255.255.255.128
!
!
ip-share enable
ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface ether0.0
ip address 192.168.10.2 255.255.255.0
!
interface ether1.0
no ip address
!
snmp name AP1100F
snmp enable-trap dn-register 300 forcely-block
!
no arp reset
!
route 0.0.0.0 0.0.0.0 192.168.10.1
!
ntp version 3
ntp refresh 60
ntp offset 03:00
ntp server 81.171.44.131
ntp server 83.229.210.18
!
service ntp
!
!
!
!
!
! VoIP configuration.
!
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 0
fax rate 9600
h323 call start fast
h323 call tunnel enable
voice-confirmed-connect 25
inband-ringback-tone
!
!
! Voice port configuration.
!
! FXO
voice-port 0/0
input gain 6
output gain 4
connection plar 711111
ring detect-timeout 50
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 0/1
input gain 6
output gain 4
connection plar 711111
ring detect-timeout 50
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 0/2
input gain 6
output gain 4
connection plar 711111
ring detect-timeout 50
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 0/3
input gain 6
output gain 4
connection plar 711111
ring detect-timeout 50
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 1/0
input gain 6
output gain 4
connection plar 711111
ring detect-timeout 50
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 1/1
input gain 6
output gain 4
connection plar 711111
ring detect-timeout 50
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 1/2
input gain 6
output gain 4
connection plar 711111
ring detect-timeout 50
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 1/3
input gain 6
output gain 4
connection plar 711111
ring detect-timeout 50
caller-id enable
caller-id type etsi
caller-id name disable
!
!
!
!
! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern T
port 1/0
forward-digits from 0
preference 6
!
dial-peer voice 3 pots
destination-pattern T
port 0/3
forward-digits from 0
preference 1
!
dial-peer voice 4 pots
destination-pattern T
port 0/2
forward-digits from 0
preference 6
!
dial-peer voice 5 pots
destination-pattern T
port 0/1
forward-digits from 0
preference 7
!
dial-peer voice 6 pots
destination-pattern T
port 0/0
forward-digits from 0
preference 8
!
dial-peer voice 7 pots
destination-pattern T
port 1/1
forward-digits from 0
preference 4
!
dial-peer voice 8 pots
destination-pattern T
port 1/2
forward-digits from 0
preference 5
!
dial-peer voice 9 pots
destination-pattern T
port 1/3
forward-digits from 0
preference 2
!
!
!
! Voip peer configuration.
!
dial-peer voice 2 voip
destination-pattern 7T
session target 192.168.10.1
session protocol sip
voice-class codec 1
no vad
dtmf-relay rtp-2833
fax protocol t38 redundancy 0
fax rate 9600
!
!
!
!
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.10.2
no ignore-msg-from-other-gk
!
!
! Codec classes configuration.
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g7231r53
codec preference 4 g7231r63
codec preference 5 g729
!
!
!
! SIP UA configuration.
!
sip-ua
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
vad
!
!
! Tones
voice class clear-down-tone 0 421 843 330 330
!
voice class clear-down-tone 1 421 0 320 320
!
!
!
!
!
в *
[mygw]
type=friend
host=192.168.10.2
disallow=all
allow=alaw
allow=ulaw
allow=g723.1
allow=g729
dtmfmode=rfc2833
context = default
nat=no
нужно чтобы этих mygw было 8 шт
|