Hello, i have to transform the dialed digits like this:
0[2-3][2-9][2-9]15[4-6]XXXXXX to 549[2-3][4-6]XXXXXX
for example: 0385 15 6097775 to 549 385 6097775
I can do it with prefix and strip but only by adding lots of config lines. Is there any other easy method to do it?
Is it possible to use a translation table in mysql to do the trick?
regards, Pablo.
____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
Hi,
Jose Bertuzzi wrote:
Hello, i have to transform the dialed digits like this:
0[2-3][2-9][2-9]15[4-6]XXXXXX to 549[2-3][4-6]XXXXXX
for example: 0385 15 6097775 to 549 385 6097775
loadmodule "/usr/local/lib/ser/modules/textops.so"
if (subst_uri('/^sip:0([23][2-9]{2})15([4-6][0-9]{6})@/sip:549\1\2@/')) { # macthing successful }
Nimal R.