[Serusers] Rewriting URI's

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Tue Feb 10 17:45:39 CET 2004


On Feb 10, 2004 at 10:58, Darren Nay <dnay at libertyisp.com> wrote:
> Hey Guys,
> 
> Can anyone give me a quick answer on this?
> 
> I need to rewrite the incoming and outgoing URI's in SER.
> 
> For example.  On incoming destination URI's, I need to be able to strip all 1's off of the first of the destination phone number.  How would I do this?

 If you need to strip all the 1s (e.g. 111123 -> 23) try subst_uri
 (from the texstops module).

E.g.:
   subst_uri('/^sip:1+(.*)$/sip:\1/i');

See textops README for more details.


Andrei




More information about the sr-users mailing list