ап подключённый к станции с fxo портом:
Код:
version 8.30R
!
hostname AP200E
!
!
no bridge spanning-tree
!
dhcp-list 0 type server
dhcp-list 0 address server interface ether0.0
dhcp-list 0 option dhcp-lease-time 600
!
!
no ip-share enable
ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface ether0.0
ip address 192.168.1.147 255.255.255.0
!
interface ether1.0
no ip address
ip dhcp-group 0
!
snmp name AP200E
!
no arp reset
!
route 0.0.0.0 0.0.0.0 192.168.1.147
!
!
!
!
!
! 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 port configuration.
!
! FXO
voice-port 0/0
ring detect-timeout 70
no caller-id enable
!
!
! FXS
voice-port 0/1
caller-id enable
!
!
!
!
!
voice service voip
minimize-voip-port multiply 1
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern 9103
port 0/0
!
!
!
! Voip peer configuration.
!
dial-peer voice 100 voip
destination-pattern 103
session target 192.168.1.146
codec g729
no vad
dtmf-relay rtp
!
dial-peer voice 101 voip
destination-pattern 104
session target 192.168.1.146
codec g729
no vad
dtmf-relay h245-alphanumeric
!
dial-peer voice 102 voip
destination-pattern 10[56]
session target 192.168.1.146
codec g729
no vad
dtmf-relay h245-alphanumeric
!
dial-peer voice 103 voip
destination-pattern 12[12]
session target 192.168.1.146
codec g729
no vad
dtmf-relay h245-alphanumeric
!
dial-peer voice 104 voip
destination-pattern 13[02]
session target 192.168.1.146
codec g711ulaw
no vad
dtmf-relay h245-alphanumeric
!
!
!
!
!
!
! Gateway configuration.
!
gateway
h323-id 192.168.1.147
public-ip 192.168.1.147
no ignore-msg-from-other-gk
!
!
! SIP UA configuration.
!
sip-ua
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
vad
!
!
! Tones
voice class clear-down-tone 0 400 0 256 256
!
voice class clear-down-cadence 1 -21 260 250 5 15
!
!
!
!
!