Модераторы: stas2k, april22, Zavr2008
Код: Выделить всё
version 8.30R
!
hostname ХХХХХ
!
no ip routing
!
!
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
!
!
no ip-share enable
ip-share interface net-side ether0.0 AAA.AAA.AAA.AAA
ip-share interface local-side ether1.0
!
interface ether0.0
ip address ХХХХХ
qos-control
line-ctrl promiscuous
bridge 1
!
interface ether1.0
no ip address
line-ctrl promiscuous
bridge 1
!
snmp community ХХХХХ
snmp contact ХХХХХ
snmp location ХХХХХ
snmp name ХХХХХ
no snmp trap-authentication
snmp enable-trap dn-register 300 forcely-block
!
no arp reset
!
route ХХХХХ
!
ntp refresh 5
ntp offset 03:00
ntp server 194.67.161.1
ntp server 194.67.160.3
!
dnshost nameserver ХХХХХ
dnshost nameserver ХХХХХ
!
service snmpd
service ntp
!
ip-tos rtp precedence 5
ip-tos rtp delay
ip-tos rtp throughput
ip-tos sig precedence 5
ip-tos sig delay
ip-tos sig throughput
ip-tos forward clear
!
!
!
!
!
! VoIP configuration.
!
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 0
fax rate 14400
h323 call start fast
h323 call tunnel enable
timeout treg 60
timeout treg2 60
announcement language english
max-frame g729 4
busyout monitor gatekeeper
busyout monitor voip-interface
!
!
! Voice port configuration.
!
! FXS
voice-port 0/0
no caller-id enable
!
!
! FXS
voice-port 0/1
no caller-id enable
!
!
! FXS
voice-port 0/2
no caller-id enable
!
!
! FXS
voice-port 0/3
no caller-id enable
!
!
! FXS
voice-port 1/0
no caller-id enable
!
!
! FXS
voice-port 1/1
no caller-id enable
!
!
! FXS
voice-port 1/2
no caller-id enable
!
!
! FXS
voice-port 1/3
no caller-id enable
!
!
!
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern 74959999999
port 0/0
!
dial-peer voice 1 pots
destination-pattern 74958888888
port 0/1
preference 1
!
dial-peer voice 2 pots
destination-pattern 74959999999
port 0/2
preference 2
!
dial-peer voice 3 pots
destination-pattern 74959999999
port 0/3
preference 3
!
dial-peer voice 4 pots
destination-pattern 74959999999
port 1/0
preference 4
!
dial-peer voice 5 pots
destination-pattern 74959999999
port 1/1
preference 5
!
dial-peer voice 6 pots
destination-pattern 74959999999
port 1/2
preference 6
!
dial-peer voice 7 pots
destination-pattern 74959999999
port 1/3
preference 7
!
!
!
! Voip peer configuration.
!
dial-peer voice 65534 voip
destination-pattern .T
session target ras
voice-class codec 0
no vad
dtmf-relay h245-alphanumeric
!
!
!
!
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id ХХХХ
security password ХХХХ
security clear-token-option cisco-per-call-style
endpoint-type terminal
gkip gk3.voip.rmt.ru 1719 128
gkip gk4.voip.rmt.ru 1719 128
lightweight-irr
keep-gk-on-rrj
no ignore-msg-from-other-gk
register
!
!
! Codec classes configuration.
!
voice class codec 0
codec preference 1 g729
codec preference 2 g7231r63
codec preference 5 g711alaw
codec preference 6 g711ulaw
!
!
!
! SIP UA configuration.
!
sip-ua
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
vad
!
!
! Tones
!
!
!
voip-interface ether0.0
Код: Выделить всё
[peer details]
type=friend
qualify=yes
host=AAA.AAA.AAA.AAA
USER Context: from-intenal
Код: Выделить всё
test AAA.AAA.AAA.AAA N 5060 OK (54 ms)