cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
795
Views
0
Helpful
1
Replies

FXO dial-peer matching

VON CLAWSON
Level 3
Level 3

For some reason I keep matching dial-peer 0 and I can't get it to match dial-peer 200.  Here is the config

voice class uri CallManagers sip
host ipv4:192.168.222.21
host ipv4:192.168.222.20
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g729r8
!
!
!
voice class custom-cptone cptone
dualtone disconnect
frequency 425
cadence 75
!
voice class e164-pattern-map 1
description *** To CUCM ***
e164 +6562916603
e164 +6562916653
e164 +656291659.
!
!
voice class dpg 1
dial-peer 100
!
voice class dpg 2
dial-peer 200
!
voice class server-group 1
ipv4 192.168.222.21 preference 2
ipv4 192.168.222.20 preference 5
!
voice class sip-options-keepalive 1
description *** CUCM ***
down-interval 40
up-interval 20
retry 6
!

voice-port 0/1/0
trunk-group PSTN
supervisory disconnect dualtone mid-call
supervisory custom-cptone cptone
cptone SG
timeouts call-disconnect 1
timeouts wait-release 3
connection plar opx +6562916603
caller-id enable

!

dial-peer voice 100 voip
description *** CUCM ***
session protocol sipv2
session server-group 1
destination dpg 2
destination e164-pattern-map 1
incoming uri via CallManagers
voice-class codec 1
dtmf-relay rtp-nte sip-kpml
no vad
!
dial-peer voice 200 pots
trunkgroup PSTN
description *** ITSP ***
destination-pattern .T
destination dpg 2
incoming called-number +656291....
!

Please let me know if you see anything wrong with this config.

Also, when the call comes in the phone shows no codec and I'm getting one way voice.

Please rate if this helps.
1 Reply 1

Evgeny Izetov
Level 1
Level 1

It's normal for a call coming in on an FXO port to not match or need to match any dial-peer. FXO port doesn't receive a called number anyway. The router sees a call come in on the voice port and checks for the "connection plar" and then matches an outbound dial-peer based on that.

You can remove "destination dpg 2" and "incoming called-number" from dial-peer 200, they won't be used for anything in your case.