[OpenSER-Users] PDT Module - R-URI translation

Noel R. Morais noelrocha at gmail.com
Fri Aug 31 03:30:53 CEST 2007


Hi all,

I am trying to use PDT module to translate an URI user at domain to user at 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




More information about the sr-users mailing list