10-24-2016 03:35 PM - edited 03-17-2019 08:27 AM
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.
10-25-2016 07:54 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide