[Serusers] Rewriting a "+" to 00 in a sip URL
Sean Boran
sean at boran.com
Fri Nov 5 15:03:50 CET 2004
Perhaps a final Question on this topic?
How can I strip unwanted characters from the URL, e.g. spaces, "(" and the
like.
I seen the refernce to subst_uri and its "sed" like syntax.
But presumably I can't do something like:
subst_uri('/[\(\ \)]//i')
I'd like to help user who paste tel numbers fro their outlook contas into a
sip phone, to that I receive urls like:
sip:(031) 2616254 at myserver.com
and rewrite to
sip:0312616254 at myserver.com
Thanks,
Sean
> -----Original Message-----
> From: Bogdan-Andrei IANCU [mailto:iancu at fokus.fraunhofer.de]
> Sent: Freitag, 5. November 2004 12:50
> To: Sean Boran
> Cc: serusers at lists.iptel.org
> Subject: Re: [Serusers] Rewriting a "+" to 00 in a sip URL
>
> no, strip and prefix applies only to username part of RURI.
>
> bogdan
>
> Sean Boran wrote:
>
> >
> >
> >
> >
> >>if (uri=~"sip:+") {
> >> strip(1);
> >> prefix("00");
> >>}
> >>
> >>
> >
> >Will this not cause the "s" in "sip" to be replaces with 00?
> >
> >Thanks very much for the quick help!
> >
> >Sean
> >
> >
> >
> >
>
>
More information about the sr-users
mailing list