[sr-dev] support r-uri pattern in lcr module

Andreas Granig agranig at sipwise.com
Thu Apr 19 19:03:14 CEST 2012


Hi,

I'd like to intoduce a way to perform pattern matching on the R-URI in
addition to the plain prefix matching of R-URI-User. The use case is for
example to only allow numeric destinations on one gw, whereas another
one could accept alphanumeric ones as well (e.g. plain SIP peers
compared to peers towards PSTN gateways).

In order to keep the current functionality as is, I'd introduce a
destination mode column with values 1 (default) for normal prefix
matching and 2 for regex matching, and either extend the length of the
prefix column or introduce a ruri_pattern column (because the name
"prefix" would be misleading, but I'm reluctant to rename it due to
backwards compatibility), which is only used if mode==2.

Any comments/opinions on that?

Andreas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20120419/bc7e9a37/attachment.pgp>


More information about the sr-dev mailing list