You should test for the uri format with if(uri=~"sip:\+353[0-9]+@") and then use strip(4) and prefix("0").

Ramona


Barry Flanagan wrote:

Hi,

I need to rewrite the destination uri to replace "+353" with "0" before
passing it on to our PSTN gateway..

What is the cleanest way to do this?

Thanks.



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to