Смотреть будем на примере цифрового VoIP-шлюза AddPac AP1800-2E1,
который представляет из себя шасси с предустановленным (на заводе) модулем AP-N1-2E1. Есть и модули на 2Е1 и их можно в него ставить получая 2*2Е1=4Е1
Выглядит он так:
Сurrent configuration:
!
version 8.41.078
!
hostname router-test
clock timezone MSK 4
!
banner motd ^$
^$
!
!
username root password 7 q2R97Hlsvly1k65/kTKTug== administrator
!
!
fan-control on
!
interface Loopback0
ip address 127.0.0.1 255.0.0.0
!
interface FastEthernet0/0
ip address 192.168.127.88 255.255.255.0
ip access-group 101 in
speed auto
no qos-control
!
interface FastEthernet0/1
ip address 192.168.137.69 255.255.255.0
shutdown
speed auto
no qos-control
!
no ip routing
!
access-list 99 remark ==deny_to_me==
access-list 99 permit 213.134.203.0 0.0.0.31
access-list 99 deny any
access-list 101 permit udp host 192.168.127.91 host 192.168.127.88
access-list 101 permit udp host 192.168.127.89 host 192.168.127.88
access-list 101 permit tcp host 192.168.127.91 host 192.168.127.88 eq telnet
access-list 101 deny ip any any
access-list 2000 permit tcp host 192.168.127.91 any eq telnet --- доступ с 1 адреса на управление
access-list 2000 deny ip any any
!
!
snmp contact support@techmail.ru --- куда отправляем
snmp location ATS2
snmp community 123qqpizdec ro 192.168.137.0/24
!
!
snmp server
!
!
utilization cpu
utilization FastEthernet
!
!
logging event 7-debug
logging format addpac
logging host server ip 192.168.127.90
logging on
!
!
! VoIP configuration.
!
!
! Controller configuration.
!
controller e1 0/0
clock-source slave
channel-group timeslots 1-31 0 --- объявлен полный поток
chan-number-order ascending
isdn immediate-disc
!
!
! Voice service voip configuration.
!
voice service voip
fax protocol bypass
fax rate 14400
h323 call start fast
h323 call tunnel enable
timeout tring 120
announcement language english --- набор голосовых сообщений
announcement element delayed-dial
announcement element wrong-number
announcement element enter-password
announcement element pstn-reroute
announcement element all-lines-busy
announcement element dial-number
announcement element connection-fail
remote-log primary-server 192.168.127.90
busyout monitor gatekeeper
busyout monitor voip-interface
display send e164 --- вид отображения
!
!
! Voice port configuration.
!
! E1
voice-port 0/0 0 --- физический порт(у нас 1Е1)
input gain -3
output gain -3
clear-down-tone-detect
translate-incoming called-number 0 --- доюавляем 000 и в пир
fax-early-detect
no announcement
low-dtmf-gain 0
high-dtmf-gain 0
busyout action tone
!
!
! service port group configuration.
!
!
! Pots peer configuration.
!
dial-peer voice 18 pots --- вот сколько пиров, разная нумерация в 1 потоке
destination-pattern 9
port 0/0 0
prefix 9
!
dial-peer voice 19 pots
destination-pattern 1..
port 0/0 0
prefix 1
!
dial-peer voice 20 pots
destination-pattern 2..
port 0/0 0
prefix 2
no register e164
!
dial-peer voice 21 pots
destination-pattern .......T
port 0/0 0
!
!
! Voip peer configuration.
!
dial-peer voice 102 voip --- пиры в офисную сеть с разной нумерацией
destination-pattern 0003..
session target ip 192.168.127.91 5090 --- традиционно меняем порт сигнализации
session protocol sip
voice-class codec 1
no vad
dtmf-relay rtp-2833
description test1
translate-outgoing called-number 1
fax protocol bypass
fax rate 14400
max-forward-hop 20
!
dial-peer voice 103 voip
destination-pattern 000.......T
session target ip 192.168.127.91 5090
session protocol sip
voice-class codec 1
no vad
dtmf-relay rtp-2833
description test1
translate-outgoing called-number 1
translate-outgoing calling-number 6
huntstop
fax protocol bypass
fax rate 14400
max-forward-hop 20
!
dial-peer voice 104 voip
destination-pattern 0003..
session target ip 192.168.127.89
session protocol sip
voice-class codec 1
no vad
dtmf-relay rtp-2833
description backup
translate-outgoing called-number 4
preference 1
fax protocol bypass
fax rate 14400
max-forward-hop 20
!
dial-peer voice 105 voip
destination-pattern 0004..
session target ip 192.168.127.89 5060
session protocol sip
voice-class codec 1
no vad
dtmf-relay rtp-2833
description backup
preference 1
fax protocol bypass
fax rate 14400
max-forward-hop 20
!
dial-peer voice 106 voip
destination-pattern 4..
session target ip 192.168.127.89 5060
session protocol sip
voice-class codec 1
no vad
dtmf-relay rtp-2833
description backup
preference 1
fax protocol bypass
fax rate 14400
max-forward-hop 20
!
!
dial-peer call-hold h
dial-peer call-transfer h
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.127.88
no ignore-msg-from-other-gk
!
!
! Codec classes configuration.
!
voice class codec 1
codec preference 1 g711alaw
!
!
! Translation Rule configuration.
!
translation-rule 0
rule 0 .T 000T
!
translation-rule 1
rule 1 000T T
!
translation-rule 4
rule 0 000T 199
!
translation-rule 5
rule 0 ... 2..
!
translation-rule 6
rule 0 4951234567 299 --- вписать нужно свой гор номер для замены
!
translation-rule 7
rule 0 0009T T
!
!
! SIP UA configuration.
!
sip-ua
no fault-tolerance
sip-server 192.168.127.91 5090 2 --- адрес астериска
retry-counter 3
timeout texpires 10
timeout tsipping 60
timeout tsrv 86400
min-se 30
media-channel early
enable-ping 192.168.127.91 --- проверка доступности
hook-flash-info-ignore
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
vad
!
!
! Tones
voice class clear-down-tone 0 401 1205 1800 2247
!
voice class clear-down-cadence 1 -46 410 430 15 15
!
!
line console
!
line vty
access-class 2000
!
end
В каждой конкретной ситуации можно и нужно подстраивать
оборудование, зесь как пример.
Замечу что по настройки физики шлюз беден, но с базовыми параметрами
справляется спокойно
Конец!
Комментариев нет:
Отправить комментарий