Cisco IOS - FXO Port and Dial-Peer Configuration
Click here for sample data
!------------------------------------
!-- Voice Port Configuration
!------------------------------------
trunk group POTS
!
voice-port 0/0/0
trunk-group POTS
no vad
connection plar opx 100
caller-id enable
!
voice-port 0/0/1
trunk-group POTS
no vad
connection plar opx 100
caller-id enable
!
voice-port 0/0/2
trunk-group POTS
no vad
connection plar opx 100
caller-id enable
!
voice-port 0/0/3
trunk-group POTS
no vad
connection plar opx 100
caller-id enable
!------------------------------------
!-- From POTS
!------------------------------------
dial-peer voice 10 pots
trunkgroup POTS
description Inbound dial-peer for calls from PSTN
incoming called-number .
direct-inward-dial
!------------------------------------
!-- To POTS
!------------------------------------
dial-peer voice 61 pots
trunkgroup POTS
description Long Distance
destination-pattern 1[2-9]..[2-9]......$
forward-digits all
no sip-register
!
dial-peer voice 62 pots
trunkgroup POTS
description 10-Digit Local
destination-pattern [2-9]..[2-9]......$
forward-digits all
no sip-register
dial-peer voice 63 pots
trunkgroup POTS
description 7-Digit Local
destination-pattern [2-9]......$
forward-digits all
no sip-register
dial-peer voice 64 pots
trunkgroup POTS
description 10-Digit Local
destination-pattern 011.T
forward-digits all
no sip-register
dial-peer voice 65 pots
trunkgroup POTS
description PSTN Services
destination-pattern [3-9]11
forward-digits all
no sip-register
!------------------------------------
!-- To UCM (SIP Trunk)
!------------------------------------
dial-peer voice 40 voip
description Calls from PSTN to UCM
destination-pattern 100
session protocol sipv2
session target ipv4:10.10.10.10
voice-class codec 1
dtmf-relay sip-kpml rtp-nte
no vad
Use this code to post the full script to your own page:
Use this code to post only the variables to your own page: