01-23-2020 05:45 PM
All the CUCM servers from multiple clusters have IP addresses that start 10.22<something>.
Also have two dialers with very specific ip addresses.
We have two dial peers that are using SIP URI matching on the from field. The URIs are defined this way:
voice class uri FROMCUCM sip
host ^10.22
voice class uri FROMDIALER sip
host ipv4:10.222.0.133
host ipv4:10.222.0.5
I would expect that a longer match would take priority. However, when the dialer is making its calls, all the calls are matching the first URI.
The documentation for CUBE doesn't indicate a preference order for choices between SIP URIs when all of them are the same type. It specifies the order of preference only as via, request, to, from.
Withing a type, you can have the following:
the only documented caveat I see is that only one user-id and host combination can appear in a single uri. Up to 10 ipv4 addresses can appear in a URI class.
How is preference handled within this set? (i.e. why doesn't my more specific URI get matched shown at the top)?
01-26-2020 06:50 AM
Hello Clifford,
Could you please share dial peers configuration as well?
Kalliopi
01-26-2020 12:05 PM
DIal peers shown below. But the question is about precedence in SIP URI matching on dial peers within a type (i.e. TO, FROM, VIA, etc.).
voice class uri FROMDIALER sip
host ipv4:10.222.0.133
host ipv4:10.222.0.5
voice class uri FROMCUCM2CLOUD sip
host ^10.22
dial-peer voice 302 voip
incoming uri from FROMDIALER
destination dpg 1002
session protocol sipv2
voice-class codec 300
voice-class sip rel1xx supported "100rel"
voice-class sip early-offer forced
dtmf-relay rtp-nte
ip qos dscp cs3 signaling
no vad
dial-peer voice 321 voip
incoming uri from FROMCUCM2CLOUD
translation-profile incoming CUCM2CLOUD
session protocol sipv2
session target sip-server
destination dpg 1001
voice-class codec 300
voice-class sip rel1xx supported "100rel"
voice-class sip early-offer forced
dtmf-relay rtp-nte
ip qos dscp cs3 signaling
no vad
02-17-2020 05:58 AM
If i understand corectly you want to use single sip uri for all your dial-peers Is it correct ?
02-17-2020 06:45 AM
No....what I want is to understand the preference order by which URI dial peers are selected based on their criteria.
02-17-2020 07:15 AM
Does the following article help you out?
02-17-2020 07:41 AM
02-17-2020 10:19 PM
Hi
I thing probably sip uri regex alghorithm has some difference than expected regex.
Can you try that.
Some charecters is not accepted as we expected other regex application like voice transnlation rule I was face smilar case before.
HEre you cans ee two smilar example but that first URI (USER) is never matching anymore.
It looks same but normaly it wont match firts (USER) sip uri so can you please use it without ^ characters
voice class uri USER sip
user-id 7[34]..$
voice class uri PATTERN sip
pattern 7[34](.*)
voice class uri 203 sip
host dns:xxx.yyy.com
host dns:abc.def.com
host ipv4:10.10.10.10
host ipv4:10.9.10.11
host ipv4:10.10.10.10
dial-peer voice 103 voip
session protocol sipv2
incoming uri via 203
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