[Users] Best way to replace digits in dst_uri

Elena Ramona Modroiu ramona at voice-system.ro
Wed Apr 5 12:45:38 CEST 2006


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.
>
>  
>





More information about the Users mailing list