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