[Показать] Спойлер:
!
version 8.23K
!
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.20.240 255.255.255.0
line-ctrl full-duplex
!
interface ether1.0
no ip address
!
snmp name AP1100F
snmp enable-trap dn-register 300
!
no arp reset
!
route 0.0.0.0 0.0.0.0 192.168.20.1
!
ntp refresh 500
ntp offset 05:00
ntp server 192.168.20.1
!
dnshost nameserver 192.168.20.1
!
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
cdr format 1
static-jitter-buffer 40
!
!
! Voice port configuration.
!
! FXO
voice-port 0/0
connection plar 102
ring number 0
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 0/1
no caller-id enable
!
!
! FXO
voice-port 0/2
no caller-id enable
!
!
! FXO
voice-port 0/3
no caller-id enable
!
!
! FXO
voice-port 1/0
no caller-id enable
!
!
! FXO
voice-port 1/1
no caller-id enable
!
!
! FXO
voice-port 1/2
no caller-id enable
!
!
! FXO
voice-port 1/3
no caller-id enable
!
!
!
!
! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern T
port 0/0
huntstop
!
!
!
! Voip peer configuration.
!
dial-peer voice 1000 voip
destination-pattern .T
session target 192.168.20.254
session protocol sip
codec g711alaw
voice-class codec 1000
dtmf-relay rtp-2833
no vad
huntstop
!
!
!
!
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.20.240
no ignore-msg-from-other-gk
!
!
! Codec classes configuration.
!
voice class codec 1000
codec preference 1 g711alaw
codec preference 2 g711ulaw
!
!
!
! SIP UA configuration.
!
sip-ua
user-register
sip-server 192.168.20.254
remote-party-id
register e164
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
no vad
!
!
! Tones
!
!
!
!
version 8.23K
!
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.20.240 255.255.255.0
line-ctrl full-duplex
!
interface ether1.0
no ip address
!
snmp name AP1100F
snmp enable-trap dn-register 300
!
no arp reset
!
route 0.0.0.0 0.0.0.0 192.168.20.1
!
ntp refresh 500
ntp offset 05:00
ntp server 192.168.20.1
!
dnshost nameserver 192.168.20.1
!
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
cdr format 1
static-jitter-buffer 40
!
!
! Voice port configuration.
!
! FXO
voice-port 0/0
connection plar 102
ring number 0
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 0/1
no caller-id enable
!
!
! FXO
voice-port 0/2
no caller-id enable
!
!
! FXO
voice-port 0/3
no caller-id enable
!
!
! FXO
voice-port 1/0
no caller-id enable
!
!
! FXO
voice-port 1/1
no caller-id enable
!
!
! FXO
voice-port 1/2
no caller-id enable
!
!
! FXO
voice-port 1/3
no caller-id enable
!
!
!
!
! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern T
port 0/0
huntstop
!
!
!
! Voip peer configuration.
!
dial-peer voice 1000 voip
destination-pattern .T
session target 192.168.20.254
session protocol sip
codec g711alaw
voice-class codec 1000
dtmf-relay rtp-2833
no vad
huntstop
!
!
!
!
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.20.240
no ignore-msg-from-other-gk
!
!
! Codec classes configuration.
!
voice class codec 1000
codec preference 1 g711alaw
codec preference 2 g711ulaw
!
!
!
! SIP UA configuration.
!
sip-ua
user-register
sip-server 192.168.20.254
remote-party-id
register e164
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
no vad
!
!
! Tones
!
!
!
!
транк 42004
type=friend
qualify=yes
port=5060
host=192.168.20.240
insecure=very
context=from-internal
canreinvite=no
disallow=all
allow=ulaw&alaw