Sorry about the email format.
The table should look like this:
source domain --- prefix --- destination domain
example.com --- voicemail --- xxx.xxx.xxx.xxx
example.com --- * --- yyy.yyy.yyy.yyy
example2.com --- voicemail --- xxx.xxx.xxx.xxx
example2.com --- * --- yyy.yyy.yyy.yyy
* --- voicemail --- xxx.xxx.xxx.xxx
* --- * --- yyy.yyy.yyy.yyy
thanks,
Noel
On 8/30/07, Noel R. Morais <noelrocha(a)gmail.com> wrote:
Hi all,
I am trying to use PDT module to translate an URI user@domain to user@IP.
But it doesn't accept regex for the domain and prefix.
Does somebody know a workaround or another module that works for this purpose?
What I am trying to do is something like that:
source domain | prefix |
destination domain
---------------------------------------------------------------------------------
example.com voicemail XXX.XXX.XXX.XXX
example.com * YYY.YYY.YYY.YYY
example2.com 5511[2-9]{4}[0-9]{4} XXX.XXX.XXX.XXX
* voicemail
XXX.XXX.XXX.XXX
* *
YYY.YYY.YYY.YYY
thanks,
Noel