Expressions for Global Outbound Routes

147 views
Skip to first unread message

Mike Fraser

unread,
Jan 28, 2021, 6:55:18 PM1/28/21
to dSIPRouter
Hi,

Can you use a regular expression in a global outbound route, and i f so what is the format?

I understand the the prefixes work like a wildcard , eg: 1555 would be like 1555* , but can you do pattern matching like ^\155([0-9]) or 155X? I need to do this for my use case. 

Thanks,

Mike

richard

unread,
Feb 1, 2021, 9:50:18 AM2/1/21
to dSIPRouter
Hey Mike,
As of right now pattern matching on the prefixes are not available from my understanding. But you can engage our support and I believe they can set this up for you.

Mack Hendricks

unread,
Feb 1, 2021, 10:12:54 AM2/1/21
to richard, dSIPRouter
Richard is right…we don’t support regular expressions.  This is based on the underlying module we use for Inbound routing within Kamailio.  If it supported Regular expressions then we would as well. 

We have been talking about enhancing that module 


--
You received this message because you are subscribed to the Google Groups "dSIPRouter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dSIPRouter+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dSIPRouter/6f63ba80-ac43-434b-b722-75893c158a76n%40googlegroups.com.

Mike Fraser

unread,
Feb 1, 2021, 7:13:46 PM2/1/21
to Mack Hendricks, richard, dSIPRouter
Hi Mack,

Thanks. I think I can work around this for now and honestly the more I think about my use case the more regular expressions aren't going to work anyway. I'm going to have to attach a unique prefix to everything going out from the different tennants to route them anyway. I was thinking I'd just detect what extension (I'm assigning the teams users short extensions that conform to the pbx) it was coming from and route appropriately but I didn't take into account there might be duplicate extension ranges amongst the tenants 

You received this message because you are subscribed to a topic in the Google Groups "dSIPRouter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dSIPRouter/XXV0bCSNUYQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dSIPRouter+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dSIPRouter/36C18A81-DD63-44FF-A530-C75DCB91DEC2%40goflyball.com.
Reply all
Reply to author
Forward
0 new messages