12-02-2022 05:02 AM
Hi!
I have a question regarding matching inbound dial-peer on CUBE.
I've read some example on the link below and wounder if it's possible to have wildcard in the "user-id" part, for example 123..* or how would i type this?
And also if i only match "cisco" on the host part instead of cisco.com would that be possible?
Match based on the user-id portion of the uri
Received:
INVITE sip:12345@cisco.com SIP/2.0
voice class uri 1 sip
user-id 12345*
host cisco.com
Thanks in advance!
Solved! Go to Solution.
12-02-2022 07:27 AM
Hi,
I have never worked with "user-id" parameter, but without testing anything, I would use the "pattern" parameter instead.
It search the complete header, but you could use something like "pattern sip:1234" to target the user-part of the URI.
12-03-2022 12:19 AM
This part of the linked to document should answer your question.
”The host or user portion of a voice class uri can contain regular expressions (regex) patterns which greatly expands the possible values that can be matched.”
In Depth Explanation of Cisco IOS and IOS-XE Call Routing
12-02-2022 07:27 AM
Hi,
I have never worked with "user-id" parameter, but without testing anything, I would use the "pattern" parameter instead.
It search the complete header, but you could use something like "pattern sip:1234" to target the user-part of the URI.
12-03-2022 12:19 AM
This part of the linked to document should answer your question.
”The host or user portion of a voice class uri can contain regular expressions (regex) patterns which greatly expands the possible values that can be matched.”
In Depth Explanation of Cisco IOS and IOS-XE Call Routing
12-04-2022 11:09 PM
Thank's for your reply !
Now i think i can manage to get it configured correctly.
12-05-2022 01:06 AM
Hi!
Just an additional question. Is this a possible solution to match IP 10.10.0.(0-255) in the SIP URI ?
Voice URI class: TEST
SNMP status = Active
Schema = sip
user-id =
host = 10.10.0(.*)
phone context =
dial-peer voice 100 voip
description inbound LAN
session protocol sipv2
incoming uri via TEST
12-05-2022 04:53 AM
Per the document that I shared with you the host part can contain a match with a regex pattern, so I think that what you have should work. However to know for sure I would recommend you to run a debug voip ccapi inout to verify that it matches as intended.
12-05-2022 05:44 AM
Great, i give it a try !
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