[Users] Best way to replace digits in dst_uri
Barry Flanagan
barryf-lists at flanagan.ie
Wed Apr 5 12:54:50 CEST 2006
Elena Ramona Modroiu wrote:
> You should test for the uri format with if(uri=~"sip:\+353[0-9]+@") and
> then use strip(4) and prefix("0").
Ah, thanks. Did not know about the strip function!
-Barry
>
> 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.
>>
>>
>>
>
--
-Barry Flanagan
More information about the Users
mailing list