вторник, 31 января 2012 г.

Соединение офисных мини-АТС при помощи AddPac

удобнее использовать два голосовых шлюза с портами FXO. Схема примерно следующая:
 

 
Конфиг Addpac A

conf
!
hostname Address_A
!
interface ether0.0
ip address A.A.A.A 255.255.255.0
!
exit
!
route 0.0.0.0 0.0.0.0 G.G.G.G
!
! VoIP configuration.
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 2
fax rate 9600
h323 call start fast
h323 call tunnel enable
timeout tidt 10
local-ringback-tone alert
busyout monitor gatekeeper
busyout monitor voip-interface
!
exit
!
! Voice port configuration.
!
! FXO
voice-port 0/0
connection plar 110
ring detect-timeout 100
fax-early-detect
!
!
! FXO
voice-port 0/1
connection plar 111
ring detect-timeout 100
fax-early-detect
!
exit
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern 112
port 0/0
!
dial-peer voice 1 pots
destination-pattern 113
port 0/1
!
!
! Voip peer configuration.
!
dial-peer voice 7 voip
destination-pattern .T
session target B.B.B.B 
voice-class codec 0
dtmf-relay h245-alphanumeric
no vad
fax protocol t38 redundancy 2
fax rate 9600
!
exit
!
voice class codec 0
codec preference 1 g729
codec preference 2 g711alaw
codec preference 3 g711ulaw
!
! Tones
voice class clear-down-tone 0 415 0 250 250
!
voice class clear-down-tone 1 300 0 250 250
!
end
!
write

Конфиг Addpac B

conf
!
hostname Address_B
!
interface ether0.0
ip address B.B.B.B 255.255.255.0
!
exit
!
route 0.0.0.0 0.0.0.0 G.G.G.G
!
! VoIP configuration.
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 2
fax rate 9600
h323 call start fast
h323 call tunnel enable
timeout tidt 10
local-ringback-tone alert
busyout monitor gatekeeper
busyout monitor voip-interface
!
exit
!
! Voice port configuration.
!
! FXO
voice-port 0/0
connection plar 112
ring detect-timeout 100
fax-early-detect
no caller-id enable
!
! FXO
voice-port 0/1
connection plar 113
ring detect-timeout 100
fax-early-detect
no caller-id enable
!
exit
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern 110
port 0/0
!
dial-peer voice 1 pots
destination-pattern 111
port 0/1
!
! Voip peer configuration.
!
dial-peer voice 7 voip
destination-pattern .T
session target A.A.A.A 
voice-class codec 0
dtmf-relay h245-alphanumeric
no vad
fax protocol t38 redundancy 2
fax rate 9600
!
exit
!
! Codec classes configuration.
!
voice class codec 0
codec preference 1 g729
codec preference 2 g711alaw
codec preference 3 g711ulaw

! Tones
voice class clear-down-tone 0 415 0 250 250
!
voice class clear-down-tone 1 300 0 250 250
!
end
!
write

Комментариев нет:

Отправить комментарий