I've managed to get dbaliases and lcr to do most of this. But the lcr
prefix does not allow regular expressions. Is there any other module
that allows you to store in the database a regular expression rewrite
rule?

On Thu, Feb 16, 2012 at 1:21 PM, Ben WIlliams <benwilli...@joobworld.com> wrote:
> Hi, can someone please recommend the most appropriate modules to
> rewrite R-URIs based on a database lookup table? I've read the
> documentation for lcr and carrierroute but not sure if they can do
> this.
>
> In most cases it will be a simple R-URI rewrite but I also need to
> rewrite based on From user.
>
> ie
>
> R-URI match             From match                  new R-URI
> ===========             ==========                  =========
> *9...@example.com         6[0-9]@example.com          *97@10.0.0.1
> *9...@example.com         7[0-9]@example.com          *97@10.0.0.2
> 6[0-9]@example.com      match any                   rewrite domain to 10.0.0.1
> a...@example.com         match any                   d...@example.com
>
> Thanks
> Ben

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to